/* ========================================
   KOMPAKTES NAVIGATIONSMENÜ
   ======================================== */

.navigation-menu {
    margin-left: auto;
    position: relative;
}

.navigation-menu summary {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.navigation-menu summary::-webkit-details-marker {
    display: none;
}

.navigation-menu summary:hover,
.navigation-menu summary:focus-visible,
.navigation-menu[open] summary {
    background: rgba(255, 255, 255, 0.18);
    outline: none;
}

.navigation-menu summary:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}

.navigation-menu-icon,
.navigation-menu-icon::before,
.navigation-menu-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.navigation-menu-icon {
    position: relative;
}

.navigation-menu-icon::before,
.navigation-menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
    transition: transform 0.16s ease, top 0.16s ease;
}

.navigation-menu-icon::before { top: -6px; }
.navigation-menu-icon::after { top: 6px; }
.navigation-menu[open] .navigation-menu-icon { background: transparent; }
.navigation-menu[open] .navigation-menu-icon::before { top: 0; transform: rotate(45deg); }
.navigation-menu[open] .navigation-menu-icon::after { top: 0; transform: rotate(-45deg); }

.navigation-menu .navigation {
    align-items: stretch;
    text-align: right;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 210px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    border: 1px solid #E5EAF0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(16, 42, 67, 0.22);
    transform-origin: top right;
}

.navigation-menu[open]:not(.navigation-menu-closing) .navigation {
    animation: navigation-menu-open 0.18s ease-out both;
}

.navigation-menu.navigation-menu-closing .navigation {
    animation: navigation-menu-close 0.16s ease-in both;
}

@keyframes navigation-menu-open {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes navigation-menu-close {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
}

.navigation-menu .navigation a {
    width: 100%;
    box-sizing: border-box;
    min-height: 42px;
    justify-content: flex-end !important;
    text-align: right !important;
    height: auto;
    padding: 0 12px;
    color: #52606D;
    font-size: 15px;
}

.navigation-menu .navigation a:hover {
    color: #102A43;
    background: #F0F4F8;
}

.navigation-menu .navigation a.active {
    color: #102A43;
    background: #E5EAF0;
    font-weight: 700;
}


/* ========================================
   NEU-HIER-BUTTON
   ======================================== */

.new-here-button {
    height: 40px;
    margin-left: auto;
    padding: 0 14px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    touch-action: manipulation;
    position: relative;
    overflow: hidden;
}

.new-here-button +
.navigation-menu {
    margin-left: 8px;
}

.new-here-button:hover,
.new-here-button:focus-visible,
.new-here-button[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.18);
    outline: none;
}

.new-here-button:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}

.new-here-button::after {
    content: "";
    position: absolute;
    top: -45%;
    bottom: -45%;
    left: -65%;
    width: 38%;
    background: linear-gradient(
        100deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 18%,
        rgba(255, 255, 255, 0.72) 50%,
        rgba(125, 211, 252, 0.22) 72%,
        transparent 100%
    );
    opacity: 0;
    pointer-events: none;
    transform: translateX(0) skewX(-18deg);
}

.new-here-button-highlight::after {
    animation:
        new-here-button-shine
        1.8s ease-in-out 2;
}

@keyframes new-here-button-shine {
    0% {
        opacity: 0;
        transform: translateX(0) skewX(-18deg);
    }

    12% {
        opacity: 0.9;
    }

    78% {
        opacity: 0.72;
    }

    100% {
        opacity: 0;
        transform: translateX(500%) skewX(-18deg);
    }
}

@media (max-width: 600px) {
    .new-here-button {
        height: 38px;
        padding: 0 11px;
        font-size: 15px;
    }

    .navigation-menu summary {
        height: 38px;
        padding: 0 12px;
        font-size: 15px;
    }

    .navigation-menu .navigation {
        gap: 4px;
    }

    .navigation-menu .navigation a {
        min-height: 42px;
        padding: 0 12px;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .new-here-button-highlight {
        background: rgba(255, 255, 255, 0.18);
    }

    .new-here-button-highlight::after {
        animation: none;
    }

    .navigation-menu[open] .navigation,
    .navigation-menu.navigation-menu-closing .navigation {
        animation: none;
    }
}

