:root {
  --paper: #f6f8f5;
  --raised: #ffffff;
  --band: #eef2ee;
  --ink: #16201a;
  --soft: #4a5a50;
  --faint: #7d8b83;
  --rule: #d8e0d9;
  --accent: #6b4a2f;
  --accent-ink: #ffffff;
  --accent-soft: #efe7df;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #10160f;
    --raised: #18211a;
    --band: #141c15;
    --ink: #e7ece7;
    --soft: #a6b4aa;
    --faint: #7b8a80;
    --rule: #2a352d;
    --accent: #c79a72;
    --accent-ink: #14100b;
    --accent-soft: #2a2018;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.66;
  font-size: 1.02rem;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand, .button, .cta-note, ol.steps strong {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.5rem; }
.wrap.narrow { max-width: 36rem; }

section { padding: 3.2rem 0; }
section.band {
  background: var(--band);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.hero { padding: 4.5rem 0 3.4rem; border-bottom: 1px solid var(--rule); }
.mark { display: block; border-radius: 14px; margin-bottom: 1.2rem; }

.brand {
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.9rem;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
  margin: 0 0 0.8rem;
  max-width: 16em;
}

h2 {
  font-size: clamp(1.25rem, 3.2vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -0.022em;
  font-weight: 700;
  text-wrap: balance;
  margin: 0 0 0.8rem;
}

h3 {
  font-size: 1rem;
  letter-spacing: -0.008em;
  font-weight: 650;
  margin: 0 0 0.3rem;
}

p { margin: 0 0 1.05rem; max-width: 34rem; }
p:last-child { margin-bottom: 0; }

.lead { font-size: 1.14rem; color: var(--soft); max-width: 32rem; }
.small { font-size: 0.92rem; color: var(--soft); }

a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible, .button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1.1rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 620;
  font-size: 0.98rem;
  padding: 0.78rem 1.5rem;
  border-radius: 7px;
}
.button:hover { filter: brightness(1.08); }

.cta-note { font-size: 0.86rem; color: var(--faint); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.card {
  background: var(--raised);
  border: 1px solid var(--rule);
  border-radius: 7px;
  padding: 1.1rem 1.2rem;
}
.card p { font-size: 0.93rem; color: var(--soft); margin: 0; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.4rem 2rem;
  margin-top: 1.6rem;
}
.split p { margin: 0; }

ul.plain { list-style: none; padding: 0; margin: 1.2rem 0; max-width: 34rem; }
ul.plain li { padding: 0.6rem 0; border-bottom: 1px solid var(--rule); color: var(--soft); }
ul.plain li strong { color: var(--ink); font-weight: 650; }
ul.plain li:last-child { border-bottom: 0; }

ol.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1.4rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
ol.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.15rem 0.9rem;
}
ol.steps li::before {
  content: counter(step);
  grid-row: span 2;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
ol.steps strong { display: block; font-weight: 620; }
ol.steps span { color: var(--soft); font-size: 0.94rem; }

footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 3.4rem;
  color: var(--faint);
  font-size: 0.9rem;
}
footer p { margin: 0 0 0.4rem; }

/* Steunpagina's gebruiken dezelfde tokens met een smallere kolom. */
.doc { max-width: 38rem; margin: 0 auto; padding: 3.5rem 1.5rem 4rem; }
.doc h2 { margin-top: 2.2rem; }
.doc ul { padding-left: 1.1rem; margin-bottom: 1rem; max-width: 34rem; }
.doc li { margin-bottom: 0.35rem; }

/* Taalkeuze rechtsboven. Echte vlaggen als svg, geen emoji, zodat elk
   apparaat hetzelfde toont. Het tekstlabel staat erbij omdat een vlag een
   land aanduidt en geen taal, en dat is voor schermlezers onbruikbaar. */
.langbar {
  position: absolute;
  top: 0;
  right: 0;
  padding: 1.1rem 1.5rem;
  display: flex;
  gap: 0.4rem;
  z-index: 5;
}
.langbar a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.6rem;
  border-radius: 5px;
  border: 1px solid transparent;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 620;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--faint);
}
.langbar a:hover { color: var(--ink); }
.langbar a[aria-current="true"] {
  color: var(--ink);
  background: var(--raised);
  border-color: var(--rule);
}
.langbar svg { display: block; border-radius: 2px; flex: none; }
.langbar a:not([aria-current="true"]) svg { opacity: 0.55; }
.langbar a:hover svg { opacity: 1; }

.hero, .doc { position: relative; }

@media (max-width: 30rem) {
  .langbar { padding: 0.8rem 1rem; }
  .langbar a { padding: 0.28rem 0.45rem; }
}

/* ===== Sitekop met menu ===== */
header.site {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}
.bar {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark img { border-radius: 0; display: block; }
.wordmark img.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .wordmark img.logo-light { display: none; }
  .wordmark img.logo-dark { display: block; }
}

.menu { display: flex; gap: 0.2rem; margin-left: auto; }
.menu a {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--soft);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
}
.menu a:hover { color: var(--ink); background: var(--band); }
.menu a[aria-current="page"] { color: var(--accent); font-weight: 650; }

header.site .langbar { position: static; padding: 0; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: var(--raised);
  cursor: pointer;
  padding: 0 9px;
}
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 1px; }

.mobilemenu {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
  padding: 0.5rem 1rem 0.9rem;
  background: var(--paper);
}
.mobilemenu[hidden] { display: none; }
.mobilemenu a {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 550;
  color: var(--ink);
  text-decoration: none;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--rule);
}
.mobilemenu a:last-child { border-bottom: 0; }
.mobilemenu a[aria-current="page"] { color: var(--accent); }

@media (max-width: 46rem) {
  .menu { display: none; }
  .burger { display: flex; margin-left: auto; }
  header.site .langbar { margin-left: 0; }
}

/* De vaste kop maakt de oude absolute taalkeuze op de hero overbodig. */
.hero { padding-top: 3.2rem; }

/* ===== Voettekst ===== */
footer.site { border-top: 1px solid var(--rule); background: var(--band); padding: 0; margin-top: 0; }
.footwrap {
  max-width: 62rem;
  margin: 0 auto;
  padding: 2.6rem 1.5rem;
  display: grid;
  grid-template-columns: minmax(14rem, 1.2fr) 2fr;
  gap: 2rem;
}
.footbrand p { font-size: 0.9rem; color: var(--soft); margin-top: 0.8rem; max-width: 18rem; }
.footcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1.4rem; }
.footcols h2 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 650;
  margin: 0 0 0.6rem;
}
.footcols ul { list-style: none; padding: 0; margin: 0; }
.footcols li { margin-bottom: 0.35rem; }
.footcols a {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: var(--soft);
  text-decoration: none;
}
.footcols a:hover { color: var(--accent); text-decoration: underline; }
.footnote { border-top: 1px solid var(--rule); }
.footnote p {
  max-width: 62rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  font-size: 0.8rem;
  color: var(--faint);
}
@media (max-width: 46rem) { .footwrap { grid-template-columns: 1fr; } }

/* ===== Artikelen ===== */
.article { max-width: 42rem; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.article .eyebrow {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--accent);
  margin: 0 0 0.8rem;
}
.article h1 { max-width: 15em; }
.article .standfirst { font-size: 1.12rem; color: var(--soft); margin: 0.6rem 0 2rem; max-width: 32rem; }
.article h2 { margin-top: 2.4rem; }
.article h3 { margin-top: 1.6rem; }
.article p, .article ul, .article ol { margin-bottom: 1.05rem; }
.article ul, .article ol { padding-left: 1.15rem; }

.callout {
  background: var(--raised);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 7px;
  padding: 1rem 1.2rem;
  margin: 1.4rem 0;
}
.callout p { margin: 0; font-size: 0.95rem; }
.callout .calloutlabel {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.callout.warn { border-left-color: #9d4526; }
.callout.warn .calloutlabel { color: #9d4526; }

.appnote {
  background: var(--band);
  border: 1px solid var(--rule);
  border-radius: 7px;
  padding: 1rem 1.2rem;
  margin: 2rem 0 0;
  font-size: 0.92rem;
  color: var(--soft);
}

.sources { margin-top: 2.4rem; border-top: 1px solid var(--rule); padding-top: 1.2rem; }
.sources h2 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.sources ul { list-style: none; padding: 0; }
.sources li { font-size: 0.85rem; color: var(--soft); margin-bottom: 0.4rem; overflow-wrap: anywhere; }

/* ===== Artikeloverzicht en kaartrijen ===== */
.cardsection { max-width: 62rem; margin: 0 auto; padding: 3rem 1.5rem; }
.cardgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-top: 1.6rem; }
a.teaser {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--raised);
  border: 1px solid var(--rule);
  border-radius: 9px;
  padding: 1.2rem 1.3rem;
  text-decoration: none;
  color: var(--ink);
}
a.teaser:hover { border-color: var(--accent); }
a.teaser h3 { margin: 0; }
a.teaser p { margin: 0; font-size: 0.92rem; color: var(--soft); }
a.teaser .more {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  font-weight: 620;
  color: var(--accent);
  margin-top: 0.3rem;
}

/* Functieblokken met afwisselende richting */
.featurerow {
  max-width: 62rem;
  margin: 0 auto;
  padding: 2.6rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.featurerow.flip > .featuretext { order: 2; }
.featuretext h2 { margin-bottom: 0.6rem; }
.featuretext p { color: var(--soft); }
.featureshot {
  background: var(--band);
  border: 1px solid var(--rule);
  border-radius: 12px;
  min-height: 15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faint);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
}
@media (max-width: 46rem) {
  .featurerow { grid-template-columns: 1fr; gap: 1.2rem; }
  .featurerow.flip > .featuretext { order: 0; }
}
