/* Es gibt keine Regeln oder Klassen mehr zu frame_rechts oder hide-frame2 */

/* frame_links nimmt 100% Breite ein */
#frame_links {
    width: 100%;
    padding: 20px;
    background-color: #222;
    color: white;
    overflow-y: scroll;
    max-height: 80vh;
}

/* Allgemeine Reset-Regeln */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background-color: #111;
}

/* Header */
header {
    background: #222;
    text-align: center;
    padding: 10px;
    width: 80%;
    margin-top: 20px;
    position: relative; /* Für z-index erforderlich */
    z-index: 15;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.9), 0 4px 8px rgba(0, 0, 0, 0.9);
}

header img {
    display: block;
    width: 100%;
    height: auto;
    border: 2px solid #000; /* 2px Rand in Schwarz – passe die Farbe bei Bedarf an */
}

/* Footer */
footer {
    background: #222;
    color: white;
    text-align: center;
    width: 80%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.5); /* Schatten nach oben */
}

#frame_navi {
    background: #222;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;
    position: relative; /* Für z-index erforderlich */
    z-index: 10;        /* Höher als der Inhalt darunter */
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.5), 0 5px 10px rgba(0, 0, 0, 0.5);
}

#frame_navi ul {
    list-style: none;
    display: flex;
    gap: 10px;
}

#frame_navi ul li a {
    background: #111;
    color: #fff;
    padding: 10px 15px;
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative; /* ermöglicht die Verschiebung */
    top: 3px;         /* verschiebt den Button um 3px nach unten */
}

#frame_navi ul li a:hover {
    background: #222;
    color: #FFFF00;
}

/* Hauptinhalt */
main {
    display: flex;
    flex: 1;
    width: 80%;
}

/* Unsichtbare Scrollbars */
::-webkit-scrollbar {
    width: 0px;
}

/* News Styling aus news.php */
.news-entry {
    background: #444;  /* Innenfarbe */
    padding: 15px;
    border-radius: 10px;  /* Abgerundete Ecken */
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 15px;
    border: 2px solid #000;  /* Sichtbare Umrandung */
    position: relative;
    /* Dieser Schatten wird hier für den gesamten News-Kasten gesetzt */
    box-shadow: 0px -10px 15px rgba(0, 0, 0, 0.5);
}

/* Kombinierte Regeln für den News-Bild-Container */
.news-entry {
    background: #333; /* Innenfarbe */
    padding: 15px;
    border-radius: 10px; /* Abgerundete Ecken */
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 15px;
    border: 2px solid #000; /* Sichtbare Umrandung */
    position: relative;
    box-shadow: 0px -10px 15px rgba(0, 0, 0, 0.5);
}

/* Angepasster Bild-Container */
.news-image {
    /* Festgelegte Dimensionen */
    width: 400px !important;
    height: 200px !important;
    overflow: hidden;
    /* Als Flex-Item: Verhindert, dass es schrumpft */
    flex-shrink: 0;
    /* Hintergrund-Eigenschaften */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 500px 250px !important;
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.9);
}

.news-content {
    flex-grow: 1;
    color: #fff;
    display: flex;
    flex-direction: column;
}


.news-title {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}

.news-text {
    flex-grow: 1;
    text-align: left;
}

.news-meta {
    font-size: 12px;
    color: #ADADAD;
    text-align: right;
    width: 100%;
    padding-top: 10px;
    display: flex;
    justify-content: flex-end; /* Rechtsbündig */
    align-items: flex-end; /* Ganz unten anordnen */
    position: absolute;
    bottom: 10px; /* Abstand zum unteren Rand */
    right: 15px; /* Abstand zur rechten Seite */
}

/* Admin Controls */
.admin-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.edit-btn, .delete-btn {
    background: #444;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.edit-btn:hover {
    background: #FFA500; /* Orange für Bearbeiten */
}

.delete-btn:hover {
    background: #FF0000; /* Rot für Löschen */
}

/* Basis-Schriften */
.u1 { 
  font-family: "Times New Roman", Times, serif; 
  color: #FFA500; /* Orange */ 
  text-shadow: 4px 4px 5px rgba(0, 0, 0, 0.8);
}

.t1 { 
  font-family: "Times New Roman", Times, serif; 
  color: #ADADAD; /* Grau */ 
  text-shadow: 4px 4px 5px rgba(0, 0, 0, 0.8);
}

/* Schriftgrößen in 2er-Schritten */
.text-14 { font-size: 14px; }
.text-16 { font-size: 16px; }
.text-18 { font-size: 18px; }
.text-20 { font-size: 20px; }
.text-22 { font-size: 22px; }
.text-24 { font-size: 24px; }
.text-26 { font-size: 26px; }
.text-28 { font-size: 28px; }
.text-30 { font-size: 30px; }

.server_titel1 {
    font-family: "Times New Roman", Times, serif;
    color: #fff; /* Orange */
    text-shadow: 4px 4px 5px rgba(0, 0, 0, 0.8);
    font-size: 24px;
    text-align: center;
    display: block; /* Stellt sicher, dass der Text korrekt dargestellt wird */
    width: 100%; /* Falls nötig, damit die Zentrierung funktioniert */
}

.server_titel2 {
    font-family: "Times New Roman", Times, serif;
    color: #FFA500; /* Orange */
    text-shadow: 4px 4px 5px rgba(0, 0, 0, 0.8);
    font-size: 18px;
    text-align: center;
    display: block; /* Stellt sicher, dass der Text korrekt dargestellt wird */
    width: 100%; /* Falls nötig, damit die Zentrierung funktioniert */
}

/* Elterncontainer, der genügend Platz ergibt */
/* Container als zentriertes Inline-Block-Element */
.server-container {
    width: 100%;           /* volle Breite, damit text-align wirkt */
    text-align: center;    /* zentriert inline-Elemente darin */
    margin: 0;             /* kein zusätzlicher Außenabstand */
}


/* override aller bisherigen .server-row-Deklarationen */
.server-row {
  /* sorgt dafür, dass die Boxen nicht über die ganze Breite gehen */
  display: flex !important;
  width: max-content !important;    /* Container schrumpft auf Inhalt */
  margin: 0 auto !important;        /* zentriert den Container */
  gap: 20px !important;             /* Abstand zwischen den Server-Boxen */
}


/* Server-Box bleibt unverändert */
.server-box {
    box-sizing: border-box;
    width: 350px !important;
    max-width: 350px !important;
    min-width: 350px !important;
    padding: 15px;
    background-color: #2A2A2A;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 2px solid #000;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.5);
    flex: none;
}


/* Bild-Bereich */
.server-image {
    display: flex;
    justify-content: center;
    margin-bottom: 10px; /* Abstand unter dem Bild */
}

/* Bild */
.server-image img {
    width: 280px;
    height: 173px;
    object-fit: cover;
    border: 2px solid #000;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.7);
}

.server-description {
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 10px;
    width: 100%; /* Damit die Zeilen die volle Breite haben */
    text-align: justify; /* Blocksatz für gleichmäßige Ausrichtung */
    text-justify: distribute; /* Maximale Anpassung der Wortverteilung */
    word-spacing: 5px; /* Erzwingt gleichmäßige Wortabstände */
    letter-spacing: 0.5px; /* Sorgt für feine Abstimmung zwischen Buchstaben */
    white-space: pre-wrap; /* Verhindert unnötige Umbrüche und erzwingt die Formatierung */
}

/* Abstandshalter für 10px Lücken */
.spacer-10 {
    height: 10px;
}

/* Link-Bereich */
.server-links {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Abstand zwischen den Links */
}

/* Server-Links */
.server-link {
    background: #444;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.server-link:hover {
    background: #FFA500; /* Orange bei Hover */
}

.shoutbox-container {
    display: flex;
    width: 100%;
    border: 2px solid #ccc;
    padding: 10px;
    box-sizing: border-box;
}

/* Nachrichten links */
.shoutbox-messages {
    width: 60%;
    border-right: 2px solid #ddd;
    padding-right: 10px;
}

/* Eingabe + Emojis rechts */
.shoutbox-input {
    width: 40%;
    padding-left: 10px;
}

.emoji {
width: 32px !important;
height: 32px !important;
display: inline-block !important;
object-fit: contain !important;
}

.warn-container {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.warnhinweis {
  background-color: #1a1a1a;  /* Exakte Hintergrundfarbe der Server-Boxen */
  border: 2px solid #444;      /* Dezenter Rahmen passend zum Design */
  padding: 15px;
  max-width: 600px;
  text-align: center;
  border-radius: 10px;
  color: white;  /* Weiße Schrift für bessere Lesbarkeit */
}


