/* =========================================================
   MEGA-MENÜ — ICONS / HOVER
========================================================= */

body .mega-card__gif,
body .mega-card:hover .mega-card__gif,
body .mega-card:focus .mega-card__gif,
body .mega-card:focus-visible .mega-card__gif {
    display: block;
    width: 82px;
    height: 82px;
    margin: 0 0 13px;
    padding: 0;
    max-width: none;
    max-height: none;
    object-fit: contain;
    mix-blend-mode: multiply !important;
    background: transparent;
}

body .mega-card:hover,
body .mega-card:focus,
body .mega-card:focus-visible {
    background: transparent !important;
    box-shadow: none !important;
}


/* =========================================================
   MOBILE NAV FLAG — ALLWORKS
========================================================= */

body .mobile-nav-toggle,
body .mobile-nav-flag {
    display: none;
}

@media (max-width: 900px) {

    body .site-header,
    body .site-header__inner {
        overflow: visible;
    }

    /* Toggle unter Logo */
    body .mobile-nav-toggle {
        position: absolute;
        left: 50%;
        top: 77px !important;
        z-index: 20;
        width: 52px;
        height: 32px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateX(-50%);
        border: 0;
        border-radius: 0 0 16px 16px;
        background: var(--palette-paper);
        color: var(--palette-ink);
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
        box-shadow: 0 7px 14px var(--palette-value-a4166464a9);
        transition: color 180ms ease, background 180ms ease;
    }

    body .mobile-nav-toggle svg {
        width: 17px;
        height: 17px;
        display: block;
        transition: transform 350ms cubic-bezier(.22, 1, .36, 1);
    }

    body .mobile-nav-toggle:hover,
    body .mobile-nav-toggle:focus-visible {
        color: var(--color-primary-text);
    }

    body .mobile-nav-toggle.is-open svg {
        transform: rotate(180deg);
    }

    /* Flag */
    body .mobile-nav-flag {
        position: absolute;
        top: 82px;
        left: 50%;
        z-index: 15;
        width: min(300px, calc(100vw - 40px));
        padding: 16px 14px 18px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        transform: translateX(-50%) translateY(-12px) scaleY(.92);
        transform-origin: top center;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        background: var(--palette-paper);
        border-radius: 0 0 20px 20px;
        box-shadow: 0 18px 38px var(--palette-value-b80953d5d4);
        transition:
            opacity 220ms ease,
            transform 320ms cubic-bezier(.22, 1, .36, 1),
            visibility 220ms ease;
    }

    body .mobile-nav-flag.is-open {
        transform: translateX(-50%) translateY(0) scaleY(1);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Views */
    body .mobile-nav-view {
        width: 100%;
        display: none;
        flex-direction: column;
        gap: 2px;
        opacity: 0;
        transform: translateX(14px);
        transition:
            opacity 180ms ease,
            transform 260ms cubic-bezier(.22, 1, .36, 1);
    }

    body .mobile-nav-view.is-active {
        display: flex;
        opacity: 1;
        transform: translateX(0);
    }

    body .mobile-nav-view.is-leaving-left {
        opacity: 0;
        transform: translateX(-14px);
    }

    body .mobile-nav-view.is-leaving-right {
        opacity: 0;
        transform: translateX(14px);
    }

    body .mobile-nav-view.is-entering-left {
        opacity: 0;
        transform: translateX(-14px);
    }

    body .mobile-nav-view.is-entering-right {
        opacity: 0;
        transform: translateX(14px);
    }

    /* Links + Hauptkategorien */
    body .mobile-nav-flag a,
    body .mobile-nav-parent,
    body .mobile-nav-back {
        font-family: "Inter", sans-serif;
        appearance: none;
        -webkit-appearance: none;
    }

    body .mobile-nav-flag a,
    body .mobile-nav-parent {
        position: relative;
        width: 100%;
        min-height: 46px;
        padding: 0 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 11px;
        background: transparent;
        color: var(--palette-ink);
        font-size: 14px;
        font-weight: 700;
        line-height: 1.2;
        text-align: center;
        text-decoration: none;
        cursor: pointer;
        transition: color 180ms ease, background 180ms ease;
    }

    body .mobile-nav-flag a:hover,
    body .mobile-nav-flag a:focus-visible,
    body .mobile-nav-parent:hover,
    body .mobile-nav-parent:focus-visible {
        background: rgba(var(--color-primary-rgb), 0.045);
        color: var(--color-primary-text);
    }

    body .mobile-nav-parent span {
        position: absolute;
        right: 15px;
        font-size: 15px;
        transition: transform 220ms cubic-bezier(.22, 1, .36, 1);
    }

    body .mobile-nav-parent:hover span {
        transform: translateX(3px);
    }

    /* Untermenü-Titel */
    body .mobile-nav-subtitle {
        padding: 9px 14px 13px;
        color: var(--color-primary-text);
        font-family: "Inter", sans-serif;
        font-size: 11px;
        font-weight: 800;
        line-height: 1.2;
        letter-spacing: .09em;
        text-transform: uppercase;
        text-align: center;
    }

    /* Zurück */
    body .mobile-nav-back {
        width: calc(100% - 16px);
        min-height: 46px;
        margin: 13px 8px 2px;
        padding: 0 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 0;
        border-top: 1px solid var(--palette-value-fe0a14521c);
        background: transparent;
        color: var(--palette-value-d03a497cf9);
        font-size: 13px;
        font-weight: 650;
        cursor: pointer;
        transition: color 180ms ease;
    }

    body .mobile-nav-back:hover,
    body .mobile-nav-back:focus-visible {
        color: var(--color-primary-text);
    }

    body .mobile-nav-back span {
        transition: transform 220ms cubic-bezier(.22, 1, .36, 1);
    }

    body .mobile-nav-back:hover span {
        transform: translateX(-3px);
    }

    /* keine alten Link-Pfeile */
    body .mobile-nav-flag a::before,
    body .mobile-nav-flag a::after {
        content: none !important;
        display: none !important;
    }
}

