/* Basis: reset, toegankelijkheid, formulier. Stijlneutraal. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
main:focus { outline: none; }
[id] { scroll-margin-top: 96px; }

.container { width: 100%; margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  padding: .75rem 1.25rem; background: #fff; color: #000; text-decoration: none; font-weight: 600;
  border-radius: 6px;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; text-decoration: none; white-space: nowrap; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Formulier */
.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: .75rem 1rem; }
.field textarea { resize: vertical; min-height: 140px; }
.field__optional, .field__hint { font-weight: 400; font-size: .875rem; opacity: .8; }
.field__error { font-size: .875rem; font-weight: 500; }
.field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: .75rem; }
.field--check input { width: 20px; height: 20px; min-height: 0; margin-top: .2rem; padding: 0; }
.field--check label { font-weight: 400; font-size: .9375rem; }
.field--check .field__error { grid-column: 2; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: .875rem; opacity: .75; }
.form-errors ul { margin-top: .5rem; padding-left: 1.25rem; }
.form-errors:focus, .form-success:focus { outline: none; }
.btn--submit { justify-self: start; }

/* 404 */
.notfound { min-height: 80vh; display: flex; align-items: center; padding-top: 160px; }
.notfound .actions { margin-top: 2.5rem; }

/* Stijlwissel (alleen intern) */
.theme-switch {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90; padding: .6rem 1rem; border-radius: 999px;
  background: #fff; color: #000; font: 600 13px/1 system-ui, sans-serif; text-decoration: none; border: 1px solid #000;
}

/* Reveal-basis: alleen met JS verbergen */
.js [data-reveal] { opacity: 0; }
.js [data-reveal].is-visible { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
