/* ==========================================================================
   1. GLOBALE VARIABLEN & BASISSYSTEM
   ========================================================================== */
:root {
    --bg-color: #121214;
    --text-color: #e2e8f0;
    --accent-color: #00ff66;
    --accent-blue: #8a99ad;
    --card-bg: #1e1e24;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* --- Echtes Konsolen-Code-Element --- */
code {
    font-family: 'Courier New', Courier, monospace !important;
    color: var(--accent-color) !important;
    font-weight: bold !important;
    font-size: 0.95rem !important;
    white-space: nowrap !important;
}

/* ==========================================================================
   2. NAVIGATION & HEADER
   ========================================================================== */
.navbar {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.nav-logo {
    font-weight: bold;
    color: var(--text-color);
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.nav-subtitle {
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: normal;
    margin-left: 5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 4px;
}

.nav-links .lang-switch {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    color: var(--accent-blue); /* Dezentes blaugrau für das Trennungszeichen "|" */
    display: inline-block;
    margin-left: 35px; /* Erhöht den Abstand zum vorherigen Menüpunkt */
    padding-left: 5px;
}

/* Inaktiver Sprach-Link */
.nav-links .lang-switch a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
    border-bottom: none !important; /* Verhindert das Zerstören der Höhe */
    padding-bottom: 0 !important;
}

.nav-links .lang-switch a:hover {
    color: var(--accent-color);
    border-bottom: none !important; /* Verhindert das Verspringen der Navbar */
    padding-bottom: 0 !important;
}

/* Aktive Sprache im exakten Seiten-Grün */
.nav-links .lang-switch .lang-active {
    color: var(--accent-color);
    font-weight: bold;
}

/* ==========================================================================
   3. SYSTEM-SPRUNGMENÜ (CLI STYLE)
   ========================================================================== */
.jump-menu-grid {
    background: rgba(138, 153, 173, 0.02);
    border: 1px dashed rgba(0, 255, 102, 0.2);
    padding: 15px;
    margin-bottom: 30px;
    text-align: left;
    font-size: 0.9rem;
}

.jump-menu-title {
    color: var(--accent-blue);
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.jump-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.jump-grid a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.jump-grid a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ==========================================================================
   4. HAUPT-CONTENT, CONTAINER & BOXEN
   ========================================================================== */
.container {
    width: 100%;
    max-width: 725px;
    padding: 40px 20px;
    background: var(--card-bg);
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.2);
    margin: 20px auto;
    box-sizing: border-box;
    text-align: center;
}

h1 {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

h1 .sub-title {
    display: block;
    font-size: 0.95rem;
    color: #8a99ad;
    margin-top: 6px;
    font-weight: normal;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.status {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(0, 255, 102, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 30px;
    animation: blink 1.5s infinite;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #a0aec0;
}

/* --- Info-Boxen --- */
.info-box {
    margin-top: 30px;
    padding: 15px;
    background: rgba(138, 153, 173, 0.03);
    border-left: 3px solid var(--accent-blue) !important;
    text-align: left;
    font-size: 0.95rem;
}

.info-box span {
    display: block;
    margin-bottom: 5px;
}

/* --- Listen innerhalb von Info-Boxen --- */
.info-box ul {
    list-style-type: disc !important;
    padding-left: 20px !important;
    margin: 10px 0 0 0 !important;
}

.info-box ul li {
    margin-bottom: 8px !important;
    color: #cbd5e1;
    line-height: 1.5;
    text-align: left;
}

/* --- Link-Styling für Links innerhalb von Info-Boxen --- */
.info-box a {
    color: #cbd5e1;
    text-decoration: none;
    border-bottom: 1px dashed var(--accent-color);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.info-box a:hover {
    color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
}

footer {
    margin-top: 40px;
    font-size: 0.8rem;
    color: #4a5568;
}

/* ==========================================================================
   5. SEITENSPEZIFISCHE FORMATIERUNGEN
   ========================================================================== */

/* --- Webchat-Fenster (webchat.html) --- */
.webchat-frame {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    height: 450px;
    border: 1px solid rgba(0, 255, 102, 0.3);
    border-radius: 4px;
    background: #000000;
    margin-top: 20px;
    display: block;
}

/* --- Team-Nicks (staff.html) --- */
.member-name {
    margin: 5px 0 10px 0;
    font-size: 1.4rem;
    letter-spacing: 1px;
    font-weight: bold;
}

.admin-color {
    color: var(--accent-color);
}

.member-text {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
    text-align: left;
}

/* --- Befehls-Tabellen (commands.html) --- */
.cmd-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.9rem;
}

.cmd-table th {
    color: var(--accent-color);
    text-align: left;
    padding: 8px;
    border-bottom: 2px solid var(--accent-blue);
    font-weight: bold;
    text-transform: uppercase;
}

.cmd-table td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(138, 153, 173, 0.1);
    vertical-align: top;
    color: #cbd5e1;
    line-height: 1.4;
}

.cmd-table tr:hover td {
    background: rgba(138, 153, 173, 0.02);
}

/* ==========================================================================
   6. INTERAKTIVE WIDGETS & ANIMATIONEN
   ========================================================================== */

/* --- ASCII "Back to Top" Button --- */
.back-to-top {
    position: fixed;
    bottom: 40px;
    left: calc(50% + 380px);
    background: var(--card-bg);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    padding: 10px 15px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.3);
    transition: all 0.2s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 25px var(--accent-color);
    cursor: pointer;
}

/* --- Blinken für den Status-Balken --- */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ==========================================================================
   7. RESPONSIVE ANPASSUNGEN (MOBILGERÄTE)
   ========================================================================== */

/* Allgemeine Mobil-Optimierung für Navbar, Container und Grid-Menü */
@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .container {
        margin-top: 20px;
        margin-bottom: 40px;
    }

    h1 {
        font-size: 2rem;
    }
}

/* Auf Handys das CLI-Sprungmenü untereinander anzeigen */
@media (max-width: 480px) {
    .jump-grid {
        grid-template-columns: 1fr;
    }
}

/* "Back to Top" Button auf Tablets und Smartphones an den unteren Rand heften */
@media (max-width: 1280px) {
    .back-to-top {
        left: auto;
        right: 20px;
        bottom: 20px;
        padding: 8px 12px;
        font-size: 0.8rem;
        opacity: 0.8;
    }
}

/* Tabellen lesbar halten und horizontales Überlappen verhindern */
@media (max-width: 600px) {
    /* ... deine bisherigen CSS-Regeln für die Navbar ... */

    .nav-links {
        flex-wrap: wrap; /* Erlaubt sauberes Umbrechen, falls nötig */
        justify-content: center;
    }

    .nav-links .lang-switch {
        margin-left: 0; /* Entfernt den großen seitlichen Abstand auf Mobilgeräten */
        margin-top: 10px; /* Schafft stattdessen dezenten Platz nach oben */
        width: 100%; /* Setzt die Sprachauswahl mittig unter das Menü */
        text-align: center;
    }
}

