@import url("tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--zand); color: var(--inkt); font: 400 18px/1.6 var(--tekst); }
img, svg { max-width: 100%; display: block; }
a { color: var(--petrol); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--warmte); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--kop); letter-spacing: var(--kop-spatie); color: var(--petrol); margin: 0; text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(36px, 6vw, 62px); line-height: 1.03; }
h2 { font-weight: 700; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; }
h3 { font-weight: 600; font-size: 22px; line-height: 1.2; }
p { margin: 0 0 14px; max-width: 65ch; }
.binnen { max-width: var(--breed); margin: 0 auto; padding-inline: var(--goot); }
.label { font: 600 14px/1 var(--tekst); letter-spacing: .12em; text-transform: uppercase; color: var(--petrol); margin: 0 0 14px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 16px; background: var(--wit); padding: 12px 16px; z-index: 10; }

.knop { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: var(--radius); border: 0;
  background: var(--warmte); color: #1b1b1b; font: 600 18px/1 var(--tekst); text-decoration: none; cursor: pointer; }
.knop:hover { background: var(--warmte-diep); }
.knop.petrol { background: var(--petrol); color: var(--wit); } .knop.petrol:hover { background: var(--petrol-diep); }
.knop.klein { min-height: 44px; padding: 0 18px; font-size: 16px; }

/* Kop van de pagina */
.balk { background: var(--zand); border-bottom: 1px solid var(--lijn); position: sticky; top: 0; z-index: 5; }
.balk .binnen { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.balk .logo img { height: 34px; width: auto; }
.balk nav { display: flex; align-items: center; gap: 26px; }
.balk nav a:not(.knop) { color: var(--inkt); text-decoration: none; font-weight: 500; font-size: 17px; }
.balk nav a:not(.knop):hover { text-decoration: underline; }
@media (max-width: 860px) { .balk nav a:not(.knop) { display: none; } .balk .logo img { height: 28px; } }
.balk .knop { white-space: nowrap; }
@media (max-width: 520px) { .balk .knop .lang { display: none; } .balk .knop { text-transform: capitalize; } }

/* Hero */
.hero { color: var(--wit); background-color: var(--petrol);
  background-image: linear-gradient(90deg, rgba(15,61,62,.94) 0%, rgba(15,61,62,.86) 45%, rgba(15,61,62,.62) 100%), image-set(url("../assets/hero-woonwijk-1920.webp") type("image/webp"), url("../assets/hero-woonwijk-1920.jpg") type("image/jpeg"));
  background-size: cover; background-position: center 60%; }
@media (max-width: 860px) { .hero { background-image: linear-gradient(rgba(15,61,62,.9), rgba(15,61,62,.9)), url("../assets/hero-woonwijk-960.webp"); } }
.hero .binnen { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 7vw, 88px); }
.hero h1 { color: var(--wit); }
.hero .label { color: var(--warmte); }
.hero .lead { font-size: clamp(18px, 2.2vw, 21px); margin: 20px 0 28px; max-width: 46ch; }
.hero .punten { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 8px; font-size: 17px; }
.hero .punten li { padding-left: 28px; position: relative; }
.hero .punten li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; background: var(--warmte); clip-path: polygon(50% 0, 100% 42%, 100% 100%, 0 100%, 0 42%); }
@media (max-width: 860px) { .hero .binnen { grid-template-columns: 1fr; } }

/* Adrescheck */
.check { background: var(--wit); color: var(--inkt); border-radius: 10px; padding: clamp(20px, 3vw, 28px); }
.check h2 { font-size: 24px; margin-bottom: 6px; }
.check p { font-size: 16px; color: var(--inkt-zacht); }
.check form { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; margin-top: 14px; }
.check label { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.check input { height: 52px; border: 1.5px solid var(--petrol); border-radius: var(--radius); padding: 0 14px; font: 18px var(--tekst); color: var(--inkt); background: var(--wit); width: 100%; }
.check button { grid-column: 1 / -1; }
.check .uitslag { margin-top: 14px; padding: 14px 16px; border-radius: var(--radius); font-size: 16px; }
.check .uitslag[hidden] { display: none; }
.check .uitslag.ja { background: var(--mist); }
.check .uitslag.nee, .check .uitslag.fout { background: #F6E4DC; }
.check .uitslag b { display: block; font-size: 17px; margin-bottom: 4px; }
.check .uitslag .knop { margin-top: 12px; }

/* Secties */
section { padding-block: clamp(48px, 8vw, 96px); scroll-margin-top: 72px; }
section.wit { background: var(--wit); }
section.mist { background: var(--mist); }
.sectiekop { margin-bottom: clamp(24px, 4vw, 40px); }
.sectiekop p { margin-top: 12px; }

.stappen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; counter-reset: stap; }
.stappen li { background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--radius); padding: 22px 20px; counter-increment: stap; }
.stappen li::before { content: counter(stap); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 99px; background: var(--petrol); color: var(--wit); font: 700 19px var(--kop); margin-bottom: 14px; }
.stappen p { font-size: 16.5px; margin: 8px 0 0; }

.twee { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .twee { grid-template-columns: 1fr; } }
.lijst { margin: 0 0 14px; padding-left: 22px; } .lijst li { margin-bottom: 6px; }
.kader { background: var(--zand); border: 1px solid var(--lijn); border-radius: var(--radius); padding: 24px; }
.kader h3 { margin-bottom: 10px; }

.bedragen { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.bedrag { background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--radius); padding: 24px 22px; }
.bedrag .groot { font: 700 clamp(40px, 5vw, 54px)/1 var(--kop); letter-spacing: var(--kop-spatie); color: var(--petrol); margin-bottom: 10px; }
.bedrag p { font-size: 16.5px; margin: 0; }
.noot { font-size: 16px; color: var(--inkt-zacht); margin-top: 20px; }

.maatregelen { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.maatregelen div { border-top: 3px solid var(--petrol); padding-top: 14px; }
.maatregelen p { font-size: 16.5px; margin-top: 6px; }

.vragen { max-width: 780px; }
.vragen details { border-bottom: 1px solid var(--lijn); }
.vragen summary { cursor: pointer; padding: 18px 36px 18px 0; font: 600 19px/1.3 var(--tekst); list-style: none; position: relative; min-height: 48px; }
.vragen summary::-webkit-details-marker { display: none; }
.vragen summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 28px/1 var(--kop); color: var(--petrol); }
.vragen details[open] summary::after { content: "–"; }
.vragen details p { padding-bottom: 18px; margin: 0; }

.slot { background: var(--petrol); color: var(--wit); text-align: center; }
.slot h2 { color: var(--wit); } .slot p { margin: 14px auto 26px; }

footer { background: var(--petrol-diep); color: #D5E0DD; font-size: 16px; padding-block: 40px; }
footer .binnen { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
footer img { height: 44px; width: auto; margin-bottom: 14px; }
footer a { color: var(--wit); }
footer p { margin: 0 0 6px; }

/* Eenvoudige tekstpagina's */
.pagina { padding-block: clamp(40px, 7vw, 80px); }
.pagina h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 18px; }
.pagina h2 { font-size: 24px; margin: 28px 0 10px; }
