/*
 * 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="page"] { 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 a { color: var(--muted); }
.prose h3 { margin-top: 1.4em; }

/* 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; }
