/* Gruppierte Navigation und Counter-Rückmeldung */

.live-menu-links {
    gap: 6px;
}

.live-menu-divider {
    display: none;
}

.live-menu-dropdown {
    position: relative;
    min-width: 0;
}

.live-menu-dropdown-toggle,
.live-menu-account-toggle {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.live-menu-dropdown-toggle {
    background: transparent;
}

.live-menu-dropdown-toggle .live-menu-chevron,
.live-menu-account-toggle .live-menu-chevron {
    width: 8px;
    height: 8px;
    margin-left: 2px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    flex: 0 0 auto;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.18s ease;
}

.live-menu-dropdown.is-open > .live-menu-dropdown-toggle .live-menu-chevron,
.live-menu-dropdown.is-open > .live-menu-account-toggle .live-menu-chevron {
    transform: translateY(2px) rotate(225deg);
}

.live-menu-dropdown-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 100001;
    min-width: 240px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    display: grid;
    gap: 4px;
    background: rgba(17, 21, 28, 0.985);
    box-shadow: 0 20px 48px rgba(0,0,0,0.48);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.live-menu-dropdown-panel[hidden] {
    display: none !important;
}

.live-menu-dropdown-link {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.80);
    background: transparent;
    font: inherit;
    font-size: 14px;
    line-height: 1.25;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.live-menu-dropdown-link i {
    width: 1.2em;
    flex: 0 0 auto;
    text-align: center;
}

.live-menu-dropdown-link:hover,
.live-menu-dropdown-link:focus-visible {
    color: #ffffff;
    background: rgba(255,255,255,0.08);
    outline: none;
}

.live-menu-dropdown-link.active {
    color: #ffffff;
    background: rgba(30,136,229,0.24);
    box-shadow: inset 0 0 0 1px rgba(30,136,229,0.38);
}

.live-menu-dropdown-toggle.active,
.live-menu-account-toggle.active {
    color: #ffffff;
    background: rgba(30,136,229,0.25);
    box-shadow: inset 0 0 0 1px rgba(30,136,229,0.44);
}

.live-menu-account-dropdown {
    display: block;
}

.live-menu-account-toggle {
    max-width: min(260px, 30vw);
    gap: 8px;
}

.live-menu-account-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-menu-account-panel {
    right: 0;
    left: auto;
    min-width: 220px;
}

.live-menu-logout-form {
    width: 100%;
}

.live-menu-account-logout {
    color: #ffb7b4;
}

.live-menu-account-logout:hover,
.live-menu-account-logout:focus-visible {
    color: #ffffff;
    background: rgba(229,57,53,0.22);
}

.counter-feedback {
    position: fixed;
    inset: 0;
    z-index: 99990;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
}

.counter-feedback.is-active {
    opacity: 1;
}

.counter-feedback-light {
    position: absolute;
    top: -12vh;
    bottom: -12vh;
    width: 58vw;
    opacity: 0;
    will-change: opacity;
    mix-blend-mode: screen;
    filter: blur(18px) saturate(2.05) brightness(1.15);
}

.counter-feedback-light-left {
    left: -16vw;
    background:
        radial-gradient(
            ellipse at left center,
            rgba(255,25,25,0.58) 0%,
            rgba(255,25,25,0.34) 24%,
            rgba(255,25,25,0.14) 50%,
            transparent 78%
        );
}

.counter-feedback-light-right {
    right: -16vw;
    background:
        radial-gradient(
            ellipse at right center,
            rgba(0,115,255,0.60) 0%,
            rgba(0,115,255,0.35) 24%,
            rgba(0,115,255,0.14) 50%,
            transparent 78%
        );
}

.counter-feedback.is-active .counter-feedback-light-left {
    animation: counterFeedbackLeft 1.6s ease-in-out;
}

.counter-feedback.is-active .counter-feedback-light-right {
    animation: counterFeedbackRight 1.6s ease-in-out;
}

@keyframes counterFeedbackLeft {
    0%, 100% { opacity: 0; }
    8% { opacity: 0.82; }
    18% { opacity: 0; }
    30% { opacity: 0.64; }
    42% { opacity: 0; }
    54% { opacity: 0.78; }
    66% { opacity: 0; }
    78% { opacity: 0.58; }
    90% { opacity: 0; }
}

@keyframes counterFeedbackRight {
    0%, 100% { opacity: 0; }
    4% { opacity: 0.78; }
    14% { opacity: 0; }
    26% { opacity: 0.62; }
    38% { opacity: 0; }
    50% { opacity: 0.82; }
    62% { opacity: 0; }
    74% { opacity: 0.60; }
    86% { opacity: 0; }
}

@media (max-width: 1240px) {
    :root {
        --live-menu-height: 58px;
    }

    .live-menu-inner {
        min-height: var(--live-menu-height);
        padding: 0 14px;
        display: block;
    }

    .live-menu-mobile-head {
        position: relative;
        z-index: 2;
        min-height: var(--live-menu-height);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .live-menu-title {
        display: block;
        margin-right: auto;
    }

    .live-menu-toggle {
        width: 44px;
        height: 44px;
        border: 1px solid rgba(255,255,255,0.10);
        border-radius: 10px;
        background: rgba(255,255,255,0.06);
        color: #ffffff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 0;
        touch-action: manipulation;
    }

    .live-menu-toggle:hover,
    .live-menu-toggle:focus-visible {
        background: rgba(255,255,255,0.10);
        outline: none;
    }

    .live-menu-toggle span {
        width: 22px;
        height: 2px;
        border-radius: 999px;
        background: #ffffff;
        display: block;
        transition: transform 0.18s ease, opacity 0.18s ease;
    }

    .live-menu.open .live-menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .live-menu.open .live-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .live-menu.open .live-menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .live-menu-panel {
        position: fixed;
        top: var(--live-menu-height);
        left: 0;
        right: 0;
        z-index: 1;
        display: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 14px;
        max-height: calc(100vh - var(--live-menu-height));
        max-height: calc(100dvh - var(--live-menu-height));
        padding: 16px;
        overflow-y: auto;
        background: rgba(15, 18, 25, 0.985);
        border-bottom: 1px solid rgba(255,255,255,0.08);
        box-shadow: 0 24px 60px rgba(0,0,0,0.46);
    }

    .live-menu.open .live-menu-panel {
        display: flex;
    }

    .live-menu-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .live-menu-link {
        width: 100%;
        min-height: 48px;
        padding: 13px 14px;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .live-menu-dropdown {
        width: 100%;
    }

    .live-menu-dropdown-toggle .live-menu-chevron,
    .live-menu-account-toggle .live-menu-chevron {
        margin-left: auto;
    }

    .live-menu-dropdown-panel {
        position: static;
        min-width: 0;
        margin-top: 5px;
        padding: 6px;
        border-radius: 10px;
        background: rgba(255,255,255,0.035);
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .live-menu-dropdown-link {
        min-height: 46px;
        padding: 11px 13px;
        font-size: 15px;
        white-space: normal;
    }

    .live-menu-account {
        border-top: 1px solid rgba(255,255,255,0.08);
        padding-top: 14px;
        display: block;
        font-size: 14px;
        line-height: 1.2;
        white-space: normal;
    }

    .live-menu-account-toggle {
        width: 100%;
        max-width: none;
        min-height: 48px;
        padding: 0 14px;
        justify-content: flex-start;
        font-size: 15px;
    }

    .live-menu-account-panel {
        right: auto;
        left: auto;
        margin-top: 8px;
    }

    .live-menu-account-guest .public-login-link {
        width: 100%;
        min-height: 46px;
        justify-content: flex-start;
    }

    .live-menu-backdrop {
        position: fixed;
        top: var(--live-menu-height);
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 0;
        display: none;
        border: 0;
        background: rgba(0,0,0,0.56);
        cursor: default;
    }

    .live-menu.open .live-menu-backdrop {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    .live-menu-dropdown-toggle .live-menu-chevron,
    .live-menu-account-toggle .live-menu-chevron,
    .live-menu-toggle span {
        transition: none;
    }

    .counter-feedback.is-active .counter-feedback-light-left,
    .counter-feedback.is-active .counter-feedback-light-right {
        animation: counterFeedbackReduced 0.65s ease-out;
    }

    @keyframes counterFeedbackReduced {
        0%, 100% { opacity: 0; }
        15%, 72% { opacity: 0.42; }
    }
}
