/* ============================================================
   Designsysteem — spoedkoerier
   Kleuren: diepgroen #1D402D · crème #FFF9EC · goud #E4A030 · inkt #000004
   Typografie: Inter Tight (display/brand) · Instrument Sans (interface + data, tabular cijfers)
   Signatuur: routelijn-motief (gestippelde lijn, vertrek-/aankomstpunt)
   ============================================================ */

:root {
  --groen: #1D402D;
  --groen-diep: #16311F;
  --groen-donker: #0F2117;
  --room: #FFF9EC;
  --room-donker: #FAF2DE;
  --goud: #E4A030;
  --goud-donker: #B87E15;
  --goud-licht: #F2C36B;
  --inkt: #000004;
  --wit: #FFFFFF;
  --rood: #A63D2F;
  --lijn: rgba(29, 64, 45, 0.14);
  --lijn-sterk: rgba(29, 64, 45, 0.28);
  --tekst-zacht: rgba(9, 22, 14, 0.66);
  --schaduw: 0 18px 44px rgba(15, 33, 23, 0.10);
  --schaduw-zacht: 0 6px 18px rgba(15, 33, 23, 0.06);
  --radius: 16px;
  /* Max 2 fonts: Inter Tight voor koppen/brand, Instrument Sans voor de rest.
     --font-mono is een historische alias: operationele data staat nu ook in
     Instrument Sans (tabular cijfers). */
  --font-display: 'Inter Tight', 'Instrument Sans', -apple-system, sans-serif;
  --font-sans: 'Instrument Sans', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Instrument Sans', -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
html, body { overflow-x: clip; }
body {
  font-family: var(--font-sans);
  background: var(--room);
  color: var(--inkt);
  font-size: 16.5px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--goud); color: var(--inkt); }
:focus-visible { outline: 3px solid rgba(228, 160, 48, 0.6); outline-offset: 2px; border-radius: 4px; }

/* Historische klassenamen (staan overal in de templates):
   .mono = datastijl (nu Instrument Sans), .serif = display-font (Inter Tight). */
.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-display); font-weight: 680; letter-spacing: -0.02em; }
.container { max-width: 1180px; margin: 0 auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon--flip { transform: rotate(180deg); }
section[id], div[id] { scroll-margin-top: 96px; }

h1, h2, h3 { font-weight: 600; line-height: 1.15; }

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.78rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.94rem; line-height: 1.25;
  cursor: pointer; transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  text-align: left;
}
.btn .icon { width: 17px; height: 17px; }
.btn--gold { background: var(--goud); color: var(--inkt); }
.btn--gold:hover { background: var(--goud-licht); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(228, 160, 48, 0.35); }
.btn--green { background: var(--groen); color: var(--room); }
.btn--green:hover { background: var(--groen-diep); transform: translateY(-1px); }
.btn--outline { border-color: var(--lijn-sterk); color: var(--groen); background: transparent; }
.btn--outline:hover { border-color: var(--groen); background: rgba(29, 64, 45, 0.05); }
.btn--ghost { border-color: rgba(255, 249, 236, 0.4); color: var(--room); background: transparent; }
.btn--ghost:hover { background: rgba(255, 249, 236, 0.09); border-color: rgba(255, 249, 236, 0.65); }
.btn--ghost-green { border-color: rgba(255, 249, 236, 0.4); color: var(--room); background: transparent; }
.btn--ghost-green:hover { background: rgba(255, 249, 236, 0.09); }
.btn--danger { border-color: rgba(166, 61, 47, 0.45); color: var(--rood); background: rgba(166, 61, 47, 0.05); }
.btn--danger:hover { background: var(--rood); color: var(--room); border-color: var(--rood); }
.btn--sm { padding: 0.5rem 1.05rem; font-size: 0.85rem; }
.btn--lg { padding: 0.95rem 1.9rem; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn-stack { display: flex; flex-direction: column; line-height: 1.15; }
.btn-stack small { font-size: 0.68rem; font-weight: 500; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.08em; }
.text-link { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; font-size: 0.92rem; color: var(--groen); }
.text-link .icon { width: 15px; height: 15px; transition: transform 0.18s ease; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Merk ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.04rem; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.brandmark { width: 34px; height: 34px; flex-shrink: 0; }
.brandmark-bg { fill: var(--groen); }
.brandmark-a { fill: var(--room); }
.brandmark-b { fill: var(--goud); }
.brandmark-route { stroke: var(--room); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1 5; }
.brandmark--light .brandmark-bg { fill: rgba(255, 249, 236, 0.13); }

/* ---------- Navigatie ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 249, 236, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--lijn);
}
.site-nav.is-scrolled { box-shadow: 0 6px 24px rgba(15, 33, 23, 0.07); }
.nav-inner { display: flex; align-items: center; gap: 2.2rem; height: 76px; }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: rgba(0, 0, 4, 0.72); padding: 0.3rem 0; }
.nav-links a:hover { color: var(--groen); }
.nav-actions { display: flex; align-items: center; gap: 1.1rem; }
.nav-account { font-size: 0.9rem; font-weight: 600; color: var(--groen); white-space: nowrap; }
.nav-account:hover { color: var(--goud-donker); }
.lang-switch { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--font-mono); font-size: 0.78rem; }
.lang-switch a { color: var(--tekst-zacht); padding: 0.15rem 0.1rem; }
.lang-switch a.is-active { color: var(--groen); font-weight: 600; border-bottom: 2px solid var(--goud); }
.lang-switch span { color: var(--lijn-sterk); }
.nav-burger, .app-burger {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 42px; height: 38px; background: none; border: none; cursor: pointer; border-radius: 8px;
}
.nav-burger span, .app-burger span { width: 20px; height: 2px; background: var(--inkt); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
body.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Flash ---------- */
.flash-stack { margin-top: 1rem; }
.flash-stack--app { padding: 1.2rem 2rem 0; max-width: 1240px; width: 100%; margin: 0 auto; }
.flash {
  display: flex; align-items: center; gap: 0.7rem;
  background: var(--wit); border: 1.5px solid var(--lijn-sterk); border-radius: 12px;
  padding: 0.8rem 1.1rem; margin-bottom: 0.6rem; font-size: 0.93rem; box-shadow: var(--schaduw-zacht);
  transition: opacity 0.4s ease;
}
.flash .icon { width: 18px; height: 18px; }
.flash--success { border-color: rgba(29, 64, 45, 0.35); }
.flash--success > .icon { color: var(--groen); }
.flash--error { border-color: rgba(166, 61, 47, 0.45); background: #FBEFEC; }
.flash--error > .icon { color: var(--rood); }
.flash-close { margin-left: auto; background: none; border: none; cursor: pointer; color: inherit; opacity: 0.45; display: flex; padding: 0.2rem; }
.flash-close:hover { opacity: 1; }
.flash-close .icon { width: 15px; height: 15px; }

/* ============================================================
   MARKETING — hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden; color: var(--room);
  background: linear-gradient(158deg, var(--groen) 0%, var(--groen-diep) 55%, var(--groen-donker) 100%);
  padding: clamp(2.8rem, 6vw, 4.6rem) 0 clamp(3.2rem, 6vw, 5.2rem);
}
.hero::before {
  content: ""; position: absolute; width: 760px; height: 760px; right: -220px; top: -300px;
  background: radial-gradient(circle, rgba(228, 160, 48, 0.17), transparent 62%); pointer-events: none;
}
.hero-route { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(255, 249, 236, 0.13); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 4rem; align-items: center; }
.hero-eyebrow {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--goud-licht);
}
.hero-clock { color: var(--room); opacity: 0.85; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--goud); animation: livePulse 2.2s ease-out infinite; flex-shrink: 0; }
.live-dot--gold { background: var(--goud); }
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(228, 160, 48, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(228, 160, 48, 0); }
  100% { box-shadow: 0 0 0 0 rgba(228, 160, 48, 0); }
}
.hero h1 {
  font-family: var(--font-display); font-weight: 680;
  font-size: clamp(2.6rem, 5.6vw, 4.2rem); line-height: 1.03; letter-spacing: -0.03em;
  margin: 0.85rem 0 1.1rem;
}
.hero h1 em { font-style: italic; color: var(--goud); }
.hero-lead { max-width: 33rem; color: rgba(255, 249, 236, 0.82); font-size: 1.07rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.5rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 1.3rem; margin-top: 1.5rem; list-style: none; }
.hero-chips li { display: flex; align-items: center; gap: 0.45rem; font-size: 0.87rem; color: rgba(255, 249, 236, 0.78); }
.hero-chips .icon { width: 15px; height: 15px; color: var(--goud); }

/* Dispatch-kaart (digitale vrachtbrief) */
.hero-card-wrap { display: flex; justify-content: flex-end; }
.dispatch-card {
  background: var(--room); color: var(--inkt); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; width: min(410px, 100%);
  box-shadow: 0 34px 80px rgba(0, 0, 4, 0.4);
}
.dispatch-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; border-bottom: 1px dashed var(--lijn-sterk); }
.dispatch-ref { font-weight: 600; font-size: 1.02rem; }
.dispatch-route { padding: 1.1rem 0 0.9rem; }
.dispatch-stop { display: grid; grid-template-columns: 18px 1fr auto; gap: 0.8rem; align-items: center; }
.stop-info strong { display: block; font-weight: 600; font-size: 1rem; }
.stop-note { font-size: 0.76rem; color: var(--tekst-zacht); }
.stop-time { font-weight: 600; font-size: 0.95rem; }
.stop-time--eta { color: var(--goud-donker); }
.stop-dot { width: 13px; height: 13px; border-radius: 50%; justify-self: center; }
.stop-dot--from { background: var(--groen); }
.stop-dot--to { background: var(--wit); border: 3px solid var(--goud); }
.dispatch-line {
  position: relative; width: 2px; height: 44px; margin: 0.3rem 0 0.3rem 8px;
  background: repeating-linear-gradient(180deg, var(--lijn-sterk) 0 4px, transparent 4px 9px);
}
.dispatch-mover {
  position: absolute; left: 50%; transform: translateX(-50%); top: 0;
  width: 8px; height: 8px; border-radius: 50%; background: var(--goud);
  box-shadow: 0 0 0 4px rgba(228, 160, 48, 0.22);
  animation: dispatchMove 3.4s ease-in-out infinite;
}
@keyframes dispatchMove {
  0% { top: 0; opacity: 0; }
  12% { opacity: 1; }
  70%, 88% { top: calc(100% - 8px); opacity: 1; }
  100% { top: calc(100% - 8px); opacity: 0; }
}
.dispatch-meta { display: flex; gap: 1.5rem; padding: 0.85rem 0; border-top: 1px dashed var(--lijn-sterk); font-size: 0.82rem; color: var(--tekst-zacht); flex-wrap: wrap; }
.dispatch-meta strong { color: var(--inkt); font-weight: 600; }
.dispatch-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--lijn); }
.dispatch-live { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--groen); font-weight: 600; }
.dispatch-insured { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--tekst-zacht); }
.dispatch-insured .icon { width: 15px; height: 15px; color: var(--groen); }

/* ---------- Sectorenstrip ---------- */
.sector-strip { background: var(--groen-donker); color: var(--room); border-top: 1px solid rgba(255, 249, 236, 0.08); padding: 0.8rem 0; }
.sector-strip-inner { display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap; }
.strip-label { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.16em; color: rgba(255, 249, 236, 0.45); white-space: nowrap; }
.sector-strip ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; list-style: none; }
.sector-strip li { font-size: 0.87rem; font-weight: 500; color: rgba(255, 249, 236, 0.75); display: flex; align-items: center; gap: 0.55rem; }
.sector-strip li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--goud); opacity: 0.8; }

/* ---------- Secties ---------- */
.section { padding: clamp(2.6rem, 5vw, 4rem) 0; }
.section--tinted { background: var(--room-donker); }
.section--green { background: var(--groen); color: var(--room); }
.section-head { max-width: 660px; margin-bottom: clamp(1.3rem, 2.5vw, 1.9rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--goud-donker); font-weight: 500;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; flex-shrink: 0;
  background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 9px);
}
.eyebrow--gold { color: var(--goud-licht); }
.section h2 {
  font-family: var(--font-display); font-weight: 680;
  font-size: clamp(1.85rem, 3.7vw, 2.7rem); line-height: 1.09; letter-spacing: -0.026em;
  margin: 0.5rem 0 0.65rem;
}
.section h2 em { font-style: italic; color: var(--goud-donker); }
.section--green h2 em { color: var(--goud); }
.section-sub { color: var(--tekst-zacht); font-size: 1.02rem; max-width: 37rem; }
.section--green .section-sub { color: rgba(255, 249, 236, 0.75); }

/* ---------- USP ---------- */
.usp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.usp-card {
  background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--radius);
  padding: 1.3rem 1.35rem; box-shadow: var(--schaduw-zacht);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.usp-card:hover { transform: translateY(-3px); box-shadow: var(--schaduw); }
.usp-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 0.75rem;
  background: rgba(29, 64, 45, 0.07); color: var(--groen);
}
.usp-icon .icon { width: 22px; height: 22px; }
.usp-card h3 { font-size: 1.06rem; margin-bottom: 0.45rem; }
.usp-card p { font-size: 0.93rem; color: var(--tekst-zacht); }

/* ---------- Diensten ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.service-card {
  background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column; gap: 0.55rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--schaduw); }
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(228, 160, 48, 0.15); color: var(--goud-donker); margin-bottom: 0.4rem;
}
.service-icon .icon { width: 22px; height: 22px; }
.service-card h3 { font-family: var(--font-display); font-weight: 680; font-size: 1.35rem; letter-spacing: -0.018em; }
.service-card p { font-size: 0.94rem; color: var(--tekst-zacht); flex-grow: 1; }

/* ---------- Statsband ---------- */
.stats-band { background: var(--groen); color: var(--room); padding: 2rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat { padding-left: 1.4rem; border-left: 2px dashed rgba(255, 249, 236, 0.25); }
.stat-value { display: block; font-family: var(--font-mono); font-weight: 600; font-size: clamp(1.4rem, 2.5vw, 1.9rem); color: var(--goud); }
.stat-label { display: block; font-size: 0.86rem; color: rgba(255, 249, 236, 0.72); margin-top: 0.3rem; }

/* ---------- Wagenpark ---------- */
.fleet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.fleet-card {
  background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--radius);
  padding: 1.25rem; display: flex; flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.fleet-card:hover { transform: translateY(-3px); box-shadow: var(--schaduw); }
.fleet-visual { color: var(--groen); margin-bottom: 0.9rem; transition: color 0.25s ease; }
.fleet-card:hover .fleet-visual { color: var(--goud-donker); }
.vehicle-svg { width: 100%; max-width: 170px; height: auto; display: block; }
.fleet-card h3 { font-size: 1.03rem; }
.fleet-desc { font-size: 0.87rem; color: var(--tekst-zacht); margin: 0.3rem 0 0.8rem; }
.fleet-specs { font-family: var(--font-mono); font-size: 0.76rem; border-top: 1px dashed var(--lijn-sterk); margin-bottom: 1rem; }
.fleet-specs div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.15rem 0.8rem; padding: 0.48rem 0; border-bottom: 1px dashed var(--lijn); }
.fleet-specs dt { color: var(--tekst-zacht); font-family: var(--font-sans); font-size: 0.76rem; }
.fleet-specs dd { text-align: right; font-weight: 500; white-space: nowrap; margin-left: auto; }
.fleet-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 0.8rem; flex-wrap: wrap; }
.fleet-price small { display: block; font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--tekst-zacht); font-weight: 600; }
.fleet-price .mono { font-weight: 600; font-size: 0.92rem; }
.fleet-note { margin-top: 1.1rem; font-size: 0.9rem; color: var(--tekst-zacht); font-style: italic; max-width: 60ch; }

/* ---------- Werkwijze ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem 1.8rem; list-style: none; position: relative; }
.steps-grid::before {
  content: ""; position: absolute; top: 22px; left: 3%; right: 3%; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 249, 236, 0.3) 0 5px, transparent 5px 12px);
}
.step { position: relative; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; margin-bottom: 0.7rem;
  background: var(--groen-donker); border: 1.5px dashed rgba(255, 249, 236, 0.45);
  color: var(--goud); font-weight: 600; font-size: 0.88rem; position: relative; z-index: 1;
}
.step h3 { font-size: 1.04rem; color: var(--room); margin-bottom: 0.4rem; }
.step p { font-size: 0.91rem; color: rgba(255, 249, 236, 0.72); }

/* ---------- Sectoren ---------- */
.sectors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.sector-card { border: 1.5px dashed var(--lijn-sterk); border-radius: var(--radius); padding: 1.05rem 1.25rem; transition: border-color 0.2s ease, background 0.2s ease; }
.sector-card:hover { border-style: solid; border-color: var(--groen); background: var(--wit); }
.sector-card h3 { font-size: 0.98rem; margin-bottom: 0.3rem; }
.sector-card p { font-size: 0.88rem; color: var(--tekst-zacht); }

/* ---------- Portaal-promo ---------- */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: center; }
.promo-list { list-style: none; display: grid; gap: 0.5rem; margin: 1rem 0 1.3rem; }
.promo-list li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.97rem; }
.promo-list .icon { width: 17px; height: 17px; color: var(--goud-donker); }
.promo-note { font-size: 0.84rem; color: var(--tekst-zacht); align-self: center; }
.mock-window { background: var(--wit); border: 1px solid var(--lijn); border-radius: 14px; box-shadow: var(--schaduw); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 0.7rem 0.95rem; border-bottom: 1px solid var(--lijn); background: var(--room); min-width: 0; }
.mock-bar > span { width: 10px; height: 10px; border-radius: 50%; background: var(--lijn-sterk); flex-shrink: 0; }
.mock-url { margin-left: auto; font-size: 0.72rem; color: var(--tekst-zacht); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-body { padding: 1.2rem 1.3rem; }
.mock-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.7rem; }
.mock-row { display: flex; align-items: center; gap: 0.9rem; padding: 0.72rem 0.1rem; border-top: 1px dashed var(--lijn); font-size: 0.84rem; min-width: 0; }
.mock-row .mono { font-weight: 600; font-size: 0.78rem; flex-shrink: 0; }
.mock-row > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-row .badge { flex-shrink: 0; }
.mock-foot { padding-top: 0.9rem; font-size: 0.7rem; color: var(--tekst-zacht); }

/* ---------- Offerte (compacte aanvraag) ---------- */
.quote-shell {
  background: linear-gradient(150deg, var(--groen) 0%, var(--groen-diep) 100%);
  color: var(--room); border-radius: 22px; overflow: hidden; position: relative;
  padding: clamp(1.4rem, 3vw, 2.1rem);
}
.quote-shell::after {
  content: ""; position: absolute; width: 480px; height: 480px; left: -160px; bottom: -260px;
  background: radial-gradient(circle, rgba(228, 160, 48, 0.14), transparent 62%); pointer-events: none;
}
.quote-head {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1.1rem 2.5rem; flex-wrap: wrap; margin-bottom: 1.1rem;
}
.quote-head-copy { max-width: 34rem; }
.quote-head-copy h2 { font-family: var(--font-display); font-weight: 680; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.022em; margin: 0.45rem 0 0.4rem; }
.quote-head-copy > p:last-child { color: rgba(255, 249, 236, 0.78); font-size: 0.94rem; }
.quote-direct {
  display: grid; gap: 0.05rem; justify-items: start;
  padding: 0.7rem 1.05rem 0.8rem; border: 1.5px dashed rgba(255, 249, 236, 0.32); border-radius: 13px;
}
.quote-direct-label { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.13em; color: rgba(255, 249, 236, 0.6); }
.quote-phone { font-family: var(--font-mono); font-weight: 600; font-size: 1.3rem; color: var(--goud); }
.quote-phone:hover { color: var(--goud-licht); }
.quote-direct-row { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.4rem; flex-wrap: wrap; }
.quote-direct-note { font-size: 0.78rem; color: rgba(255, 249, 236, 0.65); }
.quote-form-wrap { position: relative; z-index: 1; background: var(--wit); color: var(--inkt); border-radius: 16px; padding: clamp(1.1rem, 2.5vw, 1.5rem); box-shadow: 0 24px 60px rgba(0, 0, 4, 0.3); }
.quote-form .field, .quote-form .field-row .field { margin-bottom: 0.7rem; }
.quote-form .field-row { gap: 0.55rem 0.9rem; }
.quote-form textarea { min-height: 46px; }
.field-row--split { grid-template-columns: 1.25fr 1fr; align-items: start; }
.field-row--contact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vpick { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.15rem 0; }
.vpill { position: relative; }
.vpill input { position: absolute; opacity: 0; inset: 0; }
.vpill span {
  display: inline-flex; align-items: center; padding: 0.42rem 0.85rem; border-radius: 999px;
  border: 1.5px solid var(--lijn-sterk); font-size: 0.83rem; font-weight: 600; color: var(--tekst-zacht);
  cursor: pointer; line-height: 1.2; background: var(--wit);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.vpill span:hover { border-color: var(--goud); color: var(--inkt); }
.vpill input:checked + span { border-color: var(--goud); background: rgba(228, 160, 48, 0.13); color: var(--inkt); box-shadow: 0 0 0 2px rgba(228, 160, 48, 0.18); }
.vpill input:focus-visible + span { outline: 3px solid rgba(228, 160, 48, 0.6); outline-offset: 2px; }
.when-row { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.when-row .check { margin-bottom: 0; flex-shrink: 0; padding: 0.5rem 0; }
.when-row .check input { width: 17px; padding: 0; border: none; }
.when-row input[type="text"] { flex: 1; min-width: 130px; }
.quote-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem 1.2rem; flex-wrap: wrap; margin-top: 0.15rem; }
.quote-submit-row .btn { flex-shrink: 0; }
.form-micro { font-size: 0.79rem; color: var(--tekst-zacht); text-align: center; margin-top: 0.8rem; }
.quote-submit-row .form-micro { margin: 0; text-align: left; flex: 1; min-width: 230px; }

/* ---------- Formuliervelden (globaal) ---------- */
.field { display: flex; flex-direction: column; gap: 0.32rem; margin-bottom: 0.95rem; min-width: 0; }
.field > span, .field-label { font-size: 0.79rem; font-weight: 600; color: rgba(9, 22, 14, 0.78); }
.field-label { display: block; margin-bottom: 0.55rem; }
.field input, .field select, .field textarea, .toolbar select, .invline-row input {
  font-family: var(--font-sans); font-size: 0.95rem; color: var(--inkt);
  padding: 0.66rem 0.85rem; border: 1.5px solid var(--lijn-sterk); border-radius: 10px;
  background: var(--wit); width: 100%; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus, .toolbar select:focus, .invline-row input:focus {
  border-color: var(--goud); box-shadow: 0 0 0 3px rgba(228, 160, 48, 0.18); outline: none;
}
.field input:disabled { background: var(--room-donker); color: var(--tekst-zacht); cursor: not-allowed; }
.field textarea { resize: vertical; min-height: 60px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.9rem 1rem; }
.field-row .field { margin-bottom: 0.95rem; }
.check { display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; cursor: pointer; margin-bottom: 0.6rem; }
.check input { width: 17px; height: 17px; accent-color: var(--goud); flex-shrink: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.hint { font-size: 0.82rem; color: var(--tekst-zacht); margin-top: 0.5rem; }
.hint--center { text-align: center; }

/* Voertuigkeuze */
.vehicle-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.7rem; margin-bottom: 1rem; }
.vehicle-option { position: relative; }
.vehicle-option input { position: absolute; opacity: 0; inset: 0; }
.vehicle-box {
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem; text-align: center;
  padding: 0.9rem 0.6rem 0.8rem; border: 1.5px solid var(--lijn); border-radius: 12px;
  background: var(--wit); cursor: pointer; height: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.vehicle-box .vehicle-svg { width: 88px; color: var(--groen); }
.vehicle-option input:checked + .vehicle-box { border-color: var(--goud); box-shadow: 0 0 0 3px rgba(228, 160, 48, 0.2); background: rgba(228, 160, 48, 0.06); }
.vehicle-option input:checked + .vehicle-box .vehicle-svg { color: var(--goud-donker); }
.vehicle-option input:focus-visible + .vehicle-box { outline: 3px solid rgba(228, 160, 48, 0.6); outline-offset: 2px; }
.vehicle-name { font-weight: 600; font-size: 0.83rem; }
.vehicle-hint { font-size: 0.7rem; color: var(--tekst-zacht); }
.vehicle-box--advice { justify-content: center; }
.vehicle-advice-mark {
  width: 44px; height: 44px; border: 1.5px dashed var(--lijn-sterk); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 600; color: var(--tekst-zacht); margin: 0.55rem 0 0.3rem;
}

/* Succesmelding */
.form-success { text-align: center; padding: 1.7rem 1.2rem; }
.success-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; border-radius: 50%; margin-bottom: 1.2rem;
  background: rgba(29, 64, 45, 0.08); color: var(--groen);
}
.success-icon .icon { width: 28px; height: 28px; }
.form-success h3 { font-family: var(--font-display); font-weight: 680; font-size: 1.5rem; letter-spacing: -0.016em; margin-bottom: 0.5rem; }
.form-success p { color: var(--tekst-zacht); margin-bottom: 1.2rem; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 800px; }
.faq-list { border-top: 1px solid var(--lijn); }
.faq-item { border-bottom: 1px solid var(--lijn); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.2rem;
  padding: 0.9rem 0.2rem; cursor: pointer; font-weight: 600; font-size: 1rem; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-marker {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 27px; height: 27px; border: 1.5px solid var(--lijn-sterk); border-radius: 50%;
  transition: transform 0.25s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.faq-marker .icon { width: 13px; height: 13px; }
.faq-item[open] .faq-marker { transform: rotate(45deg); background: var(--groen); border-color: var(--groen); color: var(--room); }
.faq-item p { padding: 0 3rem 1.05rem 0.2rem; color: var(--tekst-zacht); font-size: 0.95rem; max-width: 64ch; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.2rem; align-items: start; }
.contact-line { display: flex; align-items: center; gap: 1rem; padding: 0.72rem 0.2rem; border-bottom: 1px dashed var(--lijn); }
.contact-line > .icon {
  width: 42px; height: 42px; padding: 10px; border-radius: 11px;
  background: rgba(29, 64, 45, 0.07); color: var(--groen); transition: background 0.2s ease, color 0.2s ease;
}
a.contact-line:hover > .icon { background: rgba(228, 160, 48, 0.18); color: var(--goud-donker); }
.contact-line small { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--tekst-zacht); font-weight: 600; }
.contact-line > span > span { font-weight: 600; font-size: 1rem; }
.contact-legal { margin-top: 1rem; font-size: 0.85rem; color: var(--tekst-zacht); }
.contact-form-wrap { background: var(--wit); border: 1px solid var(--lijn); border-radius: 18px; padding: 1.5rem; box-shadow: var(--schaduw-zacht); }

/* ---------- Footer ---------- */
.site-footer { background: var(--groen-donker); color: rgba(255, 249, 236, 0.75); padding: 2.7rem 0 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.4fr; gap: 2rem; padding-bottom: 1.8rem; border-bottom: 1px solid rgba(255, 249, 236, 0.12); }
.brand--footer .brand-name { color: var(--room); }
.footer-brand p { font-size: 0.9rem; margin: 0.9rem 0; max-width: 30ch; }
.footer-phone { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--goud); font-weight: 600; }
.footer-phone .icon { width: 16px; height: 16px; }
.footer-phone:hover { color: var(--goud-licht); }
.footer-247 { display: block; font-size: 0.78rem; color: rgba(255, 249, 236, 0.5); margin-top: 0.35rem; }
.site-footer h4 { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.13em; color: rgba(255, 249, 236, 0.45); margin-bottom: 0.9rem; }
.footer-grid a { display: block; padding: 0.27rem 0; font-size: 0.91rem; color: rgba(255, 249, 236, 0.75); }
.footer-grid a:hover { color: var(--goud-licht); }
.footer-line { display: block; padding: 0.27rem 0; font-size: 0.91rem; }
.footer-line--muted { color: rgba(255, 249, 236, 0.45); font-size: 0.8rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1.2rem; font-size: 0.82rem; color: rgba(255, 249, 236, 0.5); }
.footer-legal a { color: rgba(255, 249, 236, 0.65); }
.footer-legal a:hover { color: var(--goud-licht); }
.footer-legal em { font-style: normal; color: rgba(255, 249, 236, 0.35); margin-left: 0.3rem; }
.site-footer .lang-switch a { color: rgba(255, 249, 236, 0.55); }
.site-footer .lang-switch a.is-active { color: var(--goud-licht); }

/* Bel-knop mobiel */
.call-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; display: none; align-items: center; justify-content: center;
  background: var(--goud); color: var(--inkt); box-shadow: 0 12px 30px rgba(0, 0, 4, 0.3);
  transition: transform 0.18s ease;
}
.call-fab:hover { transform: scale(1.06); }
.call-fab .icon { width: 23px; height: 23px; }

/* ---------- Auth ---------- */
.auth-section { padding: 4.5rem 0 6rem; display: flex; justify-content: center; }
.auth-card {
  background: var(--wit); border: 1px solid var(--lijn); border-radius: 20px;
  padding: clamp(1.8rem, 4vw, 2.6rem); width: min(440px, calc(100vw - 2.5rem)); box-shadow: var(--schaduw);
}
.auth-card--wide { width: min(580px, calc(100vw - 2.5rem)); }
.auth-card h1 { font-family: var(--font-display); font-weight: 680; font-size: 1.8rem; letter-spacing: -0.02em; margin-bottom: 0.35rem; }
.auth-sub { color: var(--tekst-zacht); font-size: 0.95rem; margin-bottom: 1.6rem; }
.auth-card .btn { margin-top: 0.4rem; }
.auth-links { margin-top: 1.4rem; display: flex; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; font-size: 0.88rem; color: var(--tekst-zacht); }
.auth-links a { color: var(--groen); font-weight: 600; }
.auth-links a:hover { color: var(--goud-donker); }
.auth-card--error { text-align: center; }
.error-code { font-size: 3rem; font-weight: 600; color: var(--goud-donker); letter-spacing: 0.08em; }
.auth-card--error h1 { font-size: 1.45rem; margin: 0.5rem 0 1.5rem; }

/* ============================================================
   APP-SHELL (portaal + admin)
   ============================================================ */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 250px; flex-shrink: 0; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--groen) 0%, var(--groen-diep) 100%);
  color: var(--room); padding: 1.3rem 0.95rem 1.1rem;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand--light { padding: 0.3rem 0.55rem 1.1rem; }
.brand--light .brand-name { color: var(--room); font-size: 0.9rem; white-space: normal; line-height: 1.35; }
.side-nav { display: flex; flex-direction: column; gap: 0.22rem; flex-grow: 1; margin-top: 0.5rem; }
.side-link {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 0.8rem; border-radius: 10px;
  color: rgba(255, 249, 236, 0.75); font-size: 0.91rem; font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.side-link .icon { width: 18px; height: 18px; opacity: 0.85; }
.side-link:hover { background: rgba(255, 249, 236, 0.08); color: var(--room); }
.side-link.is-active { background: rgba(255, 249, 236, 0.13); color: var(--room); box-shadow: inset 3px 0 0 var(--goud); }
.side-link--cta { background: var(--goud); color: var(--inkt); font-weight: 600; margin: 0.45rem 0; }
.side-link--cta:hover { background: var(--goud-licht); color: var(--inkt); }
.side-link--cta .icon { opacity: 1; }
.side-badge {
  margin-left: auto; background: var(--goud); color: var(--inkt);
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600;
  min-width: 20px; padding: 0.08rem 0.4rem; border-radius: 999px; text-align: center;
}
.side-tag { font-size: 0.66rem; letter-spacing: 0.2em; color: var(--goud-licht); padding: 0.1rem 0.8rem 0.55rem; }
.side-tag--inline {
  display: inline-block; background: rgba(228, 160, 48, 0.16); color: var(--goud-donker);
  border-radius: 6px; padding: 0.14rem 0.45rem; margin-left: 0.5rem; font-size: 0.62rem; letter-spacing: 0.12em; vertical-align: middle;
}
.sidebar-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255, 249, 236, 0.13); display: grid; gap: 0.7rem; }
.lang-switch--side a { color: rgba(255, 249, 236, 0.55); }
.lang-switch--side a.is-active { color: var(--goud-licht); border-bottom-color: var(--goud); }
.side-user { display: grid; }
.side-user-name { font-weight: 600; font-size: 0.87rem; }
.side-user-mail { font-family: var(--font-mono); font-size: 0.72rem; color: rgba(255, 249, 236, 0.5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-logout {
  display: flex; align-items: center; gap: 0.5rem; width: 100%;
  background: none; border: 1px solid rgba(255, 249, 236, 0.22); color: rgba(255, 249, 236, 0.75);
  padding: 0.5rem 0.8rem; border-radius: 10px; cursor: pointer; font-size: 0.85rem;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.side-logout:hover { border-color: rgba(255, 249, 236, 0.5); color: var(--room); }
.side-logout .icon { width: 16px; height: 16px; }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-topbar {
  display: flex; align-items: center; gap: 1rem; padding: 0.85rem 2rem;
  border-bottom: 1px solid var(--lijn);
  background: rgba(255, 249, 236, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 30;
}
.topbar-title { font-weight: 600; font-size: 0.92rem; color: var(--tekst-zacht); }
.topbar-actions { margin-left: auto; display: flex; gap: 0.7rem; }
.app-content { padding: 1.8rem 2rem 3rem; width: 100%; max-width: 1240px; margin: 0 auto; }

.page-head { margin-bottom: 1.5rem; }
.page-head--row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.page-head h1 { font-size: 2.05rem; margin-bottom: 0.2rem; }
.page-sub { color: var(--tekst-zacht); font-size: 0.94rem; }
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--tekst-zacht); margin-bottom: 0.9rem; }
.back-link:hover { color: var(--groen); }
.back-link .icon { width: 15px; height: 15px; }
.detail-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 0.8rem; flex-wrap: wrap; }
.detail-head-main { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.detail-ref { font-size: 1.65rem; font-weight: 600; }

/* KPI-tegels */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.6rem; }
.kpi-row--six { grid-template-columns: repeat(6, 1fr); }
.kpi-row--slim { grid-template-columns: repeat(auto-fit, minmax(190px, 240px)); }
.kpi { background: var(--wit); border: 1px solid var(--lijn); border-radius: 14px; padding: 1.05rem 1.15rem; display: grid; gap: 0.25rem; align-content: start; }
.kpi-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--tekst-zacht); }
.kpi-value { font-family: var(--font-mono); font-weight: 600; font-size: 1.4rem; color: var(--inkt); }
.kpi-sub { font-size: 0.7rem; color: var(--tekst-zacht); }

/* Kaarten */
.card { background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--radius); padding: 1.45rem 1.5rem; margin-bottom: 1.3rem; }
.card h2 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.9rem; }
.card-head h2 { margin-bottom: 0; }
.card--narrow { max-width: 580px; }
.card--green { background: linear-gradient(160deg, var(--groen), var(--groen-diep)); color: var(--room); border: none; }
.card--green h2 { color: var(--room); font-family: var(--font-display); font-weight: 680; font-size: 1.32rem; letter-spacing: -0.016em; }
.card--green p { color: rgba(255, 249, 236, 0.78); font-size: 0.92rem; margin-bottom: 1rem; }
.new-cta-card .side-phone { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.9rem; color: var(--goud-licht); font-size: 0.9rem; }
.new-cta-card .side-phone .icon { width: 16px; height: 16px; }

.dash-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.3rem; align-items: start; }
.dash-cols--even { grid-template-columns: 1fr 1fr; }
.dash-cols > *, .promo-grid > *, .quote-shell > *, .contact-grid > * { min-width: 0; }
.dash-cols .card, .dash-side .card { margin-bottom: 0; }
.dash-side { display: grid; gap: 1.3rem; }

/* Live-trackingband (portaal-overzicht) */
.track-band {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.2rem; align-items: center;
  background: linear-gradient(160deg, var(--groen), var(--groen-diep)); color: var(--room);
  border-radius: var(--radius); padding: 2rem 2.2rem; margin-bottom: 1.6rem;
}
.track-band > * { min-width: 0; }
.track-band-route { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(255, 249, 236, 0.13); pointer-events: none; }
.track-band-copy { position: relative; }
.track-eyebrow {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--goud-licht); margin-bottom: 0.8rem;
}
.track-band h2 { font-family: var(--font-display); font-weight: 680; font-size: clamp(1.45rem, 2.4vw, 1.95rem); line-height: 1.09; letter-spacing: -0.018em; color: var(--room); margin-bottom: 0.55rem; }
.track-state { color: rgba(255, 249, 236, 0.8); font-size: 0.95rem; max-width: 30rem; margin-bottom: 1.3rem; }
.track-others { margin-top: 0.95rem; font-size: 0.83rem; }
.track-others a { color: rgba(255, 249, 236, 0.65); text-decoration: underline; text-underline-offset: 3px; }
.track-others a:hover { color: var(--room); }
.track-cards { position: relative; display: grid; gap: 0.75rem; width: min(410px, 100%); justify-self: end; }
.track-cards .dispatch-card { position: relative; width: 100%; box-shadow: 0 24px 60px rgba(0, 0, 4, 0.32); animation: trackCardIn 0.32s ease; }
.track-cards .dispatch-card.is-hidden { display: none; }
@keyframes trackCardIn {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: none; }
}
.track-switch { display: flex; align-items: center; justify-content: flex-end; gap: 0.7rem; }
.track-switch-btn {
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(255, 249, 236, 0.35); color: var(--room);
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.track-switch-btn:hover { border-color: var(--goud); color: var(--goud); background: rgba(228, 160, 48, 0.08); }
.track-switch-btn .icon { width: 15px; height: 15px; }
.track-switch-count { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; color: rgba(255, 249, 236, 0.7); }

/* Rijen (lijsten) */
.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 1rem; padding: 0.78rem 0.35rem; border-top: 1px dashed var(--lijn); font-size: 0.92rem; min-width: 0; }
.row:first-child { border-top: none; }
a.row:hover { background: rgba(29, 64, 45, 0.035); border-radius: 8px; }
.row .badge { margin-left: auto; flex-shrink: 0; }
.row-ref { font-weight: 600; font-size: 0.84rem; min-width: 82px; flex-shrink: 0; }
.row-route { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.route-arrow { color: var(--goud-donker); font-weight: 600; }
.row-meta { font-size: 0.81rem; color: var(--tekst-zacht); white-space: nowrap; }
.row-price { font-weight: 600; font-size: 0.88rem; color: var(--groen); white-space: nowrap; }
.rows--compact .row { padding: 0.58rem 0.2rem; font-size: 0.85rem; }
.row--static .badge { margin-left: auto; }

/* Statusbadges */
.badge { display: inline-flex; align-items: center; gap: 0.42rem; font-size: 0.75rem; font-weight: 600; padding: 0.26rem 0.7rem; border-radius: 999px; white-space: nowrap; }
.paid-note { display: block; margin-top: 0.3rem; font-size: 0.67rem; color: var(--tekst-zacht); white-space: nowrap; }
.table .btn { white-space: nowrap; }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.badge--requested { background: rgba(228, 160, 48, 0.14); color: #8a5c10; }
.badge--confirmed { background: rgba(29, 64, 45, 0.1); color: var(--groen); }
.badge--pickup_enroute, .badge--in_transit { background: rgba(228, 160, 48, 0.2); color: #7c4f0a; }
.badge--pickup_enroute .badge-dot, .badge--in_transit .badge-dot { animation: livePulse 2.2s ease-out infinite; }
.badge--delivered { background: var(--groen); color: var(--room); }
.badge--cancelled { background: rgba(166, 61, 47, 0.13); color: var(--rood); }
.badge--q-new { background: rgba(228, 160, 48, 0.16); color: #8a5c10; }
.badge--q-handled { background: rgba(29, 64, 45, 0.1); color: var(--groen); }
.badge--q-converted { background: var(--groen); color: var(--room); }
.badge--i-open { background: rgba(228, 160, 48, 0.16); color: #8a5c10; }
.badge--i-paid { background: var(--groen); color: var(--room); }
.badge--m-new { background: rgba(228, 160, 48, 0.16); color: #8a5c10; }
.badge--m-read { background: rgba(0, 0, 4, 0.07); color: var(--tekst-zacht); }
.badge--m-handled { background: rgba(29, 64, 45, 0.1); color: var(--groen); }

/* Filters & toolbar */
.filter-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.pill { padding: 0.42rem 1rem; border-radius: 999px; border: 1.5px solid var(--lijn-sterk); font-size: 0.84rem; font-weight: 600; color: var(--tekst-zacht); transition: all 0.15s ease; }
.pill:hover { border-color: var(--groen); color: var(--groen); }
.pill.is-active { background: var(--groen); border-color: var(--groen); color: var(--room); }
.toolbar { display: flex; gap: 0.8rem; align-items: center; margin-bottom: 1.2rem; flex-wrap: wrap; }
.toolbar .field { margin-bottom: 0; }
.toolbar select { width: auto; }
.field--search { position: relative; flex-direction: row; align-items: center; flex: 1; max-width: 380px; min-width: 220px; }
.field--search .icon { position: absolute; left: 0.8rem; width: 16px; height: 16px; color: var(--tekst-zacht); pointer-events: none; }
.field--search input { padding-left: 2.4rem; }

/* Tabellen */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.89rem; }
.table th { text-align: left; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tekst-zacht); padding: 0.55rem 0.7rem; border-bottom: 1.5px solid var(--lijn-sterk); white-space: nowrap; }
.table td { padding: 0.72rem 0.7rem; border-bottom: 1px dashed var(--lijn); vertical-align: middle; }
.table tbody tr:hover { background: rgba(29, 64, 45, 0.03); }
.table .num { text-align: right; }
.table td.mono, .table .mono { font-size: 0.83rem; }
.table-link { color: var(--groen); font-weight: 600; }
.table-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.table-ref { font-size: 0.73rem; color: var(--tekst-zacht); background: rgba(29, 64, 45, 0.06); padding: 0.1rem 0.4rem; border-radius: 6px; margin-left: 0.3rem; white-space: nowrap; }
.table--pricing td { padding: 0.5rem 0.7rem; }
.table--fleet td { padding: 0.5rem 0.7rem; }
.input--table { width: 110px; padding: 0.45rem 0.6rem; border: 1.5px solid var(--lijn-sterk); border-radius: 8px; font-size: 0.87rem; background: var(--wit); }
.input--table:focus { border-color: var(--goud); box-shadow: 0 0 0 3px rgba(228, 160, 48, 0.18); outline: none; }
.input--fleet { width: 100%; min-width: 150px; }

/* Detailpagina's */
.detail-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 1.3rem; align-items: start; }
.detail-main, .detail-side { display: grid; gap: 1.3rem; min-width: 0; }
.detail-grid .card { margin-bottom: 0; }
.route-detail { display: grid; }
.route-block { display: grid; grid-template-columns: 18px 1fr; gap: 0.9rem; }
.route-block > div { display: grid; gap: 0.12rem; font-size: 0.94rem; min-width: 0; }
.route-block .stop-dot { margin-top: 5px; }
.route-label { font-size: 0.67rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--tekst-zacht); }
.route-contact { font-size: 0.85rem; color: var(--tekst-zacht); }
.route-note { font-size: 0.83rem; color: #7c4f0a; background: rgba(228, 160, 48, 0.11); padding: 0.28rem 0.6rem; border-radius: 8px; margin-top: 0.3rem; justify-self: start; }
.route-connector { width: 2px; height: 26px; margin: 5px 0 5px 8px; background: repeating-linear-gradient(180deg, var(--lijn-sterk) 0 4px, transparent 4px 9px); }
.route-planning { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px dashed var(--lijn); display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--tekst-zacht); }
.route-planning .icon { width: 16px; height: 16px; color: var(--groen); }
.cargo-desc { font-size: 0.95rem; margin-bottom: 0.9rem; white-space: pre-line; }
.spec-list { display: grid; }
.spec-list div { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; padding: 0.48rem 0; border-bottom: 1px dashed var(--lijn); font-size: 0.9rem; }
.spec-list div:last-child { border-bottom: none; }
.spec-list dt { color: var(--tekst-zacht); }
.spec-list dd { min-width: 0; overflow-wrap: break-word; }
.spec-list small { color: var(--tekst-zacht); font-size: 0.75rem; }
.invoice-line { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; font-size: 0.95rem; }
.invoice-line form { margin-left: auto; }

/* Tijdlijn */
.timeline { list-style: none; display: grid; }
.tl-item { display: grid; grid-template-columns: 16px 1fr; gap: 0.9rem; position: relative; padding-bottom: 1.15rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 7px; top: 19px; bottom: -1px; width: 2px;
  background: repeating-linear-gradient(180deg, var(--lijn-sterk) 0 4px, transparent 4px 8px);
}
.tl-item:last-child::before { display: none; }
.tl-dot { width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--groen); background: var(--wit); margin-top: 2px; position: relative; z-index: 1; }
.tl-item.is-current .tl-dot { border-color: var(--goud); animation: livePulse 2.2s ease-out infinite; }
.tl-item.is-done .tl-dot { background: var(--groen); }
.tl-item.is-cancelled .tl-dot { border-color: var(--rood); background: rgba(166, 61, 47, 0.15); }
.tl-body { display: grid; gap: 0.1rem; }
.tl-status { font-weight: 600; font-size: 0.92rem; }
.tl-item.is-cancelled .tl-status { color: var(--rood); }
.tl-note { font-size: 0.84rem; color: var(--tekst-zacht); }
.tl-time { font-size: 0.73rem; color: var(--tekst-zacht); }
.pod-box { margin-top: 1rem; padding: 0.75rem 1rem; background: rgba(29, 64, 45, 0.07); border-radius: 10px; display: flex; align-items: center; gap: 0.55rem; font-size: 0.88rem; font-weight: 600; color: var(--groen); }
.pod-box .icon { width: 17px; height: 17px; }
.status-btns { display: grid; gap: 0.55rem; margin-top: 0.6rem; }

/* Formulierpagina's */
.ship-form { display: grid; gap: 1.3rem; }
.ship-form .card, .ship-form .addr-fieldset { margin-bottom: 0; }
.addr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.addr-fieldset { background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--radius); padding: 1.45rem 1.5rem; min-width: 0; }
.addr-fieldset legend { font-weight: 700; font-size: 0.98rem; display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.9rem; float: left; width: 100%; }
.addr-fieldset legend + * { clear: both; }
.addr-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.addr-dot--pickup { background: var(--groen); }
.addr-dot--delivery { background: var(--wit); border: 3px solid var(--goud); }
.form-card h2 { margin-bottom: 1rem; }
.form-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.form-actions .hint { margin: 0; }
.field--inline-dt { max-width: 300px; }

.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; align-items: start; margin-bottom: 1.3rem; }
.settings-grid .card { margin-bottom: 0; }
.settings-grid .card--span { grid-column: 1 / -1; }
.addr-page-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.3rem; align-items: start; }
.addr-page-grid .card { margin-bottom: 0; }
.addr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 0.9rem; }
.addr-card { border: 1.5px dashed var(--lijn-sterk); border-radius: 12px; padding: 1rem 1.1rem; display: grid; gap: 0.14rem; font-size: 0.87rem; align-content: start; }
.addr-card h3 { font-size: 0.94rem; }
.addr-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; }
.addr-contact { color: var(--tekst-zacht); font-size: 0.81rem; margin-top: 0.3rem; }
.icon-btn { background: none; border: none; cursor: pointer; color: var(--tekst-zacht); padding: 0.25rem; border-radius: 6px; display: flex; }
.icon-btn:hover { color: var(--rood); background: rgba(166, 61, 47, 0.08); }
.icon-btn .icon { width: 15px; height: 15px; }

.empty-state { text-align: center; padding: 2.2rem 1rem 1.4rem; display: grid; justify-items: center; gap: 0.3rem; }
.empty-icon { width: 40px; height: 40px; color: var(--lijn-sterk); margin-bottom: 0.4rem; }
.empty-title { font-weight: 650; font-size: 1rem; }
.empty-text { font-size: 0.89rem; color: var(--tekst-zacht); max-width: 36ch; }
.empty-cta { text-align: center; padding: 0.6rem 0 0.4rem; }

/* Grafiek (14 dagen) */
.chart-card { padding-bottom: 1.1rem; }
.chart { display: flex; gap: 5px; align-items: stretch; }
.chart-col { flex: 1; display: grid; gap: 0.45rem; justify-items: center; min-width: 0; }
.chart-bar-area { height: 150px; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.chart-bar { width: min(26px, 80%); min-height: 3px; background: var(--groen); border-radius: 4px 4px 0 0; position: relative; }
.chart-bar:hover { background: var(--groen-diep); }
.chart-bar.is-today { box-shadow: 0 0 0 2px rgba(228, 160, 48, 0.55); }
.chart-tip {
  position: absolute; bottom: calc(100% + 5px); left: 50%; transform: translateX(-50%);
  background: var(--inkt); color: var(--room); font-size: 0.68rem; padding: 0.12rem 0.45rem; border-radius: 6px;
  opacity: 0; pointer-events: none; transition: opacity 0.15s ease; white-space: nowrap; z-index: 2;
}
.chart-col:hover .chart-tip { opacity: 1; }
.chart-label { font-size: 0.62rem; color: var(--tekst-zacht); }
.chart-label.is-today { color: var(--goud-donker); font-weight: 600; }

/* Berichten & outbox */
.msg-list { display: grid; gap: 1rem; }
.msg-card { margin-bottom: 0; }
.msg-card.is-new { border-color: rgba(228, 160, 48, 0.55); }
.msg-head { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.msg-head h2 { margin-bottom: 0; font-size: 1rem; }
.msg-date { margin-left: auto; font-size: 0.76rem; color: var(--tekst-zacht); }
.msg-from { font-size: 0.87rem; color: var(--tekst-zacht); margin: 0.5rem 0 0.7rem; }
.msg-body { font-size: 0.94rem; margin-bottom: 1rem; white-space: pre-line; }
.msg-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.outbox-list { display: grid; }
.outbox-item { border-bottom: 1px dashed var(--lijn); }
.outbox-item summary { display: flex; align-items: center; gap: 1rem; padding: 0.8rem 0.2rem; cursor: pointer; list-style: none; font-size: 0.89rem; flex-wrap: wrap; }
.outbox-item summary::-webkit-details-marker { display: none; }
.outbox-to { font-weight: 600; font-size: 0.83rem; }
.outbox-subject { flex: 1; min-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.outbox-date { font-size: 0.76rem; color: var(--tekst-zacht); }
.outbox-body { background: rgba(29, 64, 45, 0.05); border-radius: 10px; padding: 1rem 1.2rem; font-family: var(--font-mono); font-size: 0.8rem; white-space: pre-wrap; margin: 0.2rem 0 1rem; overflow-x: auto; }
.quote-message { border-left: 3px solid var(--goud); background: rgba(228, 160, 48, 0.08); padding: 0.7rem 1rem; margin-top: 1rem; font-size: 0.94rem; font-style: italic; border-radius: 0 10px 10px 0; }

/* ---------- Reveal ---------- */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .fleet-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-row--six { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { gap: 2.5rem; }
}
@media (max-width: 980px) {
  .dash-cols, .dash-cols--even, .detail-grid, .settings-grid, .addr-page-grid { grid-template-columns: 1fr; }
  .track-band { grid-template-columns: 1fr; gap: 1.6rem; }
  .track-cards { justify-self: start; width: min(440px, 100%); }
  .promo-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .field-row--split, .field-row--contact { grid-template-columns: 1fr 1fr; }
  .usp-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .mock-window { max-width: 480px; }
}
@media (max-width: 900px) {
  .nav-burger { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0.2rem; margin: 0;
    background: var(--room); border-bottom: 1px solid var(--lijn); padding: 0.8rem 1.5rem 1.2rem;
    box-shadow: 0 18px 30px rgba(15, 33, 23, 0.08);
  }
  body.nav-open .nav-links { display: flex; }
  .nav-links a { padding: 0.55rem 0; font-size: 1rem; }
  .nav-inner { gap: 1rem; }
  .nav-actions { margin-left: auto; }

  .app-burger { display: flex; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 80; transform: translateX(-100%); transition: transform 0.28s ease; width: 264px; box-shadow: 24px 0 60px rgba(0, 0, 4, 0.25); }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 4, 0.45); z-index: 70; }
  .app-topbar { padding: 0.75rem 1.1rem; }
  .app-content { padding: 1.4rem 1.1rem 2.5rem; }
  .flash-stack--app { padding: 1rem 1.1rem 0; }
}
@media (max-width: 820px) {
  .page-marketing .call-fab { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card-wrap { justify-content: flex-start; }
  .dispatch-card { width: min(440px, 100%); }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .kpi-row--six { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
  .addr-grid { grid-template-columns: 1fr; }
  .chart-col:nth-child(even) .chart-label { visibility: hidden; }
}
@media (max-width: 600px) {
  .nav-account { display: none; }
  .nav-cta { display: none; }
  .brand-name { font-size: 0.88rem; }
  .nav-inner { gap: 0.75rem; height: 66px; }
  .nav-links { top: 66px; }
  .nav-actions { gap: 0.7rem; }
  .usp-grid, .services-grid, .sectors-grid, .fleet-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .field-row, .field-row--split, .field-row--contact { grid-template-columns: 1fr; }
  .quote-submit-row .btn { width: 100%; justify-content: center; }
  .detail-head { flex-direction: column; align-items: flex-start; }
  .row { flex-wrap: wrap; gap: 0.4rem 1rem; }
  .row .badge, .row--static .badge { margin-left: 0; }
  .page-head h1 { font-size: 1.7rem; }
  .track-band { padding: 1.5rem 1.25rem; }
  .track-band .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   BLOG / KENNISBANK
   ============================================================ */
.section-head h1 { font-family: var(--font-display); font-weight: 680; font-size: clamp(1.85rem, 3.7vw, 2.7rem); line-height: 1.09; letter-spacing: -0.026em; margin: 0.7rem 0 0.9rem; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.blog-card { background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.22s ease, box-shadow 0.22s ease; min-width: 0; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--schaduw); }
.blog-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.blog-cover--ph { background: linear-gradient(150deg, var(--groen), var(--groen-diep)); display: flex; align-items: center; justify-content: center; color: rgba(255, 249, 236, 0.35); }
.blog-cover--ph svg { width: 62%; height: auto; }
.blog-card-body { padding: 1.25rem 1.35rem 1.35rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; font-size: 0.72rem; color: var(--tekst-zacht); }
.blog-card h2 { font-family: var(--font-display); font-weight: 680; font-size: 1.25rem; line-height: 1.22; letter-spacing: -0.014em; }
.blog-card p { font-size: 0.9rem; color: var(--tekst-zacht); flex-grow: 1; }

.post { max-width: 760px; margin: 0 auto; }
.post-head { margin: 0.8rem 0 1.6rem; }
.post-head h1 { font-family: var(--font-display); font-weight: 680; font-size: clamp(1.95rem, 4vw, 2.8rem); line-height: 1.08; letter-spacing: -0.026em; margin: 0.8rem 0 1rem; }
.post-lead { font-size: 1.1rem; color: var(--tekst-zacht); }
.post-meta { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: 0.76rem; color: var(--tekst-zacht); margin-top: 1.2rem; padding-top: 1rem; border-top: 1px dashed var(--lijn-sterk); }
.post-cover { width: 100%; border-radius: 16px; margin: 0.4rem 0 1.8rem; aspect-ratio: 16/9; object-fit: cover; }
.post-content { font-size: 1.02rem; line-height: 1.75; }
.post-content h2 { font-family: var(--font-display); font-weight: 680; font-size: 1.6rem; letter-spacing: -0.016em; margin: 2.1rem 0 0.7rem; line-height: 1.16; }
.post-content h3 { font-size: 1.12rem; margin: 1.7rem 0 0.5rem; }
.post-content p { margin-bottom: 1.05rem; }
.post-content ul, .post-content ol { margin: 0 0 1.05rem 1.3rem; }
.post-content li { margin-bottom: 0.4rem; }
.post-content a { color: var(--groen); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.post-content blockquote { border-left: 3px solid var(--goud); background: rgba(228, 160, 48, 0.08); padding: 0.8rem 1.2rem; border-radius: 0 10px 10px 0; font-style: italic; margin: 1.3rem 0; }
.post-content img { border-radius: 12px; margin: 1rem 0; max-width: 100%; }
.post-cta { background: linear-gradient(150deg, var(--groen), var(--groen-diep)); color: var(--room); border-radius: 20px; padding: 1.8rem 2rem; margin-top: 2.6rem; display: flex; justify-content: space-between; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.post-cta h2 { font-size: 1.5rem; font-weight: 400; margin-bottom: 0.3rem; }
.post-cta p { color: rgba(255, 249, 236, 0.75); font-size: 0.92rem; }
.post-cta-btns { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.post-related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--lijn); }
.post-related h2 { font-size: 1.55rem; font-weight: 400; margin-bottom: 1.1rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.blog-mini { border: 1.5px dashed var(--lijn-sterk); border-radius: 12px; padding: 1.1rem 1.2rem; display: grid; gap: 0.5rem; align-content: start; transition: border-color 0.2s ease, background 0.2s ease; min-width: 0; }
.blog-mini:hover { border-style: solid; border-color: var(--groen); background: var(--wit); }
.blog-mini h3 { font-family: var(--font-display); font-weight: 680; font-size: 1.02rem; line-height: 1.24; }
.draft-banner { background: rgba(228, 160, 48, 0.14); border: 1.5px dashed var(--goud); color: #7c4f0a; border-radius: 12px; padding: 0.75rem 1.1rem; margin-bottom: 1.4rem; display: flex; align-items: center; gap: 0.6rem; font-size: 0.89rem; font-weight: 600; flex-wrap: wrap; }
.draft-banner .icon { width: 16px; height: 16px; }
.draft-banner a { color: var(--groen); display: inline-flex; align-items: center; gap: 0.3rem; margin-left: auto; }
.badge--b-draft { background: rgba(0, 0, 4, 0.07); color: var(--tekst-zacht); }
.badge--b-scheduled { background: rgba(228, 160, 48, 0.16); color: #8a5c10; }
.badge--b-scheduled .badge-dot { animation: livePulse 2.2s ease-out infinite; }
.badge--b-published { background: var(--groen); color: var(--room); }

/* Quill-editor */
.editor-card #editor { min-height: 340px; }
.blog-form .ql-toolbar.ql-snow { border: 1.5px solid var(--lijn-sterk); border-radius: 10px 10px 0 0; background: var(--room); font-family: var(--font-sans); }
.blog-form .ql-container.ql-snow { border: 1.5px solid var(--lijn-sterk); border-top: none; border-radius: 0 0 10px 10px; font-family: var(--font-sans); font-size: 0.98rem; }
.blog-form .ql-editor { min-height: 320px; line-height: 1.7; }
.blog-form .ql-editor h2 { font-family: var(--font-display); font-weight: 680; }
.slug-row { display: flex; align-items: center; gap: 0.45rem; }
.slug-prefix { font-size: 0.8rem; color: var(--tekst-zacht); }
.field--schedule { margin-top: 1rem; }
.blog-delete { margin-top: 1.3rem; }
.detail-grid--blog { grid-template-columns: 1.8fr 1fr; }

@media (max-width: 980px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr; }
  .detail-grid--blog { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post-cta { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   FACTUUR: pop-up (portaal + admin) & ontwerp-pagina (admin)
   ============================================================ */
.row-clickable { cursor: pointer; }
.td-actions { display: flex; gap: 0.45rem; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.td-actions form { margin: 0; }
.invoice-modal {
  width: min(860px, calc(100vw - 2rem)); height: min(88vh, 1000px);
  margin: auto; /* de globale reset haalt de UA-centrering van <dialog> weg */
  border: none; border-radius: 16px; padding: 0; overflow: hidden;
  background: var(--room); box-shadow: 0 40px 90px rgba(0, 0, 4, 0.45);
}
.invoice-modal[open] { display: flex; flex-direction: column; }
.invoice-modal::backdrop { background: rgba(0, 0, 4, 0.55); backdrop-filter: blur(3px); }
.invoice-modal-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 0.7rem 1rem;
  padding: 0.75rem 1.1rem; border-bottom: 1px solid var(--lijn); flex-wrap: wrap; flex-shrink: 0;
}
.invoice-modal-title { font-weight: 700; font-size: 0.95rem; }
.invoice-modal-title .mono { font-weight: 600; }
.invoice-modal-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.invoice-modal-frame { flex: 1; width: 100%; border: none; background: #EFEAD9; }

.invd-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 1.3rem; align-items: start; }
.invd-grid .card { margin-bottom: 0; min-width: 0; }
.invd-layouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; margin-bottom: 1.15rem; }
.invd-layout { position: relative; }
.invd-layout input { position: absolute; opacity: 0; inset: 0; }
.invd-thumb {
  display: block; border: 1.5px solid var(--lijn-sterk); border-radius: 10px;
  padding: 0.55rem 0.6rem; background: var(--wit); cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.invd-layout input:checked + .invd-thumb { border-color: var(--goud); box-shadow: 0 0 0 3px rgba(228, 160, 48, 0.2); }
.invd-layout input:focus-visible + .invd-thumb { outline: 3px solid rgba(228, 160, 48, 0.6); outline-offset: 2px; }
.invd-thumb i { display: block; border-radius: 3px; background: rgba(29, 64, 45, 0.16); margin-bottom: 6px; height: 5px; }
.invd-thumb i:last-child { margin-bottom: 0; }
.invd-thumb .tb-bar { height: 15px; background: var(--groen); }
.invd-thumb .tb-title { height: 8px; width: 55%; background: rgba(29, 64, 45, 0.45); }
.invd-thumb .tb-rule { height: 3px; background: var(--groen); }
.invd-thumb .tb-thin { height: 5px; width: 70%; background: rgba(29, 64, 45, 0.4); }
.invd-thumb .tb-line--short { width: 60%; }
.invd-layout-name { display: block; font-size: 0.72rem; font-weight: 600; margin-top: 0.4rem; text-align: center; color: var(--tekst-zacht); line-height: 1.3; }
.invd-layout input:checked ~ .invd-layout-name { color: var(--inkt); }
.invd-preview-wrap { overflow: hidden; border: 1px solid var(--lijn); border-radius: 12px; background: #EFEAD9; height: 660px; }
.invd-preview { width: 760px; height: 1150px; border: none; display: block; transform-origin: 0 0; background: #EFEAD9; }
.invd-section { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--lijn); }

/* Nieuwe factuur: regels-editor met live totalen */
.invline-title { margin: 1.1rem 0 0.2rem; padding-top: 0.9rem; border-top: 1px solid var(--lijn); }
.invline-head { display: grid; grid-template-columns: 1fr 128px 40px; gap: 0.5rem; margin-bottom: 0.3rem; }
.invline-head span { font-size: 0.79rem; font-weight: 600; color: rgba(9, 22, 14, 0.78); }
.invline-row { display: grid; grid-template-columns: 1fr 128px 40px; gap: 0.5rem; margin-bottom: 0.55rem; align-items: center; }
.invline-row input[name="item_amount"] { text-align: right; font-variant-numeric: tabular-nums; }
.invline-remove {
  height: 44px; border: 1.5px solid var(--lijn-sterk); border-radius: 10px; background: var(--wit);
  color: var(--tekst-zacht); font-size: 1.15rem; line-height: 1; cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.invline-remove:hover { border-color: var(--rood); color: var(--rood); }
.invline-totals { margin: 1rem 0 1.1rem; padding: 0.65rem 0.9rem; background: var(--room-donker); border-radius: 10px; }
.invline-totals > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.14rem 0; font-size: 0.92rem; }
.invline-totals > div > span:first-child { color: var(--tekst-zacht); }
.invline-totals-final { border-top: 1px solid var(--lijn-sterk); margin-top: 0.25rem; padding-top: 0.4rem !important; font-weight: 700; }
.invline-totals-final > span:first-child { color: var(--inkt) !important; }
.field--color input { padding: 0.22rem; height: 44px; cursor: pointer; }
.hint--tight { margin: -0.35rem 0 0.9rem; }
.invd-link-card .hint--tight { margin: 0; }

@media (max-width: 980px) {
  .invd-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .invoice-modal { width: calc(100vw - 0.8rem); height: 92vh; border-radius: 12px; }
  .td-actions { justify-content: flex-start; }
}

/* ---------- Toegankelijkheid ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
}
