/* Parkeerwijzer Apeldoorn. Version: 1 */
@font-face { font-family: "Bricolage"; src: url("/fonts/bricolage-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/plexmono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/plexmono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --papier: #f5f2ea; --wit: #fffdf8; --inkt: #1c1f24; --grijs: #5b6068; --lijn: #d9d3c4;
  --blauw: #1d4f91; --blauw-d: #133766; --nacht: #14233a; --amber: #f0a92b; --amber-d: #9a5f00; --groen: #2f7a4b; --rood: #a8322d;
  --z-hoog: #1d4f91; --z-midden: #4f7fbf; --z-terrein: #8fb0da; --z-wijk: #f0a92b; --z-anklaar: #2f7a4b;
  --wrap: 1180px; --smal: 720px; --r: 10px;
  --digit-dur: 500ms; --digit-distance: 8px; --digit-stagger: 70ms; --digit-blur: 2px;
  --digit-ease: cubic-bezier(0.34, 1.45, 0.64, 1); --digit-dir-x: 0; --digit-dir-y: 1;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--inkt); font: 400 1.0625rem/1.6 "Bricolage", system-ui, sans-serif; font-optical-sizing: auto; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blauw); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
h1, h2, h3 { font-family: "Bricolage", system-ui, sans-serif; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 750; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
.mono, .cijfer, .bon-bedrag { font-family: "Plex Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.smal { max-width: calc(var(--smal) + 64px); }
.smal-kop, .intro-smal { max-width: var(--smal); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--wit); padding: 8px 12px; z-index: 10; }
.kicker { font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blauw); margin-bottom: .8em; }
.kicker a { text-decoration: none; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.55; }
.noot { font-size: .92rem; color: var(--grijs); }
.hint { font-size: .92rem; color: var(--grijs); margin: .35em 0 0; }

/* header */
.top { background: var(--papier); border-bottom: 1px solid var(--lijn); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.merk { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--inkt); }
.merkteken { width: 34px; height: 34px; flex: none; }
.merk-naam { display: flex; flex-direction: column; line-height: 1.05; font-weight: 500; font-size: .95rem; }
.merk-naam b { font-weight: 750; font-size: 1.1rem; }
.top nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.top nav a { color: var(--inkt); text-decoration: none; font-weight: 550; padding: 11px 0; border-bottom: 2px solid transparent; }
.top nav a:hover, .top nav a[aria-current="page"] { border-bottom-color: var(--amber); }

/* hero */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(28px, 5vw, 56px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-beeld { margin: 0; }
.hero-beeld img { border-radius: var(--r); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.hero-actie { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 1.4em; }
.knop { display: inline-block; background: var(--amber); color: var(--inkt); font-weight: 700; padding: 12px 20px; border-radius: 8px; text-decoration: none; }
.knop:hover { background: #f5b947; }
.knop-tekst { font-weight: 600; display: inline-block; padding: 10px 0; }
.knop-licht { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); border-radius: 8px; padding: 10px 14px; font: inherit; font-weight: 600; cursor: pointer; align-self: end; }
.knop-licht:hover { border-color: #fff; }

/* donkere toolband */
.toolband { background: var(--nacht); color: #eef1f6; padding: clamp(36px, 6vw, 64px) 0; }
.toolband a { color: #ffd38a; }
.tool-kop { max-width: var(--smal); }
.tool-kop h2 { color: #fff; }
.tool-kop p { color: #c3cbd8; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 40px); align-items: start; margin-top: 8px; }
.tool .veld { margin-bottom: 16px; }
.tool label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: #fff; }
.tool input, .tool select { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; max-width: 100%; height: 48px; font: inherit; font-size: 1rem; line-height: 1.2; color: var(--inkt); background: var(--wit); border: 2px solid transparent; border-radius: 8px; padding: 10px 12px; margin: 0; }
.tool input[type="date"], .tool input[type="time"] { -webkit-appearance: none; appearance: none; text-align: left; }
.tool input::-webkit-date-and-time-value { text-align: left; margin: 0; }
.tool input::-webkit-datetime-edit { padding: 0; }
.tool .veld, .rij3 > *, .tool-rij > * { min-width: 0; }
.tool input:focus, .tool select:focus { border-color: var(--amber); outline: none; }
.tool .hint { color: #a9b3c3; }
.rij3 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; }
.rij3 .veld { margin-bottom: 0; }
.tool-rij { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 8px 0 20px; }
.tool-rij .veld { margin: 0; flex: 1 1 150px; }
.dagsoort { margin-top: 14px; font-weight: 600; color: #ffd38a; min-height: 1.6em; }
.adres-lijst { list-style: none; margin: 6px 0 0; padding: 0; background: var(--wit); border-radius: 8px; color: var(--inkt); overflow: hidden; }
.adres-lijst:empty { display: none; }
.adres-lijst li { padding: 10px 12px; cursor: pointer; border-top: 1px solid var(--lijn); }
.adres-lijst li:first-child { border-top: 0; }
.adres-lijst li:focus { background: #fdf1d8; outline: none; }
.adres-lijst li.fout { cursor: default; color: var(--rood); }

/* kaart */
.kaart { margin: 0; background: #1b2e4a; border-radius: var(--r); padding: 10px; }
.kaart-svg { width: 100%; cursor: crosshair; background: #213654; border-radius: 6px; }
.kaart-svg .z { stroke: #fff; stroke-width: 1.2; stroke-linejoin: round; fill-opacity: .85; }
.z-hoog { fill: var(--z-hoog); background: var(--z-hoog); }
.z-midden { fill: var(--z-midden); background: var(--z-midden); }
.z-terrein { fill: var(--z-terrein); background: var(--z-terrein); }
.z-wijk { fill: var(--z-wijk); background: var(--z-wijk); }
.z-anklaar { fill: var(--z-anklaar); background: var(--z-anklaar); }
.z-verg { fill: #6a7f9e; fill-opacity: .28; stroke: #8da0bb; stroke-width: .6; background: rgba(106,127,158,.45); }
@media (hover: hover) { .kaart-svg .z:hover { fill-opacity: 1; } .adres-lijst li:hover { background: #fdf1d8; } }
.p-garage rect { fill: #fff; stroke: var(--nacht); stroke-width: 2; }
.p-garage text { font: 700 15px "Bricolage", sans-serif; fill: var(--blauw); }
.p-garage .p-naam { fill: #fff; font-weight: 600; font-size: 14px; paint-order: stroke; stroke: #14233a; stroke-width: 4px; }
.kies circle { fill: var(--amber); fill-opacity: .35; stroke: var(--amber); stroke-width: 3; }
.kies .kies-kern { fill: #fff; fill-opacity: 1; stroke: none; }
.p-buiten { cursor: pointer; } .p-buiten rect { stroke-dasharray: 4 3; }
.legenda .pijl { font-weight: 700; color: var(--amber); }
.kaart figcaption { font-size: .88rem; color: #a9b3c3; padding: 10px 4px 2px; }
.legenda { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 6px; padding: 0; color: #e3e8f0; font-size: .9rem; }
.legenda li { display: flex; align-items: center; gap: 6px; }
.vlak { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }

/* uitkomst: parkeerbonnen */
.plek { margin: 26px 0 14px; max-width: 900px; color: #dfe5ee; }
.plek strong { color: #fff; }
.bonnen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.bon { background: var(--wit); color: var(--inkt); border-radius: 6px; padding: 16px 16px 14px; position: relative; display: flex; flex-direction: column; gap: 6px; border-top: 6px solid var(--lijn); }
.bon.best { border-top-color: var(--amber); }
.bon.niet { opacity: .78; }
.bon.samen { grid-column: 1 / -1; }
.bon-namen { margin: 0; font-size: .9rem; line-height: 1.5; }
.bon-namen span { color: var(--grijs); font-size: .82rem; }
.bon::after { content: ""; position: absolute; left: 10px; right: 10px; top: -1px; border-top: 2px dashed rgba(0,0,0,.12); }
.bon-kop h3 { margin: 2px 0 2px; font-size: 1.05rem; }
.bon-soort { font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--grijs); }
.bon.best .bon-soort { color: var(--amber-d); }
.bon-loop { font-size: .85rem; color: var(--grijs); }
.bon-bedrag { font-size: 2rem; font-weight: 600; line-height: 1.1; margin: 4px 0; }
.bon-bedrag .nvt { font-size: 1.1rem; color: var(--rood); font-family: "Bricolage", sans-serif; font-weight: 700; }
.bon-meld { margin: 0; padding-left: 18px; font-size: .86rem; color: #3b4048; }
.bon-afw { margin: 0; font-size: .82rem; color: var(--grijs); border-top: 1px dashed var(--lijn); padding-top: 6px; margin-top: auto; }
.bon-afw a { color: var(--blauw); display: inline-block; padding: 8px 0; margin: -8px 0; }
.bon.leeg { grid-column: 1 / -1; }
.derden { margin-top: 22px; color: #c3cbd8; font-size: .92rem; max-width: 900px; }
.derden h3 { color: #fff; font-size: 1rem; }
.derden ul { padding-left: 18px; }
.noscript { color: #ffd38a; }

/* number pop-in (transitions.dev 02) */
@keyframes t-digit-pop-in {
  0% { transform: translate(calc(var(--digit-distance) * var(--digit-dir-x)), calc(var(--digit-distance) * var(--digit-dir-y))); opacity: 0; filter: blur(var(--digit-blur)); }
  100% { transform: translate(0, 0); opacity: 1; filter: blur(0); }
}
.t-digit-group { display: inline-flex; align-items: baseline; }
.t-digit { display: inline-block; }
.t-digit-group.is-animating .t-digit { animation: t-digit-pop-in var(--digit-dur) var(--digit-ease) both; }
.t-digit-group.is-animating .t-digit[data-stagger="1"] { animation-delay: var(--digit-stagger); }
.t-digit-group.is-animating .t-digit[data-stagger="2"] { animation-delay: calc(var(--digit-stagger) * 2); }
@media (prefers-reduced-motion: reduce) { .t-digit-group.is-animating .t-digit { animation: none; } }

/* blokken */
.blok { padding: clamp(40px, 6vw, 72px) 0; }
.blok.wit { background: var(--wit); }
.blok > .wrap + .wrap { margin-top: 18px; }
.kop-blok { padding-bottom: 24px; }
.punten { padding-left: 20px; }
.punten li { margin-bottom: .6em; }

/* tabellen */
.tabel-wrap { overflow-x: auto; margin: 8px 0 18px; }
.tabel { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--wit); }
.blok.wit .tabel { background: var(--papier); }
.tabel caption { text-align: left; font-size: .88rem; color: var(--grijs); padding: 0 0 10px; caption-side: top; }
.tabel th, .tabel td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--lijn); vertical-align: top; }
.tabel thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--grijs); font-weight: 700; border-bottom: 2px solid var(--inkt); }
.tabel tbody th { font-weight: 650; }
.garagetabel td { white-space: nowrap; position: relative; min-width: 92px; }
.garagetabel .balk { display: block; height: 4px; width: var(--w); background: #c9d5e8; border-radius: 2px; margin-bottom: 6px; }
.garagetabel .goedkoopst { color: var(--groen); font-weight: 600; }
.garagetabel .goedkoopst .balk { background: var(--groen); }
.drie td { font-size: .9rem; }

/* garages */
.garages { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 28px 40px; margin: 16px 0 22px; }
.garage { border-top: 3px solid var(--blauw); padding-top: 14px; }
.garage h3 { margin-bottom: 2px; }
.adres { color: var(--grijs); font-size: .92rem; }
.feiten { margin: 10px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.feiten div { border-bottom: 1px solid var(--lijn); padding-bottom: 6px; }
.feiten dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--grijs); font-weight: 650; }
.feiten dd { margin: 2px 0 0; font-size: .95rem; }
.garage .noot { margin-top: 10px; }
.overig { list-style: none; padding: 0; margin: 16px 0 0; }
.overig li { padding: 12px 0; border-top: 1px solid var(--lijn); font-size: .95rem; }

/* tijdlijn, stappen, cijfers */
.tijdlijn { list-style: none; margin: 18px 0 22px; padding: 0; border-left: 3px solid var(--amber); }
.tijdlijn li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 8px 0 8px 18px; position: relative; }
.tijdlijn li::before { content: ""; position: absolute; left: -8px; top: 15px; width: 13px; height: 13px; border-radius: 50%; background: var(--wit); border: 3px solid var(--amber); }
.tl-tijd { font-weight: 700; }
.stappen { list-style: none; counter-reset: stap; margin: 18px 0 0; padding: 0; }
.stappen li { counter-increment: stap; position: relative; padding: 0 0 18px 52px; }
.stappen li::before { content: counter(stap); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 8px; background: var(--blauw); color: #fff; font: 600 1rem "Plex Mono", monospace; display: grid; place-items: center; }
.stappen h3 { margin-bottom: .25em; }
.cijfers { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px 32px; }
.cijfers li { display: flex; flex-direction: column; gap: 4px; border-top: 2px solid var(--inkt); padding-top: 12px; font-size: .95rem; color: #3b4048; }
.cijfer { font-size: 1.8rem; font-weight: 600; color: var(--blauw); }

/* kalender */
.kalender { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px 48px; margin: 10px 0 14px; }
.maanden { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.kalender > div:last-child .maanden { columns: 1; }
.maanden li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--lijn); break-inside: avoid; }
.maand { font-weight: 600; }

/* nu gratis */
.nu-lijst { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.nu-lijst li { background: rgba(255,255,255,.06); border-radius: 8px; padding: 12px 14px; display: grid; gap: 2px; border-left: 4px solid #6a7f9e; }
.nu-lijst li.nu-gratis { border-left-color: #5fc48a; }
.nu-lijst li.nu-betaald { border-left-color: var(--amber); }
.nu-label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #a9b3c3; }
.nu-gratis .nu-label { color: #8de0ae; }
.nu-betaald .nu-label { color: #ffd38a; }
.nu-lijst strong { color: #fff; }
.nu-lijst span:last-child { color: #c3cbd8; font-size: .92rem; }

/* vragen */
.vraag { border-top: 1px solid var(--lijn); }
.vraag:last-of-type { border-bottom: 1px solid var(--lijn); }
.vraag summary { cursor: pointer; font-weight: 650; padding: 14px 28px 14px 0; position: relative; list-style: none; }
.vraag summary::-webkit-details-marker { display: none; }
.vraag summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font: 600 1.3rem "Plex Mono", monospace; color: var(--blauw); }
.vraag[open] summary::after { content: "−"; }
.vraag p { margin-top: 0; }

/* bronnen */
.bronnen { padding-left: 22px; font-size: .92rem; }
.bronnen li { margin-bottom: .5em; }
.bron-datum { color: var(--grijs); font-size: .85rem; white-space: nowrap; }

/* footer */
.voet { background: var(--inkt); color: #c9cdd4; padding: 48px 0 40px; font-size: .92rem; }
.voet a { color: #ffd38a; }
.voet-in { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 32px; }
.voet-logo { color: #fff; font-weight: 750; font-size: 1.1rem; }
.voet-kop { color: #fff; font-weight: 700; }
.voet-nav { display: flex; flex-direction: column; gap: 0; }
.voet-nav a { display: block; padding: 9px 0; }

/* foutpagina */
.fout-blok { padding: 80px 0; min-height: 50vh; }

@media (max-width: 900px) {
  .hero-in, .tool-grid, .kalender { grid-template-columns: 1fr; }
  .hero-beeld { order: -1; }
  .voet-in { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .rij3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rij3 .veld:first-child { grid-column: 1 / -1; }
  .maanden { columns: 1; }
  .tijdlijn li { grid-template-columns: 1fr; gap: 0; }
  .feiten { grid-template-columns: 1fr 1fr; }
  .top nav { gap: 2px 14px; font-size: .95rem; }
  .tabel.stapel thead { display: none; }
  .tabel.stapel caption { display: block; width: 100%; text-align: left; }
  .tabel.stapel, .tabel.stapel tbody, .tabel.stapel tr, .tabel.stapel th, .tabel.stapel td { display: block; width: 100%; }
  .tabel.stapel tr { border-bottom: 2px solid var(--inkt); padding: 8px 0; }
  .tabel.stapel th, .tabel.stapel td { border: 0; padding: 4px 0; white-space: normal; }
  .tabel.stapel td::before { content: attr(data-label); display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--grijs); font-weight: 700; }
  .tabel.stapel.garagetabel tr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 12px; }
  .tabel.stapel.garagetabel th { grid-column: 1 / -1; }
  .garagetabel .balk { max-width: 100%; }
  .bon-bedrag { font-size: 1.75rem; }
}
.tabel.klein { max-width: 560px; margin: 14px 0; }

/* v11: iOS-affordance (eigen pijl en iconen omdat appearance:none ze weghaalt) */
.tool select, .tool input[type="date"], .tool input[type="time"] { background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 40px; }
.tool select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%2314233a' stroke-width='2'/%3E%3C/svg%3E"); }
.tool input[type="date"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='2' y='3' width='12' height='11' rx='2' fill='none' stroke='%2314233a' stroke-width='1.6'/%3E%3Cpath d='M2 7h12M5 1.5v3M11 1.5v3' stroke='%2314233a' stroke-width='1.6'/%3E%3C/svg%3E"); }
.tool input[type="time"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.2' fill='none' stroke='%2314233a' stroke-width='1.6'/%3E%3Cpath d='M8 4.5V8l2.5 1.5' fill='none' stroke='%2314233a' stroke-width='1.6'/%3E%3C/svg%3E"); }
.tool input::-webkit-calendar-picker-indicator { opacity: 0; cursor: pointer; }
.tool input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
/* kaart: klikvlak en leesbare markers op kleine schermen */
.kaart-svg .raak { fill: transparent; }
@media (max-width: 640px) {
  .kaart-svg .m { transform: scale(2); }
  .tabel.stapel.garagetabel td, .tabel.stapel.garagetabel th { padding: 8px 6px; }
}
@media (max-width: 359px) { .tabel.stapel.garagetabel tr { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
