/* Stichting Over de Dijken – huisstijl afgeleid van het logo (donkerblauw op lichtgrijs) */
:root {
  --blauw: #003078;
  --blauw-licht: #004878;
  --blauw-zacht: #e7ecf5;
  --grijs: #f0f0f0;
  --tekst: #1a1f2b;
  --tekst-zacht: #5a6272;
  --lijn: #d8dce4;
  --accent: #c8102e;
  --wrap: 1080px;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--tekst);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blauw); }
a:hover { color: var(--blauw-licht); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--blauw); margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.muted { color: var(--tekst-zacht); }
.lead { font-size: 1.2rem; color: var(--tekst-zacht); max-width: 42em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--blauw); color: #fff; padding: .5rem 1rem; }
.skip:focus { left: 0; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--lijn); background: #fff; position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--blauw); }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .01em; }
.brand small { font-size: .75rem; color: var(--tekst-zacht); text-transform: uppercase; letter-spacing: .08em; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
nav a { display: block; padding: .5rem .75rem; text-decoration: none; font-weight: 500; border-radius: 4px; color: var(--tekst); }
nav a:hover { background: var(--grijs); color: var(--blauw); }
nav a.active { color: var(--blauw); box-shadow: inset 0 -3px 0 var(--blauw); border-radius: 0; }
.menu-toggle { display: none; font: inherit; background: none; border: 1px solid var(--lijn); padding: .4rem .8rem; border-radius: 4px; color: var(--blauw); }

/* Hero */
.hero { background: var(--blauw); color: #fff; padding: clamp(3rem, 8vw, 6rem) 0; }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; margin-bottom: .6em; }
.hero p { font-size: 1.2rem; color: #dbe3f3; max-width: 36em; }
.hero img { width: min(340px, 70%); margin: 0 auto; }
.hero .acties { margin-top: 1.5rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.knop { display: inline-block; padding: .7rem 1.3rem; border-radius: 4px; font-weight: 600; text-decoration: none; border: 2px solid transparent; }
.knop.primair { background: #fff; color: var(--blauw); }
.knop.primair:hover { background: var(--blauw-zacht); }
.knop.secundair { border-color: rgba(255,255,255,.6); color: #fff; }
.knop.secundair:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.knop.blauw { background: var(--blauw); color: #fff; }
.knop.blauw:hover { background: var(--blauw-licht); color: #fff; }

/* Secties */
section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
section.grijs { background: var(--grijs); }
section.page { padding-top: clamp(2rem, 5vw, 3.5rem); }
.intro { text-align: left; max-width: 44em; margin-bottom: 2.5rem; }
.kaarten { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.kaart { background: #fff; border: 1px solid var(--lijn); border-top: 4px solid var(--blauw); padding: 1.5rem; border-radius: 6px; }
.kaart h3 { margin-top: 0; }
.kaart p:last-child { margin-bottom: 0; }
.niveaus { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; counter-reset: niveau; }
.niveau { padding: 1.25rem; background: var(--blauw-zacht); border-radius: 6px; }
.niveau strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--blauw); margin-bottom: .25rem; }
.niveau span { color: var(--tekst-zacht); font-size: .95rem; }

/* Inhoudspagina's */
.page .wrap { max-width: 800px; }
.page h2 { margin-top: 2em; }
.page ul, .page ol { padding-left: 1.3em; }
.page li { margin-bottom: .35em; }
dl.gegevens { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.5rem; margin: 1rem 0 2rem; }
dl.gegevens dt { font-weight: 600; color: var(--blauw); }
dl.gegevens dd { margin: 0; }
.notitie { background: var(--blauw-zacht); border-left: 4px solid var(--blauw); padding: 1rem 1.25rem; border-radius: 0 6px 6px 0; margin: 1.5rem 0; }
.notitie p:last-child { margin-bottom: 0; }
table { border-collapse: collapse; width: 100%; margin: 1rem 0 2rem; font-size: .95rem; }
th, td { text-align: left; padding: .55rem .75rem; border-bottom: 1px solid var(--lijn); vertical-align: top; }
th { color: var(--blauw); font-weight: 600; }
td.bedrag, th.bedrag { text-align: right; white-space: nowrap; }

/* Footer */
.site-footer { background: var(--tekst); color: #cfd4de; padding: 2.5rem 0; font-size: .95rem; margin-top: 2rem; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.site-footer .muted { color: #8d95a5; }

/* Mobiel */
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .acties { justify-content: center; }
  .hero img { display: none; }
  .hero p { margin-inline: auto; }
  .menu-toggle { display: inline-block; }
  nav ul { display: none; position: absolute; left: 0; right: 0; top: 76px; background: #fff; border-top: 1px solid var(--lijn); border-bottom: 3px solid var(--blauw); box-shadow: 0 12px 24px rgba(0,0,0,.18); flex-direction: column; padding: .5rem 1.25rem 1rem; }
  nav ul.open { display: flex; }
  nav a.active { box-shadow: inset 4px 0 0 var(--blauw); }
  .brand small { display: none; }
  dl.gegevens { grid-template-columns: 1fr; gap: 0 0; }
  dl.gegevens dd { margin-bottom: .75rem; }
}
