/* Dutch Horizon base: reset, typografie, layout-utilities. Eigenaar: M0-B. Bron: docs/DESIGN.md §2, §4, §5, §10.3.
   Laadvolgorde: tokens.css, base.css, components.css, css/global/*.css, pagina-CSS, /thema.css. */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--dh-header-h) + 32px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--dh-bg);
  color: var(--dh-text);
  font-family: var(--dh-font-text);
  font-size: var(--dh-fs-base);
  line-height: var(--dh-lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
:where(ol[class], ul[class]) { list-style: none; padding: 0; }
img, picture, video, canvas { display: block; max-width: 100%; height: auto; }
svg { max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
textarea { resize: vertical; }
table { border-collapse: collapse; }
address { font-style: normal; }
hr { border: 0; height: 1px; background: var(--dh-line); margin: var(--dh-space-6) 0; }
[hidden] { display: none !important; }
::selection { background: var(--dh-goud-100); color: var(--dh-ink-900); }

/* ---------- Typografie ---------- */
h1, h2, h3, .h-display {
  font-family: var(--dh-font-display);
  font-stretch: var(--dh-stretch-display);
  font-weight: var(--dh-fw-display);
  letter-spacing: var(--dh-track-display);
  line-height: var(--dh-lh-heading);
  overflow-wrap: break-word;
  hyphens: auto;
  text-wrap: balance;
}
h1 { font-size: var(--dh-fs-3xl); }
h2 { font-size: var(--dh-fs-2xl); }
h3 { font-size: var(--dh-fs-xl); }
h4, .h-label {
  font-family: var(--dh-font-display);
  font-stretch: var(--dh-stretch-label);
  font-weight: var(--dh-fw-semibold);
  letter-spacing: var(--dh-track-heading);
  line-height: var(--dh-lh-snug);
  font-size: var(--dh-fs-lg);
}
h5, h6 { font-size: var(--dh-fs-base); font-weight: var(--dh-fw-semibold); line-height: var(--dh-lh-snug); }
.h-hero { font-size: var(--dh-fs-hero); line-height: var(--dh-lh-display); }
.h-1 { font-size: var(--dh-fs-3xl); }
.h-2 { font-size: var(--dh-fs-2xl); }
.h-3 { font-size: var(--dh-fs-xl); }
.h-4 { font-size: var(--dh-fs-lg); }
/* Nadruk in koppen: zelfde familie, alleen kleur (DESIGN §2) */
h1 em, h2 em, h3 em, .h-display em { font-style: normal; color: var(--dh-accent-text); }
.lede { font-size: var(--dh-fs-md); color: var(--dh-text-2); max-width: 60ch; }
.mono { font-family: var(--dh-font-mono); font-variant-numeric: tabular-nums; }
.tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--dh-text-muted); }
.subtle { color: var(--dh-text-subtle); }
.small { font-size: var(--dh-fs-sm); }
.xsmall { font-size: var(--dh-fs-xs); }
.measure { max-width: var(--dh-measure); }
.eyebrow {
  display: inline-block;
  font-size: var(--dh-fs-xs);
  font-weight: var(--dh-fw-semibold);
  letter-spacing: var(--dh-track-caps);
  text-transform: uppercase;
  color: var(--dh-accent-text);
}
strong, b { font-weight: var(--dh-fw-semibold); }

/* ---------- Links en focus ---------- */
a {
  color: inherit;
  text-decoration-color: var(--dh-accent-icon);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
a:hover { color: var(--dh-accent-text); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--dh-focus); outline-offset: 2px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }
[tabindex="-1"]:focus { outline: none; }

/* ---------- Toegankelijkheid ---------- */
.visually-hidden,
.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skiplink {
  position: absolute;
  left: var(--dh-gutter);
  top: 12px;
  z-index: var(--dh-z-skiplink);
  padding: 12px 20px;
  border-radius: var(--dh-r-pill);
  background: var(--dh-veen-900);
  color: var(--dh-mist-50);
  font-weight: var(--dh-fw-semibold);
  font-size: var(--dh-fs-sm);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--dh-dur-fast) var(--dh-ease-out);
}
.skiplink:focus, .skiplink:focus-visible {
  transform: translateY(0);
  color: var(--dh-mist-50);
  outline: none;
  box-shadow: 0 0 0 2px var(--dh-zand-50), 0 0 0 4px var(--dh-focus);
}
/* Honeypot: onzichtbaar via class, nooit via inline style (DESIGN §6.14) */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--dh-container);
  margin-inline: auto;
  padding-inline: var(--dh-gutter);
}
.container--narrow { max-width: calc(var(--dh-container-narrow) + 2 * var(--dh-gutter)); }
.section { padding-block: var(--dh-section-y); }
.section--tight { padding-block: var(--dh-section-y-tight); }
.section--sunken { background: var(--dh-surface-sunken); }
.section--surface { background: var(--dh-surface); }
.site-main { flex: 1 0 auto; display: block; }
.site-main:focus { outline: none; }

/* Horizonnaad: 1px lijn met zachte gloed erboven (DESIGN §6.26) */
.seam { position: relative; height: 1px; background: var(--dh-grad-seam); border: 0; margin: 0; }
.seam::after {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  bottom: 1px;
  height: 48px;
  background: var(--dh-glow-sunrise);
  opacity: 0.6;
  pointer-events: none;
}

/* Stack en cluster */
.stack { display: grid; gap: var(--stack-gap, var(--dh-space-4)); align-content: start; }
.stack > * { min-width: 0; }
.stack--xs { --stack-gap: var(--dh-space-2); }
.stack--sm { --stack-gap: var(--dh-space-3); }
.stack--lg { --stack-gap: var(--dh-space-6); }
.stack--xl { --stack-gap: var(--dh-space-7); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cluster-gap, var(--dh-space-3)); }
.cluster--sm { --cluster-gap: var(--dh-space-2); }
.cluster--lg { --cluster-gap: var(--dh-space-5); }
.cluster--between { justify-content: space-between; }
.cluster--end { justify-content: flex-end; }
.flow > * + * { margin-top: var(--flow-space, 1em); }

/* Rasters (mobile-first; onder md altijd één kolom) */
.grid { display: grid; gap: var(--dh-gap); }
.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--7-5 { grid-template-columns: 7fr 5fr; }
  .grid--8-5 { grid-template-columns: 8fr 5fr; }
  .grid--2-1 { grid-template-columns: 2fr 1fr; }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.grid-auto { display: grid; gap: var(--dh-gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--grid-min, 260px)), 1fr)); }

/* Lopende tekst (artikelen, juridische pagina's) */
.prose { max-width: var(--dh-measure); line-height: var(--dh-lh-relaxed); color: var(--dh-text-2); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: var(--dh-fs-xl); color: var(--dh-text); margin-top: 1.8em; }
.prose h3 { font-size: var(--dh-fs-lg); color: var(--dh-text); margin-top: 1.5em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.35em; }
.prose li::marker { color: var(--dh-accent-icon); }
.prose a { color: var(--dh-accent-text); }
.prose strong { color: var(--dh-text); }
.prose blockquote {
  padding: var(--dh-space-4) var(--dh-space-5);
  border-left: 3px solid var(--dh-gloed-600);
  background: var(--dh-surface-sunken);
  border-radius: 0 var(--dh-r-sm) var(--dh-r-sm) 0;
  color: var(--dh-text);
}

/* ---------- Print-basis ---------- */
@media print {
  @page { margin: 16mm 14mm; }
  body { background: #FFFFFF; color: var(--dh-ink-900); display: block; min-height: 0; font-size: 11pt; }
  .site-header, .site-footer, .mobile-menu, .toasts, .skiplink, .no-print, .flash, .cta-band,
  .breadcrumbs, [data-cookie-banner], .drawer, .backdrop { display: none !important; }
  .container { max-width: none; padding-inline: 0; }
  .section, .section--tight { padding-block: 0; }
  a { text-decoration: none; color: inherit; }
  .dh-dark { background: #FFFFFF !important; color: var(--dh-ink-900) !important; }
  * { box-shadow: none !important; text-shadow: none !important; }
  h1, h2, h3 { break-after: avoid; }
  tr, .line-item { break-inside: avoid; }
}
