/* Fixierte Footer-Leiste am unteren Bildschirmrand */
.fixed-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    pointer-events: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    position: relative;
    padding: 0 15px;
}

/* Gesamt-Modul */
.footer-wrapper {
    display: flex;
    align-items: flex-end;
    pointer-events: auto;
    width: 100%;
    position: relative;
}

/* Horizontale Menüleiste unten */
.footer-main-nav {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #ccc;
    border-bottom: none;
    border-radius: 8px 0 0 0;
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.08);
    flex: 1;
}

.footer-nav-item {
    height: 48px;
    box-sizing: border-box;
    padding: 0 15px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    border-right: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    transition: background 0.2s, color 0.2s;
}

.footer-nav-item:hover {
    background-color: #f5f5f5;
}

/* Toggle-Button im Desktop-Modus verstecken */
.mobile-only-toggle {
    display: none;
}

/* Vertikales Menü (Desktop Standard) */
.footer-side-menu {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #ccc;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.08);
    min-width: 140px;
}

.side-menu-item {
    height: 48px;
    box-sizing: border-box;
    padding: 0 16px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.side-menu-item:last-child {
    border-bottom: none;
}

.side-menu-item:hover {
    background-color: #f5f5f5;
    color: #007bff;
}

/* Zähler-Badges */
.footer-nav-item .badge {
    background: #e74c3c;
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: 10px;
}

/* Ungelesene Nachrichten Status */
.footer-nav-item.has-unread {
    background-color: #8b0000;
    color: #ffffff;
}

.footer-nav-item.has-unread .badge {
    background-color: #ffffff;
    color: #8b0000;
    font-weight: bold;
}

/* --- REIN FÜR HANDY-ANSICHT (Mobil) --- */
@media (max-width: 768px) {
    .footer-container {
        padding: 0;
        width: 100%;
    }

    .footer-main-nav {
        border-radius: 0;
        width: 100%;
    }

    .footer-nav-item {
        padding: 0 4px;
        font-size: 0.78rem;
        gap: 3px;
        white-space: nowrap;
    }

    /* Toggle-Button auf dem Handy anzeigen */
    .mobile-only-toggle {
        display: flex;
        cursor: pointer;
    }

    /* Klappmenü auf dem Handy standardmäßig verstecken */
    .footer-side-menu {
        display: none; 
        position: absolute;
        bottom: 48px;
        right: 0;
        min-width: 140px;
        border-radius: 8px 8px 0 0;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.18);
        border: 1px solid #ccc;
        background: #ffffff;
        z-index: 10000;
    }

    /* Per JS bei Klick einblenden */
    .footer-side-menu.active {
        display: flex;
    }

    .side-menu-item {
        height: 44px;
        font-size: 0.85rem;
        padding: 0 12px;
    }
}