/* Beta Docs 2.45.0 - Mitglieder-Menü als dunkle Insel.
 * Vier Punkte (Runde, Mein Weg, Bibliothek, Termine), aktiver Punkt als Gold-Kapsel,
 * 2.45.1: ohne Ausklapp-Menüs, jeder Punkt ist ein Link (im Feed mit Vorschau beim Überfahren).
 * grüner Punkt an "Termine", wenn gerade ein Termin läuft (beta-meeting-now.js setzt .is-live).
 * Gilt für den Feed-Kopf und den Kopf der Mitgliederseiten. Nur die oberste Ebene wird umgefärbt,
 * die Ausklapp-Menüs bleiben hell. */

.beta-feed-header .beta-feed-nav,
.beta-profile-header .beta-feed-nav {
    gap: 4px !important;
    min-height: 0 !important;
    padding: 6px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(34, 32, 29, 0.94) !important;
    box-shadow: 0 18px 40px -20px rgba(20, 18, 15, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.beta-feed-header .beta-feed-nav > a,
.beta-profile-header .beta-feed-nav > a,
.beta-feed-header .beta-feed-nav > .beta-feed-nav-more > .beta-feed-nav-more-trigger,
.beta-profile-header .beta-feed-nav > .beta-feed-nav-more > .beta-feed-nav-more-trigger {
    position: relative;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 42px !important;
    padding: 0 20px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #CFC8BC !important;
    font-family: Jost, ui-sans-serif, system-ui, sans-serif !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    transform: none !important;
    transition: background 180ms ease, color 180ms ease !important;
}

.beta-feed-header .beta-feed-nav > a:hover,
.beta-profile-header .beta-feed-nav > a:hover,
.beta-feed-header .beta-feed-nav > .beta-feed-nav-more > .beta-feed-nav-more-trigger:hover,
.beta-profile-header .beta-feed-nav > .beta-feed-nav-more > .beta-feed-nav-more-trigger:hover,
.beta-feed-header .beta-feed-nav > a:focus-visible,
.beta-profile-header .beta-feed-nav > a:focus-visible,
.beta-feed-header .beta-feed-nav > .beta-feed-nav-more > .beta-feed-nav-more-trigger:focus-visible,
.beta-profile-header .beta-feed-nav > .beta-feed-nav-more > .beta-feed-nav-more-trigger:focus-visible {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    outline: none !important;
}

/* Aktiver Punkt: Gold-Kapsel */
.beta-feed-header .beta-feed-nav > a.is-active,
.beta-profile-header .beta-feed-nav > a.is-active,
.beta-feed-header .beta-feed-nav > .beta-feed-nav-more.is-active > .beta-feed-nav-more-trigger,
.beta-profile-header .beta-feed-nav > .beta-feed-nav-more.is-active > .beta-feed-nav-more-trigger {
    background: linear-gradient(180deg, #D8B26C, #C9A15A) !important;
    color: #22201D !important;
    font-weight: 600 !important;
    box-shadow: 0 6px 16px -8px rgba(201, 161, 90, 0.9) !important;
}

/* Termin läuft: grüner Punkt */
.beta-feed-nav > .is-live > .beta-feed-nav-more-trigger::before,
.beta-feed-nav > a.is-live::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ADE80;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18);
    animation: bniPulse 1.8s ease-out infinite;
}
@keyframes bniPulse { 70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

/* Ungelesen-Zähler im dunklen Punkt */
.beta-feed-nav > a .beta-feed-nav-unread-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #C9A15A;
    color: #22201D;
    font-size: 10.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.beta-feed-nav .beta-feed-nav-unread-badge[hidden] { display: none !important; }

/* Live-Hinweis rechts im Kopf (beta-meeting-now.js) */
.bni-live {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 42px;
    padding: 0 5px 0 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(74, 222, 128, 0.5);
    color: #24211D !important;
    font: 600 13px Jost, ui-sans-serif, system-ui, sans-serif;
    text-decoration: none !important;
    white-space: nowrap;
}
.bni-live i { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; }
.bni-live b { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; background: #22201D; color: #fff; font-size: 12.5px; }

@media (max-width: 720px) {
    .beta-feed-header .beta-feed-nav > a,
    .beta-profile-header .beta-feed-nav > a,
    .beta-feed-header .beta-feed-nav > .beta-feed-nav-more > .beta-feed-nav-more-trigger,
    .beta-profile-header .beta-feed-nav > .beta-feed-nav-more > .beta-feed-nav-more-trigger {
        min-height: 38px !important;
        padding: 0 13px !important;
        font-size: 13.5px !important;
    }
    .bni-live { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .beta-feed-nav > .is-live > .beta-feed-nav-more-trigger::before,
    .beta-feed-nav > a.is-live::before { animation: none; }
}

/* 2.45.3: Handy-Leiste als dunkle Insel (nachgeschärft nach iPhone-Test):
 * - fast deckend, damit kein Text durchscheint (Unschärfe ist nur Zugabe),
 * - mehr Abstand zu den runden Display-Ecken und zum unteren Rand,
 * - aktiver Punkt ohne Fläche: nur Gold für Symbol und Wort plus feiner Strich - nichts kann verrutschen. */
@media (max-width: 820px) {
    body .beta-member-dock {
        left: max(14px, env(safe-area-inset-left)) !important;
        right: max(14px, env(safe-area-inset-right)) !important;
        bottom: calc(14px + env(safe-area-inset-bottom)) !important;
        gap: 0 !important;
        padding: 4px 6px !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 24px !important;
        background: rgba(30, 28, 25, 0.97) !important;
        -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
        backdrop-filter: blur(20px) saturate(140%) !important;
        box-shadow: 0 18px 40px -14px rgba(20, 18, 15, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
        transform: translateZ(0);
    }
    body .beta-member-dock a {
        position: relative !important;
        min-height: 56px !important;
        gap: 5px !important;
        margin: 0 !important;
        padding: 9px 2px 7px !important;
        border-radius: 18px !important;
        background: transparent !important;
        box-shadow: none !important;
        transform: none !important;
        color: rgba(255, 253, 248, 0.55) !important;
        font: 500 10.5px/1 Jost, ui-sans-serif, system-ui, sans-serif !important;
        letter-spacing: 0.01em !important;
        text-transform: none !important;
        -webkit-tap-highlight-color: transparent;
        transition: color 160ms ease;
    }
    body .beta-member-dock a svg { width: 22px !important; height: 22px !important; stroke-width: 1.8 !important; flex: 0 0 auto; }
    body .beta-member-dock a span { display: block; line-height: 1 !important; }
    body .beta-member-dock a:active { opacity: 0.7; }
    body .beta-member-dock a.is-active {
        background: transparent !important;
        color: #F0C674 !important;
    }
    body .beta-member-dock a.is-active::before {
        content: "";
        position: absolute;
        top: 2px;
        left: 50%;
        width: 18px;
        height: 3px;
        margin-left: -9px;
        border-radius: 0 0 3px 3px;
        background: #C9A15A;
    }
    body .beta-member-dock .bfo-badge {
        top: 5px !important;
        left: calc(50% + 7px) !important;
        background: #C9A15A !important;
        color: #22201D !important;
        box-shadow: 0 0 0 2px #1e1c19 !important;
    }
    body.beta-member-surface, body:has(.beta-member-dock) { padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important; }
}
