/* Den Standard-Pfeil bei Dropdowns radikal entfernen */
select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: none !important;
    padding-right: 15px;
}

/* Für ganz hartnäckige Browser (z.B. alte Edge-Versionen) */
select::-ms-expand {
    display: none !important;
}

select,
option {
    text-shadow: none !important;
    -webkit-font-smoothing: antialiased;
}

:root {
    /* Hintergründe & Rahmen - minimal weicher für mehr Eleganz */
    --bg-body: #f3f4f6; 
    --bg-card: #ffffff;
    --color-admin-box: #f8fafc; /* Sehr dezentes, kühles Grau für innere Boxen */
    --border-color: #e5e7eb; /* Unaufdringliche, feine Rahmen */
    --input-bg: #ffffff;

    /* Typografie - Echtes Schwarz ist oft zu hart, ein sehr dunkles Grau wirkt edler */
    --text-main: #1f2937; 
    --text-muted: #6b7280; 

    /* === PRIVAG PRO CORPORATE IDENTITY (NEU!) === */
    --color-primary: #1ab06d; /* Das offizielle, frische Logo-Grün! */

    /* Status-Farben - Modernisiert */
    --color-danger: #ef4444; 
    --color-danger-shadow: rgba(239, 68, 68, 0.15); /* Subtilerer Schatten */
    --color-success: #10b981; /* Emerald-Grün */
    --color-warning: #f59e0b; /* Bernstein-Orange */
}

/* =========================================
   DARK MODE (Mit grünen Akzenten)
   ========================================= */
body.dark-mode { 
    
    /* Hintergrund & Karten (HIER WAR DER FEHLER: Es muss --bg-body heißen!) */
    --bg-body: #121212;         
    --bg-card: #1e1e1e;         
    --input-bg: #2a2a2a;   
    --color-admin-box: #242424; /* Hatte im Darkmode auch noch gefehlt */     
    
    /* Ränder */
    --border-color: #333333;    
    
    /* Typografie */
    --text-main: #f3f4f6;       
    --text-muted: #9ca3af;      

    /* Akzentfarben */
    --color-primary: #1ab06d;   
    --color-success: #10b981;   
    --color-warning: #f59e0b;   
    --color-danger: #ef4444;    
}

/* ==========================================
   GRUNDLAYOUT (NEUES ENTERPRISE DESIGN)
   ========================================== */
body {
    font-family: 'Segoe UI', sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    height: 100vh;
    /* Nimmt die ganze Bildschirmhöhe ein */
    overflow: hidden;
    /* Verhindert das Scrollen der GANZEN Seite (nur der Inhalt scrollt) */
    transition: 0.4s ease;
}

/* Der Container für den Login (zentriert) */
.login-container {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin: 10vh auto;
    /* Zentriert mit Abstand nach oben */
    border: 1px solid var(--border-color);
    box-sizing: border-box;
}

/* Das Raster für das Dashboard */
.app-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Die linke Seitenleiste */
.sidebar {
    width: 260px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 10;
}

.sidebar-header {
    padding: 20px;
    font-size: 1.5em;
    font-weight: bold;
    color: var(--color-primary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-btn {
    background: transparent;
    color: var(--text-muted);
    border: none;
    text-align: left;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.sidebar-btn:hover {
    background: var(--input-bg);
    color: var(--text-main);
}

.sidebar-btn.active {
    background: rgba(0, 123, 255, 0.1);
    color: var(--color-primary);
    font-weight: bold;
    border-left: 4px solid var(--color-primary);
    border-radius: 4px 8px 8px 4px;
}

/* Der rechte Bereich (Topbar + Content) */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-body);
    overflow: hidden;
}

.topbar {
    height: 70px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    flex-shrink: 0;
}

.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

/* ==========================================
   ALLGEMEINE ELEMENTE
   ========================================== */
input,
select {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    background: var(--input-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-sizing: border-box;
}

select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 40px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

input::placeholder {
    color: var(--text-muted);
}

button {
    width: 100%;
    padding: 10px 15px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s ease;
}

.hidden {
    display: none !important;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.overlay>div {
    background: var(--bg-card) !important;
    color: var(--text-main);
    transition: 0.4s;
}

.card {
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s ease;
    cursor: pointer;
    background: var(--input-bg);
}

.card:hover {
    border-color: var(--color-primary);
    transform: translateX(5px);
}

/* Dropdown User Menü */
.user-menu {
    position: relative;
}

.avatar {
    width: 42px;
    height: 42px;
    background: #17a2b8;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    user-select: none;
    transition: 0.2s;
}

.avatar:hover {
    transform: scale(1.05);
}

.dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    width: 220px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.3s ease;
}

.dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 0.95em;
}

.dropdown-item:hover {
    background: var(--input-bg);
}

/* Schalter (Nachtmodus) */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--color-primary);
}

input:checked+.slider:before {
    transform: translateX(18px);
}

/* Toasts */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    max-width: 320px;
    background: var(--bg-card);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
    font-size: 0.9em;
    transform: translateX(120%);
    animation: slideIn 0.4s forwards, fadeOut 0.4s 2.6s forwards;
}

.toast.success {
    border-left: 4px solid var(--color-success);
}

.toast.error {
    border-left: 4px solid var(--color-danger);
}

.toast-msg {
    line-height: 1.4;
    word-break: break-word;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Badges & Tables */
.badge {
    font-size: 0.7em;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: bold;
    margin-left: 6px;
}

.badge-warning {
    background: var(--color-warning);
    color: #fff;
}

.badge-danger {
    background: var(--color-danger);
    color: #fff;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--input-bg);
    font-weight: 600;
}

.data-table tr:hover {
    background: var(--border-color);
}

.btn-small {
    padding: 5px 8px;
    font-size: 0.8em;
    border-radius: 4px;
    width: auto;
    display: inline-block;
}

/* Org-Chart (Strukturbaum) */
.org-tree {
    display: flex;
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 20px;
    margin-top: 20px;
}

.org-tree ul {
    padding-top: 20px;
    position: relative;
    display: flex;
    justify-content: center;
    padding-left: 0;
    margin: 0;
}

.org-tree li {
    text-align: center;
    list-style-type: none;
    position: relative;
    padding: 20px 10px 0 10px;
    transition: all 0.5s;
}

.org-tree li::before,
.org-tree li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 2px solid var(--border-color);
    width: 50%;
    height: 20px;
}

.org-tree li::after {
    right: auto;
    left: 50%;
    border-left: 2px solid var(--border-color);
}

.org-tree li:only-child::after,
.org-tree li:only-child::before {
    display: none;
}

.org-tree li:only-child {
    padding-top: 0;
}

.org-tree li:first-child::before,
.org-tree li:last-child::after {
    border: 0 none;
}

.org-tree li:last-child::before {
    border-right: 2px solid var(--border-color);
    border-radius: 0 5px 0 0;
}

.org-tree li:first-child::after {
    border-radius: 5px 0 0 0;
}

.org-tree ul ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 2px solid var(--border-color);
    width: 0;
    height: 20px;
    transform: translateX(-50%);
}

.org-node {
    background: var(--input-bg);
    border: 2px solid var(--color-primary);
    padding: 15px;
    display: inline-block;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
    min-width: 140px;
    transition: 0.3s ease;
}

.org-node:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--color-success);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Animationen & Effekte */
@keyframes userCardPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.user-card-pulse {
    animation: userCardPulse 2s infinite;
}

#pw-input+div svg {
    transition: color 0.2s ease;
}

#pw-input+div:hover svg {
    color: var(--color-primary);
}

/* ==========================================
   MOBILE OPTIMIERUNG (Handy-Ansicht)
   ========================================== */
@media (max-width: 768px) {

    /* App Layout wird vertikal gestapelt */
    .app-layout {
        flex-direction: column;
    }

    /* Sidebar wird zur scrollbaren Leiste oben */
    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .sidebar-header {
        display: none;
    }

    /* Titel oben ausblenden auf Handy */
    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar-btn {
        white-space: nowrap;
        border-left: none !important;
        border-bottom: 3px solid transparent;
        border-radius: 6px;
        padding: 8px 12px;
    }

    .sidebar-btn.active {
        border-bottom: 3px solid var(--color-primary);
        border-radius: 6px 6px 0 0;
    }

    .topbar {
        padding: 0 15px;
        height: 60px;
    }

    .content-area {
        padding: 15px;
    }

    /* Tabellen & Overlays für Handys optimieren */
    .data-table th,
    .data-table td {
        padding: 10px 8px;
        font-size: 0.85em;
    }

    .overlay>div {
        width: 92% !important;
        max-width: 400px !important;
        padding: 20px !important;
        box-sizing: border-box !important; /* WICHTIG: Verhindert, dass Padding das Fenster sprengt! */
        border-radius: 12px !important; /* Macht es auf dem Handy noch eleganter */
    }

    #bell-dropdown {
        width: 300px;
        right: -50px;
    }

    .org-node {
        min-width: 120px;
        padding: 10px;
    }
}

/* ==========================================
   LOGO STYLING & FIXES (GRÖSSE & DARKMODE)
   ========================================== */

/* 1. Grundklasse */
.brand-logo {
    display: block;
    margin: 0 auto;
    transition: 0.3s ease;
    filter: none;
}

/* 2. Logo im LOGIN-BEREICH */
#login-logo {
    width: 200px !important;
    max-width: 100%;
    height: auto;
    margin: 0 auto 25px auto !important;
    /* <-- Erhöht auf 25px für schöne Luft nach unten */
}

/* 3. Logo in der SIDEBAR (Für zugeschnittenes Logo) */
#sidebar-logo {
    width: 100% !important;
    max-width: 140px !important;
    /* Lässt etwas Luft zum Rand der Sidebar */
    height: auto !important;
    max-height: 40px !important;
    /* Perfekte Höhe, damit es nicht oben/unten an die 70px Leiste klatscht */
    object-fit: contain;
}

/* 4. DARK MODE LOGIK */
body.dark-mode .brand-logo {
    filter: invert(1) hue-rotate(180deg) drop-shadow(0px 0px 1px rgba(255, 255, 255, 0.2));
}

/* ==========================================
   MOBILE SIDEBAR FIX (App-Design)
   ========================================== */
@media (max-width: 768px) {
    .sidebar {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding: 15px 15px 15px 15px !important; /* Puffer auf normale 15px reduziert */
        height: auto !important;
        min-height: 70px !important; /* NEU: Zwingt Android, die Leiste sichtbar zu lassen */
        flex-shrink: 0 !important; /* NEU: Verhindert, dass die Leiste zerquetscht wird */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* NEU: Ein leichter Schatten unten, um sie vom Content abzuheben */
        box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
        z-index: 50; 
    }

    .sidebar::-webkit-scrollbar {
        display: none;
    }

    .sidebar-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        height: 40px !important;
        margin: 0 8px 0 0 !important;
        padding: 0 16px !important;
        border-radius: 20px !important;
        border-left: none !important;
        font-size: 0.9em !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .gf-only:not(.hidden) {
        display: contents !important;
    }

    .gf-only small {
        display: none !important;
    }
}

/* ==========================================
   MOBILE FIXES (Feinschliff für Smartphones)
   ========================================== */
@media (max-width: 768px) {

    /* 1. Menü: Platz nach unten verringern & "Uhrzeit-Puffer" anpassen */
    .sidebar {
        /* Vorher war hier "padding: 40px 15px 15px 15px", das hat den riesigen Abstand erzeugt! */
        padding: 15px 15px 10px 15px !important; 
    }

    /* 2. Team-Aufbau: Überschrift weg und Button sauber in die Leiste packen */
    #rekrutieren-container {
        display: contents !important; /* Hebt die Box auf, macht den Button zum direkten Teil der Menüleiste */
    }
    #rekrutieren-container small {
        display: none !important; /* Versteckt den Text "TEAM-AUFBAU" */
    }

    /* 3. iOS Safari Fix: Abschlussdatum linksbündig und in normaler Größe */
    input[type="date"] {
        text-align: left !important;
        -webkit-appearance: none !important; /* Verbietet Apple das eigene Styling */
        appearance: none !important;
        display: block !important;
        min-height: 46px !important; /* Gleiche Höhe wie die Textfelder */
        width: 100% !important;
        background-color: var(--input-bg) !important;
    }

    /* 4. Tabellen-Overflow: Anträge brechen nicht mehr aus der Box aus */
    .data-table {
        display: block !important;
        overflow-x: auto !important; /* Tabelle wird seitlich wischbar, wenn sie zu breit ist */
        white-space: nowrap !important;
        width: 100% !important;
        -webkit-overflow-scrolling: touch !important; /* Buttermundweiches Scrollen auf dem iPhone */
        border: none !important;
    }
    
    /* Sorgt dafür, dass die Boxen um die Tabellen das Wischen erlauben, ohne zu platzen */
    .card, div[style*="background: var(--bg-card)"] {
        max-width: 100% !important;
        overflow: hidden !important;
    }
}

/* ==========================================
   ULTIMATIVER MOBILE MENU FIX (App-Style) V2
   ========================================== */
@media (max-width: 768px) {
    /* 1. Menü: Viel Luft nach oben für die Handy-Statusleiste (Uhrzeit, Batterie) */
    .sidebar {
        /* 40px nach oben, 0 rechts, 0 unten, 0 links */
        padding: 40px 0 0 0 !important; 
        display: block !important;
        height: auto !important;
        background-color: var(--bg-card) !important; /* Stellt sicher, dass der Platz oben die richtige Farbe hat */
    }

    /* 2. Die Leiste zwingen, eine perfekte, einzeilige "Wisch-Leiste" zu sein */
    .sidebar-nav {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        overflow-x: auto !important;
        padding: 5px 15px 15px 15px !important;
        margin: 0 !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }
    
    .sidebar-nav::-webkit-scrollbar {
        display: none !important;
    }

    /* 3. Container-Texte unsichtbar machen */
    #rekrutieren-container, 
    .gf-only {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }

    #rekrutieren-container small, 
    .gf-only small {
        display: none !important;
    }

    /* 4. Die schicken Button-Pillen */
    .sidebar-btn {
        display: inline-flex !important;
        align-items: center !important;
        height: 38px !important;
        padding: 0 16px !important;
        margin: 0 8px 0 0 !important;
        border-radius: 20px !important;
        border: 1px solid var(--border-color) !important;
        background: transparent !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    
    .sidebar-btn.active {
        background: var(--color-primary) !important;
        color: white !important;
        border-color: var(--color-primary) !important;
    }

    /* 5. FIX: "Das bist du" darf nicht abgeschnitten werden! */
    .org-node, .org-tree, .org-tree ul {
        overflow: visible !important;
    }
    .org-tree {
        margin-top: 15px !important; /* Gibt dem Baum etwas Platz nach oben */
    }
}

/* ==========================================
   POPUP / MFA OVERLAY FIX (Die WIRKLICH sichere Version)
   ========================================== */
.overlay {
    /* Löst den iOS Safari Höhen-Bug, lässt aber das JS in Ruhe! */
    height: 100dvh !important; 
    z-index: 999999 !important; 
}

@media (max-width: 768px) {
    /* ... deine anderen Mobile-Fixes ... */

    /* Die absolute Brechstange für das Popup */
    .overlay {
        padding: 0 !important; /* Wir nehmen das alte Padding weg */
    }
    
    .overlay > div {
        /* Nimm die volle Breite, aber ziehe zwingend 40px ab! */
        width: calc(100% - 40px) !important; 
        max-width: 400px !important;
        
        /* Zwingt das Element zu 20px Abstand nach links und rechts */
        margin: 0 20px !important; 
        
        padding: 25px 20px !important;
        box-sizing: border-box !important;
        border-radius: 14px !important;
    }
}

@media (max-width: 768px) {
    #wiki-karriere .ff-card-content > div > div > div { /* Zielt auf die Treppen-Boxen ab */
        margin-left: 0 !important;
        width: 100% !important;
    }
}

/* Hover-Effekte für die Karriereleiter */
.career-step {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
    cursor: default; /* Oder 'pointer', falls du später Klicks hinzufügen willst */
}

.career-step:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08) !important;
}

/* Der Style, wenn das System erkennt "Das ist der User" */
.career-step.is-current {
    border-left: 5px solid var(--color-primary) !important;
    background: linear-gradient(90deg, rgba(26, 176, 109, 0.05) 0%, var(--bg-card) 100%) !important;
    box-shadow: 0 0 15px rgba(26, 176, 109, 0.15) !important;
}

/* Das kleine grüne "Das bist du" Badge */
.current-badge {
    background: var(--color-primary);
    color: white;
    font-size: 0.7em;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: bold;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Macht das Kalender-Icon im Dark-Mode sichtbar */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    /* Ein kleiner Trick, damit das Icon im Dark-Mode weiß wird */
    filter: invert(var(--is-dark, 0)); 
}

/* Je nachdem, wie dein Dark-Mode heißt (meistens .dark-mode oder [data-theme="dark"]), füge dies hinzu: */
body.dark-mode input[type="date"],
[data-theme="dark"] input[type="date"] {
    color-scheme: dark;
}

/* --- SUB-NAVIGATION STYLING --- */
.sub-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1em;
    font-weight: 600;
    padding: 12px 20px; /* Etwas mehr Luft zum Atmen nach links und rechts */
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    width: auto !important; /* Verhindert das extreme Strecken */
    flex: none !important;  /* Verhindert das extreme Strecken */
    margin: 0;
}
.sub-tab-btn:hover {
    color: var(--text-main);
}
.sub-tab-btn.active {
    color: var(--color-primary); /* Dein schönes Grün */
    border-bottom: 3px solid var(--color-primary);
}