/* WonderCoaches — design (§10). Structuur uit lijnen, radius 2px, één actiekleur.
   Fonts self-hosted (§2): woff2's in assets/fonts/, latin-subset, font-display:swap. */

@font-face { font-family:'Barlow Condensed'; font-style:normal; font-weight:600; font-display:swap;
  src:url('/assets/fonts/barlowcondensed-600.woff2') format('woff2'); }
@font-face { font-family:'Barlow Condensed'; font-style:normal; font-weight:700; font-display:swap;
  src:url('/assets/fonts/barlowcondensed-700.woff2') format('woff2'); }
@font-face { font-family:'Asap'; font-style:normal; font-weight:400 600; font-display:swap;
  src:url('/assets/fonts/asap.woff2') format('woff2'); }
@font-face { font-family:'IBM Plex Mono'; font-style:normal; font-weight:400; font-display:swap;
  src:url('/assets/fonts/ibmplexmono-400.woff2') format('woff2'); }
@font-face { font-family:'IBM Plex Mono'; font-style:normal; font-weight:600; font-display:swap;
  src:url('/assets/fonts/ibmplexmono-600.woff2') format('woff2'); }

:root {
  --krijt:  #F4F5EF;
  --papier: #FFFFFF;
  --inkt:   #14201B;
  --gedempt:#5C6B63;
  --lijn:   #DCDFD3;
  --hesje:  #E2542F;
  --hesje-donker:#C4431F;
  --gras:   #2F7D4F;
  --steen:  #48564F;
  --oker:   #B5820F;
  --veld:   #DCE5D8;
  --veldlijn:#B7C4B1;

  --kop: 'Barlow Condensed', 'Oswald', 'Arial Narrow', system-ui, sans-serif;
  --tekst: 'Asap', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --radius: 2px;
  --ruimte: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--krijt);
  color: var(--inkt);
  font-family: var(--tekst);
  font-size: 17px;
  line-height: 1.5;
}
h1,h2,h3 { font-family: var(--kop); text-transform: uppercase; font-weight: 700;
  line-height: 1.05; letter-spacing: .01em; margin: 0 0 .4em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
a { color: var(--hesje-donker); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 .8em; }
small { color: var(--gedempt); }
.mono { font-family: var(--mono); }

.wrap { max-width: 780px; margin: 0 auto; padding: 0 var(--ruimte) 80px; }

/* ── header ─────────────────────────────────────────────────────── */
.site-header { border-bottom: 2px solid var(--inkt); background: var(--papier); }
.site-header .bar { max-width: 780px; margin: 0 auto; padding: 12px var(--ruimte);
  display: flex; align-items: center; gap: 14px; }
.site-header .merk { font-family: var(--kop); text-transform: uppercase; font-weight: 700;
  font-size: 1.15rem; color: var(--inkt); letter-spacing: .02em; }
.site-header .merk b { color: var(--hesje); }
.site-header nav { margin-left: auto; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.site-header nav a { color: var(--inkt); padding: 6px 10px; border-radius: var(--radius); font-size: .95rem; }
.site-header nav a.actief { background: var(--krijt); font-weight: 600; }
.site-header form.uit { margin: 0; }
.site-header button.link { background: none; border: 0; color: var(--gedempt); cursor: pointer;
  font: inherit; padding: 6px 10px; }

/* ── kaarten & lijnen ───────────────────────────────────────────── */
.kaart { background: var(--papier); border: 1px solid var(--lijn); border-radius: var(--radius);
  padding: var(--ruimte); margin: var(--ruimte) 0; }
.kaart > h2:first-child, .kaart > h3:first-child { margin-top: 0; }
.sectiekop { border-top: 2px solid var(--inkt); padding-top: 10px; margin-top: 28px; }

.rij { display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--lijn); }
.rij:last-child { border-bottom: 0; }
.rij .groei { flex: 1; min-width: 0; }

.pil { display: inline-block; font-family: var(--mono); font-size: .72rem; line-height: 1;
  padding: 3px 5px; border: 1px solid var(--lijn); border-radius: var(--radius);
  color: var(--gedempt); margin: 1px; white-space: nowrap; }
.pil.voorkeur { border-color: var(--hesje); color: var(--hesje-donker); font-weight: 600; }
.pil.leeg { color: var(--oker); border-color: var(--oker); }

/* ── knoppen ────────────────────────────────────────────────────── */
.knop { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--tekst); font-weight: 600; font-size: 1rem;
  padding: 12px 18px; min-height: 48px; border-radius: var(--radius);
  border: 1px solid var(--inkt); background: var(--papier); color: var(--inkt);
  cursor: pointer; text-decoration: none; }
.knop:hover { text-decoration: none; }
.knop.primair { background: var(--hesje); border-color: var(--hesje); color: #fff; }
.knop.primair:hover { background: var(--hesje-donker); border-color: var(--hesje-donker); }
.knop.groot { width: 100%; min-height: 56px; font-size: 1.05rem; }
.knop.gras { background: var(--gras); border-color: var(--gras); color: #fff; }
.knop:disabled { opacity: .5; cursor: not-allowed; }

/* ── formulieren ────────────────────────────────────────────────── */
label { display: block; font-weight: 600; margin: 14px 0 5px; font-size: .95rem; }
label.plat { font-weight: 400; margin: 0; }
input[type=text], input[type=email], input[type=date], input[type=time],
input[type=number], select, textarea {
  width: 100%; font: inherit; padding: 11px 12px; border: 1px solid var(--gedempt);
  border-radius: var(--radius); background: var(--papier); color: var(--inkt); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--hesje); outline-offset: 0; border-color: var(--hesje); }
textarea { min-height: 120px; resize: vertical; }
.velden-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.velden-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.hint { color: var(--gedempt); font-size: .85rem; margin-top: 4px; }
.code-invoer { font-family: var(--mono); font-size: 2rem; letter-spacing: .3em; text-align: center; }

/* ── meldingen ──────────────────────────────────────────────────── */
.flash { border-radius: var(--radius); padding: 12px 14px; margin: var(--ruimte) 0;
  border: 1px solid var(--gras); background: #eaf3ec; color: #1c4a30; }
.flash.let-op, .flash.fout { border-color: var(--oker); background: #fbf4e3; color: #6a4d05; }
.fout-tekst { color: var(--hesje-donker); font-weight: 600; }

.waarschuwingen { list-style: none; padding: 0; margin: 0; }
.waarschuwingen li { padding: 9px 12px; border-left: 3px solid var(--oker); background: #fbf4e3;
  margin-bottom: 6px; border-radius: 0 var(--radius) var(--radius) 0; }
.redenen { list-style: none; padding: 0; margin: 0; color: var(--gedempt); }
.redenen li { padding: 4px 0; border-bottom: 1px dotted var(--lijn); }

/* ── veldplaatje (zelfde klassenamen als de publieke pagina) ─────── */
.perioden { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.periode { background: var(--papier); border: 1px solid var(--lijn); border-radius: var(--radius); overflow: hidden; }
.periode .pk { display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 12px; border-bottom: 1px solid var(--lijn); }
.periode .pk b { font-family: var(--kop); text-transform: uppercase; }
.periode .pk span { font-family: var(--mono); font-size: .8rem; color: var(--gedempt); }
.veld { display: block; width: 100%; height: auto; background: var(--veld); }
.veld .lijn { stroke: var(--veldlijn); stroke-width: 1; fill: none; }
.stip circle { fill: var(--papier); stroke: var(--inkt); stroke-width: 1.5; }
.stip.k circle { fill: var(--hesje); stroke: var(--hesje); }
.stip text.n { font-family: var(--tekst); font-size: 7.5px; font-weight: 600; fill: var(--inkt); text-anchor: middle; }
.stip text.p { font-family: var(--mono); font-size: 5.5px; fill: var(--gedempt); text-anchor: middle; }
.bank { padding: 8px 12px; border-top: 1px dashed var(--lijn); font-size: .9rem; color: var(--gedempt); }
.bank b { color: var(--inkt); font-weight: 600; }

/* ── speeltijd-balk ─────────────────────────────────────────────── */
.minuten-lijst { list-style: none; padding: 0; margin: 0; }
.minuten-lijst li { display: grid; grid-template-columns: 110px 1fr 48px; align-items: center;
  gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--lijn); }
.balk { height: 10px; background: var(--krijt); border-radius: var(--radius); overflow: hidden; }
.balk span { display: block; height: 100%; background: var(--gras); }
.minuten-lijst .m { font-family: var(--mono); text-align: right; font-size: .9rem; }

/* ── deel-code ──────────────────────────────────────────────────── */
.deelblok { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.deelcode { font-family: var(--mono); font-size: 1rem; background: var(--krijt);
  border: 1px solid var(--lijn); border-radius: var(--radius); padding: 8px 10px; }

/* ── diff ───────────────────────────────────────────────────────── */
.diff { list-style: none; padding: 0; margin: 0; }
.diff li { padding: 8px 12px; border-left: 3px solid var(--hesje); background: var(--papier);
  border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 6px; border-top: 1px solid var(--lijn);
  border-right: 1px solid var(--lijn); border-bottom: 1px solid var(--lijn); }

.leeg-staat { text-align: center; color: var(--gedempt); padding: 40px 10px; }

@media (max-width: 560px) {
  .velden-2, .velden-3 { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  .wrap { padding-bottom: 60px; }
}

/* ── print (§9): schoon voorstel op papier/PDF ──────────────────── */
@media print {
  .site-header, .geen-print, .knop, form.regenereer { display: none !important; }
  body { background: #fff; font-size: 12px; }
  .kaart, .periode { border: 1px solid #999; break-inside: avoid; }
  .perioden { grid-template-columns: repeat(2, 1fr); }
  a { color: #000; }
}
