/* ==========================================================================
   De Jong Dalfsen - style.css
   Thema "Vechtdal": warm papier, mosgroen en klei · Fraunces + Karla
   Fonts en three.js zelf-gehost in assets/, geen externe bronnen
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/fraunces-normal-500.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/fraunces-normal-600.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/fraunces-italic-500.woff2") format("woff2");
}

@font-face {
  font-family: "Karla";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/karla-normal-400.woff2") format("woff2");
}

@font-face {
  font-family: "Karla";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/karla-normal-500.woff2") format("woff2");
}

@font-face {
  font-family: "Karla";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/karla-normal-700.woff2") format("woff2");
}

/* ---- Variabelen ---- */

:root {
  --papier: #f5f1e6;
  --papier-licht: #faf7ec;
  --zand: #ece5d3;
  --inkt: #21261f;
  --inkt-zacht: #3d453a;
  --grijs: #6b7565;
  --tekst-stil: #4c5548;
  --mos: #2c4a30;
  --mos-donker: #233b26;
  --gras: #5d7d4b;
  --klei: #b0653a;
  --zon: #e9c46a;
  --hairline: rgba(33, 38, 31, 0.16);
  --hairline-licht: rgba(245, 241, 230, 0.22);
  --pad: clamp(1.25rem, 5vw, 2rem);
}

/* ---- Basis ---- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: "Karla", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--inkt);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

ul {
  padding: 0;
}

a:focus-visible,
input:focus-visible,
button:focus-visible {
  outline: 3px solid var(--klei);
  outline-offset: 2px;
}

::selection {
  background: #dcd3bd;
}

/* Scrollbalk in themakleuren. Browsers zonder ::-webkit-scrollbar (Firefox)
   krijgen de standaardeigenschap; Chrome/Safari de afgeronde duim. */
@supports not selector(::-webkit-scrollbar) {
  html {
    scrollbar-color: var(--mos) var(--zand);
  }
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--zand);
}

::-webkit-scrollbar-thumb {
  background: var(--mos);
  border-radius: 999px;
  border: 3px solid var(--zand);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--mos-donker);
}

.container {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  background: var(--mos);
  color: var(--papier);
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.eyebrow {
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--klei);
}

/* ---- Knoppen ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.68em 1.5em;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s;
  border: 1.5px solid transparent;
}

.btn-vol {
  background: var(--mos);
  color: var(--papier);
}

.btn-vol:hover {
  background: var(--mos-donker);
}

.btn-lijn {
  border-color: var(--mos);
  color: var(--mos);
}

.btn-lijn:hover {
  background: rgba(44, 74, 48, 0.08);
}

/* ---- Header & navigatie ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 241, 230, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 68px;
}

.brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--inkt);
  text-decoration: none;
  white-space: nowrap;
}

.brand em {
  font-style: italic;
  color: var(--mos);
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.7rem;
}

.site-nav a:not(.btn) {
  color: var(--inkt);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.15s;
}

.site-nav a:not(.btn):hover {
  color: var(--klei);
}

.nav-cta .btn {
  padding: 0.55em 1.3em;
  font-size: 0.95rem;
}

.nav-toggle,
.nav-label {
  display: none;
}

/* ---- Hero ---- */

.hero {
  position: relative;
  overflow: hidden;
}

.hero-decor {
  position: absolute;
  right: -120px;
  top: -80px;
  width: 520px;
  opacity: 0.08;
  pointer-events: none;
}

/* De reiziger (stipje op de hoogtelijn) bestaat alleen mét animatie;
   in de statische fallback blijft hij verborgen. */
.hero-decor .reiziger {
  display: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.3rem);
  line-height: 1.04;
  margin: 0.8rem 0 1.3rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--mos);
}

.lead {
  font-size: 1.12rem;
  max-width: 32em;
  color: var(--inkt-zacht);
}

.hero-knoppen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.kenmerken {
  margin: 2.6rem 0 0;
  list-style: none;
  display: flex;
  gap: 1.2rem 2rem;
  flex-wrap: wrap;
}

.kenmerken li {
  font-size: 0.92rem;
  color: var(--tekst-stil);
}

.kenmerken b {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--inkt);
}

/* Kader met offset-rand: 3D op desktop, heuvels als statische variant */

.kader {
  position: relative;
}

.kader-binnen {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 2px solid var(--inkt);
  overflow: hidden;
  background: linear-gradient(180deg, #eef3e2 0%, #dce8cf 55%, #c9dbb8 100%);
}

.kader::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 2px solid var(--klei);
  z-index: -1;
}

.kader-binnen canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.heuvels {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.kader-binnen.is-3d .heuvels {
  display: none;
}

.kader-label {
  position: absolute;
  left: 0;
  bottom: -2.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grijs);
}

/* ---- Secties & koppen ---- */

.sectie {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.sectie-zand {
  background: var(--zand);
}

.sectiekop {
  max-width: 680px;
  margin-bottom: 2.4rem;
}

.sectiekop-links {
  margin-bottom: 1.4rem;
}

.sectiekop h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  margin-top: 0.6rem;
}

.sectiekop .sub {
  color: var(--tekst-stil);
  margin-top: 0.6rem;
  max-width: 36em;
}

/* ---- Diensten: redactionele index ---- */

.index {
  border-top: 1px solid var(--hairline);
}

.rij {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 1.6rem;
  align-items: baseline;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--hairline);
}

.rij .nr {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 2.2rem;
  color: var(--klei);
}

.rij h3 {
  font-size: 1.45rem;
  margin-bottom: 0.3rem;
}

.rij p {
  color: var(--tekst-stil);
  max-width: 46em;
}

.tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mos);
  border: 1px solid var(--mos);
  border-radius: 999px;
  padding: 0.35em 0.9em;
  white-space: nowrap;
}

/* ---- Werkgebieden: mosgroene band ---- */

.band {
  background: var(--mos);
  color: var(--papier);
  padding-block: clamp(4rem, 8vw, 5.5rem);
}

.band .eyebrow {
  color: var(--zon);
}

.band .sectiekop h2 {
  color: var(--papier);
}

.band .sectiekop .sub {
  color: rgba(245, 241, 230, 0.75);
}

.domeinen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.domein {
  border-top: 1px solid var(--hairline-licht);
  padding-top: 1.6rem;
}

.domein .nr {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--zon);
}

.domein h3 {
  font-size: 1.3rem;
  color: var(--papier);
  margin: 0.5rem 0 0.4rem;
}

.domein p {
  color: rgba(245, 241, 230, 0.78);
}

/* ---- Detachering: tweeluik ---- */

.tweeluik {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
}

.paneel {
  background: var(--papier-licht);
  border: 1.5px solid var(--inkt);
  padding: 2.2rem 2rem;
}

.paneel h3 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.paneel > p {
  color: var(--tekst-stil);
}

.lijst {
  list-style: none;
  margin: 1.3rem 0 1.7rem;
  display: grid;
  gap: 0.6rem;
}

.lijst li {
  position: relative;
  padding-left: 1.5rem;
  font-weight: 500;
}

.lijst li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--klei);
}

/* ---- Over ons ---- */

.over-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.over-grid p {
  color: var(--inkt-zacht);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.feiten {
  background: var(--mos);
  color: var(--papier);
  padding: 2.1rem 2rem;
}

.feiten h3 {
  font-size: 1.2rem;
  color: var(--papier);
  margin-bottom: 1rem;
}

.feiten ul {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.feiten li {
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.5;
}

.feiten li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--zon);
}

/* ---- Contact ---- */

.contactlijst {
  border-top: 1px solid var(--hairline);
  max-width: 760px;
}

.contact-rij {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.6rem;
  align-items: baseline;
  padding: 1.3rem 0.2rem;
  border-bottom: 1px solid var(--hairline);
}

.contact-rij .label {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--klei);
}

.contact-rij .waarde {
  font-size: 1.05rem;
}

.contact-rij a {
  color: var(--mos);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-rij a:hover {
  color: var(--klei);
}

.tbd {
  display: inline-block;
  padding: 0.18em 0.7em;
  border: 1.5px dashed rgba(176, 101, 58, 0.55);
  border-radius: 999px;
  background: #f1ead9;
  color: var(--grijs);
  font-size: 0.92em;
}

.contact-noot {
  color: var(--grijs);
  font-size: 0.9rem;
  margin-top: 1.4rem;
}

/* ---- Footer ---- */

.site-footer {
  background: var(--inkt);
  color: #cfcabb;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  padding-block: 3rem;
}

.site-footer .brand {
  color: var(--papier);
}

.site-footer .brand em {
  color: #a9c48d;
}

.footer-merk p {
  margin-top: 0.8rem;
  color: #a09a8a;
  font-size: 0.95rem;
}

.footer-nav ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.footer-nav a {
  color: #cfcabb;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--papier);
  text-decoration: underline;
}

.footer-info p {
  color: #a09a8a;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.footer-info a {
  color: var(--zon);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-info a:hover {
  color: var(--papier);
}

.footer-onder {
  border-top: 1px solid rgba(245, 241, 230, 0.14);
  padding: 1.1rem 0;
  font-size: 0.85rem;
  color: #8a857a;
}

.footer-onder a {
  color: var(--zon);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-onder a:hover {
  color: var(--papier);
}

/* ---- Documentpagina (algemene voorwaarden) ---- */

.document-kop {
  max-width: 760px;
  margin-bottom: 2rem;
}

.document-kop h1 {
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  margin-top: 0.6rem;
}

.document-meta {
  color: var(--grijs);
  font-size: 0.92rem;
  margin-top: 0.9rem;
}

.concept-melding {
  max-width: 760px;
  border: 1.5px dashed rgba(176, 101, 58, 0.55);
  background: #f1ead9;
  color: var(--inkt-zacht);
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  margin-bottom: 2.4rem;
}

.voorwaarden {
  max-width: 760px;
  counter-reset: artikel;
}

.artikel {
  counter-increment: artikel;
  counter-reset: lid;
  padding: 1.8rem 0;
  border-top: 1px solid var(--hairline);
}

.artikel h2 {
  font-size: 1.3rem;
  margin-bottom: 0.9rem;
}

.artikel h2::before {
  content: "Artikel " counter(artikel) ". ";
}

.artikel ol {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.artikel li {
  position: relative;
  padding-left: 3.2rem;
  color: var(--inkt-zacht);
  line-height: 1.65;
}

.artikel li::before {
  content: counter(artikel) "." counter(lid);
  counter-increment: lid;
  position: absolute;
  left: 0;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: var(--klei);
}

.artikel li b {
  color: var(--inkt);
}

/* blokken zonder artikelnummering (privacyverklaring) */

.document-tekst {
  max-width: 760px;
}

.blok {
  padding: 1.8rem 0;
  border-top: 1px solid var(--hairline);
}

.blok h2 {
  font-size: 1.3rem;
  margin-bottom: 0.9rem;
}

.blok p {
  color: var(--inkt-zacht);
  margin-bottom: 0.8rem;
  line-height: 1.65;
}

.blok p:last-child {
  margin-bottom: 0;
}

.blok ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
}

.blok li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--inkt-zacht);
  line-height: 1.65;
}

.blok li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--klei);
}

.blok a {
  color: var(--mos);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blok a:hover {
  color: var(--klei);
}

/* ---- Projecten (voorbeeldkaarten) ---- */

.projecten-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.project-kaart {
  background: var(--papier-licht);
  border: 1.5px solid var(--inkt);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}

.project-kaart:hover {
  border-color: var(--klei);
}

.project-beeld {
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border-bottom: 1.5px solid var(--inkt);
}

.project-beeld svg {
  width: 100%;
  height: 100%;
  display: block;
}

.project-tekst {
  padding: 1.4rem 1.5rem 1.6rem;
}

.project-tekst h3 {
  font-size: 1.25rem;
  margin: 0.7rem 0 0.4rem;
}

.project-tekst p {
  color: var(--tekst-stil);
  font-size: 0.97rem;
}

.tag-voorbeeld {
  border-style: dashed;
  color: var(--klei);
  border-color: rgba(176, 101, 58, 0.55);
}

/* ---- Werkwijze ---- */

.stappen {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stap {
  border-top: 1px solid var(--hairline);
  padding-top: 1.4rem;
}

.stap .nr {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--klei);
}

.stap-icoon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--mos);
  border-radius: 999px;
  color: var(--mos);
  margin: 0.8rem 0 0.7rem;
}

.stap-icoon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stap h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.stap p {
  color: var(--tekst-stil);
  font-size: 0.95rem;
}

/* ---- Regio ---- */

.regio-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.kader-kaart {
  aspect-ratio: 4 / 3;
  background: #eef3e2;
}

.kader-kaart svg {
  width: 100%;
  height: 100%;
  display: block;
}

.kader-kaart text {
  font-family: "Karla", "Segoe UI", sans-serif;
}

/* Het werkbusje bestaat alleen mét animatie; statisch blijft het verborgen. */
.kader-kaart .werkbus {
  display: none;
}

.regio-grid > div:last-child > p {
  color: var(--inkt-zacht);
  line-height: 1.7;
}

.plaats-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.plaats-chips li {
  border: 1px solid var(--mos);
  color: var(--mos);
  border-radius: 999px;
  padding: 0.3em 0.95em;
  font-size: 0.88rem;
  font-weight: 500;
}

.plaats-chips li.hoofd {
  background: var(--mos);
  color: var(--papier);
}

/* ---- Veelgestelde vragen ---- */

.faq {
  max-width: 760px;
  border-top: 1px solid var(--hairline);
}

.faq details {
  border-bottom: 1px solid var(--hairline);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0.2rem;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.08rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--klei);
  border-bottom: 2px solid var(--klei);
  transform: rotate(45deg);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.faq details[open] summary::after {
  transform: rotate(225deg);
}

.faq details p {
  color: var(--tekst-stil);
  padding: 0 0.2rem 1.2rem;
}

.faq a {
  color: var(--mos);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq a:hover {
  color: var(--klei);
}

/* ---- Responsive ---- */

@media (max-width: 940px) {
  .nav-toggle {
    display: block;
    position: absolute;
    top: 50%;
    right: calc(var(--pad) - 8px);
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
  }

  .nav-label {
    display: block;
    position: absolute;
    top: 50%;
    right: var(--pad);
    transform: translateY(-50%);
  }

  .nav-label span {
    display: block;
    width: 26px;
    height: 2.5px;
    margin: 5.5px 0;
    border-radius: 2px;
    background: var(--inkt);
    transition: transform 0.2s, opacity 0.2s;
  }

  .nav-toggle:focus-visible + .nav-label {
    outline: 3px solid var(--klei);
    outline-offset: 4px;
    border-radius: 4px;
  }

  .nav-toggle:checked + .nav-label span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle:checked + .nav-label span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .nav-label span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    background: var(--papier);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 18px 30px rgba(33, 38, 31, 0.1);
  }

  .nav-toggle:checked ~ .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    padding: 1rem var(--pad) 1.4rem;
  }

  .site-nav a:not(.btn) {
    display: block;
    padding: 0.55rem 0;
  }

  .nav-cta {
    margin-top: 0.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .kader {
    max-width: 520px;
  }

  .kader-binnen {
    aspect-ratio: 16 / 10;
  }

  .domeinen {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .tweeluik,
  .over-grid {
    grid-template-columns: 1fr;
  }

  .rij {
    grid-template-columns: 64px 1fr;
  }

  .rij .tag {
    display: none;
  }
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

@media (max-width: 560px) {
  .contact-rij {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .rij {
    grid-template-columns: 48px 1fr;
    gap: 1rem;
  }

  .rij .nr {
    font-size: 1.7rem;
  }
}

/* ---- Responsive: nieuwe secties ---- */

@media (max-width: 940px) {
  .projecten-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .stappen {
    grid-template-columns: repeat(2, 1fr);
  }

  .regio-grid {
    grid-template-columns: 1fr;
  }

  .kader-regio {
    max-width: 520px;
  }
}

@media (max-width: 620px) {
  .stappen {
    grid-template-columns: 1fr;
  }
}

/* ---- Levendigheid: alle beweging is progressive enhancement.
   Basistoestand = statisch (de fallback); animaties draaien alleen bij
   prefers-reduced-motion: no-preference, en de scroll-reveal alleen als JS
   de body de class "js" geeft. ---- */

@media (prefers-reduced-motion: no-preference) {

  /* Hero-instap bij laden */
  @keyframes instap {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
  }

  .hero-copy > * {
    animation: instap 0.7s ease backwards;
  }

  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.32s; }

  .hero .kader {
    animation: instap 0.8s ease 0.25s backwards;
  }

  /* Contourlijnen "levend landschap": elke lijn stroomt het beeld in, staat
     even vol en stroomt aan de andere kant weer weg. Offset 1 -> -1 is bij
     dasharray 1 een naadloze loop; negatieve delays zorgen dat het veld
     nooit leeg is. */
  @keyframes lijn-stroom {
    0% {
      stroke-dashoffset: 1;
    }
    40% {
      stroke-dashoffset: 0;
    }
    60% {
      stroke-dashoffset: 0;
    }
    100% {
      stroke-dashoffset: -1;
    }
  }

  .hero-decor path {
    stroke-dasharray: 1;
    animation: lijn-stroom 16s ease-in-out infinite;
  }

  .hero-decor path:nth-of-type(2) { animation-delay: -2.5s; }
  .hero-decor path:nth-of-type(3) { animation-delay: -5.5s; }
  .hero-decor path:nth-of-type(4) { animation-delay: -8s; }
  .hero-decor path:nth-of-type(5) { animation-delay: -11s; }
  .hero-decor path:nth-of-type(6) { animation-delay: -13.5s; }

  /* De reiziger: een stipje dat over de bovenste hoogtelijn wandelt */
  @keyframes reizen {
    0% {
      offset-distance: 0%;
      opacity: 0;
    }
    8% {
      opacity: 1;
    }
    92% {
      opacity: 1;
    }
    100% {
      offset-distance: 100%;
      opacity: 0;
    }
  }

  @supports (offset-path: path("M0 0 L1 1")) {
    .hero-decor .reiziger {
      display: block;
      offset-path: path("M60 430 C 140 350 120 260 210 230 C 310 197 330 130 430 120");
      animation: reizen 18s ease-in-out infinite;
    }
  }

  /* Heuvel-fallback: zon gloeit, wolken drijven, vogels vliegen over */
  @keyframes gloed {
    from { opacity: 0.25; }
    to { opacity: 0.6; }
  }

  @keyframes drijven {
    from { transform: translateX(-150px); }
    to { transform: translateX(520px); }
  }

  @keyframes vliegen {
    0% { transform: translate(-70px, 0); }
    50% { transform: translate(190px, -20px); }
    100% { transform: translate(470px, 8px); }
  }

  .heuvels .zon-halo {
    animation: gloed 5s ease-in-out infinite alternate;
  }

  .heuvels .wolk {
    animation: drijven 75s linear infinite;
  }

  .heuvels .wolk-2 {
    animation-duration: 95s;
    animation-delay: -40s;
  }

  .heuvels .vogel {
    animation: vliegen 30s linear infinite;
  }

  .heuvels .vogel-2 {
    animation-duration: 37s;
    animation-delay: -13s;
  }

  .heuvels .vogel-3 {
    animation-duration: 26s;
    animation-delay: -21s;
  }

  /* Dalfsen-stip op de regiokaart pulseert */
  @keyframes puls {
    from {
      transform: scale(1);
      opacity: 0.75;
    }
    to {
      transform: scale(2.4);
      opacity: 0;
    }
  }

  .kader-kaart .puls {
    transform-box: fill-box;
    transform-origin: center;
    animation: puls 2.6s ease-out infinite;
  }

  /* Regiokaart: de Vecht stroomt richting Zwolle, en over de weg pendelt
     een werkbusje heen en weer */
  @keyframes water-stroom {
    to {
      stroke-dashoffset: -96;
    }
  }

  .kader-kaart .stroming {
    animation: water-stroom 7s linear infinite;
  }

  @keyframes pendelen {
    from {
      offset-distance: 0%;
    }
    to {
      offset-distance: 100%;
    }
  }

  @supports (offset-path: path("M0 0 L1 1")) {
    .kader-kaart .werkbus {
      display: block;
      offset-path: path("M484 128 C 430 138 386 154 336 166 C 286 178 254 196 214 208 C 172 220 116 234 -6 254");
      animation: pendelen 24s linear infinite alternate;
    }
  }

  /* Kleine hover-details */
  .rij .nr {
    transition: color 0.2s;
  }

  .rij:hover .nr {
    color: var(--mos);
  }

  /* Scroll-reveal (alleen met JS actief) */
  .js .reveal,
  .js .reveal-groep > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s ease, transform 0.65s ease;
  }

  .js .reveal.zichtbaar,
  .js .reveal-groep.zichtbaar > * {
    opacity: 1;
    transform: none;
  }

  .js .reveal-groep.zichtbaar > :nth-child(2) { transition-delay: 0.1s; }
  .js .reveal-groep.zichtbaar > :nth-child(3) { transition-delay: 0.2s; }
  .js .reveal-groep.zichtbaar > :nth-child(4) { transition-delay: 0.3s; }
  .js .reveal-groep.zichtbaar > :nth-child(5) { transition-delay: 0.4s; }
}

/* ---- Toegankelijkheid: minder beweging ---- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
