/* Kanaalwarmte Leusden, conceptsite. Eén stylesheet, geen externe bronnen. */

:root {
  --bg: #f4f7f5;
  --surface: #ffffff;
  --surface-2: #e8f0ee;
  --fg: #16262a;
  --muted: #4d5f61;
  --line: #d3dfdc;
  --water: #1d5f74;      /* kanaalblauw */
  --water-soft: #d6e8ee;
  --green: #2c6a4f;      /* oevergroen */
  --green-soft: #dcece3;
  --warm: #b5532a;       /* warmte-accent, spaarzaam */
  --warm-soft: #f6e3d8;
  --ground: #c9b89a;
  --link: #145a6e;
  --on-accent: #ffffff;
  --banner-bg: #fff3cd;
  --banner-fg: #5a4300;
  --radius: 12px;
  --max: 68rem;
  --gutter: 16px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1a1c;
    --surface: #162426;
    --surface-2: #1c2e30;
    --fg: #e4eeec;
    --muted: #a3b5b3;
    --line: #2b3f41;
    --water: #6fc0d6;
    --water-soft: #173a44;
    --green: #7cc8a0;
    --green-soft: #1a3a2c;
    --warm: #f0a07a;
    --warm-soft: #3d2519;
    --ground: #5b4f3c;
    --link: #8fd3e6;
    --on-accent: #0f1a1c;
    --banner-bg: #3a3112;
    --banner-fg: #f6e6a8;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.25; margin: 1.6em 0 0.5em; }
h1 { font-size: clamp(1.75rem, 5vw, 2.6rem); margin-top: 0.4em; }
h2 { font-size: clamp(1.35rem, 3.5vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p, ul, ol { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: var(--gutter); top: 8px; z-index: 10; background: var(--surface); padding: 8px 12px; }

/* Conceptbalk */
.concept-balk {
  background: var(--banner-bg);
  color: var(--banner-fg);
  font-size: 0.9rem;
  text-align: center;
  padding: 6px var(--gutter);
  border-bottom: 1px solid var(--line);
}

/* Kop en navigatie */
.kop { background: var(--surface); border-bottom: 1px solid var(--line); }
.kop .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-top: 12px; padding-bottom: 4px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 1.15rem; padding: 4px 0; }
.logo svg { width: 40px; height: 40px; flex: none; }
.logo .plaats { display: block; font-weight: 500; font-size: 0.85rem; color: var(--muted); letter-spacing: 0.02em; }
.logo-tekst { line-height: 1.15; }

.nav { width: 100%; }
.nav ul {
  list-style: none; margin: 0; padding: 0 0 8px;
  display: flex; gap: 4px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.nav a {
  display: block; white-space: nowrap;
  padding: 8px 12px; border-radius: 999px;
  color: var(--fg); text-decoration: none; font-size: 0.98rem;
}
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--water); color: var(--on-accent); font-weight: 600; }

/* Hoofdinhoud */
main { padding-bottom: 48px; }

.hero {
  position: relative;
  background: var(--water);
  color: #fff;
  overflow: hidden;
}
.hero img {
  width: 100%; height: clamp(220px, 42vw, 440px);
  object-fit: cover; object-position: center 55%;
}
.hero-tekst {
  background: var(--surface);
  color: var(--fg);
  border-radius: var(--radius);
  padding: 20px;
  margin: -64px auto 0;
  position: relative;
  max-width: calc(var(--max) - 2 * var(--gutter));
  box-shadow: 0 6px 24px rgb(0 0 0 / 0.12);
  border: 1px solid var(--line);
}
.hero-wrap { padding: 0 var(--gutter); }
.hero-tekst h1 { margin-top: 0; }
.lead { font-size: 1.15rem; color: var(--fg); }

.pagina-kop { padding-top: 24px; }
.pagina-kop .lead { max-width: 44rem; color: var(--muted); }

.knop {
  display: inline-block;
  background: var(--green); color: var(--on-accent);
  padding: 12px 20px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
  border: 2px solid var(--green);
}
.knop:hover { filter: brightness(1.08); }
.knop.licht { background: transparent; color: var(--green); }
.knoppen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

/* Fasebalk */
.fasebalk { margin: 20px 0 4px; }
.fasebalk ol {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px;
}
.fasebalk li {
  font-size: 0.85rem; text-align: center;
  padding: 8px 4px 6px; border-top: 5px solid var(--line); color: var(--muted);
  -webkit-hyphens: auto; hyphens: auto; overflow-wrap: normal;
}
.fasebalk li.nu { border-top-color: var(--green); color: var(--fg); font-weight: 700; }
.fasebalk .label { font-size: 0.9rem; color: var(--muted); margin: 0 0 4px; }

/* Kaarten en blokken */
.raster { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin: 24px 0; }
.kaart {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px;
}
.kaart h2, .kaart h3 { margin-top: 0; }
.kaart > :last-child { margin-bottom: 0; }
.kaart.water { background: var(--water-soft); border-color: transparent; }
.kaart.groen { background: var(--green-soft); border-color: transparent; }
.kaart.warm { background: var(--warm-soft); border-color: transparent; }

.melding {
  border-left: 5px solid var(--warm);
  background: var(--warm-soft);
  padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 16px 0;
}
.melding > :last-child { margin-bottom: 0; }

.placeholder { background: var(--surface-2); border: 1px dashed var(--muted); border-radius: 4px; padding: 0 4px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }

.tekst { max-width: 44rem; }

figure { margin: 24px 0; }
figure img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); }
figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }

/* Schema aquathermie */
.schema { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin: 16px 0 8px; }
.schema figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.schema h3 { margin: 0 0 8px; }
.schema svg { width: 100%; }
.schema text { font-family: inherit; font-size: 14px; fill: var(--fg); }
.schema .t-licht { fill: var(--on-accent); font-weight: 600; }
.schema .lucht { fill: var(--surface-2); }
.schema .water { fill: var(--water); }
.schema .golf { fill: none; stroke: var(--on-accent); stroke-opacity: 0.7; stroke-width: 2; }
.schema .bodem { fill: var(--ground); opacity: 0.55; }
.schema .opslag { fill: var(--warm); }
.schema .doos { fill: var(--surface); stroke: var(--green); stroke-width: 2.5; }
.schema .huis { fill: var(--green-soft); stroke: var(--green); stroke-width: 2.5; }
.schema .pijl { stroke: var(--warm); stroke-width: 4; fill: none; }
.schema .pijlpunt { fill: var(--warm); }
.schema .zon { fill: #e8b330; }
.schema .ijs { stroke: var(--water); stroke-width: 2.5; }

/* Tijdlijn */
.tijdlijn { list-style: none; margin: 24px 0; padding: 0; position: relative; }
.tijdlijn::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 3px; background: var(--line); }
.tijdlijn li { position: relative; padding: 0 0 24px 48px; }
.tijdlijn li::before {
  content: ""; position: absolute; left: 6px; top: 6px;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--muted);
}
.tijdlijn li.nu::before { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 5px var(--green-soft); }
.tijdlijn h2 { font-size: 1.2rem; margin: 0 0 4px; }
.tijdlijn p { margin-bottom: 0; }
.badge { display: inline-block; background: var(--green); color: var(--on-accent); font-size: 0.8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }

/* Veelgestelde vragen */
details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  margin: 0 0 10px; padding: 0 18px;
}
summary {
  cursor: pointer; font-weight: 600; padding: 14px 0; list-style-position: outside;
}
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
details > :last-child { margin-bottom: 16px; }

/* Formulieren */
form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 16px 0; }
fieldset { border: 0; margin: 0 0 16px; padding: 0; }
legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
label { display: block; font-weight: 600; margin: 12px 0 4px; }
.keuze label { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 6px 0; }
input[type="text"], input[type="email"], select {
  width: 100%; max-width: 28rem;
  font: inherit; color: var(--fg); background: var(--bg);
  border: 1px solid var(--muted); border-radius: 8px; padding: 10px 12px;
}
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; accent-color: var(--green); flex: none; }
button { font: inherit; }
button[disabled] {
  background: var(--surface-2); color: var(--muted);
  border: 2px dashed var(--muted); border-radius: 999px;
  padding: 10px 18px; font-weight: 600; cursor: not-allowed; margin-top: 12px;
}
.hint { font-size: 0.9rem; color: var(--muted); margin: 4px 0 0; }
.formulier-status {
  display: inline-block; background: var(--banner-bg); color: var(--banner-fg);
  font-weight: 700; padding: 4px 10px; border-radius: 6px; margin-bottom: 8px;
}

/* Nieuws */
.bericht { border-bottom: 1px solid var(--line); padding: 8px 0 16px; }
.bericht time { color: var(--muted); font-size: 0.92rem; }
.bericht h3 { margin: 4px 0 6px; }

.buurten { columns: 2 12rem; padding-left: 1.2em; }

.bron-lijst li { margin-bottom: 10px; }

/* Voet */
.voet { background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; padding: 24px 0 32px; }
.voet p { margin: 0 0 6px; }
.voet a { color: var(--link); }

@media (min-width: 760px) {
  .kop .wrap { flex-wrap: nowrap; justify-content: space-between; padding-bottom: 12px; }
  .nav { width: auto; }
  .nav ul { padding-bottom: 0; flex-wrap: wrap; justify-content: flex-end; overflow: visible; }
  .hero-tekst { padding: 28px 32px; margin-top: -96px; }
  .fasebalk li { font-size: 0.95rem; }
}

@media (max-width: 420px) {
  .fasebalk li { font-size: 0.72rem; padding-left: 0; padding-right: 0; }
}

.kaart + .kaart { margin-top: 12px; }
