/* ==================================================
   DESKTOP NAVIGATION
   ================================================== */

.desktop-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
}

.desktop-navigation a {
    display: inline-flex;
    align-items: center;

    padding: 9px 14px;
    border-radius: 8px;

    color: var(--nav-color, #555);
    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.desktop-navigation a:hover {
    background: var(--nav-hover-background, #f2f2f2);
    color: var(--nav-hover-color, #222);
}

.desktop-navigation a.active {
    background: var(--nav-active-background, #e8e8e8);
    color: var(--nav-active-color, #222);
    font-weight: 600;
}

.desktop-navigation a:active {
    transform: translateY(1px);
}


/* ==================================================
   HAMBURGER
   ================================================== */

.mobile-menu-button {
    display: none;

    width: 44px;
    height: 44px;
    padding: 8px;

    appearance: none;
    -webkit-appearance: none;

    border: 0;
    background: transparent;
    color: var(--nav-color, #555);

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-button span {
    display: block;

    width: 26px;
    height: 2px;
    margin: 5px 0;

    background: currentColor;
}


/* ==================================================
   MOBILE NAVIGATION
   ================================================== */

.mobile-navigation {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 2000;

    width: min(340px, 88vw);
    height: 100dvh;

    background: var(--color-background, #fff);
    color: var(--nav-color, #555);

    transform: translateX(100%);
    visibility: hidden;

    transition:
        transform 0.25s ease,
        visibility 0.25s ease;

    overflow-y: auto;
}

.mobile-navigation.open {
    transform: translateX(0);
    visibility: visible;
}


/* ==================================================
   MOBILE NAVIGATION HEADER
   ================================================== */

.mobile-navigation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 72px;
    padding: 0 20px;

    border-bottom: 1px solid var(--color-border, #ddd);

    font-weight: 700;
}


/* ==================================================
   SCHLIESSEN BUTTON
   ================================================== */

.mobile-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;
    padding: 0;

    appearance: none;
    -webkit-appearance: none;

    border: 0;
    border-radius: 50%;

    background: var(--nav-hover-background, #f2f2f2);
    color: var(--nav-color, #555);

    font: inherit;
    font-size: 26px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;

    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-close:hover {
    background: var(--nav-active-background, #e8e8e8);
    color: var(--nav-active-color, #222);
    transform: rotate(90deg);
}

.mobile-menu-close:active {
    transform: rotate(90deg) scale(0.92);
}


/* ==================================================
   MOBILE LINKS
   ================================================== */

.mobile-navigation-links {
    display: flex;
    flex-direction: column;

    padding: 12px 20px 30px;
}

.mobile-navigation-links a {
    padding: 14px 12px;

    border-bottom: 1px solid var(--color-border, #ddd);
    border-radius: 6px;

    color: var(--nav-color, #555);
    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.mobile-navigation-links a:hover {
    background: var(--nav-hover-background, #f2f2f2);
    color: var(--nav-hover-color, #222);
}

.mobile-navigation-links a.active {
    background: var(--nav-active-background, #e8e8e8);
    color: var(--nav-active-color, #222);
    font-weight: 600;
}


/* ==================================================
   OVERLAY
   ================================================== */

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1900;

    background: rgba(0, 0, 0, 0.42);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}


/* ==================================================
   SCROLL SPERREN
   ================================================== */

body.mobile-menu-open {
    overflow: hidden;
}


/* ==================================================
   ZOOM ANIMATION
   ================================================== */

.animate-zoom {
    animation: animateZoom 0.4s ease;
}

@keyframes animateZoom {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

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


/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 800px) {

    .desktop-navigation {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }
}