/* ============================================================
   VKRNL - css/base.css
   Reset, typografie en formulierbasis.
   ============================================================ */

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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--tekst-md);
  line-height: 1.55;
  color: var(--tekst);
  background: var(--achtergrond);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4 {
  margin: 0 0 var(--ruimte-3) 0;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--tekst-2xl); }
h2 { font-size: var(--tekst-xl); }
h3 { font-size: var(--tekst-lg); }
h4 { font-size: var(--tekst-md); }

p { margin: 0 0 var(--ruimte-3) 0; }

a {
  color: var(--blauw-600);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

small { font-size: var(--tekst-sm); color: var(--tekst-zacht); }

time, .cijfers, .tijd {
  font-variant-numeric: tabular-nums;
}

hr {
  border: 0;
  border-top: 1px solid var(--lijn);
  margin: var(--ruimte-5) 0;
}

/* --- Toegankelijkheid ------------------------------------ */
:focus-visible {
  outline: 3px solid var(--blauw-400);
  outline-offset: 2px;
  border-radius: var(--rond-sm);
}

.verborgen { display: none !important; }

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

/* --- Formulierbasis -------------------------------------- */
label {
  display: block;
  font-size: var(--tekst-sm);
  font-weight: 600;
  color: var(--tekst-zacht);
  margin-bottom: var(--ruimte-1);
}

input, select, textarea, button {
  font-family: inherit;
  font-size: var(--tekst-md);
}

input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="number"], input[type="date"],
input[type="time"], input[type="search"], select, textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  color: var(--tekst);
  background: var(--vlak);
  border: 1px solid var(--lijn-sterk);
  border-radius: var(--rond-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}

textarea { min-height: 96px; resize: vertical; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blauw-500);
  box-shadow: 0 0 0 3px var(--blauw-100);
}

input:disabled, select:disabled, textarea:disabled {
  background: var(--vlak-zacht);
  color: var(--tekst-licht);
  cursor: not-allowed;
}

input::placeholder, textarea::placeholder { color: var(--tekst-licht); }

select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%235a6a7d' stroke-width='2' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
