/* CT Administraties: routekaart-stijl, licht, vierkant. Bitter (kop), Inter Tight (tekst), Roboto Mono (refs en data). */
:root {
  --paper: #fbfcf9;
  --tint: #f1f4ef;
  --tint-2: #e6ece3;
  --ink: #1a2420;
  --ink-2: #425049;
  --ink-3: #66726a;
  --rule: #d3dbd0;
  --rule-2: #a6b2a7;
  --accent: #1d5c3b;
  --accent-2: #154630;
  --accent-soft: #e3eee6;
  --f-kop: "Bitter", Georgia, "Times New Roman", serif;
  --f-tekst: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gutter: 16px;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-tekst);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.2; color: var(--ink); }
p { margin: 0 0 1em; }
ol, ul { margin: 0; padding: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); min-width: 0; }
h1, h2, h3, p, a { overflow-wrap: anywhere; }
.artikel__rij, .over__rij, .poorthoofd__rij, .voet__rij { min-width: 0; }
.mono { font-family: var(--f-mono); font-size: 0.8125rem; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.eyebrow { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 10px 14px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

/* kop */
.kop { background: var(--paper); border-bottom: 1px solid var(--rule); }
.kop__rij { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 14px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo__merk { flex: none; }
.logo__naam { font-family: var(--f-kop); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.005em; }
.menu { display: flex; gap: 22px; flex-wrap: wrap; }
.menu a { color: var(--ink-2); text-decoration: none; font-size: 0.9375rem; font-weight: 500; }
.menu a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.poorten { background: var(--tint); border-top: 1px solid var(--rule); }
.poorten .wrap { padding: 0; max-width: none; }
.poorten__lijst { display: flex; overflow-x: auto; scrollbar-width: none; list-style: none; }
.poorten__lijst::-webkit-scrollbar { display: none; }
.poorten__lijst li { flex: 1 0 auto; border-right: 1px solid var(--rule); }
.poorten__lijst li:first-child { border-left: 1px solid var(--rule); }
.poorten__lijst a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; text-decoration: none; color: var(--ink); font-size: 0.9375rem; font-weight: 500; white-space: nowrap; }
.poorten__lijst a:hover { background: var(--accent-soft); }
.poorten__lijst a[aria-current="page"] { background: var(--accent); color: #fff; }
.poorten__lijst a[aria-current="page"] .poorten__nr { color: #d9e8dc; }
.poorten__nr { color: var(--accent); font-size: 0.75rem; }

/* hero */
.hero { padding: 36px 0 40px; }
.hero__titel { min-width: 0; font-family: var(--f-kop); font-weight: 700; font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.08; letter-spacing: -0.012em; max-width: 19ch; margin-bottom: 20px; }
.hero__intro { font-size: 1.125rem; color: var(--ink-2); max-width: 62ch; margin-bottom: 26px; }
.hero__acties { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.knop { display: inline-block; background: var(--accent); color: #fff; padding: 14px 22px; font-weight: 600; font-size: 0.9375rem; text-decoration: none; border: 1px solid var(--accent); }
.knop:hover { background: var(--accent-2); color: #fff; }
.lnk { font-weight: 600; font-size: 0.9375rem; }

.route { margin: 44px 0 0; background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 8px 0; }
.route svg { width: 100%; height: auto; }
.route__zee { fill: var(--tint-2); }
.route__zeelabel { font-family: var(--f-mono); font-size: 14px; fill: var(--ink-3); letter-spacing: 0.12em; text-transform: uppercase; }
.route__lijn { fill: none; stroke: var(--rule-2); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.route__gedaan { fill: none; stroke: var(--accent); stroke-width: 4; }
.route__titel { font-family: var(--f-mono); font-size: 17px; fill: var(--ink); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }
.route__sub { font-family: var(--f-tekst); font-size: 18px; fill: var(--ink-2); }
.route__stop rect { fill: var(--paper); stroke: var(--accent); stroke-width: 3; }
.route__stop .route__eind { fill: var(--accent); }
.route__poort path { stroke: var(--ink); stroke-width: 3; fill: none; }
.route__poort path:last-child { stroke: var(--rule-2); stroke-width: 2; }
.route__slag { fill: var(--accent); }
.stappen { display: none; }

/* secties */
.sec { padding: 72px 0; }
.sec--grijs { background: var(--tint); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sec__kop { margin-bottom: 32px; max-width: 64ch; }
.sec__titel { font-family: var(--f-kop); font-weight: 600; font-size: clamp(1.6rem, 2.8vw, 2.25rem); letter-spacing: -0.008em; }
.sec__titel--klein { font-size: 1.25rem; font-family: var(--f-tekst); font-weight: 600; margin-bottom: 8px; }
.sec__inleiding { color: var(--ink-2); margin-top: 12px; font-size: 1.0625rem; }

/* poorten als rijen */
.poortlijst { list-style: none; border-bottom: 1px solid var(--rule); }
.poortlijst li { border-top: 1px solid var(--rule); }
.poortrij { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px 20px; align-items: baseline; padding: 22px 0; text-decoration: none; color: var(--ink); transition: background .15s; }
.poortrij:hover { background: var(--accent-soft); }
.poortrij--huidig { background: var(--accent-soft); }
.poortrij__nr { color: var(--accent); font-size: 1rem; font-weight: 500; }
.poortrij__tekst { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.poortrij__naam { font-family: var(--f-kop); font-weight: 600; font-size: 1.25rem; line-height: 1.25; }
.poortrij__omschr { color: var(--ink-2); font-size: 0.9375rem; max-width: 70ch; }
.poortrij__aantal { grid-column: 2; color: var(--ink-3); white-space: nowrap; font-size: 0.75rem; }
.poortrij:hover .poortrij__naam { color: var(--accent-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* artikelregels */
.regels { border-bottom: 1px solid var(--rule); }
.regel { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px 20px; padding: 22px 0; border-top: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.regel:hover .regel__titel { color: var(--accent-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.regel__ref { color: var(--accent); font-size: 0.8125rem; padding-top: 4px; }
.regel__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.regel__poort { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.regel__titel { font-family: var(--f-kop); font-weight: 600; font-size: 1.25rem; line-height: 1.3; }
.regel__samen { color: var(--ink-2); font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.regel__meta { grid-column: 2; display: flex; gap: 16px; color: var(--ink-3); font-size: 0.75rem; }

/* werkwijze / noten */
.noten { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid var(--rule); }
.noten li { border-top: 1px solid var(--rule); padding: 24px 0; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px 20px; }
.noten__nr { color: var(--accent); padding-top: 5px; }
.noten__titel { font-family: var(--f-kop); font-size: 1.25rem; font-weight: 600; margin-bottom: 6px; }
.noten p { grid-column: 2; margin: 0; color: var(--ink-2); max-width: 62ch; }
.werkwijze { max-width: var(--wrap); }

.leeg { color: var(--ink-2); padding: 28px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

/* poorthoofd (categorie) */
.poorthoofd { padding: 44px 0 40px; background: var(--paper); border-bottom: 1px solid var(--rule); }
.poorthoofd__rij { display: grid; grid-template-columns: 1fr; gap: 12px; }
.poorthoofd__nr { font-size: 3.4rem; line-height: 1; font-family: var(--f-kop); font-weight: 700; color: var(--accent); letter-spacing: -0.02em; }
.poorthoofd__titel { font-family: var(--f-kop); font-weight: 700; font-size: clamp(1.9rem, 3.8vw, 2.8rem); line-height: 1.12; letter-spacing: -0.01em; max-width: 24ch; margin: 14px 0 14px; }
.poorthoofd__inleiding { font-size: 1.125rem; color: var(--ink-2); max-width: 62ch; margin-bottom: 14px; }
.poorthoofd__feit { color: var(--ink-3); font-size: 0.8125rem; margin: 0; }

/* kruimels */
.kruimels ol { display: flex; flex-wrap: wrap; list-style: none; font-size: 0.8125rem; color: var(--ink-3); }
.kruimels li + li::before { content: "/"; margin: 0 9px; color: var(--rule-2); }
.kruimels a { color: var(--ink-2); }

/* artikel */
.artikel { padding: 36px 0 56px; }
.artikel__rij { display: grid; grid-template-columns: 1fr; }
.artikel__kop { margin-bottom: 28px; }
.artikel__kop .kruimels { margin-bottom: 22px; }
.artikel__poort { color: var(--accent); margin-bottom: 12px; }
.artikel__poort a { color: var(--accent); }
.artikel__titel { font-family: var(--f-kop); font-weight: 700; font-size: clamp(1.7rem, 3.1vw, 2.6rem); line-height: 1.16; letter-spacing: -0.01em; max-width: 30ch; margin-bottom: 18px; }
.artikel__meta { display: flex; gap: 18px; color: var(--ink-3); flex-wrap: wrap; margin: 0; }
.artikel__tekst { min-width: 0; max-width: 68ch; }
.artikel__zij { margin-top: 40px; min-width: 0; }

.kort { background: var(--accent-soft); border-top: 3px solid var(--accent); padding: 22px 24px; margin-bottom: 36px; }
.kort__kop { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.kort__tekst { font-size: 1.0625rem; color: var(--ink); margin: 0; line-height: 1.6; }

.prose { font-size: 1.0625rem; line-height: 1.72; color: var(--ink); counter-reset: sec; }
.prose p { margin: 0 0 1.05em; }
.prose h2 { counter-increment: sec; font-family: var(--f-kop); font-weight: 600; font-size: clamp(1.45rem, 2.4vw, 1.8rem); line-height: 1.22; margin: 2.6em 0 0.7em; padding-top: 18px; border-top: 1px solid var(--rule); }
.prose h2::before { content: counter(sec, decimal-leading-zero); display: block; font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 8px; font-weight: 500; }
.prose h3 { font-family: var(--f-tekst); font-weight: 600; font-size: 1.1875rem; margin: 1.8em 0 0.5em; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose ul, .prose ol { padding-left: 0; margin: 0 0 1.2em; list-style: none; }
.prose ul li, .prose ol li { position: relative; padding-left: 26px; margin-bottom: 0.45em; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 8px; height: 8px; background: var(--accent); }
.prose ol { counter-reset: li; }
.prose ol li { counter-increment: li; }
.prose ol li::before { content: counter(li) "."; position: absolute; left: 0; top: 0; font-family: var(--f-mono); font-size: 0.8125rem; color: var(--accent); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); color: var(--ink-2); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 0.9375rem; line-height: 1.5; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule-2); }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; min-width: 7ch; }
.prose th { background: var(--tint); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.02em; color: var(--ink); border-bottom: 1px solid var(--rule-2); }
.prose td[align="right"], .prose th[align="right"], .prose td.num, .prose th.num { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.prose code { font-family: var(--f-mono); font-size: 0.9em; background: var(--tint); padding: 1px 5px; }
.prose img { max-width: 100%; height: auto; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }

.vragen { margin-top: 48px; border-top: 2px solid var(--ink); padding-top: 24px; }
.vragen__kop { font-family: var(--f-kop); font-weight: 600; font-size: 1.55rem; margin-bottom: 8px; }
.vraag { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.vraag__q { font-family: var(--f-tekst); font-weight: 600; font-size: 1.0625rem; line-height: 1.4; margin-bottom: 8px; color: var(--ink); }
.vraag__a { color: var(--ink-2); margin: 0; }

/* routekaart (kaartje) */
.kaart { background: #fff; border: 1px solid var(--rule-2); }
.kaart__kop { display: flex; justify-content: space-between; align-items: center; background: var(--accent); color: #fff; padding: 12px 16px; }
.kaart__merk { font-family: var(--f-kop); font-weight: 700; font-size: 1.0625rem; }
.kaart__soort { font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: #cfe2d4; }
.kaart__velden { margin: 0; padding: 4px 16px; }
.kaart__velden > div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.kaart__velden > div:last-child { border-bottom: 0; }
.kaart dt { font-family: var(--f-mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); padding-top: 3px; }
.kaart dd { margin: 0; font-size: 0.9375rem; color: var(--ink); line-height: 1.4; }
.kaart__strepen { height: 40px; margin: 6px 16px 0; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 10px, var(--ink) 10px 13px, transparent 13px 15px); opacity: 0.8; }
.kaart__voet { margin: 8px 0 0; padding: 10px 16px 12px; color: var(--ink-3); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.1em; text-align: center; border-top: 1px solid var(--rule); }

.zij__blok { margin-top: 28px; }
.zij__kop { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.zij__lijst { list-style: none; border-bottom: 1px solid var(--rule); }
.zij__lijst li { border-top: 1px solid var(--rule); }
.zij__lijst a { display: block; padding: 12px 0; font-family: var(--f-kop); font-weight: 600; font-size: 1rem; line-height: 1.35; color: var(--ink); text-decoration: none; }
.zij__lijst a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* over, 404 */
.over { padding: 40px 0 56px; }
.over__rij { display: grid; grid-template-columns: 1fr; gap: 28px 56px; }
.over__kop .kruimels { margin-bottom: 22px; }
.over__titel { font-family: var(--f-kop); font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.12; margin-bottom: 16px; }
.over__kort { font-size: 1.125rem; color: var(--ink-2); max-width: 40ch; }
.over__tekst { max-width: 68ch; }
.lijn-404 { padding: 72px 0; }
.lijn-404 .wrap { max-width: 760px; }
.lijn-404__titel { font-family: var(--f-kop); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; margin-bottom: 16px; }
.lijn-404__tekst { font-size: 1.125rem; color: var(--ink-2); margin-bottom: 24px; }
.lijn-404 .poortlijst { margin-top: 40px; }

/* voet */
.voet { background: var(--tint); border-top: 4px solid var(--accent); }
.voet__rij { display: grid; grid-template-columns: 1fr; gap: 32px; padding-top: 48px; padding-bottom: 36px; }
.voet__naam { font-family: var(--f-kop); font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.voet__blok p { color: var(--ink-2); font-size: 0.9375rem; max-width: 46ch; }
.voet__kop { color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; margin-bottom: 12px; }
.voet__lijst { list-style: none; }
.voet__lijst li { padding: 5px 0; }
.voet__lijst a { color: var(--ink-2); text-decoration: none; font-size: 0.9375rem; }
.voet__lijst a:hover { color: var(--accent); text-decoration: underline; }
.voet__onder { display: flex; flex-direction: column; gap: 6px; justify-content: space-between; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 0.75rem; }

/* tablet en groter */
@media (min-width: 720px) {
  .hero { padding: 64px 0 52px; }
  .regel { grid-template-columns: 56px 1fr auto; align-items: start; }
  .regel__meta { grid-column: auto; flex-direction: column; align-items: flex-end; gap: 4px; padding-top: 4px; }
  .poortrij { grid-template-columns: 72px 1fr auto; }
  .poortrij__aantal { grid-column: auto; }
  .noten { grid-template-columns: 1fr 1fr; gap: 0 48px; }
  .voet__rij { grid-template-columns: 1.4fr 1fr 1fr; }
  .voet__onder { flex-direction: row; }
  .poorthoofd__rij { grid-template-columns: auto 1fr; gap: 36px; align-items: start; }
  .poorthoofd__nr { font-size: 5rem; }
  .over__rij { grid-template-columns: 5fr 7fr; }
}

/* routekaart: alleen breed genoeg voor de tekening */
@media (min-width: 820px) {
  .route { display: block; }
  .stappen { display: none; }
}
@media (max-width: 819px) {
  .route { display: none; }
  .stappen { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; list-style: none; margin: 36px 0 0; border-left: 2px solid var(--accent); }
  .stappen li { position: relative; display: flex; gap: 14px; align-items: baseline; padding: 14px 0 14px 22px; border-bottom: 1px solid var(--rule); font-size: 1rem; color: var(--ink-2); }
  .stappen li:last-child { border-bottom: 0; }
  .stappen strong { color: var(--ink); font-weight: 600; min-width: 84px; }
  .stappen__stip { position: absolute; left: -7px; top: 22px; width: 12px; height: 12px; background: var(--paper); border: 2px solid var(--accent); }
  .stappen li:first-child .stappen__stip, .stappen li:last-child .stappen__stip { background: var(--accent); }
  .hero { padding-top: 36px; }
}

/* desktop: artikel met routekaart rechts */
@media (min-width: 960px) {
  .artikel__rij { grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "kop kop" "tekst zij"; column-gap: 64px; }
  .artikel__kop { grid-area: kop; max-width: 880px; }
  .artikel__tekst { grid-area: tekst; }
  .artikel__zij { grid-area: zij; margin-top: 0; position: sticky; top: 24px; align-self: start; }
}
@media (min-width: 1080px) {
  .poorten__lijst a { padding: 13px 18px; }
  .sec { padding: 96px 0; }
}

@media (max-width: 380px) {
  .logo__naam { font-size: 1.2rem; }
  .menu { gap: 14px; }
  .menu a { font-size: 0.875rem; }
  .kaart__velden > div { grid-template-columns: 84px 1fr; }
}
