/* JDL Portal — gebouwd op de huisstijl-tokens (tokens.css). Componenten gebruiken alleen laag 2.
   Eén sterk element: de dagbaan, de lus uit het logo als tijdlijn, met de Tik-stip op "nu". */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--kleur-bg); color: var(--kleur-tekst);
  font: 400 var(--tekst-s)/1.5 var(--font-tekst); -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--kleur-focus); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.zacht { color: var(--kleur-tekst-zacht); }

/* ---------- knoppen ---------- */
.knop {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--ruimte-xs);
  min-height: var(--raak); padding: 0 var(--ruimte-m); border-radius: var(--radius-rond);
  border: 2px solid var(--accent); background: var(--accent); color: var(--kleur-op-accent);
  font-weight: 650; text-decoration: none; cursor: pointer;
  transition: transform var(--duur-micro) var(--ease-uit), background-color var(--duur-micro) var(--ease-uit), border-color var(--duur-micro) var(--ease-uit), color var(--duur-micro) var(--ease-uit);
}
.knop:hover { background: var(--kleur-tekst); border-color: var(--kleur-tekst); color: var(--kleur-bg); }
.knop:active { transform: scale(0.96); }
.knop:disabled { opacity: 0.45; cursor: not-allowed; }
.knop-breed { width: 100%; }
.knop-licht { background: transparent; color: var(--kleur-tekst); border-color: var(--kleur-rand); }
.knop-klein { min-height: 40px; padding: 0 var(--ruimte-s); font-size: var(--tekst-xs); }
.knop svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.rond-knop {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--kleur-rand); background: transparent;
  display: grid; place-items: center; cursor: pointer; transition: transform var(--duur-micro) var(--ease-uit);
}
.rond-knop svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.rond-knop:active { transform: scale(0.92); }

/* ---------- inloggen ---------- */
.poort { min-height: 100dvh; display: grid; place-items: center; padding: var(--ruimte-l) var(--rand-gutter); }
.poort-binnen { width: min(100%, 380px); display: grid; gap: var(--ruimte-m); }
.poort-lus { width: 96px; height: 64px; color: var(--kleur-tekst); margin-bottom: var(--ruimte-s); }
.poort-titel { font-size: var(--tekst-xl); line-height: 0.98; letter-spacing: -0.03em; font-weight: 700; }
.poort-lead { color: var(--kleur-tekst-zacht); font-size: var(--tekst-m); }
.poort-form { display: grid; gap: var(--ruimte-xs); margin-top: var(--ruimte-s); }
.veld-label { font-size: var(--tekst-xs); color: var(--kleur-tekst-zacht); font-weight: 500; }
.veld {
  min-height: 56px; padding: 0 var(--ruimte-s); border-radius: var(--radius-m); border: 2px solid var(--kleur-rand);
  background: var(--kleur-vlak); font-size: var(--tekst-m); letter-spacing: 0.04em;
}
.veld:focus { outline: none; border-color: var(--kleur-tekst); }
.melding { min-height: 1.5em; font-size: var(--tekst-xs); color: var(--accent); }
.namen { display: grid; gap: var(--ruimte-xs); }
.naam-knop {
  display: flex; align-items: center; gap: var(--ruimte-s); min-height: 64px; padding: 0 var(--ruimte-s);
  border-radius: var(--radius-m); border: 2px solid var(--kleur-rand); background: var(--kleur-vlak);
  font-size: var(--tekst-m); font-weight: 600; cursor: pointer; text-align: left;
  transition: border-color var(--duur-micro) var(--ease-uit), transform var(--duur-micro) var(--ease-uit);
}
.naam-knop:hover { border-color: var(--kleur-tekst); }
.naam-knop:active { transform: scale(0.98); }

/* ---------- schil ---------- */
.schil { min-height: 100dvh; }
.kop {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: var(--ruimte-s);
  padding: calc(var(--ruimte-xs) + env(safe-area-inset-top)) var(--rand-gutter) var(--ruimte-xs);
  background: color-mix(in srgb, var(--kleur-bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--kleur-rand);
}
.merk { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.merk-lus { width: 36px; height: 24px; color: var(--kleur-tekst); }
.merk-naam { font-size: 1.125rem; }
.kop-acties { display: flex; align-items: center; gap: var(--ruimte-xs); position: relative; }
.bijgewerkt { font-family: var(--font-mono); font-size: var(--tekst-xs); color: var(--kleur-tekst-zacht); margin-right: var(--ruimte-xs); }
.ik {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; font-weight: 700; color: #fff;
  background: var(--team, var(--kleur-vlak-2));
}
.ik-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px; padding: 6px; border-radius: var(--radius-m);
  background: var(--kleur-vlak); border: 1px solid var(--kleur-rand); box-shadow: 0 16px 40px rgb(0 0 0 / 0.35); display: grid;
}
.ik-menu button { min-height: 44px; padding: 0 12px; border: 0; background: transparent; text-align: left; border-radius: var(--radius-s); cursor: pointer; }
.ik-menu button:hover { background: var(--kleur-vlak-2); }

/* hele pagina: geen zijbalk of tabbalk, de navigatie zit achter de drie streepjes */
:root { --kop-h: calc(65px + env(safe-area-inset-top)); }
.inhoud { padding: var(--ruimte-m) var(--rand-gutter) calc(var(--ruimte-xl) + env(safe-area-inset-bottom)); max-width: 1240px; margin-inline: auto; outline: none; }
.laden { color: var(--kleur-tekst-zacht); padding: var(--ruimte-l) 0; }
@media (min-width: 960px) { .inhoud { padding-top: var(--ruimte-l); } }

.kop-links { display: flex; align-items: center; gap: var(--ruimte-xs); min-width: 0; }
.menu-knop {
  width: 48px; height: 48px; margin-left: -8px; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--kleur-tekst);
}
.menu-knop:hover { background: var(--kleur-vlak); }
.menu-knop .streep { width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--duur-in) var(--ease-uit), opacity var(--duur-micro) var(--ease-uit); }
.menu-knop[aria-expanded="true"] .streep:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-knop[aria-expanded="true"] .streep:nth-child(2) { opacity: 0; }
.menu-knop[aria-expanded="true"] .streep:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.schil.op-start .menu-knop { display: none; }

/* het menu: schermvullend onder de kop */
.menu {
  position: fixed; inset: var(--kop-h) 0 0 0; z-index: 19; background: var(--kleur-bg); overflow-y: auto; overscroll-behavior: contain;
  padding: var(--ruimte-s) var(--rand-gutter) calc(var(--ruimte-m) + env(safe-area-inset-bottom));
}
.menu-binnen { max-width: 1240px; margin-inline: auto; min-height: 100%; display: flex; flex-direction: column; }
.menu-kop { margin-bottom: var(--ruimte-s); }
.menu-kop a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--kleur-tekst-zacht); text-decoration: none; font-weight: 600; }
.menu-kop a:hover, .menu-kop a[aria-current] { color: var(--kleur-tekst); }
.menu-kop a[aria-current]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--kleur-stip); }
body.menu-open { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .menu:not([hidden]) { animation: menu-in var(--duur-in) var(--ease-uit); }
  .menu:not([hidden]) .keuze { animation: keuze-in 360ms var(--ease-uit) both; }
  .menu:not([hidden]) .keuze:nth-child(2) { animation-delay: 40ms; }
  .menu:not([hidden]) .keuze:nth-child(3) { animation-delay: 80ms; }
  .menu:not([hidden]) .keuze:nth-child(4) { animation-delay: 120ms; }
  @keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes keuze-in { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
}

/* ---------- koppen per scherm ---------- */
.scherm-kop { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--ruimte-s); margin-bottom: var(--ruimte-m); }
.scherm-titel { font-size: var(--tekst-l); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
.groet { color: var(--kleur-tekst-zacht); font-size: var(--tekst-m); margin-bottom: 4px; }
.datum-groot { font-size: var(--tekst-xl); line-height: 0.98; letter-spacing: -0.03em; font-weight: 700; }

/* ---------- de dagbaan ---------- */
.baan { margin: var(--ruimte-m) 0 var(--ruimte-m); }
.baan-spoor {
  position: relative; height: 64px; border: 2px solid var(--kleur-tekst); border-radius: var(--radius-rond);
}
.baan-blok {
  position: absolute; top: 8px; bottom: 8px; min-width: 10px; border-radius: var(--radius-rond);
  background: color-mix(in srgb, var(--kleur-tekst) 14%, transparent); border: 0; padding: 0 10px; cursor: pointer; overflow: hidden;
  display: flex; align-items: center; font-size: var(--tekst-xs); font-weight: 600; white-space: nowrap; text-overflow: ellipsis; color: var(--kleur-tekst);
  transition: background-color var(--duur-micro) var(--ease-uit);
}
.baan-blok:hover, .baan-blok[aria-pressed="true"] { background: var(--kleur-tekst); color: var(--kleur-bg); }
.baan-blok.voorbij { opacity: 0.55; }
.baan-blok span { overflow: hidden; text-overflow: ellipsis; }
.baan-nu { position: absolute; top: -2px; width: 0; height: 0; z-index: 2; pointer-events: none; }
.baan-nu::before {
  content: ""; position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--kleur-stip); box-shadow: 0 0 0 5px var(--kleur-bg);
}
.baan-nu-tijd { position: absolute; bottom: 14px; left: 0; transform: translateX(-50%); font-family: var(--font-mono); font-size: var(--tekst-xs); color: var(--kleur-tekst); white-space: nowrap; }
.baan-uren { position: relative; height: 20px; margin-top: 8px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--kleur-tekst-zacht); }
.baan-uren span { position: absolute; transform: translateX(-50%); }
.baan-uren span:first-child { transform: translateX(4px); }
.baan-uren span:last-child { transform: translateX(calc(-100% - 4px)); }
.baan-blok .bt { font-family: var(--font-mono); font-weight: 400; margin-right: 6px; opacity: 0.8; }
.baan-blok.smal { padding: 0; justify-content: center; }
.baan-blok.smal span { display: none; }
.baan-buiten { margin-top: var(--ruimte-xs); font-size: var(--tekst-xs); color: var(--kleur-tekst-zacht); }
.baan-kop { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 30px; gap: var(--ruimte-s); }
.baan-kop p { font-size: var(--tekst-xs); color: var(--kleur-tekst-zacht); }
@media (prefers-reduced-motion: no-preference) {
  .baan-nu.landt::before { animation: landen 640ms var(--ease-veer) both; }
  @keyframes landen { from { transform: translateY(-28px) scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ---------- regels (lijsten) ---------- */
.regels { display: grid; }
.regel {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: var(--ruimte-s); align-items: start;
  padding: 14px 0; border-top: 1px solid var(--kleur-rand);
}
.regel:last-child { border-bottom: 1px solid var(--kleur-rand); }
.regel-tijd { font-family: var(--font-mono); font-size: var(--tekst-xs); color: var(--kleur-tekst-zacht); padding-top: 2px; font-variant-numeric: tabular-nums; }
.regel-titel { font-weight: 600; line-height: 1.3; }
.regel-sub { font-size: var(--tekst-xs); color: var(--kleur-tekst-zacht); margin-top: 2px; }
.regel.actief .regel-tijd { color: var(--kleur-tekst); }
.regel.actief .regel-titel::after { content: "Nu"; margin-left: 8px; font-size: 0.75rem; font-weight: 600; color: var(--accent); }
.regel.gemarkeerd { background: var(--kleur-vlak); border-radius: var(--radius-s); margin: 0 calc(-1 * var(--ruimte-xs)); padding-left: var(--ruimte-xs); padding-right: var(--ruimte-xs); }
.soort { font-size: 0.75rem; color: var(--kleur-tekst-zacht); }

.wie { display: flex; }
.wie i {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal;
  font-size: 0.6875rem; font-weight: 700; color: #fff; background: var(--kleur-vlak-2); box-shadow: 0 0 0 2px var(--kleur-bg);
}
.wie i + i { margin-left: -6px; }

/* ---------- Vandaag: modules ---------- */
.deuren { display: grid; gap: var(--ruimte-l); margin-top: var(--ruimte-l); }
@media (min-width: 720px) { .deuren { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ruimte-m); } }
.deur { display: grid; align-content: start; gap: var(--ruimte-s); }
.deur-kop { display: flex; align-items: center; justify-content: space-between; gap: var(--ruimte-xs); padding-bottom: var(--ruimte-xs); border-bottom: 2px solid var(--kleur-tekst); }
.deur-kop h2 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; letter-spacing: -0.01em; font-weight: 700; }
.deur-kop h2 svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.deur-kop a { font-size: var(--tekst-xs); color: var(--kleur-tekst-zacht); display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; }
.deur-kop a:hover { color: var(--kleur-tekst); }
.deur-kop a svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.getal { display: flex; align-items: baseline; gap: 10px; }
.getal b { font-size: 2.5rem; line-height: 1; letter-spacing: -0.03em; font-weight: 700; font-variant-numeric: tabular-nums; }
.getal span { color: var(--kleur-tekst-zacht); font-size: var(--tekst-xs); }
.mini { display: grid; }
.mini li { padding: 10px 0; border-top: 1px solid var(--kleur-rand); display: grid; gap: 2px; }
.mini .t { font-weight: 600; font-size: 0.9375rem; line-height: 1.3; }
.mini .s { font-size: var(--tekst-xs); color: var(--kleur-tekst-zacht); }
.mini-leeg { font-size: var(--tekst-xs); color: var(--kleur-tekst-zacht); padding: 10px 0; border-top: 1px solid var(--kleur-rand); }
.bron-weg { font-size: var(--tekst-xs); color: var(--kleur-waarschuwing); }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--ruimte-xs); margin-bottom: var(--ruimte-m); }
.chip {
  min-height: 40px; padding: 0 14px; border-radius: var(--radius-rond); border: 1px solid var(--kleur-rand);
  background: transparent; cursor: pointer; font-size: var(--tekst-xs); font-weight: 600; color: var(--kleur-tekst-zacht);
}
.chip:hover { color: var(--kleur-tekst); border-color: var(--kleur-tekst-zacht); }
.chip[aria-pressed="true"] { background: var(--kleur-tekst); border-color: var(--kleur-tekst); color: var(--kleur-bg); }
.chip b { font-weight: 600; opacity: 0.7; margin-left: 4px; font-variant-numeric: tabular-nums; }

/* ---------- Cadans ---------- */
.sprint { display: grid; gap: var(--ruimte-xs); padding: var(--ruimte-m); border-radius: var(--radius-l); background: var(--kleur-vlak); margin-bottom: var(--ruimte-m); }
.sprint-rij { display: flex; justify-content: space-between; align-items: baseline; gap: var(--ruimte-s); flex-wrap: wrap; }
.sprint-naam { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.015em; }
.sprint-doel { color: var(--kleur-tekst-zacht); }
.voortgang { height: 10px; border-radius: var(--radius-rond); background: var(--kleur-vlak-2); overflow: hidden; margin-top: var(--ruimte-xs); }
.voortgang i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.sprint-cijfers { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: var(--tekst-xs); color: var(--kleur-tekst-zacht); }
.kolommen { display: grid; gap: var(--ruimte-l); }
@media (min-width: 1100px) { .kolommen { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ruimte-m); } }
.kolom h3 { display: flex; align-items: center; justify-content: space-between; font-size: 1rem; font-weight: 700; padding-bottom: var(--ruimte-xs); border-bottom: 2px solid var(--kleur-tekst); }
.kolom h3 span { font-family: var(--font-mono); font-weight: 400; color: var(--kleur-tekst-zacht); font-size: var(--tekst-xs); }
.taak { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px var(--ruimte-s); padding: 12px 0; border-bottom: 1px solid var(--kleur-rand); }
.taak-titel { font-weight: 600; line-height: 1.3; }
.taak-sub { grid-column: 1; font-size: var(--tekst-xs); color: var(--kleur-tekst-zacht); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.taak .wie { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.te-laat { color: var(--accent); font-weight: 600; }
.hoog { color: var(--accent); font-weight: 600; }

/* ---------- Agenda ---------- */
.dag { margin-bottom: var(--ruimte-l); }
.dag-titel { display: flex; align-items: baseline; gap: 12px; padding-bottom: var(--ruimte-xs); font-size: 1.125rem; font-weight: 700; }
.dag-titel .mono { font-size: var(--tekst-xs); font-weight: 400; color: var(--kleur-tekst-zacht); }
.dag-titel.is-vandaag::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--kleur-stip); align-self: center; }
.dag .regel:last-child { border-bottom: 1px solid var(--kleur-rand); }

/* ---------- Klanten ---------- */
.zoek { position: relative; margin-bottom: var(--ruimte-s); max-width: 520px; }
.zoek svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--kleur-tekst-zacht); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.zoek .veld { width: 100%; padding-left: 48px; letter-spacing: 0; font-size: var(--tekst-s); min-height: 52px; }
.klant { border-top: 1px solid var(--kleur-rand); }
.klant:last-child { border-bottom: 1px solid var(--kleur-rand); }
.klant summary {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--ruimte-s); align-items: center; padding: 14px 0; cursor: pointer; list-style: none;
}
.klant summary::-webkit-details-marker { display: none; }
.klant-naam { font-weight: 650; }
.klant-sub { grid-column: 1; font-size: var(--tekst-xs); color: var(--kleur-tekst-zacht); }
.klant-rechts { grid-row: 1 / span 2; grid-column: 2; display: flex; align-items: center; gap: var(--ruimte-xs); }
.status { font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: var(--radius-rond); border: 1px solid var(--kleur-rand); color: var(--kleur-tekst-zacht); white-space: nowrap; }
.status-actief { color: var(--kleur-succes); border-color: currentColor; }
.status-prospect { color: var(--kleur-tekst); border-color: var(--kleur-tekst); }
.status-gepauzeerd { color: var(--kleur-waarschuwing); border-color: currentColor; }
.klant-detail { display: grid; gap: var(--ruimte-m); padding: 0 0 var(--ruimte-m); }
@media (min-width: 720px) { .klant-detail { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.klant-detail h4 { margin: 0 0 6px; font-size: var(--tekst-xs); font-weight: 600; color: var(--kleur-tekst-zacht); }
.klant-detail li { padding: 8px 0; border-top: 1px solid var(--kleur-rand); font-size: 0.9375rem; }
.klant-detail li small { display: block; color: var(--kleur-tekst-zacht); font-size: var(--tekst-xs); }
.klant-acties { grid-column: 1 / -1; }

/* ---------- leeg en fout ---------- */
.leeg { padding: var(--ruimte-l) 0; color: var(--kleur-tekst-zacht); max-width: 46ch; }
.leeg strong { display: block; color: var(--kleur-tekst); font-size: var(--tekst-m); margin-bottom: 4px; }
.storing { padding: var(--ruimte-s) var(--ruimte-m); border-radius: var(--radius-m); border: 1px solid var(--kleur-waarschuwing); color: var(--kleur-tekst); font-size: var(--tekst-xs); margin-bottom: var(--ruimte-m); }

.demo-pil { justify-self: start; margin-right: auto; padding: 4px 10px; border-radius: var(--radius-rond); border: 1px solid var(--kleur-waarschuwing); color: var(--kleur-waarschuwing); font-size: 0.75rem; font-weight: 600; }
@media (max-width: 420px) { .bijgewerkt { display: none; } }

/* ---------- beginscherm en menu: vier keuzes die het scherm vullen ---------- */
.schil.op-start .inhoud { min-height: calc(100dvh - var(--kop-h)); display: flex; flex-direction: column; padding-bottom: calc(var(--ruimte-s) + env(safe-area-inset-bottom)); max-width: none; }
.begin { flex: 1; display: flex; flex-direction: column; gap: var(--ruimte-m); width: 100%; max-width: 1440px; margin-inline: auto; }
.begin-intro { display: grid; gap: 4px; }
.begin .groet { margin: 0; font-size: var(--tekst-s); }
.begin-titel { font-size: var(--tekst-l); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }

.keuzes { flex: 1; display: flex; flex-direction: column; border-top: 2px solid var(--kleur-tekst); }
.keuze { flex: 1 1 0; min-height: 112px; display: grid; grid-template-columns: minmax(0, 1fr) 48px; align-items: stretch; border-bottom: 1px solid var(--kleur-rand); }
.keuze-hoofd {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--ruimte-s);
  padding: var(--ruimte-s) var(--ruimte-xs); text-decoration: none; border-radius: var(--radius-m);
  transition: background-color var(--duur-micro) var(--ease-uit);
}
.keuze-hoofd:hover { background: var(--kleur-vlak); }
.keuze-hoofd:active { background: var(--kleur-vlak-2); }
.keuze-tekst { display: grid; gap: 6px; min-width: 0; }
.keuze-naam {
  display: inline-flex; align-items: center; gap: 0.18em;
  font-size: clamp(2.75rem, min(12vw, 10.5vh), 7.5rem); line-height: 1; letter-spacing: -0.04em; font-weight: 700; padding-bottom: 0.06em;
}
/* De Tik-stip markeert waar je naartoe gaat, en waar je bent. */
.keuze-naam::after {
  content: ""; width: 0.16em; height: 0.16em; border-radius: 50%; background: var(--kleur-stip); align-self: flex-start; margin-top: 0.08em;
  transform: scale(0); transition: transform var(--duur-in) var(--ease-veer);
}
.keuze-hoofd:hover .keuze-naam::after, .keuze-hoofd:focus-visible .keuze-naam::after, .keuze-hoofd[aria-current] .keuze-naam::after { transform: scale(1); }
.keuze-uitleg { font-size: clamp(0.8125rem, 1.6vw, 1.0625rem); color: var(--kleur-tekst-zacht); line-height: 1.35; }
.keuze-uitleg.te-laat { color: var(--accent); font-weight: 600; }
.keuze-getal { font-size: clamp(2.25rem, min(9vw, 9vh), 6rem); font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; color: var(--kleur-tekst-zacht); }
.keuze-hoofd:hover .keuze-getal, .keuze-hoofd[aria-current] .keuze-getal { color: var(--kleur-tekst); }
.keuze-app {
  width: 44px; height: 44px; align-self: center; justify-self: end; display: grid; place-items: center; border-radius: 50%;
  color: var(--kleur-tekst-zacht); border: 1px solid transparent; transition: border-color var(--duur-micro) var(--ease-uit), color var(--duur-micro) var(--ease-uit);
}
a.keuze-app:hover { color: var(--kleur-tekst); border-color: var(--kleur-rand); }
.keuze-app svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Het ene introductiemoment: de vier keuzes schuiven één keer binnen. */
@media (prefers-reduced-motion: no-preference) {
  .begin.speelt .keuze { animation: keuze-in 520ms var(--ease-uit) both; }
  .begin.speelt .keuze:nth-child(2) { animation-delay: 70ms; }
  .begin.speelt .keuze:nth-child(3) { animation-delay: 140ms; }
  .begin.speelt .keuze:nth-child(4) { animation-delay: 210ms; }
}

/* ---------- intro: de lus met vier stations ---------- */
.intro-link { justify-self: start; margin-top: 2px; font-size: var(--tekst-xs); color: var(--kleur-tekst-zacht); text-underline-offset: 3px; min-height: 32px; display: inline-flex; align-items: center; }
.intro-link:hover { color: var(--kleur-tekst); }
.menu-kop { display: flex; gap: var(--ruimte-m); }

.intro { flex: 1; width: 100%; max-width: 1040px; margin-inline: auto; display: flex; flex-direction: column; gap: var(--ruimte-m); }
.intro-kop { display: grid; gap: 4px; }
.intro-kop .groet { margin: 0; font-size: var(--tekst-s); }
.intro-titel { font-size: var(--tekst-xl); line-height: 0.98; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; }
.intro-lead { color: var(--kleur-tekst-zacht); max-width: 46ch; margin-top: 6px; }

.lus-veld { position: relative; height: clamp(200px, 30vh, 380px); margin: 44px 0 48px; }
.lus-svg { position: absolute; inset: 0; overflow: visible; }
.lus-pad { fill: none; stroke: var(--kleur-tekst); stroke-width: 3; }
.lus-stip { fill: var(--kleur-stip); stroke: var(--kleur-bg); stroke-width: 7; paint-order: stroke; }

.station {
  position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px; padding: 0; border: 0; background: transparent;
  cursor: pointer; display: grid; place-items: center; color: var(--kleur-tekst-zacht); z-index: 1;
}
.station-punt { width: 18px; height: 18px; border-radius: 50%; background: var(--kleur-bg); border: 3px solid var(--kleur-tekst); transition: transform var(--duur-in) var(--ease-veer), background-color var(--duur-micro) var(--ease-uit); }
.station.gekoppeld .station-punt { background: var(--kleur-tekst); }
.station:hover .station-punt { transform: scale(1.25); }
.station[aria-pressed="true"] { color: var(--kleur-tekst); }
.station-label { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: baseline; gap: 8px; white-space: nowrap; font-weight: 700; font-size: clamp(1rem, 2.4vw, 1.375rem); letter-spacing: -0.01em; transition: color var(--duur-micro) var(--ease-uit); }
.station.boven .station-label { bottom: 100%; }
.station.onder .station-label { top: 100%; }
.station-getal { font-variant-numeric: tabular-nums; font-weight: 600; opacity: 0.75; }
.station:hover { color: var(--kleur-tekst); }

.lus-midden { position: absolute; inset: 22% 14%; display: grid; place-content: center; justify-items: center; text-align: center; gap: 6px; pointer-events: none; }
.lus-naam { font-size: clamp(2.5rem, 9vw, 5.5rem); line-height: 1; letter-spacing: -0.04em; font-weight: 700; }
.lus-stand { font-size: var(--tekst-xs); color: var(--kleur-tekst-zacht); max-width: 34ch; }
.lus-stand.te-laat { color: var(--accent); font-weight: 600; }

.lus-uitleg { display: grid; gap: var(--ruimte-s); min-height: 168px; align-content: start; }
.lus-tekst { font-size: var(--tekst-m); max-width: 52ch; }
.lus-koppel { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ruimte-xs); }
.lus-koppel > span { font-size: var(--tekst-xs); color: var(--kleur-tekst-zacht); margin-right: 4px; }
.knoppen-rij { display: flex; flex-wrap: wrap; gap: var(--ruimte-xs); }

.intro-voet { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ruimte-s); padding-top: var(--ruimte-s); border-top: 1px solid var(--kleur-rand); }
.intro-stappen { display: flex; align-items: center; gap: var(--ruimte-xs); }
.intro-stappen svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.intro-teller { font-size: var(--tekst-xs); color: var(--kleur-tekst-zacht); min-width: 5.5em; text-align: center; }
@media (max-width: 520px) { .intro-voet .knop { width: 100%; } .intro-stappen { width: 100%; justify-content: space-between; } }
@media (prefers-reduced-motion: no-preference) {
  .lus-uitleg > * { animation: uitleg-in 320ms var(--ease-uit) both; }
  @keyframes uitleg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
/* De stip neemt de plek van het actieve station in. */
.station[aria-pressed="true"] .station-punt { background: transparent; border-color: transparent; }
@media (min-width: 960px) {
  .intro {
    display: grid; max-width: 1360px; column-gap: var(--ruimte-xl); row-gap: var(--ruimte-m);
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    grid-template-rows: auto auto 1fr auto; grid-template-areas: "kop lus" "uitleg lus" "leeg lus" "voet lus";
  }
  .intro-kop { grid-area: kop; }
  .lus-uitleg { grid-area: uitleg; min-height: 0; }
  .intro-voet { grid-area: voet; }
  .lus-veld { grid-area: lus; align-self: center; height: clamp(300px, 50vh, 540px); margin: 52px 40px; }
  .intro-titel { font-size: clamp(2.5rem, 4.4vw, 4.25rem); }
}
