/*
====================================================
HAMBURGER MENU CSS
Datei: /public/assets/css/hamburger.css
Nur aktiv bei max-width: 768px
Desktop bleibt KOMPLETT unverändert
====================================================
*/

@media (max-width: 768px) {

    /* ── Hamburger Button ── */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        background: rgba(10, 10, 30, 0.85);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 10px;
        cursor: pointer;
        z-index: 3001;
        position: fixed;
        top: 14px;
        left: 16px;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        transition: background 0.2s, border-color 0.2s;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    }
    .hamburger:hover {
        background: rgba(20, 15, 40, 0.95);
        border-color: rgba(212, 160, 23, 0.4);
    }
    .hamburger span {
        display: block;
        width: 22px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.2s ease, width 0.2s ease;
        transform-origin: center;
    }
    /* X-Animation */
    .hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.is-open span:nth-child(2) { opacity: 0; width: 0; }
    .hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Badge auf dem Hamburger (Nachrichten) */
    .hamburger-badge {
        position: absolute;
        top: 6px;
        right: 6px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #ff006e;
        color: #fff;
        font-size: 9px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 8px rgba(255, 0, 110, 0.7);
        font-family: 'Barlow', Arial, sans-serif;
        animation: badge-pulse 2s infinite;
    }

    /* ── Overlay ── */
    .mob-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 2998;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }
    .mob-overlay.is-open { display: block; }

    /* ── Slide-in Panel ── */
    .mob-panel {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 280px;
        max-width: 85vw;
        z-index: 2999;
        background: rgba(8, 6, 20, 0.97);
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        box-shadow: 4px 0 32px rgba(0, 0, 0, 0.6);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        padding-bottom: 2rem;
    }
    .mob-panel.is-open { transform: translateX(0); }

    /* ── Panel Header ── */
    .mob-panel-header {
        padding: 1rem 1rem 1rem 70px; /* links Platz für Hamburger-Button */
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        display: flex;
        align-items: center;
        gap: 0.75rem;
        min-height: 60px;
    }
    .mob-panel-logo {
        font-family: 'Barlow', Arial, sans-serif;
        font-size: 1.4rem;
        color: #d4a017;
        filter: drop-shadow(0 0 8px rgba(212, 160, 23, 0.5));
        letter-spacing: 2px;
    }
    .mob-panel-close {
        margin-left: auto;
        background: rgba(255,255,255,0.07);
        border: 1px solid rgba(255,255,255,0.12);
        color: rgba(255, 255, 255, 0.6);
        font-size: 1.1rem;
        font-family: 'Barlow', Arial, sans-serif;
        cursor: pointer;
        padding: 6px 10px;
        border-radius: 8px;
        transition: color 0.2s, background 0.2s;
        line-height: 1;
    }
    .mob-panel-close:hover { color: #fff; background: rgba(255,255,255,0.14); }

    /* ── Nav Links ── */
    .mob-nav {
        padding: 0.75rem 0;
    }
    .mob-nav a {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 1.4rem;
        font-family: 'Barlow', Arial, sans-serif;
        font-size: 1.1rem;
        color: rgba(240, 240, 255, 0.85);
        text-decoration: none;
        transition: background 0.15s, color 0.15s;
        position: relative;
    }
    .mob-nav a:hover,
    .mob-nav a:active {
        background: rgba(255, 255, 255, 0.06);
        color: #fff;
    }
    .mob-nav a.mob-logout {
        color: rgba(255, 100, 100, 0.7);
        margin-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding-top: 1rem;
    }
    .mob-nav a.mob-logout:hover { color: #ff6464; }

    /* ── Sektions-Trenner ── */
    .mob-section-title {
        font-family: 'Barlow', Arial, sans-serif;
        font-size: 0.65rem;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: rgba(200, 200, 220, 0.3);
        padding: 1rem 1.4rem 0.3rem;
    }

    /* ── Untermenü (Dropdown) ── */
    .mob-sub {
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.3s ease;
    }
    .mob-sub.is-open { max-height: 600px; }
    .mob-sub a {
        font-family: 'Barlow', Arial, sans-serif !important;
        padding: 0.6rem 1.4rem 0.6rem 2.8rem !important;
        font-size: 0.95rem !important;
        color: rgba(200, 200, 220, 0.7) !important;
    }
    .mob-sub a:hover { color: rgba(212, 160, 23, 0.9) !important; }

    .mob-parent {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 1.4rem;
        font-family: 'Barlow', Arial, sans-serif;
        font-size: 1.1rem;
        color: rgba(240, 240, 255, 0.85);
        cursor: pointer;
        transition: background 0.15s;
        user-select: none;
    }
    .mob-parent:hover { background: rgba(255, 255, 255, 0.06); }
    .mob-parent-arrow {
        margin-left: auto;
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.3);
        transition: transform 0.25s ease;
    }
    .mob-parent.is-open .mob-parent-arrow { transform: rotate(180deg); }
    .mob-parent.is-open { color: #d4a017; }

    /* ── Nachrichten Badge im Panel ── */
    .mob-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        border-radius: 9px;
        background: #ff006e;
        color: #fff;
        font-family: 'Barlow', Arial, sans-serif;
        font-size: 0.65rem;
        font-weight: 700;
        box-shadow: 0 0 8px rgba(255, 0, 110, 0.6);
    }

    /* ── Desktop Menu auf Mobile ausblenden ── */
    .menu-container { display: none !important; }
}

@media (min-width: 769px) {
    /* Hamburger auf Desktop nie sichtbar */
    .hamburger,
    .mob-overlay,
    .mob-panel { display: none !important; }
}
