/* Testpagina: meescrollende inhoudsnavigatie (alleen met <body data-nav-test>) */

/* Meescrollen mogelijk maken: overflow-x:hidden op de body maakte "sticky" onwerkzaam; clip snijdt hetzelfde af zonder dat probleem. */
body.wt-page[data-nav-test] { overflow-x: clip !important; }

/* ---------- Desktop: zijbalk ---------- */
body[data-nav-test].wjn-on .wt-article-sidebar { position: static !important; align-self: stretch !important; max-height: none !important; overflow: visible !important; display: flex !important; flex-direction: column; }
body[data-nav-test].wjn-on .wt-article-sidebar > .wjn-sticky { position: sticky; top: calc(var(--wjn-top, 0px) + 20px); z-index: 4; }
body[data-nav-test] .wjn-sticky > .wjn-toc { box-shadow: 0 10px 30px rgba(32,27,19,.08); max-height: calc(100vh - var(--wjn-top, 0px) - 48px); overflow-y: auto; scrollbar-width: thin; }

body[data-nav-test] .wjn-toc { padding: 20px 20px 14px; border: 1px solid #E7DDCF; border-radius: 18px; background: #fff; }
body[data-nav-test] .wjn-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
body[data-nav-test] .wjn-head span { color: #171713; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
body[data-nav-test] .wjn-count { color: #777167; font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums; }
body[data-nav-test] .wjn-progress { height: 2px; margin: 0 0 8px; overflow: hidden; border-radius: 2px; background: #EEE8DF; }
body[data-nav-test] .wjn-progress i { display: block; height: 100%; background: #60712F; transform: scaleX(0); transform-origin: left; transition: transform .15s linear; }
body[data-nav-test] .wjn-toc ol, body[data-nav-test] .wjn-mobile ol { margin: 0; padding: 0; list-style: none; }
body[data-nav-test] .wjn-toc li + li { border-top: 1px solid #F1EBE2; }
body[data-nav-test] a[data-wjn] { position: relative; display: flex; align-items: baseline; gap: 12px; padding: 9px 4px 9px 12px; color: #5C544B; font-size: .9rem; font-weight: 600; line-height: 1.35; text-decoration: none; transition: color .2s, background .2s; }
body[data-nav-test] a[data-wjn] b { flex: 0 0 20px; color: #B9AE9F; font-size: .72rem; font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; transition: color .2s; }
body[data-nav-test] a[data-wjn]::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: transparent; transition: background .2s; }
body[data-nav-test] a[data-wjn]:hover { color: #171713; }
body[data-nav-test] a[data-wjn].is-active { color: #171713; font-weight: 750; }
body[data-nav-test] a[data-wjn].is-active b { color: #60712F; }
body[data-nav-test] a[data-wjn].is-active::before { background: #60712F; }
body[data-nav-test] a[data-wjn]:focus-visible { outline: 2px solid #60712F; outline-offset: 2px; border-radius: 6px; }
body[data-nav-test] .wjn-end a[data-wjn] { color: #845B0D; }
body[data-nav-test] .wjn-end a[data-wjn] b { color: #D8A33D; }

/* Bestaande contactkaart: compact zodat alles in beeld blijft */
body[data-nav-test] .wjn-compact { margin: 0 !important; padding: 18px 18px 16px !important; }
body[data-nav-test] .wjn-compact > img, body[data-nav-test] .wjn-compact .wt-sidebar-kicker, body[data-nav-test] .wjn-compact p { display: none !important; }
body.wt-page[data-nav-test] .wt-article-sidebar .wjn-compact.wt-sidebar-service-card h2 { margin: 0 0 12px !important; font-size: 1.15rem !important; line-height: 1.25 !important; letter-spacing: -.01em !important; text-align: left !important; }
body.wt-page[data-nav-test] .wt-article-sidebar .wjn-compact.wt-sidebar-service-card h2::before { content: "Vragen of twijfel?"; display: block; margin-bottom: 2px; color: rgba(255,255,255,.62); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
body[data-nav-test] .wjn-compact .wt-sidebar-cta { margin-top: 0 !important; }

/* Andere onderwerpen: bestaande lijst, inklapbaar */
body[data-nav-test] .wjn-more { border: 1px solid #E7DDCF; border-radius: 14px; background: #F8F5EE; }
body[data-nav-test] .wjn-more summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; color: #171713; font-size: .86rem; font-weight: 750; cursor: pointer; list-style: none; }
body[data-nav-test] .wjn-more summary::-webkit-details-marker { display: none; }
body[data-nav-test] .wjn-more summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid #60712F; border-bottom: 2px solid #60712F; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
body[data-nav-test] .wjn-more[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
body[data-nav-test] .wjn-more nav { display: grid; padding: 0 16px 10px; }
body[data-nav-test] .wjn-more nav a { padding: 8px 0; border-top: 1px solid #E7DDCF; color: #5C544B; font-size: .84rem; }
body[data-nav-test] .wjn-more nav a.is-current { color: #60712F; font-weight: 750; }

/* ---------- Mobiel: compacte uitklapbare balk ---------- */
body[data-nav-test] .wjn-mobile { display: none; }
@media (max-width: 900px) {
  body[data-nav-test] .wjn-sticky .wjn-toc { display: none; }
  body[data-nav-test] .wjn-sticky { display: none; }
  body[data-nav-test] .wjn-mobile {
    display: block; position: sticky; top: var(--wjn-top, 0px); z-index: 30;
    margin: -34px 0 28px; border-bottom: 1px solid #E7DDCF; background: rgba(248,245,238,.97);
    box-shadow: 0 8px 20px rgba(32,27,19,.06); -webkit-backdrop-filter: saturate(1.2) blur(6px); backdrop-filter: saturate(1.2) blur(6px);
  }
  body[data-nav-test] .wjn-mobile-toggle { display: grid; grid-template-columns: auto minmax(0, 1fr) 20px; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; border: 0; background: none; color: #171713; font: inherit; text-align: left; cursor: pointer; }
  body[data-nav-test] .wjn-mobile-kicker { color: #777167; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
  body[data-nav-test] .wjn-mobile-current { overflow: hidden; font-size: .92rem; font-weight: 750; white-space: nowrap; text-overflow: ellipsis; }
  body[data-nav-test] .wjn-mobile-toggle i { width: 8px; height: 8px; justify-self: center; border-right: 2px solid #60712F; border-bottom: 2px solid #60712F; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
  body[data-nav-test] .wjn-mobile.is-open .wjn-mobile-toggle i { transform: rotate(-135deg) translateY(-1px); }
  body[data-nav-test] .wjn-mobile .wjn-progress { margin: 0; border-radius: 0; }
  body[data-nav-test] .wjn-mobile ol { max-height: 60vh; overflow-y: auto; padding: 6px 16px 12px; background: #fff; border-top: 1px solid #E7DDCF; }
  body[data-nav-test] .wjn-mobile li + li { border-top: 1px solid #F1EBE2; }
  body[data-nav-test] .wjn-mobile a[data-wjn] { padding-top: 11px; padding-bottom: 11px; }
}
@media (max-width: 600px) { body[data-nav-test] .wjn-mobile { margin-top: -20px; } }
@media (prefers-reduced-motion: reduce) { body[data-nav-test] .wjn-progress i, body[data-nav-test] a[data-wjn] { transition: none; } }
body.wt-page[data-nav-test]:not(#a):not(#b):not(#c) .wt-article-sidebar .wjn-compact h2 { margin: 0 0 12px !important; font-size: 1.2rem !important; line-height: 1.25 !important; letter-spacing: -.01em !important; }
/* Contactkaart zijbalk: compacter en portret goed gecentreerd */
body.wt-page[data-nav-test]:not(#a):not(#b):not(#c) .wt-article-sidebar .wt-sidebar-service-card { padding: 20px 20px 18px !important; }
body.wt-page[data-nav-test]:not(#a):not(#b):not(#c) .wt-article-sidebar .wt-sidebar-service-card > img { width: 96px !important; height: 96px !important; margin: 0 auto 10px !important; object-fit: cover !important; object-position: 56% 18% !important; display: block !important; align-self: center !important; }
body.wt-page[data-nav-test]:not(#a):not(#b):not(#c) .wt-article-sidebar .wt-sidebar-service-card h2 { margin: 4px 0 6px !important; font-size: 1.6rem !important; line-height: 1.15 !important; }
body.wt-page[data-nav-test]:not(#a):not(#b):not(#c) .wt-article-sidebar .wt-sidebar-service-card p { margin: 0 0 14px !important; font-size: .9rem !important; line-height: 1.5 !important; }
body.wt-page[data-nav-test]:not(#a):not(#b):not(#c) .wt-article-sidebar .wt-sidebar-service-card .wt-sidebar-cta { margin-bottom: 8px !important; }
/* Hero: ruimte onder de usp's tot de reviewbalk gelijk aan home */
@media (min-width: 901px) { body.wt-page[data-nav-test]:not(#a):not(#b):not(#c) .wh15-hero .wh15-hero-copy { padding-bottom: 63px !important; } }
/* Kaarten die onder de meescrollende inhoudsopgave door schuiven, verdwijnen netjes (geen randje tussen menu en inhoudsopgave) */
body[data-nav-test].wjn-on .wt-article-sidebar > .wjn-sticky.is-stuck::before { content: ""; position: absolute; left: -12px; right: -12px; bottom: calc(100% - 2px); height: calc(var(--wjn-top, 0px) + 24px); background: #F8F5EE; }
body[data-nav-test].wjn-on .wt-article-sidebar > .wjn-sticky > .wjn-toc { position: relative; }
/* Reviewbalk overlapt de hero even ver als op home (75 px), zodat de specialist er onderaan netjes achter wegvalt */
@media (min-width: 901px) {
  body.wt-page[data-nav-test]:not(#a):not(#b):not(#c) main > .wh15-hero-proof, body.wt-page[data-nav-test]:not(#a):not(#b):not(#c) #site-page > .wh15-hero-proof { margin-top: -75px !important; }
  body.wt-page[data-nav-test]:not(#a):not(#b):not(#c):not(#d) .wh15-hero .wh15-hero-copy { padding-bottom: 94px !important; }
}
/* Meelopend blok = inhoudsopgave + contactkaart; daaronder pas "Kies uw onderwerp" (onderaan de zijbalk) */
body[data-nav-test].wjn-on .wt-article-sidebar > .wjn-track { flex: 1 1 auto; display: block; position: relative; }
body[data-nav-test].wjn-on .wt-article-sidebar > .wjn-track > .wjn-sticky { position: sticky; top: calc(var(--wjn-top, 0px) + 20px); z-index: 4; display: grid; gap: 14px; }
body[data-nav-test].wjn-on .wt-article-sidebar > .wt-sidebar-nav-card { margin-top: 18px; }
body[data-nav-test].wjn-on .wjn-track .wjn-toc { max-height: none; overflow: visible; }
/* Compacte contactkaart in het meelopende blok, zodat alles in één scherm past */
body.wt-page[data-nav-test]:not(#a):not(#b):not(#c):not(#d) .wjn-track .wt-sidebar-service-card { padding: 16px 18px !important; }
body.wt-page[data-nav-test]:not(#a):not(#b):not(#c):not(#d) .wjn-track .wt-sidebar-service-card > img { width: 64px !important; height: 64px !important; margin: 0 auto 6px !important; }
body.wt-page[data-nav-test]:not(#a):not(#b):not(#c):not(#d) .wjn-track .wt-sidebar-service-card p { display: none !important; }
body.wt-page[data-nav-test]:not(#a):not(#b):not(#c):not(#d) .wjn-track .wt-sidebar-service-card h2 { margin: 2px 0 12px !important; font-size: 1.35rem !important; }
@media (max-height: 760px) { body.wt-page[data-nav-test]:not(#a):not(#b):not(#c):not(#d) .wjn-track .wt-sidebar-service-card > img { display: none !important; } }
@media (max-width: 900px) { body[data-nav-test] .wjn-track .wjn-sticky { display: block !important; position: static !important; } body[data-nav-test] .wjn-track .wjn-toc { display: none !important; } }
/* "Kies uw onderwerp" eerst onder de afspraakkaart; het meelopende blok schuift eroverheen (ondoorzichtige achtergrond) */
body[data-nav-test].wjn-on .wjn-track > .wjn-sticky { background: #F8F5EE; padding-bottom: 14px; margin-bottom: 0; box-shadow: 0 -12px 0 #F8F5EE; }
body[data-nav-test].wjn-on .wjn-track > .wjn-topics-start { position: relative; z-index: 1; margin-top: 4px; }
body[data-nav-test].wjn-on .wt-article-sidebar > .wjn-topics-end { margin-top: 18px; }
@media (max-width: 900px) { body[data-nav-test] .wjn-topics-end { display: none !important; } body[data-nav-test].wjn-on .wjn-track > .wjn-sticky { background: none; box-shadow: none; } }

/* Hele blok (inhoudsopgave, afspraakkaart, onderwerpen) loopt mee; past het niet, dan scrollt het blok zelf */
body[data-nav-test].wjn-on .wjn-track > .wjn-sticky { max-height: calc(100vh - var(--wjn-top, 0px) - 36px); overflow-y: auto; scrollbar-width: thin; }
body[data-nav-test].wjn-on .wjn-track > .wjn-sticky .wjn-more { margin: 0; background: #fff; }
/* Geen schaduw/achtergrondvlak rond het meelopende blok */
body[data-nav-test].wjn-on .wjn-track > .wjn-sticky { background: transparent !important; box-shadow: none !important; padding-bottom: 0 !important; }
body[data-nav-test].wjn-on .wjn-track > .wjn-sticky.is-stuck::before { display: none !important; }
body[data-nav-test] .wjn-sticky > .wjn-toc { box-shadow: none !important; }

/* ===== "Meer over … weten?" onder artikel en zijbalk ===== */
body:not(#wj) .wjn-related { padding: 64px 0 72px; background: #F8F5EE; border-top: 1px solid #EEE6D9; }
body:not(#wj) .wjn-related-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
body:not(#wj):not(#wj2):not(#wj3) .wjn-related-head h2 { margin: 0; color: #171713; font-size: clamp(1.7rem, 1.2rem + 1.3vw, 2.3rem); font-weight: 850; letter-spacing: -.035em; line-height: 1.1; }
body:not(#wj) .wjn-related-head h2 span { color: #D8A33D; }
body:not(#wj):not(#wj2):not(#wj3) .wjn-related-head p { margin: 0; color: #5C544B; font-size: 15px; }
body:not(#wj) .wjn-related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
body:not(#wj) .wjn-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #E7DDCF; border-radius: 16px; background: #fff; color: #171713; text-decoration: none; box-shadow: 0 10px 26px rgba(32,27,19,.05); transition: transform .2s, box-shadow .2s, border-color .2s; }
body:not(#wj) .wjn-card:hover { transform: translateY(-3px); border-color: #D8A33D; box-shadow: 0 16px 34px rgba(32,27,19,.1); }
body:not(#wj) .wjn-card:focus-visible { outline: 3px solid #60712F; outline-offset: 3px; }
body:not(#wj) .wjn-card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #E9E1D3; }
body:not(#wj) .wjn-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
body:not(#wj) .wjn-card:hover .wjn-card-img img { transform: scale(1.04); }
body:not(#wj) .wjn-card-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
body:not(#wj) .wjn-card-body strong { font-size: 16px; font-weight: 800; line-height: 1.3; }
body:not(#wj) .wjn-card-body > span { color: #5C544B; font-size: 14px; line-height: 1.5; }
body:not(#wj) .wjn-card-body em { margin-top: auto; padding-top: 6px; color: #60712F; font-size: 14px; font-style: normal; font-weight: 800; }
body:not(#wj) .wjn-card-body em i { font-style: normal; display: inline-block; transition: transform .2s; }
body:not(#wj) .wjn-card:hover .wjn-card-body em i { transform: translateX(3px); }
@media (max-width: 1100px) { body:not(#wj) .wjn-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  body:not(#wj) .wjn-related { padding: 44px 0 52px; }
  body:not(#wj) .wjn-related-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(var(--gutter, 18px) * -1); padding: 2px var(--gutter, 18px) 10px; scrollbar-width: none; }
  body:not(#wj) .wjn-related-grid::-webkit-scrollbar { display: none; }
  body:not(#wj) .wjn-card { flex: 0 0 78%; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) { body:not(#wj) .wjn-card, body:not(#wj) .wjn-card img, body:not(#wj) .wjn-card i { transition: none !important; } }
/* "Meer over … weten?": compact, alles op één rij; horizontaal scrollen als het niet past */
body:not(#wj) .wjn-related { padding: 44px 0 52px; }
body:not(#wj) .wjn-related-head { margin-bottom: 18px; align-items: center; }
body:not(#wj) .wjn-related-nav { display: flex; gap: 8px; }
body:not(#wj) .wjn-related-nav button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid #E7DDCF; border-radius: 50%; background: #fff; color: #171713; font-size: 18px; cursor: pointer; transition: border-color .2s, opacity .2s; }
body:not(#wj) .wjn-related-nav button:hover { border-color: #D8A33D; }
body:not(#wj) .wjn-related-nav button:disabled { opacity: .35; cursor: default; }
body:not(#wj) .wjn-related-nav[hidden] { display: none; }
body:not(#wj):not(#wj2) .wjn-related-grid { display: flex !important; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; margin: 0; padding: 2px 2px 8px; }
body:not(#wj) .wjn-related-grid::-webkit-scrollbar { display: none; }
body:not(#wj):not(#wj2) .wjn-card { flex: 0 0 calc((100% - 4 * 14px) / 5); min-width: 210px; scroll-snap-align: start; border-radius: 14px; }
body:not(#wj) .wjn-card-img { aspect-ratio: 16 / 9; }
body:not(#wj) .wjn-card-body { gap: 4px; padding: 12px 14px 14px; }
body:not(#wj) .wjn-card-body strong { font-size: 15px; }
body:not(#wj) .wjn-card-body > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.45; }
body:not(#wj) .wjn-card-body em { font-size: 13px; padding-top: 4px; }
@media (max-width: 760px) {
  body:not(#wj):not(#wj2) .wjn-related-grid { margin: 0 calc(var(--gutter, 18px) * -1); padding: 2px var(--gutter, 18px) 8px; scroll-padding-left: var(--gutter, 18px); }
  body:not(#wj):not(#wj2) .wjn-card { flex: 0 0 68%; min-width: 0; }
  body:not(#wj) .wjn-related-head p { display: none; }
}
/* Mobiel: reviews zoals op home — compacte Feedback Company-kaart in de hero, geen losse reviewbalk over de foto */
@media (max-width: 900px) {
  body.wt-page[data-nav-test]:not(#a):not(#b):not(#c) .wh15-hero-proof { display: none !important; }
}
/* Geen schaduw achter de onderwerpkaarten, ook niet bij hover */
body:not(#wj):not(#wj2) .wjn-card, body:not(#wj):not(#wj2) .wjn-card:hover { box-shadow: none !important; }
/* Mobiel: "Op deze pagina" duidelijker en opvallender */
@media (max-width: 900px) {
  body.wt-page[data-nav-test] .wjn-mobile { background: #fff; border-bottom: 1px solid #E7DDCF; box-shadow: 0 10px 24px rgba(32,27,19,.10); }
  body.wt-page[data-nav-test] .wjn-mobile-toggle { padding: 11px 14px 11px 16px; gap: 10px; }
  body.wt-page[data-nav-test] .wjn-mobile-kicker { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; background: #EEF1E2; color: #4E5D24; font-size: .66rem; letter-spacing: .08em; }
  body.wt-page[data-nav-test] .wjn-mobile-kicker::before { content: ""; width: 12px; height: 10px; flex: 0 0 12px; background: linear-gradient(currentColor 0 0) 0 0 / 100% 2px no-repeat, linear-gradient(currentColor 0 0) 0 50% / 70% 2px no-repeat, linear-gradient(currentColor 0 0) 0 100% / 85% 2px no-repeat; }
  body.wt-page[data-nav-test] .wjn-mobile-current { color: #171713; font-size: .98rem; font-weight: 800; }
  body.wt-page[data-nav-test] .wjn-mobile-toggle i { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #60712F; transform: none; position: relative; }
  body.wt-page[data-nav-test] .wjn-mobile-toggle i::after { content: ""; width: 7px; height: 7px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg) translate(-1px, -1px); transition: transform .2s; }
  body.wt-page[data-nav-test] .wjn-mobile.is-open .wjn-mobile-toggle i { transform: none; }
  body.wt-page[data-nav-test] .wjn-mobile.is-open .wjn-mobile-toggle i::after { transform: rotate(-135deg) translate(-1px, -1px); }
  body.wt-page[data-nav-test] .wjn-mobile-toggle { grid-template-columns: auto minmax(0, 1fr) 30px; }
  body.wt-page[data-nav-test] .wjn-mobile .wjn-progress { height: 3px; background: #EEE8DF; }
  body.wt-page[data-nav-test] .wjn-mobile .wjn-progress i { background: #D8A33D; }
}
