/* ========================================================
   Navigation – Sidebar (Desktop)
   Shortcode: [wdb_sidebar]
======================================================== */
html {
    overflow-x: hidden !important;
}
body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}
/* ── Section fix links positionieren ── */
.wdb-sidebar-wrap {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    width: 100px !important;
    max-width: 100px !important;
    min-width: 100px !important;
    height: 100vh !important;
    z-index: 9999 !important;
    background: #AB9962 !important;
    margin: 0 !important;
    padding: 20px 0 0 0 !important; 
    overflow: hidden !important;
    display: flex !important;
    align-items: flex-start !important;  
}

/* ── Sidebar Nav Container ── */
.wdb-sidebar-nav {
 display: flex;
 flex-direction: column;
 align-items: stretch;
 width: 100%;
}

/* ── Nav Item ──
   Normale Höhe: 100px fix.
   Sobald der Viewport zu klein wird greifen
   die @media (max-height) Breakpoints weiter unten.
── */
.wdb-nav-item {
    height: 100px !important;
    max-height: 100px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0px !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
}

/* ── Hover & Aktiv ── */
.wdb-nav-item:hover,
.wdb-nav-item.is-active {
    background: #000000 !important;
}

/* ── Icon Wrap ── */
.wdb-icon-wrap {
    width: 33px;
    height: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 auto;
    overflow: visible;
}

/* ── SVG Icon – Farbe via CSS ── */
.wdb-nav-item .wdb-icon-wrap svg {
    width: 33px;
    height: 33px;
    max-width: 33px;
    max-height: 33px;
    display: block;
    fill: var(--wdb-color-icon, #ffffff);
    transition: fill 0.2s;
    overflow: visible;
}

/* SVG Farbe bei Hover & Aktiv */
.wdb-nav-item:hover .wdb-icon-wrap svg,
.wdb-nav-item.is-active .wdb-icon-wrap svg {
    fill: var(--wdb-color-icon-active, #AB9962);
}

/* SVG Paths ohne hardcodiertes fill überschreiben */
.wdb-nav-item .wdb-icon-wrap svg path,
.wdb-nav-item .wdb-icon-wrap svg rect,
.wdb-nav-item .wdb-icon-wrap svg circle,
.wdb-nav-item .wdb-icon-wrap svg polygon,
.wdb-nav-item .wdb-icon-wrap svg ellipse {
    fill: inherit !important;
    transition: fill 0.2s;
}

/* ── Label ── */
.wdb-label {
    font-family: "Neue Haas Unica W1G", Sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    text-align: center;
    transition: color 0.2s;
    color: #ffffff;
    display: block;
    margin-top: 5px;
}

/* ── Label Hover & Aktiv ── */
.wdb-nav-item:hover .wdb-label,
.wdb-nav-item.is-active .wdb-label {
    color: #AB9962;
}

/* ── Placeholder falls kein Icon ── */
.wdb-icon-placeholder {
    display: block;
    width: 40px;
    height: 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

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

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

/* ════════════════════════════════════════════════════════
   Viewport-Höhe Breakpoints – Items schrumpfen stufenweise
   8 Items × 100px = 800px Normalhöhe
   ════════════════════════════════════════════════════════ */

/* < 800px → 75px pro Item */
@media (max-height: 799px) {
    .wdb-nav-item {
        height: 75px !important;
        max-height: 75px !important;
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }
    .wdb-icon-wrap,
    .wdb-nav-item .wdb-icon-wrap svg {
        width: 28px;
        height: 28px;
        max-width: 28px;
        max-height: 28px;
    }
    .wdb-label {
        font-size: 1.2rem;
        margin-top: 10px;
    }
}

/* < 650px → 60px pro Item */
@media (max-height: 649px) {
    .wdb-nav-item {
        height: 60px !important;
        max-height: 60px !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
    .wdb-icon-wrap,
    .wdb-nav-item .wdb-icon-wrap svg {
        width: 24px;
        height: 24px;
        max-width: 24px;
        max-height: 24px;
    }
    .wdb-label {
        font-size: 1.0rem;
        margin-top: 6px;
    }
}

/* < 520px → 50px pro Item, Label weg */
@media (max-height: 519px) {
    .wdb-nav-item {
        height: 50px !important;
        max-height: 50px !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }
    .wdb-nav-item .wdb-label {
        display: none !important;
    }
    .wdb-icon-wrap,
    .wdb-nav-item .wdb-icon-wrap svg {
        width: 22px;
        height: 22px;
        max-width: 22px;
        max-height: 22px;
    }
}

/* ── Sidebar auf Mobil ausblenden ── */
@media (max-width: 1024px) {
    .wdb-sidebar-wrap,
    .wdb-sidebar-nav {
        display: none !important;
    }
}