/* ============================================================
   3. Pagina-compositie — dienst thuisbatterij (alleen token-refs)
   Bewegings-tokens (R14-budget, pagina-lokaal genoteerd): 150–600ms, rustige easing.
   ============================================================ */
:root { --beweeg-duur: 450ms; --beweeg-ease: cubic-bezier(.22,.61,.36,1); }

h1, h2, h3, p { margin: 0; }
p + p { margin-top: var(--ruimte-300); }
:focus-visible { outline: 2px solid var(--kleur-merk); outline-offset: 2px; }
.measure-centrum { max-width: var(--measure-narrow); margin-inline: auto; }
.sectie-kop { margin-bottom: var(--ruimte-500); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
button { font-family: inherit; }

/* ---- 0. PROMO-BALK — dunne financieringsbalk boven de nav (mens-akkoord 2026-07-05; nieuw sibling, nav-partial byte-identiek; R8: geen amber, R6: echte copy) ---- */
.promo-balk { background: var(--prim-merk-donker); color: #eaf6fb; }
.promo-inner { display: flex; align-items: center; justify-content: center; gap: var(--ruimte-200); padding: var(--ruimte-200) var(--ruimte-300); text-align: center; }
.promo-inner p { margin: 0; font-size: var(--prim-type-xs); font-weight: 600; }
.promo-inner .promo-mark { color: var(--prim-merk-tint); font-weight: 800; }

/* ---- SOCIAL-PROOF TELLER-STRIP — momentum-paneel (K2+K3); mens-opdracht 2026-07-05; R14: eindwaarden statisch in HTML ---- */
.teller-strip { background: var(--kleur-vlak-subtiel); border-radius: var(--prim-radius-lg); padding: var(--ruimte-500) var(--ruimte-600); display: flex; gap: var(--ruimte-600); align-items: center; justify-content: center; flex-wrap: wrap; max-width: var(--measure-narrow); margin-inline: auto; }
.teller-strip > div { text-align: center; }
.teller-strip .teller-groot { font-family: var(--prim-font-accent-serif); font-size: var(--prim-type-2xl); line-height: var(--prim-lijnhoogte-kop); color: var(--prim-merk-donker); margin: 0; }
.teller-strip .teller-label { font-size: var(--prim-type-s); color: var(--kleur-tekst-zacht); margin-top: var(--ruimte-100); max-width: 24ch; margin-inline: auto; }
.teller-strip .teller-vlijn { align-self: stretch; width: 1px; background: var(--kleur-lijn); }
@media (max-width: 767px) { .teller-strip { gap: var(--ruimte-400); } .teller-strip .teller-vlijn { display: none; } }

/* ---- 1. NAVIGATIE — sticky; header-CTA = het énige accent in de balk (R8) ---- */
.site-nav { position: sticky; top: 0; z-index: 50; background: var(--kleur-achtergrond); border-bottom: 1px solid var(--kleur-lijn); }
.nav-inner { display: flex; align-items: center; gap: var(--ruimte-400); padding-block: var(--ruimte-300); }
.nav-logo { font: 800 var(--prim-type-l)/1 var(--prim-font-kop); color: var(--prim-merk-donker); text-decoration: none; flex: none; }
.nav-menu { flex: 1; min-width: 0; }
.nav-links { display: flex; flex-wrap: wrap; gap: var(--ruimte-200) var(--ruimte-400); list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: var(--ruimte-500); color: var(--kleur-tekst); text-decoration: none; font-weight: 600; font-size: var(--prim-type-s); border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--kleur-merk); border-bottom-color: var(--kleur-merk); }   /* actief-/hover-marker in merk, nooit accent (R8) */
.nav-links a[aria-current="page"] { color: var(--prim-merk-donker); border-bottom-color: var(--kleur-merk); }
.nav-cta { flex: none; }
.site-nav .cta { padding: var(--ruimte-200) var(--ruimte-400); font-size: var(--prim-type-s); }
.hamburger, .menu-sluit { display: none; align-items: center; justify-content: center; width: var(--cta-min-hoogte); height: var(--cta-min-hoogte); border: 1px solid var(--kleur-lijn); border-radius: var(--prim-radius-sm); background: var(--kaart-bg); color: var(--kleur-tekst); font-size: var(--prim-type-m); cursor: pointer; flex: none; }

/* ---- 2. HERO — 55/45, formulier-kaart = focuspunt (R8); tint-verloop, R6-compact ---- */
.sectie-hero { background: linear-gradient(180deg, var(--kleur-vlak-subtiel), var(--kleur-achtergrond)); }
.sectie-hero.section { padding-block: var(--ruimte-600); }
.hero-grid {
  display: grid; gap: var(--ruimte-400) var(--ruimte-700); align-items: start;
  grid-template-columns: minmax(0,55fr) minmax(0,45fr);
  grid-template-areas: "kop form" "subzin form" "vertrouwen form" "beeld form" ". form";
}
.hero-kop { grid-area: kop; }
.hero-subzin { grid-area: subzin; color: var(--kleur-tekst); max-width: var(--measure-narrow); }
.hero-vertrouwen { grid-area: vertrouwen; position: relative; padding-left: var(--ruimte-400); font-weight: 600; color: var(--prim-merk-donker); }
.hero-vertrouwen::before { content: "✓"; position: absolute; left: 0; color: var(--kleur-marker); font-weight: 700; }
.hero-beeld { grid-area: beeld; margin: var(--ruimte-200) 0 0; }
.hero-beeld img { border-radius: var(--prim-radius-lg); box-shadow: var(--prim-elevatie-md); aspect-ratio: 3/2; object-fit: cover; width: 100%; }

/* ---- formulier-kaart (R12 — verankerd; twee-staps, stap 1 van 2 zichtbaar) ---- */
.formulier-kaart { grid-area: form; }
.formulier-kop { font-weight: 800; font-family: var(--prim-font-kop); font-size: var(--prim-type-m); margin-bottom: var(--ruimte-200); }
.stap-indicator { font-size: var(--prim-type-s); font-weight: 700; color: var(--kleur-merk); }
.voortgang { height: var(--ruimte-100); background: var(--kleur-lijn); border-radius: var(--prim-radius-pill); overflow: hidden; margin: var(--ruimte-200) 0 var(--ruimte-400); }
.voortgang > div { height: 100%; width: 50%; background: var(--kleur-merk); border-radius: inherit; }
[data-formulier][data-stap="2"] .voortgang > div { width: 100%; }
.veld-groep { margin-bottom: var(--ruimte-300); }
.veld-label { display: block; font-size: var(--prim-type-s); font-weight: 700; margin-bottom: var(--ruimte-100); color: var(--kleur-tekst); padding: 0; }
.veld {
  width: 100%; box-sizing: border-box; min-height: var(--cta-min-hoogte);
  padding: var(--ruimte-200) var(--ruimte-300);
  border: 1px solid var(--kleur-lijn); border-radius: var(--prim-radius-sm);
  background: var(--kaart-bg); color: var(--kleur-tekst); font: inherit;
}
.veld:hover { border-color: var(--kleur-merk); }
.veld:focus { border-color: var(--kleur-merk); }
.veld[aria-invalid="true"] { border-color: var(--kleur-functioneel-rood); }
.veld-fout { display: block; color: var(--kleur-functioneel-rood); font-size: var(--prim-type-s); margin-top: var(--ruimte-100); }
.keuze-groep { margin-bottom: var(--ruimte-300); }
.keuze-rij { display: flex; gap: var(--ruimte-200); }
.keuze { flex: 1; position: relative; }
.keuze input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.keuze span {
  display: flex; align-items: center; justify-content: center; min-height: var(--cta-min-hoogte);
  border: 1px solid var(--kleur-lijn); border-radius: var(--prim-radius-sm);
  background: var(--kaart-bg); font-weight: 600; font-size: var(--prim-type-s); color: var(--kleur-tekst);
}
.keuze input:hover + span { border-color: var(--kleur-merk); }
.keuze input:checked + span { border-color: var(--kleur-merk); background: var(--kleur-vlak-subtiel); color: var(--prim-merk-donker); }
.keuze input:focus-visible + span { outline: 2px solid var(--kleur-merk); outline-offset: 2px; }
.cta-vol { width: 100%; box-sizing: border-box; }
.cta:hover { background: var(--prim-accent-hover); }
.cta[disabled] { opacity: .6; cursor: progress; }
.knop-terug { background: none; border: 0; padding: var(--ruimte-200) 0; margin-top: var(--ruimte-200); color: var(--kleur-merk); font: 600 var(--prim-type-s)/1 var(--prim-font-body); text-decoration: underline; cursor: pointer; }
.privacy { font-size: var(--prim-type-s); color: var(--kleur-tekst-zacht); margin-top: var(--ruimte-300); }
.bedankt { padding: var(--ruimte-300) 0; }

/* ---- 3. VOOR-WIE — kaartenrij 3 (R1), icoon + tekstlabel (R5, één set) ---- */
.icoon {
  width: var(--ruimte-600); height: var(--ruimte-600); flex: none;
  border-radius: var(--prim-radius-pill); background: var(--kleur-vlak-subtiel);
  color: var(--prim-merk-donker); display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--ruimte-300);
}
.voorwie-kaart { display: flex; flex-direction: column; }
.voorwie-kaart h3 { font-size: var(--prim-type-m); margin-bottom: var(--ruimte-200); }
.voorwie-kaart p { font-size: var(--prim-type-s); }
.afbakening {
  margin-top: var(--ruimte-500); max-width: var(--measure-narrow);
  position: relative; padding-left: var(--ruimte-400);
  color: var(--kleur-tekst-zacht); font-weight: 600;
}
.afbakening::before { content: "✓"; position: absolute; left: 0; color: var(--kleur-marker); font-weight: 700; }

/* ---- 4. KOSTEN-PER-KWH — intro (35) + klasse-kaartenrij (65), wireframe-kolommen ---- */
.kosten-grid { display: grid; grid-template-columns: minmax(0,35fr) minmax(0,65fr); gap: var(--ruimte-600); align-items: start; }
.klasse-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--ruimte-400); align-items: stretch; }
.klasse-kaart { display: flex; flex-direction: column; }
.klasse-kaart h3 { font-size: var(--prim-type-m); margin-bottom: var(--ruimte-200); }
.klasse-kaart p { font-size: var(--prim-type-s); }
.klasse-prijs { margin-top: auto; padding-top: var(--ruimte-300); font-weight: 700; color: var(--prim-merk-donker); }
.klasse-visual { display: flex; align-items: flex-end; justify-content: center; height: calc(var(--ruimte-800) + var(--ruimte-200)); margin-bottom: var(--ruimte-400); }
.batt-wrap { display: flex; flex-direction: column; align-items: center; }
.batt-cap { width: var(--ruimte-400); height: var(--ruimte-100); background: var(--kleur-merk-vlak); border-radius: var(--prim-radius-sm) var(--prim-radius-sm) 0 0; }
.batt {
  width: var(--ruimte-700); position: relative; overflow: hidden;
  border: 1px solid var(--kleur-merk-vlak); border-radius: var(--prim-radius-sm);
  background: var(--prim-grijs-100);
}
.batt::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; background: var(--kleur-vlak-subtiel); border-top: 1px solid var(--kleur-merk-vlak); }
.batt--klein  { height: var(--ruimte-600); } .batt--klein::after  { height: 45%; }
.batt--middel { height: var(--ruimte-700); } .batt--middel::after { height: 60%; }
.batt--groot  { height: var(--ruimte-800); } .batt--groot::after  { height: 75%; }
.kosten-slot { margin-top: var(--ruimte-600); text-align: center; }
.kosten-slot p { max-width: var(--measure-narrow); margin-inline: auto; }
.kosten-slot .cta { margin-top: var(--ruimte-400); }

/* ---- 5. MERKEN-SCHAP — 3 gelijkwaardige kaarten; beeld bovenaan op volle kaartbreedte (R10),
        generiek productbeeld (logo-vrij, swap ná F-26) + tekst-woordmerk ---- */
.merken-intro { max-width: var(--measure-narrow); margin-bottom: var(--ruimte-500); }
.merk-kaart { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.merk-beeld { margin: 0; }
.merk-beeld img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.merk-naam-vlak { background: var(--kleur-vlak-subtiel); padding: var(--ruimte-400) var(--kaart-padding); text-align: center; }
.merk-naam-vlak h3 { font-family: var(--prim-font-accent-serif); font-size: var(--prim-type-xl); color: var(--prim-merk-donker); }
.merk-tekst { padding: var(--kaart-padding); display: flex; flex-direction: column; gap: var(--ruimte-300); flex: 1; }
.merk-tekst p { font-size: var(--prim-type-s); }
.merk-garantie { position: relative; padding-left: var(--ruimte-400); font-weight: 600; color: var(--prim-merk-donker); }
.merk-garantie::before { content: "✓"; position: absolute; left: 0; color: var(--kleur-marker); font-weight: 700; }
.merk-positie { color: var(--kleur-tekst-zacht); }
.merk-link { margin-top: auto; font-size: var(--prim-type-s); font-weight: 600; }
.merken-slot { margin-top: var(--ruimte-500); max-width: var(--measure-narrow); }

/* ---- 6. HOE-WERKT-HET — kaartenrij 3 (§6), stap 3 = zwaartepunt (merk-rand + beeld) ---- */
.hoe-kaart { display: flex; flex-direction: column; gap: var(--ruimte-300); }
.hoe-kaart h3 { font-size: var(--prim-type-m); }
.hoe-kaart--zwaartepunt { border-color: var(--kleur-merk-vlak); box-shadow: var(--prim-elevatie-md); }
.hoe-beeld { margin: 0 calc(-1 * var(--kaart-padding)); }
.hoe-beeld img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.hoe-kaart--zwaartepunt .hoe-beeld:first-child { margin-top: calc(-1 * var(--kaart-padding)); }

/* ---- 7. BEWIJS — asymmetrisch: breed hoofdcase-blok (62) + smalle kolom (38) — hét R15-moment ---- */
.bewijs-grid { display: grid; grid-template-columns: minmax(0,62fr) minmax(0,38fr); gap: var(--ruimte-600); align-items: start; }
.case-kaart { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.case-kaart img:not(.avatar) { width: 100%; aspect-ratio: 3/2; object-fit: cover; }   /* defect-fix avatar-weergave: kaartbeeld-regel raakt de avatar niet meer */
.case-tekst { padding: var(--kaart-padding); display: flex; flex-direction: column; gap: var(--ruimte-300); flex: 1; }
.case-bron { margin-top: auto; display: flex; align-items: center; gap: var(--ruimte-200); }
.avatar, .case-bron img.avatar {
  width: 48px; height: 48px; aspect-ratio: 1 / 1; flex: 0 0 48px; flex-shrink: 0;
  border-radius: 50%; background: var(--kleur-vlak-subtiel);
  color: var(--prim-merk-donker); display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: var(--prim-type-xs);
  object-fit: cover; overflow: hidden;   /* §10-anatomie: rond 48px-bolletje; defect-fix: wint expliciet van .case-kaart img (volle breedte/3:2) en img{height:auto} */
}
.case-naam { font-size: var(--prim-type-s); font-weight: 700; color: var(--prim-merk-donker); flex: 1 1 auto; min-width: 0; }   /* defect-fix: naamblok krijgt ruimte, geen afkapping */
.case-meta { display: flex; flex-direction: column; gap: var(--ruimte-100); flex: 1 1 auto; min-width: 0; }   /* mens-eis 2026-07-03: sterren-rij direct boven de naam */
.case-meta .case-naam { flex: none; }
.sterren { display: inline-flex; align-items: center; align-self: flex-start; background: var(--prim-merk-donker); color: var(--kleur-ster); font-size: var(--prim-type-m); letter-spacing: .08em; line-height: 1; padding: .22em .55em .28em; border-radius: 999px; }
.sterren .ster-uit { color: #8aa4ae; }   /* 4★: vier goud-gevulde + één gedimde — donker chipje: geel #f5b301 ongewijzigd (mens-eis), contrast 6,3:1 / dim 4,4:1 (site-brede consistentie) */
.bewijs-kolom { display: flex; flex-direction: column; gap: var(--ruimte-400); }
.bewijs-kolom .case-tekst { padding: var(--kaart-padding); }
.cases-link { font-size: var(--prim-type-s); }
.bewijs-kolom .cta { width: 100%; box-sizing: border-box; }

/* ---- 8. RISICO-OMKERING — smal gecentreerd (R15) ---- */
.risico-kaart { text-align: center; }
.risico-kaart .lijst-merk { display: inline-block; text-align: left; margin: var(--ruimte-400) auto; }
.risico-kaart .lijst-merk > li + li { margin-top: var(--ruimte-200); }

/* ---- 9. FAQ — accordion (details/summary), default alles ingeklapt ---- */
.faq-item { background: var(--kaart-bg); border: 1px solid var(--kleur-lijn); border-radius: var(--kaart-radius); margin-bottom: var(--ruimte-300); }
.faq-item summary { list-style: none; cursor: pointer; padding: var(--ruimte-400); display: flex; justify-content: space-between; align-items: center; gap: var(--ruimte-300); border-radius: inherit; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: var(--prim-type-m); }
.faq-item summary::after { content: "▾"; color: var(--kleur-merk); font-weight: 700; flex: none; }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item summary:hover { color: var(--kleur-merk); }
.faq-antwoord { padding: 0 var(--ruimte-400) var(--ruimte-400); }

/* ---- 10. EIND-CTA — gecentreerde formulier-kaart + mini-CTA; daarna site-brede footer ---- */
.sectie-eind { text-align: center; }
.eind-bewijs { color: var(--prim-merk-donker); font-weight: 600; margin: var(--ruimte-300) 0 var(--ruimte-500); }
.sectie-eind .formulier-kaart { text-align: left; }
.mini-cta { margin-top: var(--ruimte-500); }
.mini-cta .btn-secundair { font-size: var(--prim-type-s); }
.terugbel-veld { max-width: var(--measure-narrow); margin: var(--ruimte-300) auto 0; text-align: left; }
.terugbel-rij { display: flex; gap: var(--ruimte-200); }
.terugbel-rij .veld { flex: 1; }
.terugbel-succes { margin-top: var(--ruimte-300); font-weight: 600; color: var(--kleur-functioneel-groen); }

/* ---- footer (site-breed patroon: navigatie + juridisch — 7 items conform site-structuur) ---- */
.voet { background: var(--kleur-achtergrond); border-top: 1px solid var(--kleur-lijn); padding: var(--ruimte-600) var(--ruimte-300); }
.voet-nav { display: flex; flex-wrap: wrap; gap: var(--ruimte-300) var(--ruimte-400); list-style: none; margin: 0 0 var(--ruimte-400); padding: 0; justify-content: center; }
.voet-nav a { color: var(--kleur-tekst-zacht); text-decoration: none; font-size: var(--prim-type-s); font-weight: 600; }
.voet-nav a:hover { color: var(--kleur-merk); }
.voet-juridisch { text-align: center; font-size: var(--prim-type-s); color: var(--kleur-tekst-zacht); }

/* ---- Levendigheid (R14): scroll-reveal + hover-lift — alleen transform/opacity, 150–600ms ---- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(var(--ruimte-300)); transition: opacity var(--beweeg-duur) var(--beweeg-ease), transform var(--beweeg-duur) var(--beweeg-ease); }
  .js .reveal.is-zichtbaar { opacity: 1; transform: none; }
  .lift { transition: transform var(--beweeg-duur) var(--beweeg-ease), box-shadow var(--beweeg-duur) var(--beweeg-ease); }
  .lift:hover { transform: translateY(calc(-1 * var(--ruimte-100))); box-shadow: var(--prim-elevatie-md); }
  .cta { transition: background-color var(--beweeg-duur) var(--beweeg-ease), transform var(--beweeg-duur) var(--beweeg-ease); }
  .cta:hover { transform: translateY(calc(-1 * var(--ruimte-100) / 2)); }
  .voortgang > div { transition: width var(--beweeg-duur) var(--beweeg-ease); }
  .faq-item summary::after { transition: transform var(--beweeg-duur) var(--beweeg-ease); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .lift, .lift:hover, .cta, .voortgang > div, .faq-item summary::after { transition: none; transform: none; }
}

/* ---- Navigatie mobiel (~390px): canoniek hamburger-paneel ---- */
@media (max-width: 767px) {
  .nav-inner { gap: var(--ruimte-200); }
  .nav-menu { display: none; position: fixed; inset: 0; z-index: 60; background: var(--kleur-achtergrond); padding: var(--ruimte-500) var(--ruimte-400); overflow: auto; }
  .nav-menu.open { display: block; }
  .nav-links { flex-direction: column; gap: var(--ruimte-300); margin-top: var(--ruimte-400); }
  .nav-links a { font-size: var(--prim-type-m); min-height: var(--cta-min-hoogte); }
  .hamburger { display: inline-flex; }
  .nav-menu .menu-sluit { display: inline-flex; }
  .nav-cta { flex: 1; min-width: 0; }
  .site-nav .cta { width: 100%; box-sizing: border-box; padding: var(--ruimte-200); font-size: var(--prim-type-xs); }
}

/* ---- Mobiel (~390px): stapelvolgorde conform wireframe-mobiel ---- */
@media (max-width: 767px) {
  h1 { font-size: var(--prim-type-xl); }
  h2 { font-size: var(--prim-type-l); }
  .hero-grid {
    grid-template-columns: minmax(0,1fr);
    grid-template-areas: "kop" "vertrouwen" "form" "subzin" "beeld";   /* stapel 4-5-6-7-8 */
  }
  .hero-beeld img { aspect-ratio: 16/9; }   /* beeld gereduceerd tot strip (wireframe stapel 8) */
  .kosten-grid { grid-template-columns: minmax(0,1fr); gap: var(--ruimte-500); }
  .klasse-grid { grid-template-columns: minmax(0,1fr); }               /* klein → groot (stapel 16-18) */
  .klasse-visual { height: auto; justify-content: flex-start; }
  .batt--klein, .batt--middel, .batt--groot { height: var(--ruimte-600); }
  .bewijs-grid { grid-template-columns: minmax(0,1fr); gap: var(--ruimte-400); }
}
