/* ==========================================================================
   MRE Autoservice: ontwerpsysteem
   Brand: #A11515 (logo red) + graphite. Type: Barlow Condensed / Inter.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --red:        #A11515;
  --red-hot:    #C42020;
  --red-deep:   #7C0F0F;
  --red-tint:   #FBECEC;

  /* Ink / surfaces */
  --ink-900:    #0B0C0E;
  --ink-850:    #121417;
  --ink-800:    #191C21;
  --ink-700:    #23272E;
  --ink-600:    #333941;
  --ink-500:    #5A626D;
  --ink-400:    #8A929E;   /* alleen op donkere vlakken: 6,2:1 op ink-900 */
  --ink-muted:  #656C77;   /* kleine tekst op licht: haalt AA op wit en op alle tinten */
  --ink-300:    #B6BCC5;

  --paper:      #FFFFFF;
  --paper-2:    #F6F7F9;
  --paper-3:    #EDEFF3;
  --line:       #E1E5EA;
  --line-soft:  #EEF1F4;

  /* Status */
  --ok:         #12805C;
  --ok-tint:    #E7F5F0;
  --warn:       #B45309;
  --warn-tint:  #FDF2E3;
  --bad:        #B3241C;
  --bad-tint:   #FCEDEC;

  /* Kenteken plate */
  --plate:      #F2CE00;
  --plate-edge: #C9A800;
  --plate-blue: #1B3FA0;

  /* Type */
  --font-display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Space & shape */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --container: 1200px;
  --container-narrow: 880px;
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;
  --r-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(11,12,14,.06), 0 1px 3px rgba(11,12,14,.05);
  --shadow:    0 2px 4px rgba(11,12,14,.04), 0 8px 24px rgba(11,12,14,.08);
  --shadow-lg: 0 4px 8px rgba(11,12,14,.04), 0 24px 56px rgba(11,12,14,.14);
  --shadow-red: 0 8px 24px rgba(161,21,21,.28);

  --ease: cubic-bezier(.2,.7,.3,1);
  /* Beweging, naar Eriks catalogus (kaarten 2026-09-06-006/-021/-029, 2026-10-06-001):
     een toestand verandert in 220 ms, alles tegelijk; een hover licht op in 350 ms
     en dooft uit in 600 ms. */
  --t-state: 220ms;
  --t-hover-in: 350ms;
  --t-hover-out: 600ms;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-800);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
/* Safari van voor 15.4 kent :focus-visible niet. Zonder deze opbouw zou een
   toetsenbordgebruiker daar helemaal geen focusrand zien. Oudere browsers pakken
   de :focus-regel; browsers die :focus-visible wel kennen halen de rand weer weg
   bij een muisklik (die regel is voor de oudere browsers ongeldig en vervalt). */
:focus { outline: 3px solid var(--red-hot); outline-offset: 2px; border-radius: 3px; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 3px solid var(--red-hot); outline-offset: 2px; border-radius: 3px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.005em;
  text-transform: uppercase;
  color: var(--ink-900);
}
h1 { font-size: clamp(2.75rem, 6.6vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.15rem; }
p  { text-wrap: pretty; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--ink-500); }
strong, b { font-weight: 650; color: var(--ink-900); }
.num { font-variant-numeric: tabular-nums; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body);
  font-size: .74rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--red); flex: none; }
.eyebrow--light { color: #FF6B6B; }
.eyebrow--light::before { background: #FF6B6B; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--dark { background: var(--ink-900); color: var(--ink-300); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark strong { color: #fff; }
.section--alt { background: var(--paper-2); }
.stack > * + * { margin-top: 1rem; }
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head .lead { margin-top: .85rem; }
.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.center { text-align: center; }
.center .eyebrow, .center .section-head { margin-inline: auto; }

/* ---------- Buttons ---------- */
/* Soft 3D bevel: top-lit gradient + inner highlight/shade + drop.
   Variants only retint the tokens; radius stays --r. */
.btn {
  --btn-shine: rgba(255,255,255,.42);
  --btn-top: #C42020;
  --btn-mid: #A11515;
  --btn-bot: #7C0F0F;
  --btn-edge: #6E0E0E;
  --btn-hi: rgba(255,255,255,.46);
  --btn-lo: rgba(0,0,0,.28);
  --btn-drop:
    0 1px 1px rgba(11,12,14,.08),
    0 6px 14px rgba(161,21,21,.30);
  --btn-drop-hover:
    0 3px 4px rgba(11,12,14,.10),
    0 12px 26px rgba(161,21,21,.38);

  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.6rem;
  font-family: var(--font-body);
  font-size: .95rem; font-weight: 650; letter-spacing: .01em;
  border-radius: var(--r);
  border: 2px solid var(--btn-edge);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  background:
    radial-gradient(ellipse 85% 55% at 50% 0%, var(--btn-shine), transparent 70%),
    linear-gradient(180deg, var(--btn-top) 0%, var(--btn-mid) 48%, var(--btn-bot) 100%);
  box-shadow:
    inset 0 1.5px 0 var(--btn-hi),
    inset 0 -2px 3px var(--btn-lo),
    var(--btn-drop);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), filter .2s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1.5px 0 var(--btn-hi),
    inset 0 -2px 3px var(--btn-lo),
    var(--btn-drop-hover);
}
.btn:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 5px rgba(0,0,0,.32),
    inset 0 1px 0 rgba(0,0,0,.12),
    0 1px 1px rgba(11,12,14,.12);
}
.btn svg { flex: none; position: relative; z-index: 1; }

.btn--primary { color: #fff; }
.btn--primary:hover {
  --btn-top: #D94A4A;
  --btn-mid: #C42020;
  --btn-bot: #A11515;
  --btn-edge: #8A1212;
}

.btn--dark {
  --btn-shine: rgba(255,255,255,.18);
  --btn-top: #2C323B;
  --btn-mid: #191C21;
  --btn-bot: #0B0C0E;
  --btn-edge: #0B0C0E;
  --btn-hi: rgba(255,255,255,.18);
  --btn-lo: rgba(0,0,0,.42);
  --btn-drop:
    0 1px 1px rgba(11,12,14,.16),
    0 6px 14px rgba(11,12,14,.22);
  --btn-drop-hover:
    0 3px 4px rgba(11,12,14,.18),
    0 12px 26px rgba(11,12,14,.30);
  color: #fff;
}
.btn--dark:hover {
  --btn-top: #3A424C;
  --btn-mid: #23272E;
  --btn-bot: #121417;
}

.btn--ghost {
  --btn-shine: rgba(255,255,255,.92);
  --btn-top: #FFFFFF;
  --btn-mid: #F4F6F8;
  --btn-bot: #E4E8EE;
  --btn-edge: #D4DAE1;
  --btn-hi: rgba(255,255,255,.95);
  --btn-lo: rgba(11,12,14,.10);
  --btn-drop:
    0 1px 1px rgba(11,12,14,.05),
    0 6px 14px rgba(11,12,14,.10);
  --btn-drop-hover:
    0 3px 4px rgba(11,12,14,.07),
    0 12px 24px rgba(11,12,14,.14);
  color: var(--ink-900);
}
.btn--ghost:hover {
  --btn-top: #FFFFFF;
  --btn-mid: #FBFCFD;
  --btn-bot: #EEF1F4;
  --btn-edge: #B7C0C9;
}

.btn--onDark {
  --btn-shine: rgba(255,255,255,.22);
  --btn-top: rgba(255,255,255,.16);
  --btn-mid: rgba(255,255,255,.07);
  --btn-bot: rgba(0,0,0,.22);
  --btn-edge: rgba(255,255,255,.32);
  --btn-hi: rgba(255,255,255,.30);
  --btn-lo: rgba(0,0,0,.30);
  --btn-drop:
    0 1px 1px rgba(0,0,0,.18),
    0 8px 18px rgba(0,0,0,.28);
  --btn-drop-hover:
    0 3px 4px rgba(0,0,0,.20),
    0 12px 26px rgba(0,0,0,.36);
  color: #fff;
}
.btn--onDark:hover {
  --btn-top: rgba(255,255,255,.26);
  --btn-mid: rgba(255,255,255,.12);
  --btn-bot: rgba(0,0,0,.16);
  --btn-edge: rgba(255,255,255,.55);
}

.btn--lg { padding: 1.15rem 2rem; font-size: 1.02rem; }
.btn--sm { padding: .6rem 1rem; font-size: .85rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .45; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  view-transition-name: site-header;
}
.topbar {
  background: var(--ink-900); color: var(--ink-300);
  font-size: .8rem;
}
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.5rem; padding-block: .5rem; }
.topbar a { display: inline-flex; align-items: center; gap: .45rem; transition: color .15s; }
.topbar a:hover { color: #fff; }
.topbar__spacer { margin-left: auto; }
.topbar svg { opacity: .7; }
/* Breed: het adres staat rechts, naast de pil. */
@media (min-width: 761px) { .topbar__place { order: 2; } .topbar .open-link { order: 3; } .topbar__spacer { order: 1; } }
/* Telefoon: één rij. Bellen, mailen en route zijn alleen nog hun icoon, groot genoeg om te raken. */
@media (max-width: 760px) {
  .topbar__inner { flex-wrap: nowrap; gap: .25rem; padding-block: .3rem; }
  .topbar__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .topbar a:not(.open-link) { width: 2.5rem; height: 2.5rem; justify-content: center; border-radius: var(--r-sm); }
  .topbar a:not(.open-link) svg { width: 18px; height: 18px; opacity: .9; }
}

.nav { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; }
.brand img { height: 34px; width: auto; }
.brand__txt { display: none; }

.nav__links { display: flex; align-items: center; gap: .25rem; }
.nav__links a {
  position: relative;
  padding: .55rem .8rem;
  font-size: .93rem; font-weight: 550; color: var(--ink-700);
  border-radius: var(--r-sm);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav__links a:hover { color: var(--red); background: var(--paper-2); }
.nav__links a[aria-current='page'] { color: var(--red); }
.nav__links a[aria-current='page']::after {
  content: ''; position: absolute; left: .8rem; right: .8rem; bottom: .1rem;
  height: 2px; background: var(--red); border-radius: 2px;
  transform-origin: center;
  animation: navLine .35s var(--ease) both;
}
@keyframes navLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.nav__cta { margin-left: .5rem; }
.nav__toggle { display: none; padding: .55rem; border-radius: var(--r-sm); color: var(--ink-900); }
.nav__toggle:hover { background: var(--paper-2); }

@media (max-width: 1000px) {
  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: .5rem var(--gutter) 1.25rem;
    max-height: calc(100vh - var(--header-h) - 2rem); overflow-y: auto;
    visibility: hidden; opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: translateY(-8px);
    transition: clip-path var(--t-state) var(--ease), opacity var(--t-state) var(--ease),
                transform var(--t-state) var(--ease), visibility 0s linear var(--t-state);
  }
  /* Open: clipped past its own edge at the bottom, so the shadow is not cut off. */
  .nav__links[data-open='true'] {
    visibility: visible; opacity: 1;
    clip-path: inset(0 0 -15% 0);
    transform: none;
    transition: clip-path var(--t-state) var(--ease), opacity var(--t-state) var(--ease),
                transform var(--t-state) var(--ease), visibility 0s;
  }
  .nav__links a { padding: .9rem .25rem; font-size: 1.05rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav__links a[aria-current='page']::after { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__cta { display: none; }
  .nav { position: relative; }
}
@media (min-width: 480px) { .brand__txt { display: block; } }
.brand__txt { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; line-height: 1.1; text-transform: uppercase; }
.brand__txt span { display: block; font-family: var(--font-body); font-size: .62rem; font-weight: 600; letter-spacing: .18em; color: var(--ink-muted); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--red); color: #fff; padding: .75rem 1.25rem; border-radius: var(--r);
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink-900);
  color: var(--ink-300);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 520px at 78% 8%, rgba(161,21,21,.34), transparent 62%),
    radial-gradient(700px 460px at 8% 92%, rgba(45,52,64,.75), transparent 60%),
    linear-gradient(160deg, #0B0C0E 0%, #15181D 52%, #0B0C0E 100%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 1px, transparent 1px 13px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.hero__inner { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem); position: relative; }
.hero h1 { color: #fff; margin-block: 1rem .9rem; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--red-hot); }
.hero .lead { color: var(--ink-300); max-width: 52ch; }
.hero__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.05fr .95fr; } }

.hero__marks { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin-top: 1.75rem; }
.hero__marks li { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--ink-300); }
.hero__marks svg { color: var(--red-hot); flex: none; }

.hero__car {
  position: absolute; right: -6%; bottom: -8%; width: min(62%, 780px);
  opacity: .05; z-index: -1; pointer-events: none;
  color: #fff;
}
@media (max-width: 1000px) { .hero__car { display: none; } }

/* ---------- Kenteken plate input ---------- */
.plate-tool {
  position: relative;
  z-index: 3;
  background: var(--paper);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  /* Minder lucht boven de titel; zijkant en onderkant blijven ruim genoeg voor de plaat. */
  padding: .85rem clamp(1.25rem, 3vw, 1.9rem) clamp(1.2rem, 2.8vw, 1.7rem);
  color: var(--ink-800);
}
.plate-tool__title { font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase; color: var(--ink-900); }
.plate-tool__sub { font-size: .9rem; color: var(--ink-500); margin-top: .3rem; }

.plate-hint {
  margin: .9rem 0 .45rem;
  font-size: .8rem;
  color: var(--ink-muted);
  line-height: 1.35;
}

.plate {
  --plate-rim: #1A1A1A;
  display: flex;
  align-items: stretch;
  min-height: 4.6rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,.28), transparent 38%, rgba(0,0,0,.08) 100%),
    linear-gradient(90deg, #f6d34a 0%, var(--plate) 18%, var(--plate) 82%, #e3b80a 100%);
  border: 3px solid var(--plate-rim);
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,.55),
    0 6px 16px rgba(11,12,14,.22),
    inset 0 1px 0 rgba(255,255,255,.4),
    inset 0 -2px 3px rgba(0,0,0,.12);
  transition: box-shadow .2s var(--ease);
  position: relative;
}
.plate::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image: repeating-linear-gradient(
    -18deg,
    transparent 0 2px,
    rgba(255,255,255,.04) 2px 3px
  );
  mix-blend-mode: overlay;
}
.plate:focus-within {
  box-shadow:
    0 0 0 4px rgba(161,21,21,.22),
    0 1px 0 rgba(255,255,255,.55),
    0 6px 16px rgba(11,12,14,.22),
    inset 0 1px 0 rgba(255,255,255,.4);
}
.plate__eu {
  flex: none;
  width: 48px;
  background: linear-gradient(180deg, #1d4fc0 0%, var(--plate-blue) 55%, #0f2f86 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: .35rem .2rem .4rem;
  box-shadow: inset -2px 0 0 rgba(0,0,0,.18);
  position: relative;
  z-index: 2;
}
.plate__stars { width: 30px; height: 30px; display: block; filter: drop-shadow(0 1px 0 rgba(0,0,0,.25)); }
.plate__eu span {
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
.plate__field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .15rem;
  padding: 0 .4rem;
  position: relative;
  z-index: 2;
}
.plate__bolt {
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #f7f7f7 0 18%, #b8b8b8 42%, #6d6d6d 68%, #d5d5d5 100%);
  box-shadow:
    0 1px 1px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.7),
    inset 0 -1px 1px rgba(0,0,0,.25);
}
.plate input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: 0;
  -webkit-appearance: none; appearance: none;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 6.4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  color: #141414;
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
  padding: .45rem .15rem;
  width: 100%;
  caret-color: #141414;
}
.plate input::placeholder { color: rgba(20,20,20,.28); text-shadow: none; letter-spacing: .08em; }
.plate[data-loading='true']::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.7) 50%, transparent 80%);
  animation: scan 1.1s linear infinite;
}
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@media (max-width: 420px) {
  .plate { min-height: 4.1rem; border-width: 2.5px; }
  .plate__eu { width: 40px; }
  .plate__stars { width: 24px; height: 24px; }
  .plate__bolt { width: 8px; height: 8px; }
  .plate input { letter-spacing: .06em; }
}
.plate-error {
  display: none; align-items: flex-start; gap: .55rem;
  background: var(--bad-tint); color: var(--bad);
  padding: .7rem .9rem; border-radius: var(--r-sm);
  font-size: .88rem; margin-top: .8rem;
}
.plate-error[data-show='true'] { display: flex; }
.plate-error svg { flex: none; margin-top: .15rem; }

/* Compact kenteken: klein geel badge, zoals op de voertuigkaart. */
.plate-tool--compact {
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  display: block;
  width: fit-content;
  max-width: 100%;
}
.plate--sm {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  width: auto;
  border-radius: 5px;
  border: 1px solid var(--plate-edge);
  box-shadow: none;
  background: var(--plate);
  overflow: hidden;
}
.plate--sm::before { display: none; }
.plate--sm .plate__field { padding: 0; gap: 0; }
.plate--sm input {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: .2rem .7rem;
  width: 8.6em;
  max-width: 100%;
  text-align: center;
  text-shadow: none;
}
.plate--sm:focus-within {
  box-shadow: 0 0 0 3px rgba(242, 206, 0, .45);
}
.plate-tool--compact .plate-error { margin-top: .55rem; }
.plate-tool--compact + .vehicle-drawer.is-open {
  --drawer-tuck: 0px;
  margin-top: .85rem;
}
@media (max-width: 420px) {
  .plate--sm { min-height: 0; border-width: 1px; }
  .plate--sm input { font-size: 1.05rem; letter-spacing: .08em; padding: .2rem .7rem; }
}

.mileage-picks {
  display: grid;
  gap: .7rem;
}
@media (min-width: 900px) {
  .mileage-picks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.mileage-picks .choice__title {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mileage-picks .choice__box {
  align-items: center;
  padding: .85rem .9rem;
}

.jobs-featured { display: grid; gap: .7rem; }
.jobs-more {
  margin-top: 1.35rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.jobs-more > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 650;
  color: var(--red);
  font-size: .95rem;
  width: fit-content;
}
.jobs-more > summary::-webkit-details-marker { display: none; }
.jobs-more > summary::after {
  content: '';
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s var(--ease);
  margin-top: -.2em;
}
.jobs-more[open] > summary::after { transform: rotate(-135deg); margin-top: .15em; }
.jobs-more__body { margin-top: 1.15rem; }

.section--booking { padding-top: clamp(2.25rem, 5vw, 3.5rem); }

@keyframes onAutoFillStart { from { opacity: 1; } to { opacity: 1; } }
input:-webkit-autofill { animation-name: onAutoFillStart; }

/* Altijd in de layout, zodat de browser naam/telefoon/e-mail al kan invullen
   voordat stap 5 in beeld is. Te klein om te zien, groot genoeg voor autofill. */
.booking-autofill {
  position: absolute;
  left: 0;
  top: 0;
  width: 240px;
  height: 8px;
  overflow: hidden;
  opacity: 0.02;
  pointer-events: none;
}
.booking-autofill input {
  display: block;
  width: 220px;
  height: 28px;
  font-size: 16px;
}

/* ---------- Vehicle result card ---------- */
.vehicle-stack { position: relative; }
.vehicle-drawer {
  /* Hoe ver het paneel onder de zoekkaart blijft steken. De kop krijgt
     dezelfde extra padding, zodat het kleine kenteken evenveel lucht
     boven als onder houdt zodra het paneel zichtbaar is. */
  --drawer-tuck: .65rem;
  display: grid;
  grid-template-rows: 0fr;
  position: relative;
  z-index: 1;
  margin-top: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    grid-template-rows .72s cubic-bezier(.22,.7,.25,1),
    margin-top .72s cubic-bezier(.22,.7,.25,1),
    visibility 0s linear .72s;
}
.vehicle-drawer.is-open {
  grid-template-rows: 1fr;
  margin-top: calc(-1 * var(--drawer-tuck));
  visibility: visible;
  pointer-events: auto;
  transition:
    grid-template-rows .72s cubic-bezier(.22,.7,.25,1),
    margin-top .72s cubic-bezier(.22,.7,.25,1),
    visibility 0s linear 0s;
}
.vehicle-drawer__clip {
  overflow: hidden;
  min-height: 0;
  padding-bottom: 0;
  transition: padding-bottom .72s cubic-bezier(.22,.7,.25,1);
}
.vehicle-drawer.is-open .vehicle-drawer__clip { padding-bottom: 12px; }
.vehicle-drawer .vehicle-card {
  width: calc(100% - 1.5rem);
  margin: 0 auto;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  animation: none;
  box-shadow: 0 12px 28px rgba(11,12,14,.14);
  transform: translateY(-110%);
  opacity: 0;
  transition:
    transform .72s cubic-bezier(.22,.7,.25,1),
    opacity .35s ease .08s;
}
.vehicle-drawer.is-open .vehicle-card {
  transform: translateY(0);
  opacity: 1;
}

/* Auto al bekend (andere pagina, terugknop, ?kenteken=): meteen open, geen show. */
.vehicle-drawer.is-instant,
.vehicle-drawer.is-instant .vehicle-drawer__clip,
.vehicle-drawer.is-instant .vehicle-card,
.vehicle-drawer.is-instant .apk-status,
.vehicle-drawer.is-instant .apk-status__inner,
.vehicle-drawer.is-instant .apk-bar i {
  transition: none !important;
  animation: none !important;
}

[data-home-actions] {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .4s ease .15s, transform .5s cubic-bezier(.22,.7,.25,1) .1s;
}
[data-home-actions]:not(:empty) {
  opacity: 1;
  transform: none;
}
[data-home-actions].is-instant,
[data-home-actions].is-instant:not(:empty) {
  opacity: 1;
  transform: none;
  transition: none;
}

.vehicle-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  overflow: hidden;
  margin-top: 1.1rem;
  animation: rise .4s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.skel {
  background: linear-gradient(90deg, var(--paper-3) 20%, var(--paper-2) 45%, var(--paper-3) 70%);
  background-size: 200% 100%;
  animation: skel 1.15s ease infinite;
  border-radius: 6px;
}
.skel--title { width: 58%; height: 1.15rem; }
.skel--plate { width: 5.6rem; height: 1.45rem; margin-left: auto; border-radius: 5px; }
.skel--line { width: 72%; height: .55rem; margin-top: .4rem; }
.skel--short { width: 42%; }
.skel--badge { width: 7.8rem; height: 1.55rem; border-radius: 999px; }
.vehicle-card__head .skel {
  background: linear-gradient(90deg, rgba(255,255,255,.08) 20%, rgba(255,255,255,.16) 45%, rgba(255,255,255,.08) 70%);
  background-size: 200% 100%;
}
@keyframes skel { to { background-position: -200% 0; } }
.vehicle-card__head {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem;
  padding: 1rem 1.15rem;
  background: var(--ink-900); color: #fff;
}
.vehicle-drawer .vehicle-card__head {
  padding-top: calc(1rem + var(--drawer-tuck));
}
.vehicle-card__name { font-family: var(--font-display); font-size: 1.45rem; text-transform: uppercase; line-height: 1.05; }
.vehicle-card__name small { display: block; font-family: var(--font-body); font-size: .78rem; font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--ink-400); margin-top: .15rem; }
.vehicle-card__plate {
  margin-left: auto; flex: none;
  background: var(--plate); color: #101010;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .08em;
  padding: .2rem .7rem; border-radius: 5px; border: 1px solid var(--plate-edge);
}
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.spec {
  min-width: 0;
  padding: .8rem 1.15rem;
  border-top: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
}
.spec dt { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.spec dd {
  font-size: 1rem; font-weight: 600; color: var(--ink-900); margin-top: .1rem;
  font-variant-numeric: tabular-nums;
  /* Lange waarden zoals "Kampeerwagen" mogen niet in de buurcel lopen.
     De eerste regel is de terugval voor browsers zonder 'anywhere';
     Safari heeft daarnaast de -webkit-variant van hyphens nodig. */
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* ---------- APK status ---------- */
.apk-status {
  display: grid;
  grid-template-rows: 0fr;
  border-top: 1px solid transparent;
  transition:
    grid-template-rows .6s cubic-bezier(.22,.7,.25,1),
    border-color .4s ease;
}
.vehicle-card.is-apk-in .apk-status {
  grid-template-rows: 1fr;
  border-top-color: var(--line-soft);
}
.apk-status__inner {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .7rem;
  padding: 1.05rem 1.15rem 1.15rem;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity .45s ease .12s,
    transform .5s cubic-bezier(.22,.7,.25,1) .08s;
}
.vehicle-card.is-apk-in .apk-status__inner {
  opacity: 1;
  transform: none;
}
.apk-status__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .4rem .8rem; border-radius: 999px;
  position: relative;
}
.vehicle-card.is-apk-great .apk-status__badge.is-ok {
  padding: .48rem .95rem;
  animation: apkOkPop .7s cubic-bezier(.18, 1.2, .32, 1) both;
}
.vehicle-card.is-apk-great .apk-status__badge.is-ok::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 2px solid var(--ok);
  pointer-events: none;
  animation: apkOkRing .75s ease both;
}
.vehicle-card.is-apk-great .apk-status__badge.is-ok svg {
  width: 18px;
  height: 18px;
  overflow: visible;
}
.vehicle-card.is-apk-great .apk-status__badge.is-ok svg path {
  stroke-dasharray: 28;
  stroke-dashoffset: 28;
  animation: apkOkStroke .55s ease .18s forwards;
}
@keyframes apkOkPop {
  0% { transform: scale(.72); }
  55% { transform: scale(1.14); }
  100% { transform: scale(1); }
}
@keyframes apkOkRing {
  0% { transform: scale(.85); opacity: .55; }
  100% { transform: scale(1.28); opacity: 0; }
}
@keyframes apkOkStroke {
  to { stroke-dashoffset: 0; }
}
.is-ok    { background: var(--ok-tint);   color: var(--ok); }
.is-warn  { background: var(--warn-tint); color: var(--warn); }
.is-bad   { background: var(--bad-tint);  color: var(--bad); }
.apk-status__text { font-size: .92rem; color: var(--ink-600); width: 100%; }
.apk-status__text b { display: block; font-size: 1.05rem; color: var(--ink-900); margin-bottom: .2rem; }
.apk-status__text p { margin: 0; }

.apk-bar { height: 8px; border-radius: 999px; background: var(--paper-3); overflow: hidden; margin-top: .6rem; }
.apk-bar i { display: block; height: 100%; border-radius: 999px; transition: width .7s var(--ease); }
.apk-bar i.is-ok   { background: var(--ok); }
.apk-bar i.is-warn { background: var(--warn); }
.apk-bar i.is-bad  { background: var(--bad); }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
a.card:hover, .card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--ink-300); }
.card__icon {
  display: inline-flex;
  align-items: center;
  color: var(--red);
  margin-bottom: .85rem;
  line-height: 0;
}
.card__icon svg {
  width: 2.5rem;
  height: 2.5rem;
  stroke-width: 1.55;
}
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .94rem; color: var(--ink-500); }
.card__link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-size: .88rem; font-weight: 650; color: var(--red); }
a.card:hover .card__link svg, .card__link:hover svg { transform: translateX(3px); }
.card__link svg { transition: transform .2s var(--ease); }

.card--dark { background: var(--ink-800); border-color: var(--ink-700); color: var(--ink-300); }
.card--dark h3 { color: #fff; }
.card--dark p { color: var(--ink-400); }
.card--dark .card__icon { color: #FF6B6B; background: none; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 4.25rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -.35rem;
  font-family: var(--font-display); font-size: 3rem; font-weight: 700;
  color: var(--red); opacity: .28; line-height: 1;
}
.section--dark .step::before { color: var(--red-hot); opacity: .55; }
.step h3 { margin-bottom: .4rem; }
.step p { font-size: .94rem; color: var(--ink-500); }
.section--dark .step p { color: var(--ink-400); }

/* ---------- Stats ---------- */
.stat { text-align: center; padding: 1rem .5rem; }
.stat__n { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 700; color: var(--red); line-height: 1; }
.section--dark .stat__n { color: #fff; }
.stat__l { font-size: .8rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-muted); margin-top: .4rem; }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 1.1rem; }
.field > label, .field__label {
  display: block; font-size: .82rem; font-weight: 650; letter-spacing: .02em;
  color: var(--ink-700); margin-bottom: .4rem;
}
.field__label .req { color: var(--red); }
.input, .select, .textarea {
  width: 100%;
  padding: .82rem 1rem;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  font-size: .98rem;
  color: var(--ink-900);
  transition: border-color .16s, box-shadow .16s;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-300); }
.input:focus, .select:focus, .textarea:focus {
  outline: 0; border-color: var(--red); box-shadow: 0 0 0 4px rgba(161,21,21,.13);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-muted); }
.textarea { min-height: 120px; resize: vertical; }
.select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%235A626D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.5rem;
}
.field__help { font-size: .8rem; color: var(--ink-muted); margin-top: .35rem; }
.field__err { display: none; font-size: .8rem; font-weight: 600; color: var(--bad); margin-top: .35rem; }
.field[data-invalid='true'] .input,
.field[data-invalid='true'] .select,
.field[data-invalid='true'] .textarea { border-color: var(--bad); background: #FFFBFB; }
.field[data-invalid='true'] .choice__box { border-color: var(--bad); }
.field[data-invalid='true'] .field__err { display: block; }
.field-row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }

/* Choice cards (radio / checkbox) */
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice__box {
  display: flex; align-items: flex-start; gap: .8rem;
  border: 1.5px solid var(--line); border-radius: var(--r);
  padding: .95rem 1.05rem;
  background: var(--paper);
  transition: border-color .16s, background-color .16s, box-shadow .16s;
  height: 100%;
}
.choice:hover .choice__box { border-color: var(--ink-300); }
.choice input:focus + .choice__box { outline: 3px solid var(--red-hot); outline-offset: 2px; }
.choice input:focus:not(:focus-visible) + .choice__box { outline: none; }
.choice input:focus-visible + .choice__box { outline: 3px solid var(--red-hot); outline-offset: 2px; }
.choice input:checked + .choice__box { border-color: var(--red); background: var(--red-tint); box-shadow: inset 0 0 0 1px var(--red); }
.choice__mark {
  flex: none; width: 22px; height: 22px; border-radius: 6px;
  border: 2px solid var(--ink-300); background: var(--paper);
  display: grid; place-items: center; margin-top: .1rem;
  transition: border-color .16s, background-color .16s;
}
.choice--radio .choice__mark { border-radius: 50%; }
.choice__mark svg { opacity: 0; color: #fff; transform: scale(.6); transition: opacity .16s, transform .16s; }
.choice input:checked + .choice__box .choice__mark { border-color: var(--red); background: var(--red); }
.choice input:checked + .choice__box .choice__mark svg { opacity: 1; transform: scale(1); }
.choice__body { flex: 1; min-width: 0; }
.choice__title { display: flex; align-items: baseline; gap: .75rem; font-weight: 650; font-size: .96rem; color: var(--ink-900); }
.choice__title > span:first-child { flex: 1; min-width: 0; }
.choice__price { flex: none; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--red); white-space: nowrap; }
.choice__desc { font-size: .85rem; color: var(--ink-500); margin-top: .2rem; line-height: 1.5; }
.choice__meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .76rem; color: var(--ink-muted); margin-top: .45rem; }
.choice__meta span { display: inline-flex; align-items: center; gap: .3rem; }

/* ---------- Wizard ---------- */
.wizard { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
[data-booking-form] { position: relative; }
@media (min-width: 1000px) { .wizard { grid-template-columns: minmax(0,1fr) 350px; } }

.progress { margin-bottom: 2rem; }
.progress__track { display: flex; gap: .35rem; }
.progress__track span { flex: 1; height: 4px; border-radius: 999px; background: var(--paper-3); transition: background-color .3s var(--ease); }
.progress__track span[data-done='true'] { background: var(--red); }
.progress__label { display: flex; justify-content: space-between; gap: 1rem; margin-top: .7rem; font-size: .82rem; align-items: baseline; }
.progress__label b { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-900); }
.progress__label span { color: var(--ink-muted); font-weight: 600; }

.wstep { display: none; animation: rise .35s var(--ease) both; }
.wstep[data-active='true'] { display: block; }
.wstep h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .4rem; }
/* De kop krijgt bij elke stap focus zodat schermlezers hem voorlezen. Een
   focusrand hoort daar niet bij: de bezoeker is er niet zelf naartoe getabd. */
.wstep h2:focus, .wstep h2:focus-visible { outline: none; }
.wstep__intro { color: var(--ink-500); font-size: .96rem; margin-bottom: 1.6rem; }
.wnav { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.wnav .wnav__next { margin-left: auto; }

.summary {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--paper-2);
  overflow: hidden;
}
@media (min-width: 1000px) { .summary { position: sticky; top: calc(var(--header-h) + 1rem); } }
.summary__head { padding: 1rem 1.15rem; background: var(--ink-900); color: #fff; font-family: var(--font-display); font-size: 1.2rem; text-transform: uppercase; }
.summary__body { padding: 1.15rem; }
.summary__empty { font-size: .88rem; color: var(--ink-muted); }
.summary__row { display: flex; gap: 1rem; justify-content: space-between; font-size: .89rem; padding-block: .45rem; border-bottom: 1px dashed var(--line); }
.summary__row:last-of-type { border-bottom: 0; }
.summary__row span:first-child { color: var(--ink-600); }
.summary__row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: .9rem; padding-top: .9rem; border-top: 2px solid var(--ink-900); }
.summary__total span { font-weight: 650; }
.summary__total b { font-family: var(--font-display); font-size: 1.85rem; color: var(--red); font-variant-numeric: tabular-nums; }
.summary__note { font-size: .76rem; color: var(--ink-muted); margin-top: .7rem; line-height: 1.5; }

/* ---------- Date / time picker ---------- */
.cal { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--paper); }
.cal__head { display: flex; align-items: center; gap: .5rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.cal__month { flex: 1; text-align: center; font-family: var(--font-display); font-size: 1.25rem; text-transform: uppercase; color: var(--ink-900); }
.cal__nav { width: 38px; height: 38px; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--ink-700); transition: background-color .15s; }
.cal__nav:hover:not([disabled]) { background: var(--paper-2); }
.cal__nav[disabled] { opacity: .3; cursor: not-allowed; }
.cal__dows, .cal__days { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal__dows { padding: .6rem .5rem .1rem; }
.cal__dows span { text-align: center; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.cal__days { padding: .35rem .5rem .7rem; gap: 2px; }
.cal__day {
  aspect-ratio: 1; display: grid; place-items: center;
  border-radius: var(--r-sm); font-size: .92rem; font-weight: 600;
  color: var(--ink-800); font-variant-numeric: tabular-nums;
  transition: background-color .16s, color .16s;
}
.cal__day:hover:not([disabled]) { background: var(--red-tint); color: var(--red); }
/* Gesloten dagen blijven duidelijk uitgeschakeld, maar moeten wel leesbaar zijn:
   de bezoeker oriënteert zich op die datums in de maand. */
.cal__day[disabled] { color: var(--ink-400); cursor: not-allowed; }
.cal__day[aria-pressed='true'] { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.cal__day--today:not([aria-pressed='true']) { box-shadow: inset 0 0 0 1.5px var(--ink-300); }
.cal__legend { display: flex; flex-wrap: wrap; gap: .35rem 1rem; padding: .7rem 1rem; border-top: 1px solid var(--line-soft); font-size: .76rem; color: var(--ink-muted); }
.cal__legend span { display: inline-flex; align-items: center; gap: .4rem; }
.cal__legend i { width: 10px; height: 10px; border-radius: 3px; display: block; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .55rem; }
.slot {
  padding: .75rem .5rem; text-align: center;
  border: 1.5px solid var(--line); border-radius: var(--r);
  font-weight: 650; font-size: .95rem; font-variant-numeric: tabular-nums;
  background: var(--paper); color: var(--ink-800);
  transition: border-color .15s, background-color .15s, color .15s;
}
.slot:hover:not([disabled]) { border-color: var(--red); color: var(--red); }
.slot[aria-pressed='true'] { background: var(--red); border-color: var(--red); color: #fff; }
.slot[disabled] { opacity: .38; cursor: not-allowed; background: var(--paper-2); }

/* ---------- Estimate table ---------- */
.estimate { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--paper); }
.estimate__head { padding: 1rem 1.25rem; background: var(--ink-900); color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.estimate__head h3 { color: #fff; margin: 0; }
.estimate__head span { margin-left: auto; font-size: .8rem; color: var(--ink-400); }
.estimate__scroll { overflow-x: auto; }
.estimate table { width: 100%; border-collapse: collapse; min-width: 520px; }
.estimate th, .estimate td { padding: .8rem 1.25rem; text-align: left; border-bottom: 1px solid var(--line-soft); font-size: .92rem; }
.estimate th { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); background: var(--paper-2); }
.estimate td.n, .estimate th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.estimate tbody tr:last-child td { border-bottom: 0; }
.estimate__job { font-weight: 650; color: var(--ink-900); }
.estimate__sub { display: block; font-size: .8rem; font-weight: 400; color: var(--ink-muted); }
.estimate tfoot td { background: var(--paper-2); font-weight: 650; border-bottom: 0; }
.estimate tfoot tr:first-child td { border-top: 2px solid var(--ink-900); }
.estimate tfoot .grand td { font-size: 1.05rem; color: var(--ink-900); }
.estimate tfoot .grand td.n { font-family: var(--font-display); font-size: 1.7rem; color: var(--red); }

.range-note {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .85rem 1.25rem; background: var(--paper-2);
  border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--ink-500); line-height: 1.55;
}
.range-note svg { flex: none; margin-top: .15rem; color: var(--ink-muted); }

/* ---------- Misc components ---------- */
.notice {
  display: flex; align-items: flex-start; gap: .8rem;
  padding: 1rem 1.15rem; border-radius: var(--r);
  background: var(--paper-2);
  font-size: .92rem; line-height: 1.6; color: var(--ink-600);
}
.notice svg { flex: none; margin-top: .2rem; color: var(--red); }
.notice--ok   { background: var(--ok-tint);   border-color: var(--ok); color: #0C5B42; }
.notice--ok svg { color: var(--ok); }
.notice--warn { background: var(--warn-tint); border-color: var(--warn); color: #7C3B06; }
.notice--warn svg { color: var(--warn); }

.tag {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .6rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--paper-3); color: var(--ink-600);
}
.tag--red { background: var(--red-tint); color: var(--red); }
.tag--ok  { background: var(--ok-tint);  color: var(--ok); }

.review { display: flex; flex-direction: column; height: 100%; }
.review__stars { display: flex; gap: 2px; color: #F0A500; margin-bottom: .8rem; }
.review p { font-size: .95rem; color: var(--ink-600); line-height: 1.65; flex: 1; }
.review__who { display: flex; align-items: center; gap: .65rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line-soft); }
.review__av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-900); color: #fff; font-family: var(--font-display); font-size: 1rem; flex: none; }
.review__who b { font-size: .88rem; }
.review__sub { display: block; font-size: .76rem; color: var(--ink-muted); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; gap: 1rem; justify-content: space-between;
  padding: 1.15rem .25rem; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 1.2rem; text-transform: uppercase; color: var(--ink-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--red); border-bottom: 2px solid var(--red);
  transform: rotate(-135deg) translate(-4px,-4px); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg) translate(-2px,-2px); }
.faq details > div { padding: 0 .25rem 1.35rem; font-size: .95rem; color: var(--ink-500); line-height: 1.7; max-width: 72ch; }
.faq details > div a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }

.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: .55rem 0; border-bottom: 1px solid var(--line-soft); font-size: .93rem; }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.hours tr:last-child td { border-bottom: 0; }
.hours .closed { color: var(--ink-muted); font-weight: 500; }
.hours tr[data-today='true'] td { color: var(--red); font-weight: 700; }
.section--dark .hours td, .site-footer .hours td { border-color: var(--ink-800); }
/* Deze onderdelen staan zowel op licht als op donker. Op donker is de lichtere
   grijstint juist de leesbare: geen enkele grijstint haalt AA op beide. */
.section--dark .stat__l, .site-footer .stat__l,
.section--dark .hours .closed, .site-footer .hours .closed,
.section--dark .muted, .site-footer .muted { color: var(--ink-400); }
.section--dark .hours tr[data-today='true'] td, .site-footer .hours tr[data-today='true'] td { color: #FF6B6B; }

/* min-height is de terugval voor browsers zonder aspect-ratio: een iframe heeft
   geen eigen hoogte en zou anders helemaal dichtklappen. */
.map-embed { border: 0; width: 100%; min-height: 260px; aspect-ratio: 16/9; border-radius: var(--r-lg); background: var(--paper-3); display: block; }
@media (max-width: 700px) { .map-embed { aspect-ratio: 4/3; } }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--red); color: #fff; }
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(700px 340px at 85% 20%, rgba(255,255,255,.16), transparent 60%),
              repeating-linear-gradient(115deg, rgba(0,0,0,.05) 0 1px, transparent 1px 14px);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); }
.cta-band .btn--ghost {
  --btn-shine: rgba(255,255,255,.95);
  --btn-top: #FFFFFF;
  --btn-mid: #FFF8F8;
  --btn-bot: #F3DCDC;
  --btn-edge: rgba(255,255,255,.9);
  --btn-hi: #fff;
  --btn-lo: rgba(161,21,21,.14);
  --btn-drop:
    0 1px 1px rgba(80,8,8,.10),
    0 8px 18px rgba(80,8,8,.22);
  --btn-drop-hover:
    0 3px 4px rgba(80,8,8,.12),
    0 12px 26px rgba(80,8,8,.30);
  color: var(--red);
}
.cta-band .btn--ghost:hover {
  --btn-top: #FFFFFF;
  --btn-mid: #FFFFFF;
  --btn-bot: #F8E8E8;
}
.cta-band .btn--onDark {
  --btn-edge: rgba(255,255,255,.5);
  --btn-top: rgba(255,255,255,.22);
  --btn-mid: rgba(255,255,255,.10);
  --btn-bot: rgba(80,8,8,.28);
}

/* Page hero (interior pages) */
.page-hero { position: relative; background: var(--ink-900); color: var(--ink-300); overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 82% 0%, rgba(161,21,21,.3), transparent 62%),
              repeating-linear-gradient(115deg, rgba(255,255,255,.03) 0 1px, transparent 1px 13px);
}
.page-hero > * { position: relative; }
.page-hero__inner { padding-block: clamp(2.5rem, 6vw, 4.25rem); }
.page-hero h1 { color: #fff; font-size: clamp(2.25rem, 5vw, 3.75rem); margin-block: .75rem .7rem; }
.page-hero .lead { color: var(--ink-300); max-width: 62ch; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .8rem; color: var(--ink-400); }
.crumbs a:hover { color: #fff; }
.crumbs li:not(:last-child)::after { content: '/'; margin-left: .4rem; opacity: .5; }
.crumbs li { display: inline-flex; align-items: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: var(--ink-400); padding-block: clamp(3rem, 6vw, 4.5rem) 0; }
.site-footer h4 {
  font-family: var(--font-body); font-size: .76rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem;
}
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
/* Breed genoeg: vijf kolommen naast elkaar, met de openingstijden als eigen kolom. */
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.3fr .9fr .9fr 1.1fr 1.4fr; gap: 2rem; } }
.site-footer p, .site-footer li { font-size: .89rem; line-height: 1.75; }
.site-footer a { transition: color .15s; }
.site-footer a:hover { color: #fff; }
.site-footer .brand img { height: 40px; filter: brightness(0) invert(1); }
.footer-contact li { display: flex; gap: .65rem; align-items: flex-start; margin-bottom: .5rem; }
.footer-contact svg { flex: none; margin-top: .3rem; color: var(--red-hot); }
.socials { display: flex; gap: .5rem; }
.socials a {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--ink-800); color: var(--ink-300);
  transition: background-color .18s, color .18s, transform .18s;
}
.socials a:hover { background: var(--red); color: #fff; transform: translateY(-2px); }
.footer-bottom {
  margin-top: 3rem; padding-block: 1.4rem;
  border-top: 1px solid var(--ink-800);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center;
  font-size: .8rem;
}
/* Onderin: links het copyright, in het midden de socials, rechts de links. */
.footer-bottom .socials { margin-inline: auto; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
@media (max-width: 640px) { .footer-bottom { justify-content: center; text-align: center; } .footer-bottom .socials { flex-basis: 100%; justify-content: center; order: -1; } }

/* ---------- Sticky mobile action bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none; gap: .5rem; padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.mobile-bar .btn { flex: 1; padding: .8rem .5rem; font-size: .88rem; }
@media (max-width: 720px) { .mobile-bar { display: flex; } body { padding-bottom: 68px; } }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.muted { color: var(--ink-muted); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-5 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.hidden { display: none !important; }
.prose p + p { margin-top: 1rem; }
.prose h2 { margin-top: 2.5rem; margin-bottom: .8rem; }
.prose h3 { margin-top: 1.75rem; margin-bottom: .5rem; }
.prose ul { margin: 1rem 0; }
.prose ul li { position: relative; padding-left: 1.6rem; margin-bottom: .5rem; }
.prose ul li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--red);
}
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; font-size: .95rem; }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: .28em; width: 18px; height: 18px;
  border-radius: 50%; background: var(--ok-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%2312805C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M2 6.3l2.6 2.6L10 3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ---------- Page transitions (Chrome same-origin) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) {
  animation: vt-out .32s var(--ease) both;
}
::view-transition-new(root) {
  animation: vt-in .42s var(--ease) both;
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
::view-transition-old(site-header),
::view-transition-new(site-header) {
  animation: none;
  mix-blend-mode: normal;
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .mobile-bar, .btn, .wnav { display: none !important; }
  body { color: #000; padding-bottom: 0; }
  .estimate, .card, .vehicle-card { border-color: #999; break-inside: avoid; }
}


/* ==========================================================================
   Schakelaars (Admin -> Website). Zonder de klasse op <html> is het onderdeel
   uit: de pagina toont het dus nooit even voordat het script het weghaalt.
   data-feature="..."      alleen zichtbaar als het onderdeel aan staat
   data-feature-off="..."  alleen zichtbaar als het uit staat
   ========================================================================== */
html:not(.f-booking) [data-feature~="booking"],
html:not(.f-booking) a[href^="afspraak.html"],
html:not(.f-steps) [data-feature~="steps"],
html:not(.f-estimator) [data-feature~="estimator"],
html:not(.f-estimator) a[href^="prijzen.html"],
html:not(.f-mobility) [data-feature~="mobility"],
html:not(.f-reviews) [data-feature~="reviews"],
html:not(.f-offer) [data-feature~="offer"],
html.f-booking [data-feature-off~="booking"],
html.f-estimator [data-feature-off~="estimator"] { display: none !important; }

/* "Nu geopend" bovenin is een knop naar de openingstijden onderaan. */
.open-link { text-decoration: none; cursor: pointer; border-radius: 999px; }
.open-link:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* Afspraak, stap 1: de uitkomst van het kenteken staat ernaast, niet eronder. */
.plate-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .5rem 1rem; }
.plate-chip {
  display: flex; align-items: center; gap: .6rem; min-height: 2.25rem;
  font-size: .9rem; color: var(--ink-600);
}
.plate-chip__when { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 520px) { .plate-chip { flex-basis: 100%; } }

/* De pil bovenin ("Nu geopend" / "Nu gesloten"): lager, even breed, zelfde letter. */
.open-link .apk-status__badge { padding-block: .15rem; line-height: 1.25; }


/* ==========================================================================
   Hover en toestand, op één plek. Een hover licht op (rustig beginnend) en
   dooft langzamer uit; een druk of een keuze is een toestand en gaat sneller.
   Het kenteken en de voertuigkaart hebben hun eigen beweging en staan hier niet.
   ========================================================================== */
.btn, .nav__links a, .nav__toggle, .card, .card__link svg, .site-footer a, .socials a, .topbar a {
  transition-duration: var(--t-hover-out);
  transition-timing-function: ease-out;
}
.btn:hover, .nav__links a:hover, .nav__toggle:hover, .card:hover, .card:hover .card__link svg,
.site-footer a:hover, .socials a:hover, .topbar a:hover {
  transition-duration: var(--t-hover-in);
  transition-timing-function: ease-in;
}
.btn:active { transition-duration: 150ms; transition-timing-function: var(--ease); }

/* Het menu-icoon wisselt niet in één stap: het nieuwe draait en vervaagt in. */
.nav__toggle svg { animation: toggleIn var(--t-state) var(--ease) both; }
@keyframes toggleIn { from { opacity: 0; transform: rotate(-45deg) scale(.8); } to { opacity: 1; transform: none; } }
