@property --veld-rot {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@property --veld-diepte {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}
@property --scroll-voortgang {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
@property --accent-mix {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

:root {
  --blauw-donker: oklch(0.28 0.09 262);
  --blauw-merk: oklch(0.42 0.13 262);
  --blauw-licht: oklch(0.62 0.12 262);
  --inkt: oklch(0.93 0.01 260);
  --inkt-gedimd: oklch(0.72 0.015 260);
  --vlak: oklch(0.17 0.02 262);
  --vlak-diep: oklch(0.13 0.02 262);
  --lijn: color-mix(in oklch, var(--blauw-licht) 30%, transparent);
  --accent: var(--blauw-licht);
  --ruimte-klein: clamp(0.5rem, 1vw, 0.75rem);
  --ruimte-mid: clamp(1rem, 2.5vw, 1.75rem);
  --ruimte-groot: clamp(2rem, 6vw, 5rem);
  --straal: 0.5rem;
  --tekst-scherm: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --tekst-klein: clamp(0.8rem, 0.75rem + 0.25vw, 0.9rem);
  --h1: clamp(2.4rem, 1.5rem + 5vw, 5.5rem);
  --h2: clamp(1.6rem, 1.2rem + 2.2vw, 2.6rem);
  --h3: clamp(1.15rem, 1rem + 0.8vw, 1.5rem);
  --leesbreedte: 62ch;
  --breedte: min(100%, 72rem);
}

@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--vlak-diep);
  color: var(--inkt);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: var(--tekst-scherm);
  line-height: 1.6;
  min-height: 100svh;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

img,
canvas,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--blauw-licht);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: color-mix(in oklch, var(--blauw-licht) 70%, white);
}

:focus-visible {
  outline: 2px solid var(--blauw-licht);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: var(--h1);
}

h2 {
  font-size: var(--h2);
}

h3 {
  font-size: var(--h3);
}

p {
  max-width: var(--leesbreedte);
  text-wrap: pretty;
}

@scope (.sectie) to (:scope > *) {
  :scope {
    padding-block: var(--ruimte-groot);
    container-type: inline-size;
    container-name: sectie;
  }

  :scope > .omwikkel {
    width: var(--breedte);
    margin-inline: auto;
    padding-inline: var(--ruimte-mid);
  }

  :scope > .omwikkel > .kolommen {
    display: grid;
    gap: var(--ruimte-mid);
  }

  @container (min-width: 48rem) {
    :scope > .omwikkel > .kolommen {
      grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
    }
  }
}

.site-kop {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in oklch, var(--vlak-diep) 88%, transparent);
  backdrop-filter: blur(8px);
  border-block-end: 1px solid var(--lijn);
}

.site-kop .omwikkel {
  width: var(--breedte);
  margin-inline: auto;
  padding: var(--ruimte-klein) var(--ruimte-mid);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--ruimte-mid);
}

.merk {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--inkt);
  text-decoration: none;
}

.merk span {
  color: var(--blauw-licht);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ruimte-klein) var(--ruimte-mid);
  list-style: none;
  justify-content: flex-end;
  font-size: var(--tekst-klein);
}

.site-nav a {
  color: var(--inkt-gedimd);
  text-decoration: none;
  padding: 0.3em 0.1em;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--inkt);
}

@media (max-width: 34rem) {
  .site-kop .omwikkel {
    grid-template-columns: 1fr;
  }

  .site-nav ul {
    justify-content: flex-start;
  }
}

.hero {
  position: relative;
  min-height: min(92svh, 60rem);
  display: grid;
  align-content: center;
  overflow: clip;
  container-type: inline-size;
  container-name: hero;
}

.hero-achtergrond {
  position: absolute;
  inset: 0;
  z-index: -1;
}

#veld-canvas {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  opacity: 0.55;
}

.hero-omwikkel {
  width: var(--breedte);
  margin-inline: auto;
  padding: var(--ruimte-groot) var(--ruimte-mid);
  display: grid;
  gap: var(--ruimte-mid);
}

.hero h1 {
  color: var(--inkt);
}

.hero h1 em {
  font-style: normal;
  color: var(--blauw-licht);
}

.hero-sub {
  font-size: clamp(1.05rem, 1rem + 0.6vw, 1.35rem);
  color: var(--inkt-gedimd);
  max-width: 44ch;
}

.hero-kenmerken {
  display: grid;
  gap: var(--ruimte-klein);
  list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
}

.hero-kenmerken li {
  border: 1px solid var(--lijn);
  border-radius: var(--straal);
  padding: var(--ruimte-klein) var(--ruimte-mid);
  background: color-mix(in oklch, var(--vlak) 70%, transparent);
  font-size: var(--tekst-klein);
  color: var(--inkt-gedimd);
}

.hero-kenmerken strong {
  display: block;
  color: var(--inkt);
  font-size: var(--tekst-scherm);
}

@container hero (max-width: 30rem) {
  .hero {
    min-height: 80svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  #veld-canvas {
    opacity: 0.35;
  }
}
/* ===== Secties ===== */

.antwoord {
  background: var(--vlak);
  border-block: 1px solid var(--lijn);
  padding: var(--ruimte-groot) 0;
  scroll-margin-block-start: 5rem;
}

.antwoord-omwikkel {
  width: var(--breedte);
  margin-inline: auto;
  padding-inline: var(--ruimte-mid);
  display: grid;
  gap: var(--ruimte-mid);
}

.antwoord-citaat {
  border-inline-start: 3px solid var(--blauw);
  padding-inline-start: var(--ruimte-mid);
  font-size: clamp(1.15rem, 1rem + 0.9vw, 1.6rem);
  line-height: 1.5;
  color: var(--inkt);
  max-width: 52ch;
}

.antwoord-citaat cite {
  display: block;
  margin-block-start: var(--ruimte-klein);
  font-style: normal;
  font-size: var(--tekst-klein);
  color: var(--inkt-gedimd);
}

.feit-lijst {
  display: grid;
  gap: var(--ruimte-klein);
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
}

.feit {
  border: 1px solid var(--lijn);
  border-radius: var(--straal);
  padding: var(--ruimte-mid);
  background: color-mix(in oklch, var(--papier) 85%, var(--blauw) 5%);
  container-type: inline-size;
  container-name: feit;
  scroll-margin-block-start: 5rem;
}

.feit h3 {
  font-size: var(--tekst-scherm);
  color: var(--inkt);
}

.feit p {
  margin-block-start: var(--ruimte-klein);
  font-size: var(--tekst-klein);
  color: var(--inkt-gedimd);
}

.feit code {
  font-size: 0.95em;
  color: var(--blauw);
  background: color-mix(in oklch, var(--blauw) 8%, transparent);
  padding: 0.1em 0.35em;
  border-radius: 0.35em;
}

@container feit (max-width: 22rem) {
  .feit p {
    font-size: 1rem;
  }
}

/* ===== Participaties ===== */

.participaties,
.holding,
.kbo,
.contact,
.faq,
.bronnen {
  padding: var(--ruimte-groot) 0;
  scroll-margin-block-start: 5rem;
}

.participaties {
  background: color-mix(in oklch, var(--papier) 92%, var(--blauw) 8%);
}

.participaties-omwikkel,
.holding-omwikkel,
.kbo-omwikkel,
.contact-omwikkel,
.faq-omwikkel,
.bronnen-omwikkel {
  width: var(--breedte);
  margin-inline: auto;
  padding-inline: var(--ruimte-mid);
  display: grid;
  gap: var(--ruimte-mid);
}

.participatie-rooster {
  display: grid;
  gap: var(--ruimte-mid);
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
}

.participatie-kaart {
  border: 1px solid var(--lijn);
  border-radius: var(--straal);
  padding: var(--ruimte-mid);
  background: var(--vlak);
  display: grid;
  gap: var(--ruimte-klein);
  container-type: inline-size;
  container-name: kaart;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.participatie-kaart:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px color-mix(in oklch, var(--blauw) 18%, transparent);
}

.participatie-kaart h3 {
  font-size: var(--tekst-scherm);
}

.participatie-kaart .domein {
  font-size: var(--tekst-klein);
  color: var(--blauw);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.participatie-kaart p {
  font-size: var(--tekst-klein);
  color: var(--inkt-gedimd);
}

@container kaart (max-width: 18rem) {
  .participatie-kaart .domein {
    font-size: 0.85rem;
  }
}

.fonds-belang {
  border: 1px dashed var(--lijn);
  border-radius: var(--straal);
  padding: var(--ruimte-mid);
  font-size: var(--tekst-klein);
  color: var(--inkt-gedimd);
  background: color-mix(in oklch, var(--vlak) 60%, transparent);
}

/* ===== Holding / KBO / Contact ===== */

.holding {
  background: var(--vlak);
  border-block: 1px solid var(--lijn);
}

.adres {
  font-style: normal;
  display: grid;
  gap: 0.2rem;
  font-size: var(--tekst-klein);
  color: var(--inkt-gedimd);
}

.kopregel {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem);
  color: var(--inkt);
  max-width: 28ch;
}

.contact-link {
  color: var(--blauw);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.contact-link:hover {
  text-decoration-thickness: 2px;
}

/* ===== FAQ ===== */

.faq-lijst {
  display: grid;
  gap: var(--ruimte-klein);
}

.faq-item {
  border: 1px solid var(--lijn);
  border-radius: var(--straal);
  background: var(--vlak);
}

.faq-item summary {
  cursor: pointer;
  padding: var(--ruimte-klein) var(--ruimte-mid);
  font-size: var(--tekst-scherm);
  color: var(--inkt);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--ruimte-klein);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--blauw);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .antwoord-tekst {
  padding: 0 var(--ruimte-mid) var(--ruimte-klein);
  font-size: var(--tekst-klein);
  color: var(--inkt-gedimd);
}

/* ===== Bronnen ===== */

.bronnen {
  background: color-mix(in oklch, var(--papier) 94%, var(--blauw) 6%);
}

.bron-lijst {
  display: grid;
  gap: var(--ruimte-klein);
  list-style: none;
}

.bron-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--ruimte-klein);
  font-size: var(--tekst-klein);
  color: var(--inkt-gedimd);
}

.bron-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blauw);
  border: 1px solid color-mix(in oklch, var(--blauw) 40%, transparent);
  border-radius: 999px;
  padding: 0.15em 0.7em;
  white-space: nowrap;
}

/* ===== Footer ===== */

.site-footer {
  border-block-start: 1px solid var(--lijn);
  padding: var(--ruimte-mid) 0;
  background: var(--vlak);
}

.footer-omwikkel {
  width: var(--breedte);
  margin-inline: auto;
  padding-inline: var(--ruimte-mid);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--ruimte-klein);
  font-size: var(--tekst-klein);
  color: var(--inkt-gedimd);
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ruimte-klein);
  list-style: none;
}

/* ===== Popover ===== */

[popover].info-popover {
  border: 1px solid var(--lijn);
  border-radius: var(--straal);
  padding: var(--ruimte-mid);
  background: var(--vlak);
  color: var(--inkt);
  max-width: min(24rem, calc(100% - 2rem));
  box-shadow: 0 12px 40px color-mix(in oklch, var(--blauw) 25%, transparent);
  margin: auto;
  inset: auto;
  position: fixed;
  anchor-name: --info-anker;
}

.info-popover::backdrop {
  background: color-mix(in oklch, var(--papier) 60%, transparent);
  backdrop-filter: blur(2px);
}

.info-popover h3 {
  font-size: var(--tekst-scherm);
  margin-block-end: var(--ruimte-klein);
}

.info-popover p {
  font-size: var(--tekst-klein);
  color: var(--inkt-gedimd);
}

.info-popover {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease, display 0.25s allow-discrete, overlay 0.25s allow-discrete;
}

@starting-style {
  .info-popover:popover-open {
    opacity: 0;
    transform: translateY(0.5rem);
  }
}

.popover-knop {
  font: inherit;
  font-size: 0.85rem;
  color: var(--blauw);
  background: none;
  border: 1px solid color-mix(in oklch, var(--blauw) 40%, transparent);
  border-radius: 999px;
  padding: 0.25em 0.8em;
  cursor: pointer;
  white-space: nowrap;
}

.popover-knop:hover {
  background: color-mix(in oklch, var(--blauw) 10%, transparent);
}

/* ===== Focus ===== */

:focus-visible {
  outline: 2px solid var(--blauw);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 100;
  background: var(--vlak);
  color: var(--inkt);
  padding: var(--ruimte-klein) var(--ruimte-mid);
  border: 2px solid var(--blauw);
  border-radius: var(--straal);
}

.skip-link:focus-visible {
  inset-inline-start: var(--ruimte-klein);
}

/* ===== View Transitions ===== */

::view-transition-old(wortel),
::view-transition-new(wortel) {
  animation-duration: 0.3s;
  animation-timing-function: ease;
}

::view-transition-old(wortel) {
  animation-name: vt-uit;
}

::view-transition-new(wortel) {
  animation-name: vt-in;
}

@keyframes vt-uit {
  to {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
}

@keyframes vt-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
}

@view-transition {
  navigation: auto;
}

/* ===== Scroll-driven animaties ===== */

@property --vorderingsgraad {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

.vordering {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 50;
  background: linear-gradient(to right, var(--blauw) calc(var(--vorderingsgraad) * 100%), transparent 0);
}

@media (prefers-reduced-motion: no-preference) {
  .vordering {
    animation: vordering-loopt linear both;
    animation-timeline: scroll(root block);
  }

  @keyframes vordering-loopt {
    from {
      --vorderingsgraad: 0;
    }
    to {
      --vorderingsgraad: 1;
    }
  }

  .feit,
  .participatie-kaart {
    animation: kaart-binnenkomst 0.6s ease both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }

  @keyframes kaart-binnenkomst {
    from {
      opacity: 0;
      transform: translateY(1rem);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  scroll-behavior: smooth;
}
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  body {
    overflow-x: hidden;
  }

  header nav ul,
  .hoofdnav,
  nav ul {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .hero,
  .antwoordblok,
  .feitenlijst,
  .participaties,
  .faq,
  .contact,
  footer .voettekst-binnen {
    padding-inline: 1rem;
  }

  .veld-canvas-wrapper,
  .participatie-kaart,
  .feit {
    width: 100%;
    max-width: 100%;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  h2 {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
  }

  .antwoordblok blockquote {
    font-size: 1.05rem;
    padding-inline: 0.75rem;
  }

  table,
  .feitentabel {
    display: block;
    overflow-x: auto;
    max-width: 100%;
  }

  .vordering {
    height: 2px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  html {
    font-size: 16px;
  }

  .feitenlijst,
  .participaties,
  .faq-lijst {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1rem;
  }

  .hero,
  .antwoordblok {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .feitenlijst,
  .participaties,
  .faq-lijst {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
  }

  .hero {
    padding-inline: 2.5rem;
  }
}

@media (min-width: 1025px) and (max-width: 1439px) {
  .feitenlijst,
  .participaties {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }

  .antwoordblok {
    max-width: 60rem;
    margin-inline: auto;
  }
}

@media (min-width: 1440px) and (max-width: 1919px) {
  main {
    max-width: 80rem;
    margin-inline: auto;
  }

  .feitenlijst,
  .participaties {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1920px) and (max-width: 2559px) {
  html {
    font-size: 18px;
  }

  main {
    max-width: 90rem;
  }
}

@media (min-width: 2560px) {
  html {
    font-size: 20px;
  }

  main {
    max-width: 100rem;
  }
}

.feitenlijst,
.participaties,
.faq-lijst,
.antwoordblok {
  container-type: inline-size;
}

@container (min-width: 640px) {
  .feit {
    padding: 1.75rem;
  }

  .participatie-kaart {
    display: grid;
    grid-template-columns: subgrid;
    grid-column: span 2;
  }
}

@container (max-width: 400px) {
  .feit,
  .participatie-kaart {
    padding: 1rem;
  }

  .feit h3,
  .participatie-kaart h3 {
    font-size: 1.1rem;
  }
}

@supports not (animation-timeline: scroll()) {
  .vordering {
    width: 0;
    background: transparent;
  }

  .feit,
  .participatie-kaart {
    opacity: 1;
    transform: none;
  }
}

@supports not (color: color-mix(in oklch, red, blue)) {
  :root {
    --blauw: #1c3f94;
    --achtergrond: #f6f7f9;
    --tekst: #17202e;
  }
}

.js-vereist .webgpu-fallbackmelding,
.js-vereist .wasm-fallbackmelding {
  display: none;
}

.geen-js .vordering,
.geen-js .veld-toggle,
.geen-js button[data-actie] {
  display: none;
}

.geen-js .veld-canvas-wrapper {
  aspect-ratio: 16 / 9;
  background: linear-gradient(160deg, oklch(24% 0.06 255), oklch(14% 0.03 255));
  border-radius: 0.75rem;
}

.geen-js .veld-canvas-wrapper::after {
  content: "Participatieveld: statische weergave. De simulatie vereist een moderne browser.";
  display: block;
  color: oklch(92% 0.01 255);
  padding: 1rem;
  font-size: 0.95rem;
}

.niet-ondersteund .veld-canvas-wrapper::after {
  content: "WebGPU is niet beschikbaar in deze browser. Het participatieveld wordt statisch getoond; alle inhoud blijft volledig leesbaar.";
}

@media print {
  .vordering,
  .veld-toggle,
  button,
  nav,
  .hero canvas,
  .veld-canvas-wrapper,
  .webgpu-fallbackmelding,
  details > summary::marker {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
    line-height: 1.45;
  }

  main,
  .antwoordblok {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  a[href^="#"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #444;
  }

  .feit,
  .participatie-kaart {
    break-inside: avoid;
    border: 1px solid #999;
    box-shadow: none;
    opacity: 1;
    transform: none;
    animation: none;
  }

  section {
    break-inside: avoid-page;
  }

  h1,
  h2,
  h3 {
    break-after: avoid;
  }

  details {
    display: block;
  }

  details:not([open]) > *:not(summary) {
    display: block !important;
  }

  footer {
    border-top: 1px solid #999;
  }
}