/* [QStylez 2026-09-30] Sticky submenu (gebouwd uit Jumplinks door js/sticky-submenu.js) */
.kracht-subnav {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 9990; /* onder de header (9999) */
    background: #fff;
    border-bottom: 1px solid #0230471A;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, top .25s ease, visibility 0s linear .2s;
}

.kracht-subnav.is-zichtbaar {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .2s ease, transform .2s ease, top .25s ease;
}

/* Mobiel (hamburger-header): header schuift weg bij naar beneden scrollen, submenu neemt de plek in */
@media (max-width: 1260px) {
    header#masthead {
        transition: transform .25s ease;
    }

    body.kracht-header-weg header#masthead {
        transform: translateY(-100%);
    }
}

.kracht-subnav__lijst {
    display: flex;
    gap: 8px;
    max-width: 1448px;
    margin: 0 auto;
    padding: 10px 24px;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.kracht-subnav__lijst::-webkit-scrollbar {
    display: none;
}

.kracht-subnav__lijst li {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

.kracht-subnav__lijst li:before {
    display: none;
}

.kracht-subnav__lijst a {
    display: block;
    padding: 8px 16px;
    border: 1px solid #0230471A;
    border-radius: 999px;
    background: #fff;
    color: #0C3643;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    max-width: min(75vw, 360px);
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    transition: border-color .15s ease, color .15s ease;
}

@media (hover: hover) {
    .kracht-subnav__lijst a:not(.is-actief):hover {
        border-color: #02304740;
        color: #229EBC;
    }
}

/* Sticky contactblok rechts (alleen sticky vanaf 1260px) schuift mee onder het submenu */
@media (min-width: 1260px) {
    section.tekst-met-scroll-laag .flexbox-wrapper div.right.timed-boxes {
        transition: top .2s ease;
    }

    body.kracht-subnav-open section.tekst-met-scroll-laag .flexbox-wrapper div.right.timed-boxes {
        top: calc(var(--kracht-subnav-onder, 130px) + 24px);
    }
}

.kracht-subnav__lijst a.is-actief {
    border-color: transparent;
    background: #f2a900;
    background: linear-gradient(135deg, rgb(202 127 23) 0%, rgb(205 160 15) 100%);
    color: #fff;
}

.kracht-subnav__lijst a:focus-visible {
    outline: 2px solid #229EBC;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .kracht-subnav,
    .kracht-subnav.is-zichtbaar,
    header#masthead {
        transition: none;
    }
}
