/* =========================================================
   Besnijdenis – informatie | stijlblad
   Lichte, rustige opmaak met goede leesbaarheid.
   ========================================================= */

:root {
  --navy: #14213d;
  --navy-2: #1f3358;
  --accent: #1f7a8c;
  --accent-licht: #e4f2f5;
  --accent-donker: #155a67;
  --tekst: #1d2733;
  --tekst-zacht: #55616e;
  --achtergrond: #f5f7f9;
  --wit: #ffffff;
  --rand: #dbe2e9;
  --warm: #fff6e8;
  --warm-rand: #e8a33d;
  --rood: #b23a3a;
  --rood-licht: #fbeaea;
  --radius: 14px;
  --schaduw: 0 1px 2px rgba(20, 33, 61, .06), 0 6px 18px rgba(20, 33, 61, .06);
  --max: 1080px;
  --tekst-max: 68ch;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--tekst);
  background: var(--achtergrond);
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Typografie ---------- */
h1, h2, h3 { line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 .5rem; letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin: 2.6rem 0 .8rem; padding-top: .4rem; }
h3 { font-size: 1.15rem; margin: 1.6rem 0 .5rem; }
p, li { max-width: var(--tekst-max); }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.2rem; margin: 0 0 1.2rem; }
li { margin-bottom: .35rem; }
strong { color: var(--navy); }
a { color: var(--accent-donker); }
.lead { font-size: 1.2rem; color: var(--tekst-zacht); margin-bottom: 1.4rem; }
.kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .4rem;
}

/* ---------- Koptekst & menu ---------- */
.site-kop {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 60%, var(--accent) 140%);
  color: #fff;
}
.site-kop .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.6rem 1.25rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.merk {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -.01em;
  color: #fff;
  text-decoration: none;
}
.merk span { color: #8fd3e0; }
.site-kop .slogan {
  margin: 0;
  font-size: .95rem;
  opacity: .85;
  max-width: 40ch;
}

.menu {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rand);
  box-shadow: 0 2px 10px rgba(20, 33, 61, .05);
}
.menu ul {
  list-style: none;
  margin: 0 auto;
  padding: .6rem 1.25rem;
  max-width: var(--max);
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.menu li { margin: 0; }
.menu a {
  display: inline-block;
  padding: .4rem .85rem;
  border-radius: 999px;
  color: var(--tekst);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.menu a:hover { background: var(--accent-licht); color: var(--accent-donker); }
.menu a[aria-current="page"] { background: var(--navy); color: #fff; }

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}
main.pagina {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}
.pagina-kop {
  background: var(--wit);
  border-bottom: 1px solid var(--rand);
}
.pagina-kop .wrap { padding-top: 2.4rem; padding-bottom: 2rem; }
.pagina-kop p { color: var(--tekst-zacht); font-size: 1.15rem; margin: 0; max-width: 62ch; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

/* ---------- Kaarten & blokken ---------- */
.kaart {
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--schaduw);
  margin: 1.1rem 0;
}
.kaart > :first-child { margin-top: 0; }
.kaart > :last-child { margin-bottom: 0; }
.kaart h3 { margin-top: 0; }

.kaart-link {
  display: block;
  height: 100%;
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--schaduw);
  text-decoration: none;
  color: var(--tekst);
  transition: transform .15s, border-color .15s;
}
.kaart-link:hover { transform: translateY(-2px); border-color: var(--accent); }
.kaart-link .nummer {
  display: inline-flex;
  width: 2rem; height: 2rem;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent-licht);
  color: var(--accent-donker);
  font-weight: 700;
  margin-bottom: .6rem;
  font-size: .9rem;
}
.kaart-link h3 { margin: 0 0 .3rem; font-size: 1.08rem; }
.kaart-link p { margin: 0; font-size: .95rem; color: var(--tekst-zacht); }

.tip, .let-op, .belangrijk {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.3rem 0;
  display: flex;
  gap: .9rem;
  align-items: flex-start;
}
.tip > :last-child, .let-op > :last-child, .belangrijk > :last-child { margin-bottom: 0; }
.tip p, .let-op p, .belangrijk p { margin: 0; }
.tip-icoon, .let-op-icoon, .belangrijk-icoon {
  flex: 0 0 auto;
  width: 1.9rem; height: 1.9rem;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: .95rem;
  color: #fff;
}
.tip { background: var(--accent-licht); border-left: 4px solid var(--accent); }
.tip .tip-icoon { background: var(--accent); }
.let-op { background: var(--warm); border-left: 4px solid var(--warm-rand); }
.let-op .let-op-icoon { background: var(--warm-rand); }
.belangrijk { background: var(--rood-licht); border-left: 4px solid var(--rood); }
.belangrijk .belangrijk-icoon { background: var(--rood); }

/* ---------- Illustraties ---------- */
figure.illustratie {
  margin: 1.6rem 0;
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--schaduw);
}
figure.illustratie svg { width: 100%; height: auto; }
figure.illustratie figcaption {
  font-size: .9rem;
  color: var(--tekst-zacht);
  margin-top: .8rem;
  text-align: center;
}
.svg-lijn { stroke: var(--navy); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.svg-huid { fill: #f3d6c4; stroke: var(--navy); stroke-width: 2; }
.svg-huid-donker { fill: #e7bfa6; stroke: var(--navy); stroke-width: 2; }
.svg-voorhuid { fill: #f7e3d6; stroke: var(--navy); stroke-width: 2; }
.svg-accent { fill: var(--accent); }
.svg-accent-licht { fill: var(--accent-licht); }
.svg-tekst { font-family: "Segoe UI", system-ui, sans-serif; font-size: 15px; fill: var(--navy); }
.svg-tekst-klein { font-family: "Segoe UI", system-ui, sans-serif; font-size: 13px; fill: var(--tekst-zacht); }
.svg-label-lijn { stroke: var(--accent); stroke-width: 1.5; fill: none; }
.svg-rood { fill: var(--rood); }
.svg-warm { fill: var(--warm); }

/* ---------- Tijdlijn (herstel) ---------- */
.tijdlijn {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  position: relative;
}
.tijdlijn::before {
  content: "";
  position: absolute;
  left: 15px; top: 6px; bottom: 6px;
  width: 3px;
  background: linear-gradient(var(--accent), var(--navy-2));
  border-radius: 3px;
}
.tijdlijn li {
  position: relative;
  padding: 0 0 1.4rem 3.2rem;
  margin: 0;
  max-width: none;
}
.tijdlijn li::before {
  content: "";
  position: absolute;
  left: 7px; top: 4px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--wit);
  border: 3px solid var(--accent);
}
.tijdlijn .moment {
  display: inline-block;
  font-weight: 700;
  color: var(--accent-donker);
  background: var(--accent-licht);
  padding: .1rem .6rem;
  border-radius: 999px;
  font-size: .88rem;
  margin-bottom: .25rem;
}
.tijdlijn h3 { margin: .2rem 0 .3rem; font-size: 1.05rem; }
.tijdlijn p { margin: 0; color: var(--tekst-zacht); }

/* ---------- Stappen (genummerd) ---------- */
.stappen {
  list-style: none;
  counter-reset: stap;
  padding: 0;
  margin: 1.2rem 0;
}
.stappen li {
  counter-increment: stap;
  position: relative;
  padding: .9rem 1rem .9rem 3.4rem;
  margin: 0 0 .7rem;
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: 12px;
  max-width: none;
}
.stappen li::before {
  content: counter(stap);
  position: absolute;
  left: .9rem; top: .85rem;
  width: 1.8rem; height: 1.8rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
}

/* ---------- Vinkjes ---------- */
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.7rem; margin-bottom: .5rem; }
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 800;
}

/* ---------- Vergelijkingstabel ---------- */
.tabel-wrap { overflow-x: auto; margin: 1.2rem 0; border-radius: var(--radius); border: 1px solid var(--rand); background: var(--wit); box-shadow: var(--schaduw); }
table { width: 100%; border-collapse: collapse; min-width: 420px; }
th, td { padding: .75rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rand); }
thead th { background: var(--navy); color: #fff; font-weight: 600; }
tbody th { background: var(--accent-licht); color: var(--navy); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: none; }

/* ---------- Begrippen ---------- */
dl.begrippen { margin: 0; }
dl.begrippen > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--rand);
}
dl.begrippen > div:last-child { border-bottom: none; }
dl.begrippen dt { font-weight: 700; color: var(--navy); }
dl.begrippen dd { margin: 0; color: var(--tekst); }

/* ---------- Vragen (details) ---------- */
details.vraag {
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: 12px;
  padding: 0;
  margin: .6rem 0;
  box-shadow: var(--schaduw);
}
details.vraag summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.2rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
details.vraag summary::-webkit-details-marker { display: none; }
details.vraag summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); }
details.vraag[open] summary::after { content: "–"; }
details.vraag > div { padding: 0 1.2rem 1.1rem; }
details.vraag > div > :last-child { margin-bottom: 0; }

/* ---------- Kostenbalken ---------- */
.bereik { margin: .8rem 0 1.2rem; }
.bereik-label { display: flex; justify-content: space-between; font-weight: 600; color: var(--navy); margin-bottom: .3rem; }
.bereik-balk { height: 14px; background: var(--accent-licht); border-radius: 999px; position: relative; overflow: hidden; }
.bereik-vulling { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, var(--accent), var(--navy-2)); border-radius: 999px; }

/* ---------- Startpagina ---------- */
.intro-hero { padding: 2.2rem 0 1rem; }
.intro-hero .lead { font-size: 1.2rem; color: var(--tekst-zacht); max-width: 60ch; }
.intro-hero h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); }
.hero-plaat { margin: 1.4rem 0 2rem; }

/* ---------- Voet ---------- */
footer.site-voet {
  background: var(--navy);
  color: #c9d3de;
  font-size: .92rem;
  margin-top: 2rem;
}
footer.site-voet .wrap { padding-top: 2rem; padding-bottom: 2rem; }
footer.site-voet p { margin: 0 0 .4rem; max-width: none; }
footer.site-voet strong { color: #fff; }

/* ---------- Responsief ---------- */
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .grid-2 { grid-template-columns: 1fr; }
  dl.begrippen > div { grid-template-columns: 1fr; gap: .2rem; }
  .menu ul { padding: .5rem .8rem; }
  .menu a { font-size: .85rem; padding: .35rem .65rem; }
  main.pagina { padding-top: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
