/* =========================================================================
   KLUSSI HEADER & MEGAMENU COMPLEET (EXTERN & GECACHED)
   ========================================================================= */
.klussi-header-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 9999;
    font-family: 'Nunito', sans-serif;
    min-height: 76px;
}
.klussi-logo-link { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.klussi-logo-link img { height: 42px; width: auto; display: block; }
.klussi-header-right-controls { display: flex; align-items: center; gap: 10px; }
.klussi-header-actions { display: flex; align-items: center; gap: 10px; }
.klussi-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    padding: 0;
}
.klussi-action-btn:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.30); }
.klussi-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 6px 14px 6px 11px;
    text-decoration: none !important;
    color: #ffffff !important;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.klussi-status-pill:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.28); }
.klussi-status-dot { width: 9px; height: 9px; border-radius: 50%; background: #ef4444; flex-shrink: 0; }
.klussi-status-pill.is-online .klussi-status-dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25); }
.klussi-status-text-wrap { display: flex; flex-direction: column; line-height: 1.15; }
.klussi-status-label { font-size: 10.5px; font-weight: 700; color: #94a3b8; }
.klussi-status-pill.is-online .klussi-status-label { color: #4ade80; }
.klussi-status-number { font-size: 13px; font-weight: 800; color: #ffffff; }

/* Desktop Navigatie */
@media screen and (min-width: 1125px) {
    .menu-toggle, .menu-header-mobile, .login-button-mobiel { display: none !important; }
    .hoofdmenu-container { display: flex; align-items: center; gap: 26px; }
    .hoofdmenu { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
    .hoofdmenu > li > a {
        color: #ffffff !important;
        text-decoration: none !important;
        font-size: 15px;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 26px 0;
        transition: color 0.15s ease;
    }
    .hoofdmenu > li > a:hover { color: #ff6600 !important; }
    .megamenu-content {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-radius: 22px;
        box-shadow: 0 24px 54px rgba(15, 23, 42, 0.18);
        border: 1px solid #e2e8f0;
        padding: 28px;
        z-index: 99999;
    }
    .has-megamenu:hover .megamenu-content { display: block; }
    .megamenu-grid-4 { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 24px; }
    .accordeon-titel { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: #64748b; margin-bottom: 14px; }
    .accordeon-titel .acc-chevron { display: none; }
    .megamenu-icon-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
    .megamenu-icon-list li a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 8px 10px;
        border-radius: 12px;
        text-decoration: none !important;
        transition: background-color 0.15s ease;
    }
    .megamenu-icon-list li a:hover { background: #f8fafc; }
    .mm-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: #fff7ed;
        color: #ff6600;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: background-color 0.15s ease, color 0.15s ease;
    }
    .mm-text { display: flex; flex-direction: column; line-height: 1.25; }
    .mm-text strong { font-size: 14.5px; font-weight: 800; color: #0f172a; }
    .mm-text small { font-size: 12px; color: #64748b; font-weight: 500; }
    .megamenu-link-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
    .megamenu-link-list li a { font-size: 14px; font-weight: 700; color: #1e293b !important; text-decoration: none !important; padding: 4px 0; display: inline-block; }
    .megamenu-link-list li a:hover { color: #ff6600 !important; }
    .megamenu-link-list .meer-link a { color: #ff6600 !important; margin-top: 4px; }
    .menu-kolom-promo { background: #121212; color: #ffffff; border-radius: 18px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; }
    .promo-badge { display: inline-block; background: rgba(255, 102, 0, 0.20); color: #ff8533; font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; width: fit-content; margin-bottom: 10px; }
    .promo-box h4 { font-size: 18px; font-weight: 800; color: #ffffff; margin: 0 0 8px 0; line-height: 1.25; }
    .promo-box p { font-size: 13px; color: #cbd5e1; line-height: 1.5; margin: 0 0 14px 0; }
    .promo-trust { font-size: 12px; font-weight: 700; color: #fbbf24; margin-bottom: 14px; }
    .promo-link { display: inline-flex; align-items: center; justify-content: center; background: #ff6600; color: #ffffff !important; font-size: 14px; font-weight: 700; padding: 11px 18px; border-radius: 12px; text-decoration: none !important; }
    .menu-footer-cta { display: flex; align-items: center; gap: 10px; }
    .offerte-button { display: inline-flex; align-items: center; justify-content: center; background: #ff6600; color: #ffffff !important; font-size: 14.5px; font-weight: 700; padding: 11px 20px; border-radius: 12px; text-decoration: none !important; }
}
/* Mobiel & Tablet Navigatie (<= 1124px) */
@media screen and (max-width: 1124px) {
    .klussi-status-text-wrap { display: none; }
    .klussi-status-pill { padding: 8px; width: 40px; height: 40px; justify-content: center; }
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.14);
        color: #ffffff;
        font-size: 22px;
        cursor: pointer;
        padding: 0;
    }
    .hoofdmenu-container {
        display: none;
        position: fixed;
        inset: 0;
        background: #ffffff;
        z-index: 999999;
        flex-direction: column;
        justify-content: space-between;
        overflow-y: auto;
        padding: 20px;
    }
    .hoofdmenu-container.is-open { display: flex; }
    .menu-header-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 16px;
        border-bottom: 1px solid #e2e8f0;
        margin-bottom: 12px;
    }
    .menu-header-mobile img { height: 34px; width: auto; }
    .menu-close {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: #f1f5f9;
        border: none;
        color: #0f172a;
        font-size: 22px;
        font-weight: 700;
        cursor: pointer;
    }
    .hoofdmenu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
    .hoofdmenu > li { border-bottom: 1px solid #f1f5f9; }
    .hoofdmenu > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 4px;
        font-size: 17px;
        font-weight: 800;
        color: #0f172a !important;
        text-decoration: none !important;
    }
    .megamenu-content { display: none; padding: 6px 0 16px 0; }
    .has-megamenu.is-open .megamenu-content { display: block; }
    .megamenu-grid-4 { display: flex; flex-direction: column; gap: 14px; }
    .accordeon-titel {
        font-size: 14px;
        font-weight: 800;
        color: #475569;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 4px;
        cursor: pointer;
    }
    .accordeon-content { display: none; padding-top: 6px; }
    .menu-kolom.is-open .accordeon-content { display: block; }
    .megamenu-icon-list, .megamenu-link-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
    .megamenu-icon-list li a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; background: #f8fafc; text-decoration: none !important; }
    .mm-icon { width: 34px; height: 34px; border-radius: 9px; background: #fff7ed; color: #ff6600; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .mm-text { display: flex; flex-direction: column; }
    .mm-text strong { font-size: 14.5px; font-weight: 800; color: #0f172a; }
    .mm-text small { font-size: 12px; color: #64748b; }
    .megamenu-link-list li a { font-size: 14.5px; font-weight: 700; color: #1e293b !important; text-decoration: none !important; padding: 4px 8px; display: block; }
    .menu-kolom-promo { background: #121212; color: #ffffff; border-radius: 16px; padding: 18px; margin-top: 6px; }
    .promo-badge { display: inline-block; background: rgba(255, 102, 0, 0.20); color: #ff8533; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
    .promo-box h4 { font-size: 16px; font-weight: 800; color: #ffffff; margin: 0 0 6px 0; }
    .promo-box p { font-size: 13px; color: #cbd5e1; margin: 0 0 12px 0; }
    .promo-trust { font-size: 12px; font-weight: 700; color: #fbbf24; margin-bottom: 12px; }
    .promo-link { display: flex; align-items: center; justify-content: center; background: #ff6600; color: #ffffff !important; font-size: 14px; font-weight: 700; padding: 12px; border-radius: 12px; text-decoration: none !important; }
    .menu-footer-cta { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid #e2e8f0; margin-top: 16px; }
    .offerte-button { display: flex; align-items: center; justify-content: center; background: #ff6600; color: #ffffff !important; font-size: 15px; font-weight: 800; padding: 14px; border-radius: 12px; text-decoration: none !important; }
    .login-button-mobiel { display: flex; align-items: center; justify-content: center; background: #f1f5f9; color: #0f172a !important; font-size: 14.5px; font-weight: 700; padding: 13px; border-radius: 12px; text-decoration: none !important; }
}
/* Fix witte tekst door Divi header-stijlen binnen het witte megamenu */
.klussi-header-wrap .megamenu-content,
.klussi-header-wrap .megamenu-content .accordeon-titel {
    color: #64748b !important;
}
.klussi-header-wrap .megamenu-content .megamenu-icon-list li a,
.klussi-header-wrap .megamenu-content .megamenu-link-list li a {
    color: #0f172a !important;
}
.klussi-header-wrap .megamenu-content .mm-text strong {
    color: #0f172a !important;
}
.klussi-header-wrap .megamenu-content .mm-text small {
    color: #64748b !important;
}
.klussi-header-wrap .megamenu-content .megamenu-link-list .meer-link a {
    color: #ff6600 !important;
}
.klussi-header-wrap .megamenu-content .megamenu-link-list li a:hover {
    color: #ff6600 !important;
}
/* Desktop: toon alle links in het megamenu direct */
@media screen and (min-width: 1125px) {
    .klussi-header-wrap .accordeon-content {
        display: block !important;
    }
    .klussi-header-wrap .megamenu-content .megamenu-icon-list,
    .klussi-header-wrap .megamenu-content .megamenu-link-list {
        display: flex !important;
        flex-direction: column !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Mobiel: strakkere verhoudingen tussen logo, bel-icoon, zoek-icoon & menu */
@media screen and (max-width: 1124px) {
    .klussi-header-wrap { min-height: 62px !important; gap: 8px !important; }
    .klussi-logo-link img { height: 28px !important; width: auto !important; }
    .klussi-header-right-controls { gap: 6px !important; }
    .klussi-header-actions { gap: 6px !important; }
    .klussi-status-pill, .klussi-action-btn { width: 34px !important; height: 34px !important; padding: 0 !important; }
    .menu-toggle { width: 36px !important; height: 36px !important; font-size: 19px !important; }
}
/* Reset oude zwevende submenus zodat alle 3 de kolommen binnen het megamenu blijven */
.klussi-header-wrap .megamenu-content ul,
.klussi-header-wrap .megamenu-content .megamenu-icon-list,
.klussi-header-wrap .megamenu-content .megamenu-link-list {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}
.klussi-header-wrap .megamenu-content .accordeon-content {
    display: block !important;
    position: static !important;
}

/* Mobiel bel-icoon met statusstip & TranslatePress taalswitcher */
.klussi-mobile-phone-icon { display: none; }
.klussi-lang-wrap .trp-language-switcher { position: relative; z-index: 99999; }
.klussi-lang-wrap .trp-language-switcher > div {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 999px !important;
    color: #ffffff !important;
    padding: 4px 10px !important;
}
.klussi-lang-wrap .trp-language-switcher a { color: #ffffff !important; }
.klussi-lang-wrap .trp-ls-shortcode-language {
    background: #121212 !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 12px !important;
}

@media screen and (max-width: 1124px) {
    .klussi-status-pill {
        width: auto !important;
        min-width: 42px !important;
        height: 34px !important;
        padding: 0 10px !important;
        gap: 6px !important;
    }
    .klussi-mobile-phone-icon { display: inline-block !important; color: #ffffff !important; }
    .klussi-lang-wrap .trp-language-switcher > div { padding: 3px 8px !important; font-size: 12px !important; }
}
@media screen and (max-width: 1384px) {
    .usp-ticker-wrapper, .ticker-item {
        white-space: nowrap !important;
        font-size: 11px !important;
    }
}
/* 1. USP-ticker strak links uitlijnen boven de menubalk op desktop */
@media screen and (min-width: 1385px) {
    .usp-ticker-wrapper,
    .usp-ticker-container {
        text-align: left !important;
        justify-content: flex-start !important;
    }
    .usp-ticker-track {
        justify-content: flex-start !important;
        margin-left: 28px !important;
    }

    /* 2. Toon "Mijn afspraken" knop ook altijd op desktop naast Offerte aanvragen */
    .menu-footer-cta .login-button-mobiel {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: rgba(255, 255, 255, 0.10) !important;
        border: 1px solid rgba(255, 255, 255, 0.22) !important;
        color: #ffffff !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        padding: 7px 18px !important;
        border-radius: 25px !important;
        text-decoration: none !important;
        white-space: nowrap !important;
    }
    .menu-footer-cta .login-button-mobiel:hover {
        background-color: rgba(255, 255, 255, 0.18) !important;
        border-color: #ffffff !important;
    }
}
/* Desktop (>= 1385px): 1 strakke regel voor alle menu-items & knoppen */
@media screen and (min-width: 1385px) {
    .usp-ticker-wrapper,
    .usp-ticker-container {
        text-align: left !important;
        justify-content: flex-start !important;
    }
    .usp-ticker-track {
        justify-content: flex-start !important;
        margin-left: 18px !important;
    }
    .menu-kolom {
        margin-left: 18px !important;
    }
    .menu-kolom .accordeon-titel {
        font-size: 14px !important;
        white-space: nowrap !important;
    }
    .menu-footer-cta {
        margin-left: 18px !important;
        gap: 8px !important;
    }
    .menu-footer-cta .login-button-mobiel {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: rgba(255, 255, 255, 0.10) !important;
        border: 1px solid rgba(255, 255, 255, 0.22) !important;
        color: #ffffff !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        padding: 7px 14px !important;
        border-radius: 25px !important;
        text-decoration: none !important;
        white-space: nowrap !important;
    }
    .menu-footer-cta .login-button-mobiel:hover {
        background-color: rgba(255, 255, 255, 0.18) !important;
        border-color: #ffffff !important;
    }
    .menu-footer-cta .offerte-button {
        font-size: 13px !important;
        padding: 7px 16px !important;
        white-space: nowrap !important;
    }
}
