/* BBS Website — onderdelen van subpagina's (klantfeedback 12-10-2026).
   Laadt na glow.css + v2.css op: verankeren, testimonials (Ervaringen), toolboxen,
   partner-bouw, contact, over-ons, survey. Gedrag in js/onderdelen.js. */

/* ============ 1. Verankeren: stappenfiguur ============ */
.vf-intro { color: var(--v2-muted); margin: 0 0 22px; }
.vf-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.vf-figuur { position: sticky; top: calc(var(--menu-h, 76px) + 24px); margin: 0; background: #fff; border: 1px solid var(--v2-border); border-radius: 16px; padding: clamp(14px, 2.4vw, 28px); }
.vf-svg { display: block; width: 100%; height: auto; font-family: var(--font-display); }
.vf-deel { transition: opacity 0.35s ease; }
.vf-rand { fill: #F56D3C; stroke: #F56D3C; opacity: 0; transition: opacity 0.3s ease; }
.vf-deel.actief .vf-rand { opacity: 1; }
.vf-figuur.heeft-actief .vf-deel:not(.actief) { opacity: 0.32; }
.vf-stappen { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: none; }
.vf-stap { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; width: 100%; text-align: left; font: inherit; color: inherit;
  background: #fff; border: 1px solid var(--v2-border); border-left: 4px solid var(--v2-border); border-radius: 12px; padding: 16px 18px; cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease; }
.vf-nr { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 18px var(--font-mono);
  color: var(--v2-navy); background: var(--v2-mist); transition: background 0.25s ease, color 0.25s ease; }
.vf-body { display: block; }
.vf-naam { display: block; font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--v2-navy); margin: 2px 0 4px; }
.vf-tekst { display: block; font-size: 16.5px; line-height: 1.55; color: var(--v2-ink); }
.vf-stap:hover, .vf-stap.actief { border-color: #F56D3C; box-shadow: 0 18px 34px -26px rgba(22, 54, 83, 0.55); }
.vf-stap.actief .vf-nr { background: #BC4616; color: #fff; }
.vf-stap[aria-pressed="true"] { background: #FFF7F2; }
.vf-stap:focus-visible { outline: 3px solid rgba(55, 136, 201, 0.6); outline-offset: 3px; }
@media (max-width: 900px) {
  .vf-layout { grid-template-columns: 1fr; }
  .vf-figuur { position: sticky; top: calc(var(--menu-h, 64px) + 8px); z-index: 2; max-width: 520px; margin-inline: auto; width: 100%; }
}
@media (max-width: 600px) {
  .vf-figuur { position: static; }
  .vf-stap { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .vf-nr { width: 36px; height: 36px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .vf-deel, .vf-rand, .vf-stap, .vf-nr { transition: none; }
}

/* ============ 2. Ervaringen ============ */
.erv-kop { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.erv-kop h2 { margin: 0; }
.erv-bediening { display: flex; align-items: center; gap: 10px; }
.erv-stand { margin: 0 6px 0 0; font: 500 14px var(--font-mono); color: var(--v2-muted); min-width: 4.5em; text-align: right; }
.erv-pijl { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0;
  background: #fff; color: var(--v2-navy); border: 1px solid #707274; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.erv-pijl svg { width: 22px; height: 22px; }
.erv-pijl:hover:not(:disabled) { background: var(--v2-navy); color: #fff; border-color: var(--v2-navy); }
.erv-pijl:disabled { opacity: 0.4; cursor: default; }
.erv-pijl:focus-visible, .erv-meer:focus-visible { outline: 3px solid rgba(55, 136, 201, 0.6); outline-offset: 3px; }
.erv-spoor { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.erv.actief .erv-spoor { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 24px; margin: -4px -2px 0; }
.erv.actief .erv-spoor::-webkit-scrollbar { display: none; }
.erv.actief .erv-kaart { flex: 0 0 calc((100% - 24px) / 2); scroll-snap-align: start; }
.erv-kaart { position: relative; margin: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--v2-border); border-radius: 16px; overflow: hidden;
  box-shadow: 0 20px 40px -32px rgba(22, 54, 83, 0.45); }
.erv-beeld { position: relative; aspect-ratio: 16 / 9; background: var(--v2-navy); overflow: hidden; }
.erv-foto { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 30%); transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.erv-initialen { display: grid; place-items: center; font: 700 clamp(48px, 7vw, 72px) var(--font-display); color: #D8E9F6; letter-spacing: 0.04em;
  background: linear-gradient(rgba(22, 54, 83, 0.82), rgba(22, 54, 83, 0.82)), url("../assets/achtergronden/bbs-bg-20.png") center / cover, var(--v2-navy); }
/* de langere tekst ligt over het beeld en verschijnt bij aanwijzen, focus of de knop */
.erv-lang { position: absolute; inset: 0 0 64px 0; background: var(--v2-navy); color: #E8F1FA; padding: clamp(18px, 2.4vw, 28px); overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease 0.1s, visibility 0s linear 0.4s; }
.erv-lang-tekst { font-size: 17px; line-height: 1.6; }
.erv-lang-tekst::before { content: "Het hele verhaal"; display: block; font: 500 13px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: #F4B400; margin-bottom: 12px; }
.erv-lang-tekst p { margin: 0; max-width: 62ch; }
.erv-lang-tekst p + p { margin-top: 10px; }
.erv-kaart.open .erv-lang { opacity: 1; visibility: visible; transition: opacity 0.3s ease, visibility 0s; }
@media (hover: hover) and (pointer: fine) {
  .erv-kaart:not(.dicht):hover .erv-lang { opacity: 1; visibility: visible; transition: opacity 0.3s ease 0.15s, visibility 0s 0.15s; }
}

.erv-inhoud { display: flex; flex-direction: column; gap: 16px; padding: clamp(20px, 2.6vw, 30px); flex: 1; }
.erv-quote { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.35; color: var(--v2-navy); }
.erv-quote::before { content: "\201C"; display: block; font-size: 64px; line-height: 0.6; color: #F56D3C; margin: 10px 0 4px; }
.erv-wie { margin-top: auto; font-size: 15px; line-height: 1.45; color: var(--v2-ink); display: flex; flex-direction: column; gap: 2px; }
.erv-wie b { color: var(--v2-navy); font-size: 17px; }
.erv-bron { font: 500 12.5px/1.4 var(--font-mono); color: var(--v2-muted); margin-top: 4px; }
.erv-meer { position: relative; z-index: 2; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font: 600 15px var(--font-body); color: var(--v2-link);
  background: none; border: 0; padding: 6px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.erv-meer::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.2s ease; }
.erv-meer[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-2px); }
@media (max-width: 760px) {
  .erv.actief .erv-kaart { flex-basis: 88%; }
  .erv-kop { align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .erv-lang, .erv-foto, .erv-pijl { transition: none !important; }
}

/* ============ 3. Toolboxen ============ */
/* "Draai om" blijft altijd binnen de kaart: het beeld krimpt mee, de tekst niet */
.tb-voor img { flex: 1 1 auto; min-height: 0; height: auto; aspect-ratio: auto; object-fit: contain; }
.tb-titel { hyphens: auto; }
.tb-tik { flex: none; padding-top: 6px; }

/* Grounded Grip-band met het brein-kronkelpatroon (zoals op brainbasedsafety.com/toolboxen) */
main.pagina:has(.pg-band) { overflow-x: clip; }
.blok.pg-band { position: relative; isolation: isolate; color: #D8E9F6; padding-block: clamp(48px, 7vw, 88px); margin-block: var(--gap-blok); }
.blok.pg-band::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: linear-gradient(rgba(22, 54, 83, 0.84), rgba(22, 54, 83, 0.84)), url("../assets/achtergronden/bbs-bg-20.png") center / cover, #163653; }
html[data-theme="light"] .blok.pg-band h2 { color: #fff; }
html[data-theme="light"] .blok.pg-band p { color: #D8E9F6; }
.blok.pg-band strong { color: #fff; }
.pg-band iframe { border-radius: 12px; }
.pg-band-hand { position: relative; }
.pg-hand-tekent { position: absolute; right: clamp(0px, 4vw, 48px); bottom: 0; width: clamp(80px, 10vw, 140px); pointer-events: none; z-index: 1; }
@media (max-width: 760px) { .pg-hand-tekent { display: none; } }
/* talen: grotere vlaggen, leesbaar op navy */
.pg-talen-sub { margin-top: 26px; }
html[data-theme="light"] .pg-talen .talen { gap: 12px; margin-top: 14px; }
html[data-theme="light"] .pg-talen .taal-badge { font-size: 16px; font-weight: 600; gap: 4px; padding: 10px 18px 10px 12px; color: var(--v2-navy);
  background: #fff; border: 1px solid #fff; border-radius: 999px; }
html[data-theme="light"] .pg-talen .taal-badge.binnenkort { color: #E8F1FA; background: rgba(255, 255, 255, 0.08); border: 1px dashed rgba(216, 233, 246, 0.6); }
.pg-talen .taal-vlag { width: 36px; height: 24px; border-radius: 4px; margin-right: 8px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12); }
.pg-talen .taal-teken { display: inline-grid; place-items: center; width: 36px; height: 24px; font-size: 17px; line-height: 1; color: var(--v2-navy); background: #D8E9F6; }
/* afsluitende strook op de rustige standaard (wit), geen mist-vlak */
html[data-theme="light"] .cta-strook.pg-cta-rustig { background: #fff; border: 1px solid var(--v2-border); border-left: 4px solid #3788C9; }

/* ============ 4. Partner in de bouw ============ */
.pagina-kop .cta-rij.pg-knop-los { margin-top: clamp(24px, 3vw, 34px); }

/* ============ 5. Team (contact + over ons): onder elkaar ============ */
.team-sectie.ct-team > .intro { margin-bottom: clamp(36px, 5vw, 56px); }
.team-grid.team-rijen { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
.ct-team .team-grid.team-rijen { max-width: 860px; }
html[data-theme="light"] .team-rijen .team-kaart { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); align-items: start; padding: clamp(18px, 2.4vw, 28px); }
.team-rijen .team-foto { width: 132px; border-radius: 14px; }
.team-rijen .team-initialen { font-size: 32px; font-weight: 700; letter-spacing: 0.04em; color: #163653; background: #D8E9F6; }
.team-rijen .team-info { max-width: 64ch; }
.team-rijen .team-info h3 { font-size: 1.3rem; margin: 0 0 6px; }
.team-rijen .team-rol { font-size: 12.5px; margin-bottom: 10px; }
html[data-theme="light"] .team-rijen .team-bio { font-size: 16px; line-height: 1.6; font-style: normal; color: var(--v2-ink); margin-bottom: 10px; }
.team-rijen .team-plaats { font-size: 15px; }
.team-rijen .team-contact { flex-direction: row; flex-wrap: wrap; gap: 6px 22px; font-size: 15.5px; }
@media (max-width: 560px) {
  html[data-theme="light"] .team-rijen .team-kaart { grid-template-columns: 1fr; gap: 14px; }
  .team-rijen .team-foto { width: 112px; }
  .team-rijen .team-contact { flex-direction: column; }
}
/* "Liever direct bellen?": lange e-mailadressen passen ook op de telefoon */
.ct-persoon .ct-direct a { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .ct-persoon { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 18px; }
  .ct-persoon img { width: 72px; height: 72px; }
  .ct-persoon .ct-direct { font-size: 15px; }
}

/* Links midden in lopende tekst zijn onderstreept (niet alleen kleur: WCAG 1.4.1) */
main.pagina .intro a:not(.knop), main.pagina li > a:not(.knop):not(.kaart-cta) { text-decoration: underline; text-underline-offset: 3px; }
.erv-lang:focus-visible { outline: 3px solid #F4B400; outline-offset: -3px; }

/* ============ 6. Boekenplank: NL boeken dempen op de vertaalde pagina's ============ */
.plank-boek-nl { position: relative; cursor: default; pointer-events: none; }
.plank-boek-nl img { filter: grayscale(1) opacity(0.55); }
.plank-boek-label { position: absolute; left: -3px; right: -3px; bottom: 6px; font: 600 9px/1.15 var(--font-mono);
  text-align: center; color: #fff; background: rgba(22, 54, 83, 0.82); padding: 3px 4px; border-radius: 3px; }
