/* ============================================================
   Veiligheid v2 (ronde 16, oktober 2026). Gebouwd door scripts/bouw_sectoren_veiligheid.py; gedrag in
   assets/js/veiligheid.js (de schakelaars van de agentkaart en de reis van één gesprek).
   Hergebruikt van de homepage: hero-v51, belpaneel-v4 (bp4-), band-donker en .af-demokaart. Alles wat nieuw is
   begint met vh-.
   Beweging: de reis legt een mechanisme uit en loopt rond met een pauzeknop; decoratie (aurora, bol) speelt één keer.
   Zonder JavaScript of met "minder beweging" staat alles in de eindstand: alle standen van de agentkaart als tekst
   en alle vijf haltes van de reis naast of onder elkaar, zonder puls.
   ============================================================ */

html:not(.js) .vh-pagina .rv { opacity: 1; transform: none; }

.vh-oog {
  margin: 0 0 16px; font: 600 13px/1.3 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--ping);
}
.vh-feiten svg, .vh-node svg, .vh-vast-ic svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Decoratie speelt één of twee keer ---------- */
.vh-pagina .aurora span { animation-iteration-count: 1; }
.vh-pagina .bp4-aura, .vh-pagina .bp4-rand, .vh-pagina .bp4-golf i,
.vh-pagina .bp3-status i, .vh-pagina .belpaneel::before { animation-iteration-count: 2; }
.vh-pagina .bp4-golf i { animation-iteration-count: 2.5; animation-fill-mode: forwards; }

/* ---------- 1. Kop ---------- */
.vh-kop .hero5-inner { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: 64px; padding-block: 40px 44px; align-items: center; }
.vh-kop h1 { font-size: clamp(36px, 3.7vw, 56px); line-height: 1.03; letter-spacing: -.03em; margin-bottom: 20px; max-width: 15ch; }
.vh-kop h1 em { display: block; }
.vh-kop .sub { font-size: 18px; line-height: 1.55; max-width: 44ch; margin-bottom: 28px; }
.vh-feiten { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vh-feiten li { display: flex; align-items: center; gap: 12px; font: 500 16.5px/1.3 var(--font-head); color: rgba(255, 255, 255, .92); }
.vh-feiten svg {
  width: 26px; height: 26px; flex: none; padding: 5px; border-radius: 0 8px 0 0;
  background: rgba(182, 248, 153, .12); color: var(--ping); stroke-width: 2.6;
}

.vh-paneel.belpaneel-v4 { padding: 18px 28px 14px; }
.vh-paneel .bp4-bol { padding: 4px 0 0; }
.vh-paneel .bp4-orb { width: 118px; height: 118px; }
.vh-paneel .bp4-kern { width: 80px; height: 80px; }
.vh-paneel .bp4-rand { inset: 18px; }
.vh-paneel .bp4-aura { inset: 14px; }
.vh-paneel .bp4-golf { height: 26px; gap: 4px; }
.vh-paneel .bp4-golf i { width: 3.5px; }
.vh-bol-tekst { display: flex; flex-direction: column; align-items: center; }
.vh-paneel .bp4-kop { font-size: 22px; }
.vh-paneel .bp4-actie { margin-top: 8px; }
.vh-paneel .bp4-uitleg { margin-top: 6px; font-size: 13.5px; }
.vh-paneel .vh-route-kop {
  margin: 16px 0 10px; color: rgba(255, 255, 255, .66);
  font: 600 12px/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase;
}
.vh-zelf .btn { width: 100%; justify-content: center; }
.vh-mens { margin: 12px 0 8px; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .7); text-align: center; }
.vh-mens a { color: var(--ping); font-weight: 600; text-decoration: none; white-space: nowrap; }
.vh-mens a:hover { text-decoration: underline; }
.vh-paneel .widget-note-meer { margin: 0; }
.vh-paneel.pn-actief .vh-route-kop, .vh-paneel.pn-actief .vh-zelf, .vh-paneel.pn-actief .vh-mens { display: none; }

/* ---------- 2. De agentkaart ---------- */
.vh-kaart-sectie { padding-block: clamp(64px, 8vw, 112px); }
.vh-kaart-raster { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 32px clamp(40px, 6vw, 88px); align-items: center; }
.vh-kaart-tekst h2, .vh-reis-boven h2 {
  font-size: clamp(30px, 3.3vw, 46px); line-height: 1.06; letter-spacing: -.03em; font-weight: 600; color: var(--ink); margin: 0;
}
.vh-kaart-tekst h2 { max-width: 12ch; }
.vh-kaart-tekst .lede { margin: 18px 0 0; max-width: 40ch; color: var(--muted); }

.vh-kaart {
  background: #fff; border: 1px solid var(--line); border-radius: 14px 34px 14px 14px; padding: 22px 26px 16px;
  box-shadow: 0 1px 2px rgba(1, 30, 38, .05), 0 34px 70px -36px rgba(1, 30, 38, .38);
}
.vh-kaart-kop { display: flex; align-items: center; gap: 12px; margin: 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.vh-kaart-bol {
  width: 38px; height: 38px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; gap: 2.5px;
  background: radial-gradient(circle at 50% 30%, #12404c, #03222a 66%, #021a20); box-shadow: 0 0 0 3px rgba(182, 248, 153, .25);
}
.vh-kaart-bol i { width: 2.5px; border-radius: 2px; background: var(--ping); }
.vh-kaart-bol i:nth-child(1), .vh-kaart-bol i:nth-child(4) { height: 7px; }
.vh-kaart-bol i:nth-child(2) { height: 13px; }
.vh-kaart-bol i:nth-child(3) { height: 10px; }
.vh-kaart-kop b { font: 600 18px/1.2 var(--font-head); color: var(--ink); }
.vh-kaart-kop > span:last-child { margin-left: auto; font: 600 11px/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }

.vh-instellingen { list-style: none; margin: 0; padding: 0; }
.vh-inst {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 20px;
  padding: 16px 10px; margin: 0 -10px; border-bottom: 1px solid var(--line); border-radius: 10px;
  transition: background-color .4s ease;
}
.vh-inst:last-child { border-bottom: 0; }
.vh-inst-tekst b { display: flex; align-items: center; gap: 8px; font: 600 16.5px/1.3 var(--font-head); color: var(--ink); }
.vh-vast-ic { display: inline-grid; color: var(--muted-2); }
.vh-vast-ic svg { width: 14px; height: 14px; }
.vh-stand { display: block; margin-top: 3px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.vh-inst.vh-licht { background: var(--ping-soft); }

/* De schakelaar: zonder JavaScript een weergave van de stand (span), met JavaScript een knop met aria-pressed */
.vh-schakel {
  position: relative; display: inline-block; width: 54px; height: 32px; flex: none; padding: 0; border: 0; border-radius: 999px;
  background: #D5DEE1; transition: background-color .3s ease; font: inherit;
}
.vh-schakel i {
  position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(1, 30, 38, .28); transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}
.vh-schakel[data-stand="aan"] { background: var(--sage); }
.vh-schakel[data-stand="aan"] i { transform: translateX(22px); }
.vh-schakel[data-vast] { background: var(--pitch); }
.vh-schakel[data-vast] i { background: var(--ping); }
button.vh-schakel { cursor: pointer; }
button.vh-schakel[data-vast] { cursor: not-allowed; }
button.vh-schakel:focus-visible { outline: 2px solid var(--sage-ink); outline-offset: 3px; }
.vh-schakel.vh-schud { animation: vh-schud .4s ease; }
@keyframes vh-schud { 20%, 60% { transform: translateX(-3px); } 40%, 80% { transform: translateX(3px); } }
.vh-waarde {
  font: 600 13px/1 var(--font-head); color: var(--sage-tekst); background: var(--canvas); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 13px; white-space: nowrap;
}
.vh-kaart-noot { min-height: 1.5em; margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--sage-tekst); }

/* ---------- 3. De reis van één gesprek ---------- */
.vh-reis-sectie { padding-block: clamp(64px, 8vw, 112px); }
.vh-reis-boven { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 40px; margin-bottom: clamp(36px, 4.5vw, 60px); }
.vh-reis-boven .lede { margin: 14px 0 0; max-width: 52ch; color: var(--muted); }
.vh-pauze {
  width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer;
}
.vh-pauze[hidden] { display: none; }
.vh-pauze:hover { border-color: var(--sage); }
.vh-pauze svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.vh-pauze .vh-ic-speel, .vh-pauze[aria-pressed="true"] .vh-ic-pauze { display: none; }
.vh-pauze[aria-pressed="true"] .vh-ic-speel { display: block; }
.vh-pauze:focus-visible { outline: 2px solid var(--sage-ink); outline-offset: 2px; }

.vh-reis { position: relative; }
.vh-haltes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.vh-halte { position: relative; }
.vh-node {
  position: relative; z-index: 3; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--pitch); color: var(--ping);
}
.vh-node svg { width: 24px; height: 24px; }
/* De rail: per halte een stuk naar de volgende, met een vulling die meeloopt met de puls */
.vh-halte::before, .vh-halte::after { content: ""; position: absolute; top: 27px; left: 56px; right: -28px; height: 2px; }
.vh-halte::before { background: var(--line); }
.vh-halte::after { background: var(--sage); transform-origin: left center; }
.vh-halte:last-child::before, .vh-halte:last-child::after { display: none; }
.vh-halte h3 { margin: 20px 0 6px; font-size: 19px; line-height: 1.25; letter-spacing: -.01em; font-weight: 600; color: var(--ink); }
.vh-halte p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--muted); }

.vh-puls {
  position: absolute; left: 0; top: 0; z-index: 2; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%;
  background: radial-gradient(circle, var(--ping) 0 30%, var(--pitch) 36%);
  box-shadow: 0 0 0 5px rgba(182, 248, 153, .28), 0 0 24px rgba(76, 131, 150, .55);
  display: none; transition: transform .9s cubic-bezier(.45, 0, .25, 1), opacity .5s ease;
}

/* Met JavaScript: de puls reist, de halte licht op, de lijn vult */
.vh-actief .vh-puls { display: block; }
.vh-actief .vh-node { background: #fff; color: var(--muted); box-shadow: inset 0 0 0 2px var(--line); transition: background-color .4s ease, color .4s ease, box-shadow .4s ease; }
.vh-actief .vh-gedaan .vh-node { background: var(--sage); color: #fff; box-shadow: none; }
.vh-actief .vh-aan .vh-node { background: var(--pitch); color: var(--ping); box-shadow: 0 0 0 6px rgba(182, 248, 153, .32), 0 0 26px rgba(76, 131, 150, .5); }
.vh-actief .vh-halte::after { transform: scaleX(0); transition: transform .9s cubic-bezier(.45, 0, .25, 1), opacity .5s ease; }
.vh-actief .vh-gedaan::after { transform: none; }
.vh-actief .vh-halte h3, .vh-actief .vh-halte p { transition: color .4s ease, opacity .4s ease; }
.vh-actief .vh-halte:not(.vh-aan):not(.vh-gedaan) p { opacity: .62; }
.vh-actief .vh-aan h3 { color: var(--sage-tekst); }
.vh-leeg .vh-puls, .vh-leeg .vh-halte::after { opacity: 0; }
.vh-direct .vh-puls, .vh-puls.vh-direct, .vh-direct .vh-halte::after, .vh-direct .vh-node { transition: none !important; }

/* ---------- 4. Wat de AI Act vraagt ---------- */
.vh-wet { padding-block: clamp(56px, 7vw, 96px); }
.vh-wet-raster { position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px clamp(40px, 6vw, 88px); align-items: start; }
.vh-wet h2 { font-size: clamp(28px, 2.9vw, 40px); line-height: 1.08; letter-spacing: -.028em; font-weight: 600; margin: 0; max-width: 16ch; }
.vh-wet-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.vh-wet-item { padding: 22px 22px 24px; border-radius: 0 20px 0 0; background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .12); }
.vh-wet-item h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.25; font-weight: 600; color: #fff; }
.vh-wet-item p { margin: 0; font-size: 15.5px; line-height: 1.55; color: rgba(255, 255, 255, .74); }

/* ---------- 5. Vragen en demokaart ---------- */
.vh-slot { padding: clamp(72px, 9vw, 120px) 0 clamp(56px, 6vw, 96px); }
.vh-vragen-raster { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 24px clamp(40px, 6vw, 96px); align-items: start; }
.vh-vragen-raster h2 { font-size: clamp(30px, 3.3vw, 46px); line-height: 1.06; letter-spacing: -.03em; font-weight: 600; color: var(--ink); margin: 0; }
.vh-vragen { max-width: none; }
.vh-vragen details:first-child { border-top: 1px solid var(--line); }
.vh-vragen summary { font-size: 19px; }
.vh-vragen .antwoord a { color: var(--sage-tekst); font-weight: 600; }

/* ---------- Breekpunten ---------- */
@media (max-width: 980px) {
  .vh-kop .hero5-inner { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 28px 36px; }
  .vh-kop h1 { max-width: none; }
  .vh-kop .hero5-tekst > .vh-oog { order: 0; }
  .vh-kop .hero5-tekst > .vh-feiten { order: 4; margin-top: 26px; }
  .vh-kaart-raster, .vh-wet-raster, .vh-vragen-raster { grid-template-columns: minmax(0, 1fr); }
  .vh-kaart-tekst h2 { max-width: none; }
}
@media (max-width: 860px) {
  /* De reis onder elkaar: de nummers links, de rail verticaal */
  .vh-haltes { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .vh-halte { padding: 0 0 30px 66px; min-height: 56px; }
  .vh-halte:last-child { padding-bottom: 0; }
  .vh-node { position: absolute; left: 0; top: 0; width: 46px; height: 46px; }
  .vh-node svg { width: 20px; height: 20px; }
  .vh-halte::before, .vh-halte::after { top: 46px; bottom: 0; left: 22px; right: auto; width: 2px; height: auto; }
  .vh-halte::after { transform-origin: top center; }
  .vh-actief .vh-halte::after { transform: scaleY(0); }
  .vh-actief .vh-gedaan::after { transform: none; }
  .vh-halte h3 { margin: 10px 0 4px; }
}
@media (max-width: 720px) {
  .vh-kop h1 { font-size: clamp(28px, 7.7vw, 36px); margin-bottom: 12px; }
  .vh-kop .sub { font-size: 16.5px; }
  .vh-oog { margin-bottom: 10px; font-size: 12px; }
  .vh-kaart-tekst h2, .vh-reis-boven h2 { font-size: 28px; }
  .vh-kaart { padding: 18px 16px 12px; }
  .vh-inst { padding: 14px 8px; margin: 0 -8px; gap: 6px 14px; }
  .vh-inst-tekst b { font-size: 15.5px; }
  .vh-stand { font-size: 14px; }
  .vh-wet-items { grid-template-columns: minmax(0, 1fr); }
  .vh-vragen summary { font-size: 17px; }
}
@media (max-width: 620px) {
  .vh-paneel.belpaneel-v4 { padding: 14px 16px 10px; }
  .vh-paneel .bp3-status { margin-bottom: 8px; }
  .vh-paneel .bp4-bol {
    flex-direction: row; align-items: center; gap: 14px; margin: 0; padding: 10px 14px;
    border: 1px solid rgba(182, 248, 153, .5); background: rgba(182, 248, 153, .07); border-radius: 0 20px 0 0; text-align: left;
  }
  .vh-paneel .bp4-orb { width: 50px; height: 50px; margin: 0; flex: none; }
  .vh-paneel .bp4-kern { width: 38px; height: 38px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -8px 14px rgba(0, 0, 0, .4); }
  .vh-paneel .bp4-aura { inset: 4px; filter: blur(7px); }
  .vh-paneel .bp4-rand {
    inset: 4px;
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  }
  .vh-paneel .bp4-golf { height: 14px; gap: 2px; }
  .vh-paneel .bp4-golf i { width: 2px; }
  .vh-bol-tekst { align-items: flex-start; }
  .vh-paneel .bp4-kop { font-size: 19px; }
  .vh-paneel .bp4-actie { margin: 3px 0 0; padding: 0; border: 0; background: none; font-size: 14.5px; }
  .vh-paneel .bp4-bol:hover .bp4-actie, .vh-paneel .bp4-bol:focus-visible .bp4-actie { background: none; color: var(--ping); }
  .vh-paneel .bp4-uitleg { display: block; margin: 8px 0 0; text-align: center; font-size: 13px; }
  .vh-paneel .vh-route-kop { margin: 12px 0 8px; }
  .vh-paneel .widget-form { gap: 8px; }
  .vh-paneel .widget-form input[type="tel"], .vh-paneel .widget-form .btn { padding-block: 11px; min-height: 44px; }
  .vh-paneel .vh-zelf .btn { padding-block: 11px; min-height: 44px; }
  .vh-mens { margin: 10px 0 6px; }
  .vh-feiten li { font-size: 15.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .vh-pagina .aurora span:nth-child(n) { animation: none; }
  .vh-puls, .vh-halte::after, .vh-node, .vh-schakel, .vh-schakel i, .vh-inst { transition: none; }
  .vh-schakel.vh-schud { animation: none; }
}
