/* ========================================================
   Navigation – Overlay Menü
   Shortcode: [wdb_overlay]
======================================================== */

/* ── Overlay Basis ── */
.wdb-overlay {
    position: fixed;
    top: 0;
    left: 100px;
    width: calc(100vw - 100px);
    height: 100vh;
    background: #000000;
    z-index: 9998;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none; 
    padding: 30px 60px 30px 60px;
    transform: translateX(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.wdb-overlay.is-open {
    opacity: 1;
    pointer-events: all;
    transform: translateX(0);
}

/* ── Elementor Shortcode Container Fix ── */
.elementor-widget-shortcode,
.elementor-shortcode {
    width: auto !important;
}

/* ── Overlay Logo – nur Mobil, außerhalb Overlay ── */
.wdb-overlay-logo {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 0px;
    pointer-events: none;
    box-sizing: border-box;
}
.wdb-overlay-logo img {
    max-width: 200px;
    height: auto;
}
/* Logo nur auf Mobil einblenden */
@media (max-width: 1024px) {
   body.wdb-overlay-active .wdb-overlay-logo {
     display: flex;
     position: relative;
     width: 100%;
     top: auto;
     left: auto;
     pointer-events: all;
 }
}

/* ── Schließen-Button */
.wdb-overlay-close {
    display: flex !important;
    position: absolute;
    top: 50px;
    right: 100px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 33px;
    height: 33px;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.2s;
    z-index: 10;
}
.wdb-overlay-close:hover { opacity: 1; }
.wdb-overlay-close img,
.wdb-overlay-close svg {
    width: 24px;
    height: 24px;
    display: block;
}

@media (max-width: 1024px) {
    .wdb-overlay-close {
        display: none !important;
    }
}

@media (min-width: 1025px) and (max-width: 1366px) {
 .wdb-overlay-close {
     top: 30px;
     right: 30px;
     width: 16px;
     height: 16px;
 }
 .wdb-overlay-close img,
 .wdb-overlay-close svg {
     width: 16px;
     height: 16px;
 }
 }


/* ── Inner: zwei Spalten auf Desktop ── */
.wdb-overlay-inner {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    flex: 1;
    height: 100%;
    padding: clamp(50px, 14vh, 150px) 20px 20px clamp(50px, 8vw, 150px);
    gap: clamp(40px, 5vw, 80px);
    box-sizing: border-box;
}

/* ── Linke Spalte: Festival-Info ── */
.wdb-overlay-info {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 15px;
    min-width: 200px;
}

.wdb-overlay-info-name {
    font-family: "Neue Haas Unica W1G", "Helvetica Neue", Helvetica, sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 8px;
    line-height: 1.3;
}

.wdb-overlay-info-location,
.wdb-overlay-info-date {
    font-family: "Neue Haas Unica W1G", "Helvetica Neue", Helvetica, sans-serif;
    font-size: 2rem;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 4px;
    line-height: 1.4;
}

/* ── Rechte Spalte: Menü ── */
.wdb-overlay-menu-col {
    flex: 0 0 clamp(300px, 50vw, 600px);
    width: clamp(300px, 50vw, 600px);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: 0;
}

/* Nav – kein Scroll, passt sich an */
.wdb-overlay-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ── Einzelner Eintrag – initial versteckt ── */
.wdb-overlay-item {
    border-bottom: 1px solid rgba(255,255,255,0.12);
    display: none;
}
.wdb-overlay-item:first-child {
    border-top: 1px solid rgba(255,255,255,0.12);
}

/* ── Keyframe: Item von unten einblenden ── */
@keyframes wdb-item-in {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Nur das aktive Item + seine Kinder anzeigen */
.wdb-overlay-item.is-visible {
    display: flex;
    flex-direction: column;
    flex: 1;
    border-bottom: 0px solid rgba(255,255,255,0.12);
    animation: wdb-item-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

/* Submenü-Items gestaffelt einblenden */
.wdb-overlay-item.is-visible .wdb-submenu-item {
    animation: wdb-item-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.wdb-overlay-item.is-visible .wdb-submenu-item:nth-child(1) { animation-delay: 0.22s; }
.wdb-overlay-item.is-visible .wdb-submenu-item:nth-child(2) { animation-delay: 0.31s; }
.wdb-overlay-item.is-visible .wdb-submenu-item:nth-child(3) { animation-delay: 0.40s; }
.wdb-overlay-item.is-visible .wdb-submenu-item:nth-child(4) { animation-delay: 0.49s; }

.wdb-overlay-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 5px solid #342E1D;
    flex-shrink: 0;
    padding-bottom: 20px;
}

/* ── Hauptlink ── */
.wdb-overlay-link {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 0;
    font-family: "Neue Haas Unica W1G", Sans-serif;
    font-size: clamp(3rem, 6vw, 7rem);
    font-weight: 900;
    line-height: 1em;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    min-height: clamp(50px, 8vh, 100px);
}
.wdb-overlay-link:hover {
    color: #AB9962;
    transform: translateX(12px);
}

/* Aktiver Eltern-Punkt → Gold */
.wdb-overlay-item.is-open > .wdb-overlay-item-header > .wdb-overlay-link {
    color: #AB9962;
}

/* Desktop: sichtbarer Haupteintrag ist nicht klickbar / kein Hover-Effekt */
@media (min-width: 1025px) {
    .wdb-overlay-item.is-visible > .wdb-overlay-item-header > .wdb-overlay-link {
        pointer-events: none;
        cursor: default;
    }
    .wdb-overlay-item.is-visible > .wdb-overlay-item-header > .wdb-overlay-link:hover {
        color: #AB9962;
        transform: none;
    }
}

/* ── Submenu Toggle ── */
.wdb-submenu-toggle {
    background: none;
    border: none;
    margin-left: clamp(20px, 8vw, 148px) !important;
    margin-bottom: 0;
    padding: 0;
    cursor: default;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    pointer-events: none;
    align-self: center;
}

.wdb-arrow-icon {
    width: clamp(14px, 1.8vw, 22px);
    height: clamp(14px, 1.8vw, 22px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transform: rotate(0deg);
}
.wdb-arrow-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.wdb-arrow {
    font-size: 2rem;
    line-height: 1;
    color: #AB9962;
    display: inline-block;
    transform: rotate(0deg);
}

/* ── Untermenü ── */
.wdb-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    flex: 1;
    flex-direction: column;
}
.wdb-overlay-item.is-visible .wdb-submenu {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-top: 0;
}

.wdb-submenu-item {
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding: 20px 0;
    display: flex;
    align-items: center;
}
.wdb-submenu-item:first-child { border-top: none; }
.wdb-submenu-item:last-child { border-bottom: 1px solid rgba(255,255,255,0.15); }

.wdb-submenu-link {
    display: flex;
    align-items: center;
    width: 100%;
    font-family: "Neue Haas Unica W1G", Sans-serif;
    font-size: clamp(3rem, 6vw, 7rem);
    font-weight: 900;
    line-height: 1em;
    color: #ffffff!important;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}




.wdb-submenu-link:hover {
    color: #AB9962;
    transform: translateX(12px);
}

/* ── "Mehr"-Item im Overlay nie anzeigen ── */
.wdb-overlay-item[data-slug="mehr"] {
    display: none !important;
}
.wdb-overlay-item[data-slug="mehr"].is-open,
.wdb-overlay-item[data-slug="mehr"].is-visible {
    display: none !important;
}

/* ── body scroll lock ── */
body.wdb-overlay-active { overflow: hidden; }

/* ── Social Icons: Desktop links ── */
.wdb-overlay-menu-col .elementor-327 .e-con-inner {
    justify-content: flex-start !important;
    margin-top: 24px !important;
}


/* ════════════════════════════════════════════════════════
   MOBIL – komplett eigenes Design
   ════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {

    .wdb-overlay {
        left: 0;
        width: 100vw;
        height: 100vh;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
        padding: 30px 0 0 0;
    }

    .wdb-overlay-inner {
        flex-direction: column;
        padding: 0 0 100px 0;
        gap: 0;
        height: auto;
        min-height: unset;
        flex: none;
        display: block;
    }

    /* Info-Spalte ausblenden */
    .wdb-overlay-info {
        display: none;
    }

    .wdb-overlay-menu-col {
        width: 100% !important;
        flex: none !important;
        max-width: 100% !important;
        height: auto !important;
        padding: 20px 50px 20px 50px;
        justify-content: flex-start;
    }

    /* Nav auf Mobil scrollbar */
    .wdb-overlay-nav {
        overflow: visible;
        flex: none;
        display: block;
    }

    /* ── Alle Items auf Mobil immer sichtbar ── */
    .wdb-overlay-item {
        display: flex !important;
        flex-direction: column;
        flex: none;
        border-bottom: 1px solid #4D4D4D !important;
        border-top: none !important;
    }
    .wdb-overlay-nav .wdb-overlay-item:first-child {
        border-top: none !important;
    }
    .wdb-overlay-item.is-visible {
        flex: none;
        border-bottom: 1px solid #4D4D4D !important;
    }
    
    /* Aktiver Eltern-Link auf Mobil → Gold */
    .wdb-overlay-item.is-open > .wdb-overlay-item-header > .wdb-overlay-link {
        color: #AB9962 !important;
    }

    /* ── Eltern-Link: 2.6rem, zentriert ── */
    .wdb-overlay-link {
        font-size: 2.4rem !important;
        font-weight: 700 !important;
        min-height: 0 !important;
        padding: 10px 25px !important;
        justify-content: center !important;
        text-align: center !important;
        flex: 1 !important;
        color: #ffffff!important;
    }

    /* ── Item Header auf Mobil ── */
    .wdb-overlay-item-header {
        border-bottom: none !important;
        padding: 0 !important;
        justify-content: center !important;
        position: relative !important;
        width: 100% !important;
        display: flex !important;
    }
    
    

    /* ── Arrow: absolut ganz rechts im Item ── */
    .wdb-submenu-toggle {
        pointer-events: none;
        margin: 0 !important;
        padding: 0 0px !important;
        position: absolute !important;
        right: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        flex-shrink: 0;
    }

    .wdb-arrow-icon {
        width: 18px !important;
        height: 18px !important;
        display: block;
        transition: transform 0.25s ease;
        transform: rotate(-90deg) !important; /* zeigt nach rechts */
    }

    /* Wenn offen → nach unten */
    .wdb-overlay-item.is-open .wdb-submenu-toggle .wdb-arrow-icon {
        transform: rotate(0deg) !important;
    }

    /* ── Submenü auf Mobil ── */
    .wdb-submenu {
        display: none !important;
        flex-direction: column;
        padding: 0 30px 10px;
    }
    .wdb-overlay-item.is-open .wdb-submenu,
    .wdb-overlay-item.is-visible .wdb-submenu {
        display: none !important; /* standardmäßig zu */
    }
    .wdb-overlay-item.is-open .wdb-submenu {
        display: flex !important;
    }

    /* ── Kind-Link: 1.6rem, zentriert ── */
    .wdb-submenu-item {
        border-bottom: none !important;
        padding: 5px 0 !important;
        justify-content: center !important;
    }
    .wdb-submenu-link {
        font-size: 1.6rem !important;
        font-weight: 700 !important;
        color: #ffffff;
        justify-content: center !important;
        text-align: center !important;
    }
    .wdb-submenu-link:hover { color: #AB9962!important; }

    /* ── Hover-Verschiebung auf Mobil deaktivieren (Links sind zentriert) ── */
    .wdb-overlay-link:hover  { transform: none; }
    .wdb-submenu-link:hover  { transform: none; }

    /* ── Mobil: Stagger-Animation via .wdb-anim Klasse ── */
    .wdb-overlay-nav.wdb-anim .wdb-overlay-item {
        animation: wdb-item-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
        animation-delay: var(--wdb-stagger-delay, 0.05s);
    }

    /* ── Social Icons zentrieren ── */
    .wdb-overlay-menu-col .elementor-327 .e-con-inner {
        justify-content: center !important;
    }

}
/* ════════════════════════════════════════════════════════
   HÖHE < 800px – Overlay scrollbar & Mobil-Layout
   ════════════════════════════════════════════════════════ */
@media (min-width: 1025px) and (max-height: 800px) {

    .wdb-overlay {
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
        padding: 30px 60px 30px 60px;
    }

    .wdb-overlay-inner {
        flex-direction: row;
        align-items: flex-start;
        height: auto;
        min-height: 100%;
        padding: clamp(20px, 4vh, 60px) 20px 80px clamp(20px, 4vw, 60px);
    }

    .wdb-overlay-link {
        font-size: clamp(2rem, 4vw, 5rem) !important;
        min-height: 0 !important;
    }

    .wdb-submenu-link {
        font-size: clamp(2rem, 4vw, 5rem) !important;
    }

    .wdb-submenu-item {
        padding: 10px 0 !important;
    }

}

@media (max-width: 1024px) {
    .elementor-327 .e-con-full {
        justify-content: center !important;
        align-items: center !important;
    }

    .elementor-327 .e-con-inner {
        justify-content: center !important;
    }
}