/*
 * Thuisrendement.nl: opmaak van de site.
 * Overgenomen uit 01-demo/index.html. De rekentool, labels, snelle check,
 * rekenvoorbeelden en het postcodeveld hebben hun eigen stijl in rekentool.css.
 */

@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/atkinson-hyperlegible-400.woff) format('woff'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/atkinson-hyperlegible-700.woff) format('woff'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/atkinson-hyperlegible-400-italic.woff) format('woff'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: italic; font-weight: 700; font-display: swap; src: url(../fonts/atkinson-hyperlegible-700-italic.woff) format('woff'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/bricolage-grotesque.woff) format('woff'); }

:root {
  --bg: #F3F5F7; --surface: #FFFFFF; --ink: #16202A; --muted: #566272; --line: #D3DAE1;
  --primary: #1D4F91; --primary-ink: #FFFFFF; --primary-soft: #E3ECF8; --focus: #F7A51C;
  --geel: #FFE600; /* het geel van het logo is #F2C200 */
  --kop: 'Bricolage Grotesque', 'Atkinson Hyperlegible', system-ui, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 120px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Atkinson Hyperlegible', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem; line-height: 1.6; -webkit-text-size-adjust: 100%;
}
h1, h2, h3 { font-family: var(--kop); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 7vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 4.5vw, 2rem); font-weight: 800; margin-top: 1.6em; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--primary); }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* Naar de inhoud (voor toetsenbord en schermlezer) */
.overslaan { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--ink); color: var(--surface); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.overslaan:focus { top: 12px; }

/* Kop */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1040px; margin: 0 auto; padding: 12px 20px 8px; }
.logo { font-family: var(--kop); font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo img { width: 26px; height: 26px; }
.nav { display: flex; gap: 4px; overflow-x: auto; max-width: 1040px; margin: 0 auto; padding: 0 12px 10px; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; padding: 8px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: .95rem; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current] { background: var(--primary-soft); color: var(--ink); }

/* Knoppen */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 10px; font: inherit; font-weight: 700; text-decoration: none; border: 2px solid var(--primary); cursor: pointer; text-align: center; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-small { min-height: 40px; padding: 0 14px; font-size: .95rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Pagina */
main { display: block; }
.page { max-width: 1040px; margin: 0 auto; padding: 32px 20px 64px; }
.prose { max-width: 680px; }
.breed { max-width: 860px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.updated { font-size: .9rem; color: var(--muted); margin-bottom: 24px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; }
.crumbs li + li::before { content: "\203A"; margin: 0 8px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); }
.prose h3 { margin-top: 1.4em; }
h2[id] { scroll-margin-top: 120px; }

/* Inhoudsopgave */
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px 6px; margin: 20px 0 8px; }
.toc-kop { font-family: var(--kop); font-weight: 700; margin: 0 0 6px; }
.toc ol { margin: 0 0 8px; padding-left: 1.3em; }
.toc li { margin-bottom: 4px; }

/* Artikelkaartjes (kennisbank, 'Lees ook', 'Meer over') */
.more { margin-top: 40px; }
.more h2 a { color: inherit; text-decoration: none; }
.more h2 a:hover { color: var(--primary); }
.cards { list-style: none; padding: 0; margin: 12px 0 8px; display: grid; gap: 14px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.cards li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.cards li > a { font-family: var(--kop); font-weight: 700; font-size: 1.08rem; line-height: 1.25; text-decoration: none; display: block; margin-bottom: 6px; }
.cards li > a:hover { text-decoration: underline; }
.cards p { margin: 0; font-size: .95rem; color: var(--muted); }
.cards .card-meta { margin-top: 8px; font-size: .85rem; }

/* Homepage */
.hero { display: grid; gap: 32px; align-items: center; padding-top: 8px; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.1fr 1fr; gap: 48px; } }
.hero .trk-postcode { margin-top: 24px; }
.usps { list-style: none; padding: 0; margin: 18px 0 14px; display: grid; gap: 8px; }
.usps li { padding-left: 30px; position: relative; font-weight: 700; }
.usps li::before { content: "\2713"; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #00843F; color: #FFFFFF; font-size: .75rem; display: flex; align-items: center; justify-content: center; }
.howto { list-style: none; counter-reset: step; padding: 0; margin: 8px 0 0; display: grid; gap: 22px; }
@media (min-width: 760px) { .howto { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.howto li { counter-increment: step; position: relative; padding-top: 54px; }
.howto li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--primary); color: var(--primary); font-family: var(--kop); font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; }
.howto strong { display: block; font-family: var(--kop); font-size: 1.12rem; margin-bottom: 4px; }
.pillars { display: grid; gap: 28px; margin-top: 8px; }
@media (min-width: 760px) { .pillars { grid-template-columns: 1fr 1fr; } }
.pillar { border-top: 2px solid var(--ink); padding-top: 16px; }
.pillar h3 { margin-top: 0; }
.pillar ul { list-style: none; padding: 0; margin: 12px 0 0; }
.pillar li { border-bottom: 1px solid var(--line); }
.pillar li a { display: block; padding: 12px 0; font-weight: 700; text-decoration: none; color: var(--ink); }
.pillar li a:hover { color: var(--primary); }
.faq { max-width: 760px; border-top: 1px solid var(--line); }
.faq details { margin: 0; border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; }
.faq p { margin: 10px 0 0; }
.facts { display: grid; gap: 20px; margin-top: 8px; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts p { margin: 0; }
.facts strong { display: block; font-family: var(--kop); font-size: 1.1rem; }
.author { margin-top: 28px; max-width: 680px; padding-top: 18px; border-top: 1px solid var(--line); }
.author p { margin: 0; }

/* Artikelen */
.answer { background: var(--surface); border-left: 6px solid var(--geel); border-radius: 0 12px 12px 0; padding: 18px 20px; margin: 20px 0 8px; }
.answer p:last-child { margin: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin: 16px 0; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 560px; }
.table-wrap th, .table-wrap td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap tbody tr:last-child td, .table-wrap tbody tr:last-child th { border-bottom: 0; }
.table-wrap thead th { font-family: var(--kop); font-size: 1rem; }
.table-wrap table.t-compact { min-width: 0; }
.sources { margin-top: 40px; }
.sources ul { font-size: .92rem; padding-left: 1.2em; }
.sources li { margin-bottom: 6px; }

/* Offerteblok */
.offer { background: var(--primary-soft); border-radius: 14px; padding: 24px; margin-top: 40px; max-width: 680px; }
.offer h3 { font-size: 1.35rem; margin-top: 0; }
.offer .cta-row { margin-top: 0; }
.offer .disclosure { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }

/* Offertepagina */
.steps { padding-left: 1.4em; }
.steps li { margin-bottom: 10px; }
.placeholder { border: 2px dashed var(--line); border-radius: 12px; padding: 16px 18px; margin: 24px 0; color: var(--muted); font-size: .95rem; background: var(--surface); }
.placeholder strong { display: block; color: var(--ink); }

/* Voet */
footer { border-top: 1px solid var(--line); background: var(--surface); }
.foot { max-width: 1040px; margin: 0 auto; padding: 28px 20px 40px; display: grid; gap: 16px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot a { font-weight: 700; }
.foot p { margin: 0; }

/* ===== Homepage (2026-11) ===== */
.home { padding-top: 0; }
.home h2.h-kop { font-size: clamp(1.5rem, 3.6vw, 2.1rem); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 22px; }
.band { position: relative; box-shadow: 0 0 0 100vmax var(--band-bg); clip-path: inset(-1px -100vmax); background: var(--band-bg); }
.band-dark { --band-bg: #0E2744; color: #FFFFFF; }
.band-zacht { --band-bg: #FFFFFF; }
.home .h-sectie { padding: 64px 0 0; }
.home .h-sectie.band { padding: 56px 0 60px; margin-top: 64px; }
.home .h-sectie.band + .h-sectie { padding-top: 56px; }

/* Kop */
.h-hero { padding: 56px 0 64px; }
.h-hero-in { position: relative; }
.h-hero-in { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .h-hero-in { grid-template-columns: 1.15fr .85fr; gap: 56px; } .h-hero { padding: 80px 0 88px; } }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: #9FC3EE; margin: 0 0 14px; }
.h-hero h1 { color: #FFFFFF; font-weight: 700; letter-spacing: -0.03em; font-size: clamp(2.1rem, 5.6vw, 3.4rem); margin-bottom: .45em; }
.h-hero .lead { color: #C9D7E8; max-width: 44ch; font-size: 1.15rem; margin-bottom: 26px; }
.h-reken { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; font-size: .95rem; color: #C9D7E8; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); color: #FFFFFF; text-decoration: none; font-weight: 700; }
.chip:hover { background: rgba(255,255,255,.1); border-color: #FFFFFF; }
.h-kaart { background: #FFFFFF; color: var(--ink); border-radius: 18px; padding: 26px 24px 22px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.45); }
.h-kaart .trk-postcode { max-width: none; }
.h-kaart .usps { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); gap: 10px; }
.h-kaart .usps li { font-weight: 400; color: var(--muted); }
.h-kaart .usps li::before { background: #E6F4EC; color: #00843F; }

/* Zo werkt het */
.home .howto li { padding-top: 0; padding-left: 56px; }
.home .howto li::before { width: 40px; height: 40px; background: var(--primary-soft); border: 0; }
.home .howto strong { font-weight: 700; }

/* Onderwerpen */
.h-kop-rij { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.h-alles { font-weight: 700; text-decoration: none; white-space: nowrap; }
.topics { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.topic { display: flex; flex-direction: column; gap: 6px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px 18px; text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.topic:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -18px rgba(14,39,68,.45); border-color: #B9C6D4; }
.topic-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.ico { width: 24px; height: 24px; }
.topic-naam { font-family: var(--kop); font-weight: 700; font-size: 1.15rem; }
.topic-zin { color: var(--muted); font-size: .95rem; line-height: 1.45; flex: 1; }
.topic-meer { color: var(--primary); font-weight: 700; font-size: .9rem; margin-top: 8px; }

/* Nieuws */
.newsgrid { display: grid; gap: 16px; }
@media (min-width: 760px) { .newsgrid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.news { background: var(--bg); border-radius: 16px; padding: 22px 22px 20px; display: flex; flex-direction: column; }
.news h3 { font-weight: 700; font-size: 1.15rem; margin: 0 0 8px; }
.news p { color: var(--muted); font-size: .97rem; flex: 1; margin-bottom: 14px; }
.news a { font-weight: 700; text-decoration: none; }

/* Prijzen */
.h-intro { max-width: 60ch; margin-top: -10px; }
.h-prijs { display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) { .h-prijs { grid-template-columns: 1.1fr .9fr; gap: 28px; } }
.tegels { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.tegel { background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 16px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; transition: border-color .15s ease; }
.tegel:hover { border-color: var(--primary); }
.tegel-naam { font-weight: 700; font-size: .95rem; }
.tegel-bedrag { font-family: var(--kop); font-weight: 700; font-size: clamp(1.45rem, 3.4vw, 1.9rem); letter-spacing: -0.02em; color: var(--primary); }
.tegel-sub { color: var(--muted); font-size: .85rem; }
.home .trk-labels { border-radius: 16px; }

/* Vragen */
.h-faq { display: grid; gap: 8px 48px; }
@media (min-width: 900px) { .h-faq { grid-template-columns: .8fr 1.2fr; } }
.home .faq { border-top: 0; }
.home .faq details { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 0; margin-bottom: 10px; }
.home .faq summary { list-style: none; padding: 16px 48px 16px 18px; position: relative; font-size: 1rem; }
.home .faq summary::-webkit-details-marker { display: none; }
.home .faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--primary); }
.home .faq details[open] summary::after { content: "\2212"; }
.home .faq p { padding: 0 18px 16px; margin: 0; color: var(--muted); }

/* Waarom en afsluiter */
.home .facts p { background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: 20px; color: var(--muted); }
.home .facts strong { color: var(--ink); margin-bottom: 4px; }
.home .author { max-width: 760px; border-top: 0; padding-top: 0; color: var(--muted); }
.home .author strong { color: var(--ink); }
.h-slot { margin-top: 72px; padding: 48px 0 52px; display: grid; gap: 20px 40px; align-items: center; }
@media (min-width: 860px) { .h-slot { grid-template-columns: 1.3fr 1fr; } }
.h-slot h2 { color: #FFFFFF; margin: 0 0 8px; font-weight: 700; font-size: clamp(1.5rem, 3.6vw, 2rem); }
.h-slot p { color: #C9D7E8; margin: 0; }
.h-slot .disclosure { font-size: .85rem; margin-top: 12px; }
.btn-licht { background: #FFFFFF; color: #0E2744; border-color: #FFFFFF; }
.btn-licht:hover { background: #E3ECF8; }
.home + footer { border-top: 0; }
.topics { grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 960px) { .topics { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 599px) {
  .topic { padding: 16px 14px 14px; }
  .topic-zin { display: none; }
  .topic-ico { width: 38px; height: 38px; margin-bottom: 4px; }
  .topic-naam { font-size: 1.02rem; }
  .topic-meer { margin-top: 2px; }
  .topics .topic:last-child { grid-column: 1 / -1; }
  .home .h-sectie { padding-top: 48px; }
  .home .h-sectie.band { margin-top: 48px; padding: 44px 0 48px; }
  .h-hero { padding: 36px 0 44px; }
  .home .facts { gap: 10px; }
  .home .facts p { padding: 14px 16px; }
  .tegel { padding: 14px; }
}
.h-kaart .trk .trk-quick-row input[type="text"], .h-kaart .trk .trk-quick-row .trk-btn { flex: 1 1 100%; }
.h-kop-rij .h-kop { margin-bottom: 22px; }
@media (max-width: 599px) {
  .h-reken span { flex-basis: 100%; }
  .h-kop-rij { display: block; }
  .h-kop-rij .h-kop { margin-bottom: 6px; }
  .h-alles { display: inline-block; margin-bottom: 18px; }
}

/* Offerteformulier */
.af { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px; margin: 8px 0 32px; max-width: 760px; }
@media (min-width: 700px) { .af { padding: 28px; } }
.af-blok { border: 0; padding: 0; margin: 0 0 24px; }
.af-blok legend { font-family: var(--kop); font-weight: 700; font-size: 1.15rem; margin-bottom: 12px; padding: 0; }
.af-keuzes { display: flex; flex-wrap: wrap; gap: 8px; }
.af-keuzes label { position: relative; }
.af-keuzes input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.af-keuzes span { display: inline-block; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 700; cursor: pointer; }
.af-keuzes input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.af-keuzes input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.af-raster { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .af-raster { grid-template-columns: 1fr 1fr; } .af-breed { grid-column: 1 / -1; } }
.af-veld label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 5px; }
.af-opt { font-weight: 400; color: var(--muted); }
.af input:not([type=radio]):not([type=checkbox]), .af select, .af textarea { width: 100%; font: inherit; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.af input:focus, .af select:focus, .af textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--primary-soft); }
.af-toestemming { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; font-size: .95rem; }
.af-toestemming input { width: 20px; height: 20px; margin-top: 3px; flex: 0 0 auto; }
.af-knop { width: 100%; min-height: 54px; font-size: 1.05rem; }
.af-knop:disabled { opacity: .7; cursor: wait; }
.af-fout { background: #FDECEC; color: #8A1C12; border-radius: 10px; padding: 12px 14px; margin: 0 0 18px; }
.af-ww { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Offerteformulier in twee stappen (alleen met JavaScript) */
.af-stapsgewijs.af-op-1 .af-stap2 { display: none; }
.af-stapsgewijs.af-op-2 .af-blok1 { display: none; }
.af-stappen { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: .9rem; font-weight: 700; color: var(--muted); }
.af-balk { flex: 1; height: 6px; border-radius: 999px; background: var(--primary-soft); overflow: hidden; }
.af-balk span { display: block; height: 100%; width: 50%; background: var(--primary); border-radius: 999px; transition: width .25s ease; }
.af-op-2 .af-balk span { width: 100%; }
.af-pc { max-width: 260px; margin: 18px 0 0; }
.af-verder { margin-top: 18px; }
.af-verder-uitleg { margin: 10px 0 0; }
.af-terug { margin: 0 0 18px; padding: 10px 14px; background: var(--primary-soft); border-radius: 10px; font-weight: 700; }
.af-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--primary); text-decoration: underline; cursor: pointer; }

/* Actueel-balk op de homepage */
.h-actueel { display: flex; align-items: center; gap: 12px; margin: 28px 0 0; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--geel); border-radius: 12px; color: var(--ink); text-decoration: none; }
.h-actueel:hover { border-color: var(--primary); border-left-color: var(--geel); }
.h-actueel-label { flex: 0 0 auto; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); }
.h-actueel-tekst { flex: 1; }
.h-actueel-pijl { flex: 0 0 auto; font-size: 1.3rem; color: var(--primary); }
@media (max-width: 560px) { .h-actueel { flex-wrap: wrap; } .h-actueel-label { width: 100%; } .h-actueel-pijl { display: none; } }
.af [hidden] { display: none !important; }
