/* --- Haupt-Navigationsleiste --- */
.bottom-nav {
    position: fixed; 
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    touch-action: pan-x pan-y;
    
    /* Breite orientiert sich am Rest der Seite */
    width: 100%; 
    max-width: 600px; 
    
    height: 65px;
    background-color: var(--nav-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1600;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);

    /* Desktop/Tablet: leichte Rundung oben */
    border-radius: 20px 20px 0 0; 
    border: 1px solid rgba(0,0,0,0.05);
    border-bottom: none;
    
    /* Wichtig für iPhones ohne Home-Button (Safe Area) */
    padding-bottom: env(safe-area-inset-bottom);
}

/* --- MOBILE ANPASSUNG (Full-Width & Eckig) --- */
@media (max-width: 600px) {
    .bottom-nav {
        max-width: 100%;
        border-radius: 0; /* Ecken auf dem Handy entfernen */
        border-left: none;
        border-right: none;
        bottom: 0;
    }
}

/* Platzhalter für Symmetrie */
.nav-placeholder {
    width: 55px; 
    flex-shrink: 0;
    visibility: hidden;
}

/* --- Standard-Links (Icons) --- */
.bottom-nav a {
    text-decoration: none;
    color: var(--icon-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;    
    height: 100%;   
    transition: all 0.2s ease-in-out;
    background-color: transparent !important; /* Keine Pille */
}

.bottom-nav a .material-symbols-outlined {
    font-size: 28px;
    display: inline-block;
    line-height: 1;
}

/* --- DER AKTIVE ZUSTAND (Icon wird Rot) --- */
.bottom-nav a.active {
    color: var(--primary-red) !important; /* Icon wird rot */
    background-color: transparent !important; 
    box-shadow: none !important; 
}

.bottom-nav a.active .material-symbols-outlined {
    color: var(--primary-red) !important;
    font-variation-settings: 'FILL' 1; /* Icon wird ausgefüllt */
}

/* Klick-Feedback */
.bottom-nav a:active {
    opacity: 0.7;
}

/* --- Menü-Button (Sidepanel) Spezial --- */
.nav-side-zone {
    width: 55px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Mox-Star Button --- */
#navStarBtn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--icon-light) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 100%;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease;
}
#navStarBtn .material-symbols-outlined {
    font-size: 28px;
    line-height: 1;
    color: var(--icon-light) !important;
    transition: color .2s, font-variation-settings .2s;
}
#navStarBtn.is-active .material-symbols-outlined {
    font-variation-settings: 'FILL' 1,'wght' 400,'GRAD' 0,'opsz' 24;
    color: var(--primary-red) !important;
}
#navStarBtn:active { opacity: 0.7; }

/* Hier wird das hellgraue Design erzwungen */
.bottom-nav a.menu-btn-anim {
    color: var(--icon-light) !important; 
    width: 50px;
    background-color: transparent !important;
}

.bottom-nav a.menu-btn-anim .material-symbols-outlined {
    color: inherit !important;
    transition: transform 0.4s ease, color 0.3s ease;
}

/* Zustand wenn Sidepanel OFFEN ist */
.bottom-nav a.menu-btn-anim.active .material-symbols-outlined,
.bottom-nav a.menu-btn-anim.is-active .material-symbols-outlined {
    color: var(--primary-red) !important; /* Wird rot bei Aktivierung */
    transform: rotate(90deg);
}

/* Basis-Icon Styles */
.bottom-nav .material-symbols-outlined {
    font-size: 28px;
    line-height: 1;
}
