/* Pas de kleuren hier aan naar de huisstijl. */
:root {
  --accent: #2f7d4f;
  --accent-licht: #e6f2ea;
  --tekst: #1f2328;
  --zacht: #5b6470;
  --rand: #d8dde3;
  --fout: #b42318;
  --achtergrond: #f6f7f9;
  --kaart: #ffffff;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--tekst); background: var(--achtergrond); }
.kop { background: var(--accent); padding: .8rem 1rem; }
.kop a { color: #fff; text-decoration: none; font-weight: 600; }
main { max-width: 720px; margin: 1.5rem auto; padding: 0 1rem 3rem; }
h1 { font-size: 1.6rem; margin: .5rem 0 1rem; }
h2 { font-size: 1.15rem; margin: 2rem 0 .5rem; }
a { color: var(--accent); }
.beschrijving { white-space: pre-line; color: var(--zacht); margin-bottom: 1.5rem; }
.uitleg { white-space: pre-line; margin: 1rem 0; }
.vraag { background: var(--kaart); border: 1px solid var(--rand); border-radius: 10px; padding: 1rem 1.1rem; margin: 0 0 1rem; }
.vraag legend { font-weight: 600; padding: 0; float: left; width: 100%; margin-bottom: .5rem; }
.vraag legend + * { clear: both; }
.heeft-fout { border-color: var(--fout); }
.verplicht { color: var(--fout); }
.hulp, .klein { color: var(--zacht); font-size: .9rem; margin: 0 0 .6rem; }
.optie { display: flex; gap: .6rem; align-items: center; padding: .55rem .6rem; border-radius: 8px; cursor: pointer; min-height: 44px; }
.optie:hover { background: var(--accent-licht); }
.optie.inline { display: inline-flex; margin-right: 1rem; }
.optie.geen { color: var(--zacht); }
.optie input { width: 1.2rem; height: 1.2rem; accent-color: var(--accent); }
.optie-uitleg { margin: -.2rem 0 .4rem 2.4rem; font-size: .9rem; }
.optie-uitleg summary { cursor: pointer; color: var(--accent); }
.optie-uitleg dt { font-weight: 600; margin-top: .4rem; }
.optie-uitleg dd { margin: 0; color: var(--zacht); }
input[type=text], input[type=email], input[type=date], select, textarea {
  width: 100%; font: inherit; padding: .6rem .7rem; border: 1px solid var(--rand); border-radius: 8px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.schaal { display: flex; gap: .5rem; flex-wrap: wrap; }
.schaal label { position: relative; }
.schaal input { position: absolute; opacity: 0; }
.schaal span { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--rand); border-radius: 50%; cursor: pointer; }
.schaal input:checked + span { background: var(--accent); color: #fff; border-color: var(--accent); }
.schaal input:focus-visible + span { outline: 2px solid var(--accent); }
button { font: inherit; font-weight: 600; background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: .75rem 1.6rem; cursor: pointer; }
button:hover { filter: brightness(1.08); }
.fout, .foutmelding { color: var(--fout); }
.foutmelding { margin: .4rem 0 0; font-size: .9rem; }
.melding { background: var(--kaart); border: 1px solid var(--rand); border-radius: 10px; padding: 1rem; }
.melding.goed { border-color: var(--accent); background: var(--accent-licht); }
.honing { position: absolute; left: -9999px; }
.lijst { list-style: none; padding: 0; }
.lijst li { background: var(--kaart); border: 1px solid var(--rand); border-radius: 10px; padding: .8rem 1rem; margin-bottom: .6rem; }
.label { font-size: .8rem; background: var(--rand); border-radius: 4px; padding: 0 .4rem; margin-left: .4rem; }
.resultaat { background: var(--kaart); border: 1px solid var(--rand); border-radius: 10px; padding: .2rem 1.1rem 1rem; margin-bottom: 1rem; }
.balk { display: grid; grid-template-columns: minmax(6rem, 30%) 1fr auto; gap: .6rem; align-items: center; margin: .35rem 0; }
.balk-spoor { background: var(--achtergrond); border-radius: 4px; height: 14px; overflow: hidden; }
.balk-vulling { display: block; height: 100%; background: var(--accent); }
.balk-getal { font-variant-numeric: tabular-nums; color: var(--zacht); font-size: .9rem; }
.open-antwoorden { padding-left: 1.1rem; }
.open-antwoorden li { margin: .3rem 0; white-space: pre-line; }

/* ---------- formulierbouwer ---------- */
code { background: var(--achtergrond); padding: 0 .25rem; border-radius: 4px; font-size: .9em; }
button.tweede, a.knop { display: inline-block; background: var(--kaart); color: var(--accent); border: 1px solid var(--accent); text-decoration: none; font-weight: 600; border-radius: 8px; padding: .55rem 1rem; }
button:disabled { opacity: .45; cursor: not-allowed; filter: none; }
input[type=number] { font: inherit; padding: .5rem .6rem; border: 1px solid var(--rand); border-radius: 8px; width: 6rem; }
.veld { display: block; font-weight: 600; margin: 0 0 .8rem; }
.veld input, .veld textarea, .veld select { font-weight: 400; margin-top: .25rem; }
.veld .hulp { display: block; font-weight: 400; margin: .2rem 0 0; }
.vink { display: flex; gap: .5rem; align-items: center; margin: .3rem 0 .6rem; min-height: 32px; }
.vink input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
.slug-rij { display: flex; align-items: center; gap: .3rem; margin-top: .25rem; }
.slug-rij input { margin: 0; }
input[readonly] { background: var(--achtergrond); color: var(--zacht); }
.bouw-blok, .item { background: var(--kaart); border: 1px solid var(--rand); border-radius: 10px; padding: 1rem 1.1rem; margin-bottom: 1rem; }
.item.sectie { border-left: 4px solid var(--accent); }
.item > input, .item > textarea { margin-bottom: .7rem; }
.item-kop, .optie-kop { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.item-knoppen { display: flex; gap: .25rem; flex-shrink: 0; }
button.mini { background: var(--achtergrond); color: var(--tekst); border: 1px solid var(--rand); padding: .3rem .6rem; font-weight: 400; min-width: 36px; min-height: 36px; }
button.mini.weg:hover { color: var(--fout); border-color: var(--fout); }
button.mini.breed { margin-top: .3rem; }
.rij { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 560px) { .rij { grid-template-columns: 1fr; } }
.id-veld { font-family: ui-monospace, monospace; font-size: .9rem; }
.opties { background: var(--achtergrond); border-radius: 8px; padding: .6rem .7rem; margin: .4rem 0 .6rem; }
.optie-rij { margin: .35rem 0; }
.optie-kop { margin: 0; }
.optie-velden { margin: .5rem 0 .8rem 1rem; padding-left: .8rem; border-left: 2px solid var(--rand); }
.optie-velden .veld { font-size: .9rem; margin-bottom: .5rem; }
.hulp-veld summary, .instellingen summary { cursor: pointer; color: var(--accent); margin: .3rem 0; }
.instellingen { margin: .5rem 0 1rem; }
.toevoegen { display: flex; gap: .5rem; flex-wrap: wrap; }
.yaml { background: #1f2328; color: #e6edf3; padding: 1rem; border-radius: 8px; overflow-x: auto; font-size: .85rem; white-space: pre; }
.bouw-balk { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; background: var(--kaart); border: 1px solid var(--rand); border-radius: 10px; padding: .7rem 1rem; margin: 1rem 0; box-shadow: 0 -2px 12px rgba(0,0,0,.06); }
.bouw-balk .knoppen { display: flex; gap: .4rem; flex-wrap: wrap; }
.bouw-balk .klein { margin: 0; }
.goed { color: var(--accent); }
