/* Kinderpraktijk de Optimist - style.css
   Statische site, geen JavaScript, geen externe verzoeken.
   Kleurtokens doorgemeten op contrast (bouwdocument punt 5). */

/* ---------- Fonts (zelf gehost) ---------- */
@font-face {
  font-family: "Lora";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/lora-500.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/nunito-400.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/nunito-600.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/nunito-700.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --kop:          #1f3c50;
  --tekst:        #42586a;
  --link:         #1d5b80;
  --cyaan-decor:  #21a7c9;  /* alleen decoratie, nooit tekst */
  --cyaan-tekst:  #17748c;
  --groen-decor:  #7dc24b;  /* alleen decoratie en knopvlak, nooit tekst */
  --groen-donker: #6cae3e;  /* hover van de knop */
  --groen-tekst:  #4d7d2a;
  --band-tekst:   #d7edf6;  /* lichte tekst op donkerblauw vlak */
  --band-vink:    #cde8b5;  /* vinkjes op donkerblauw vlak */
  --rand:         #eadfc9;
  --bg:           #faf6ee;
  --bg-licht:     #dff4fa;
  --wit:          #ffffff;
  --zij:          clamp(20px, 5vw, 56px);
}

/* ---------- Basis ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--tekst);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
h1, h2, h3 {
  font-family: "Lora", Georgia, serif;
  font-weight: 500;
  color: var(--kop);
  line-height: 1.2;
  margin: 0 0 0.5em;
  text-wrap: pretty;
}
h1 { font-size: clamp(30px, 2.2vw + 22px, 46px); }
h1.groot { font-size: clamp(32px, 2.8vw + 22px, 54px); line-height: 1.15; }
h2 { font-size: clamp(24px, 1.2vw + 19px, 32px); }
p { margin: 0 0 1em; max-width: 65ch; }
img { display: block; max-width: 100%; height: auto; }
b, strong { color: var(--kop); }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--cyaan-tekst); }
p a, .tekstlink { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 2px; }

.omslag { max-width: 1440px; margin: 0 auto; background: var(--bg); }

/* Skip-link */
.skip-link {
  position: absolute;
  left: 8px; top: -60px;
  background: var(--wit);
  color: var(--link);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 8px;
  border: 2px solid var(--link);
  z-index: 100;
  transition: top .15s ease-out;
}
.skip-link:focus { top: 8px; }

/* ---------- Topbar ---------- */
.topbar {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  padding: 10px var(--zij);
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--rand);
}
.topbar a { color: var(--tekst); padding: 4px 0; }
.topbar a:hover { color: var(--cyaan-tekst); }

/* ---------- Header en menu ---------- */
.siteheader {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 14px var(--zij);
  border-bottom: 1px solid var(--rand);
}
.merk { display: flex; align-items: center; gap: 14px; min-height: 44px; }
.merk img { width: 96px; height: 96px; object-fit: contain; }
.merk span {
  font-family: "Lora", Georgia, serif;
  font-weight: 500;
  font-size: 23px;
  color: var(--link);
}
.hoofdmenu {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 700;
  font-size: 16px;
}
.hoofdmenu a { color: var(--tekst); padding: 10px 0; border-bottom: 3px solid transparent; }
.hoofdmenu a:hover { color: var(--cyaan-tekst); }
.hoofdmenu a[aria-current="page"] {
  color: var(--cyaan-tekst);
  border-bottom-color: var(--groen-decor);
}
.hoofdmenu .contact-pill {
  border: 2px solid var(--link);
  color: var(--link);
  padding: 10px 22px;
  border-radius: 999px;
}
.hoofdmenu .contact-pill:hover { color: var(--cyaan-tekst); border-color: var(--cyaan-tekst); }
.hoofdmenu .contact-pill[aria-current="page"] {
  color: var(--cyaan-tekst);
  border-color: var(--groen-decor);
}

/* Mobiel uitklapmenu zonder JavaScript: verborgen checkbox.
   De checkbox is onzichtbaar en niet klikbaar; het label is de knop. */
.menu-schakel {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
  margin: 0;
  display: none;
}
.menu-knop {
  display: none;
  margin-left: auto;
  width: 48px; height: 48px;
  border: 2px solid var(--link);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.menu-knop span {
  display: block;
  width: 22px; height: 3px;
  border-radius: 2px;
  background: var(--link);
}
.menu-schakel:focus-visible + .menu-knop { outline: 2px solid var(--link); outline-offset: 2px; }

@media (max-width: 767px) {
  .topbar { display: none; }
  .menu-knop { display: flex; }
  .menu-schakel { display: block; }
  .siteheader { flex-wrap: wrap; gap: 10px; }
  .merk { gap: 10px; }
  .merk img { width: 52px; height: 52px; }
  .merk span { font-size: 17px; }
  .hoofdmenu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
    padding-top: 10px;
  }
  .hoofdmenu a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--rand);
    border-left: 4px solid transparent;
  }
  .hoofdmenu a[aria-current="page"] {
    border-bottom-color: var(--rand);
    border-left-color: var(--groen-decor);
    padding-left: 12px;
  }
  .hoofdmenu .contact-pill { border-radius: 10px; text-align: center; margin-top: 12px; border-bottom: 2px solid var(--link); }
  .menu-schakel:checked ~ .hoofdmenu { display: flex; }
}

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  background: var(--groen-decor);
  color: var(--kop);
  font-weight: 700;
  font-size: 17px;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
}
.btn:hover { background: var(--groen-donker); color: var(--kop); }

/* ---------- Secties ---------- */
.sectie { padding: 56px var(--zij); }
.sectie-strak { padding: 0 var(--zij) 56px; }

.eyebrow {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cyaan-tekst);
  margin-bottom: 12px;
}

/* Hero (Home) */
.hero {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 48px;
  align-items: center;
  padding: 56px var(--zij);
}
.hero .intro { font-size: 18px; line-height: 1.7; }
.hero em { font-style: italic; color: var(--cyaan-tekst); }
.hero-acties { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.hero-beeld { display: grid; justify-items: center; gap: 20px; }
.hero-beeld img.rond {
  width: min(420px, 80vw);
  height: min(420px, 80vw);
  border-radius: 50%;
  object-fit: cover;
}
.citaat {
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: 12px;
  padding: 14px 22px;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(31,60,80,.08);
}
.citaat-serif { font-style: italic; font-family: "Lora", Georgia, serif; }

/* Tweekoloms kop + lijst */
.kop-lijst {
  border-top: 1px solid var(--rand);
  padding-top: 44px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}
.lijst-2k { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 6px 40px; }
.lijst-2k > * {
  display: flex;
  gap: 14px;
  align-items: baseline;
  border-bottom: 1px solid var(--rand);
  padding: 14px 0;
  color: var(--tekst);
}
.bol {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
  position: relative;
  top: -2px;
}
.bol-c { background: var(--cyaan-decor); }
.bol-g { background: var(--groen-decor); }
.bol-b { background: var(--link); }

/* Donkerblauwe band */
.band {
  background: var(--link);
  color: var(--band-tekst);
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 48px;
  align-items: center;
  padding: 56px var(--zij);
}
.band h2 { color: var(--wit); }
.band a { color: var(--wit); text-decoration: underline; text-underline-offset: 3px; }
.band img { width: 100%; border-radius: 16px; object-fit: cover; }
.band .vinklijst { display: grid; gap: 14px; font-size: 17px; }
.band .vinklijst > * { display: flex; gap: 14px; align-items: baseline; }
.band .vink { color: var(--band-vink); font-weight: 700; }
.band .vinklijst b { color: var(--wit); }

/* Stappenrij (Home) */
.stappen {
  padding: 56px var(--zij);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stap { border-left: 1px solid var(--rand); padding: 4px 24px 12px; }
.stap .nr { font-family: "Lora", Georgia, serif; font-size: 44px; color: var(--cyaan-tekst); }
.stap b { display: block; margin: 6px 0; }
.stap span { font-size: 15px; line-height: 1.6; }
.stap-kaart { background: var(--wit); border-radius: 0 12px 12px 0; }

/* Witte kaarten */
.kaart {
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: 20px;
  overflow: hidden;
}
.kaart-inhoud { padding: 32px clamp(20px, 3vw, 40px); }
.kaart img.kaart-foto { width: 100%; height: 260px; object-fit: cover; }
.kaartrij { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; }

.stiplijst { display: grid; gap: 10px; font-size: 16px; margin: 0 0 1em; padding: 0; list-style: none; }
.stiplijst li { display: flex; gap: 12px; align-items: baseline; }
.stiplijst .bol { width: 9px; height: 9px; }

/* Werkwijze-stappen */
.stap-blok {
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: 20px;
  padding: 32px clamp(20px, 3.5vw, 44px);
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: clamp(16px, 3vw, 36px);
  align-items: center;
}
.stap-blok .nr { font-family: "Lora", Georgia, serif; font-size: 64px; color: var(--cyaan-tekst); line-height: 1; }
.stap-blok h2 { font-size: 26px; margin-bottom: 8px; }
.stap-blok p { font-size: 16.5px; margin: 0; }
.badge {
  background: var(--bg-licht);
  color: var(--link);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
  align-self: start;
  margin-top: 6px;
}

/* Tarieventabel */
.tarieven { background: var(--wit); border: 1px solid var(--rand); border-radius: 20px; overflow: hidden; }
.tarieven table { width: 100%; border-collapse: collapse; }
.tarieven th {
  background: var(--link);
  color: var(--wit);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  text-align: left;
  padding: 18px clamp(16px, 3vw, 44px);
}
.tarieven td {
  padding: 20px clamp(16px, 3vw, 44px);
  border-top: 1px solid var(--rand);
  vertical-align: baseline;
}
.tarieven tr > *:nth-child(2), .tarieven tr > *:nth-child(3) { text-align: right; white-space: nowrap; }
.tarieven .dienst-sub { color: var(--tekst); font-weight: 400; }
.tarieven .prijs { font-weight: 700; color: var(--kop); }
.tarieven .gratis { font-weight: 700; color: var(--groen-tekst); }

/* Afsluitbanner (wit) */
.cta-kaart {
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: 16px;
  padding: 36px clamp(24px, 4vw, 48px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-kaart h2 { font-size: 28px; margin-bottom: 6px; }
.cta-kaart p { margin: 0; font-size: 16.5px; }

/* Afsluitbanner (blauw) */
.cta-band {
  background: var(--link);
  padding: 48px var(--zij);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--wit); font-size: 28px; margin-bottom: 6px; }
.cta-band p { color: var(--band-tekst); margin: 0; font-size: 16.5px; }

/* Contactkaarten (Contact) */
.contactkaart {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: 14px;
  padding: 18px 22px;
}
.contactkaart .ikoon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-licht);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--link);
  flex: 0 0 auto;
}
.contactkaart a { font-weight: 700; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Contactblok (identiek op elke pagina) ---------- */
.contactblok {
  background: var(--bg-licht);
  padding: 40px var(--zij);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.contactblok .kop { font-family: "Lora", Georgia, serif; font-size: 22px; color: var(--kop); }
.contactblok .acties { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.contactblok address { font-style: normal; font-size: 15px; }

/* ---------- Footer ---------- */
.sitefooter {
  border-top: 1px solid var(--rand);
  padding: 32px var(--zij) 40px;
  display: flex;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.sitefooter a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Vaste belbalk op mobiel ----------
   Aan/uit: de balk verschijnt alleen als <body> de klasse "met-belbalk"
   heeft. Klasse weghalen = balk weg. */
.belbalk { display: none; }
@media (max-width: 767px) {
  body.met-belbalk { padding-bottom: 72px; }
  body.met-belbalk .belbalk {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: 64px;
    background: var(--wit);
    border-top: 1px solid var(--rand);
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 8px;
  }
  body.met-belbalk .belbalk .btn { min-height: 44px; padding: 8px 32px; }
}

/* ---------- Responsief ---------- */
@media (max-width: 980px) {
  .hero, .band, .kaartrij, .kop-lijst { grid-template-columns: 1fr; }
  .stappen { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .kop-lijst { gap: 8px; }
}
@media (max-width: 640px) {
  .lijst-2k { grid-template-columns: 1fr; }
  .stappen { grid-template-columns: 1fr; }
  .stap { border-left: none; border-top: 1px solid var(--rand); padding: 16px 4px 8px; }
  .stap-kaart { border-radius: 12px; padding: 16px 20px; }
  .stap-blok { grid-template-columns: 1fr; }
  .stap-blok .nr { font-size: 44px; }
  .badge { justify-self: start; margin-top: 0; }
  .hero { padding-top: 40px; }
  .sectie, .stappen { padding-top: 40px; padding-bottom: 40px; }
  /* Tarieventabel stapelt op smalle schermen: dienst boven, duur en
     tarief eronder. De kolomkoppen blijven beschikbaar voor
     schermlezers maar zijn visueel verborgen. */
  .tarieven thead {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .tarieven table, .tarieven tbody { display: block; }
  .tarieven tr {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 18px;
    padding: 16px 20px;
    border-top: 1px solid var(--rand);
  }
  .tarieven tbody tr:first-child { border-top: none; }
  .tarieven td { display: block; border-top: none; padding: 0; }
  .tarieven td:first-child { flex: 1 0 100%; }
}

/* Voorwaardenpagina */
.voorwaarden-lijst { padding-left: 0; list-style: none; display: grid; gap: 12px; max-width: 65ch; }
.voorwaarden-lijst li { display: flex; gap: 12px; align-items: baseline; }

/* 404 */
.nietgevonden { padding: 80px var(--zij); max-width: 720px; }

/* Utilities voor beeldhoogtes en paginagrids */
.h340 { height: 340px; }
.h320 { height: 320px; }
.h240 { height: 240px; }
.rond-20 { border-radius: 20px; object-fit: cover; width: 100%; }
.overkarin-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; padding: 56px var(--zij); }
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; padding: 56px var(--zij); }
.beeldkolom { display: grid; gap: 20px; min-width: 0; }
.klein { font-size: 15px; margin: 14px 0 0; }
.tarieflink { font-weight: 700; }
@media (max-width: 980px) {
  .overkarin-grid, .contact-grid { grid-template-columns: 1fr; }
  .h340, .h320 { height: 280px; }
}
