/* Ontwerp van de site volgens de skill "high-end-visual-design".
   Sfeer: licht = Editorial Luxury (crème, espresso, schreefletter), donker = Ethereal Glass (zwart, gloed, glas).
   Opzet: Editorial Split in de opening, Z-as-stapel voor de kaarten rechts, bento voor de uitleg.
   Deze laag ligt over style.css; welke variant actief is staat in <html data-stijl>. */

html {
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --r: 2rem;                 /* buitenradius van een kaart */
  --pad: 7px;                /* ruimte tussen buitenschil en kern */
  --section: clamp(96px, 13vw, 168px);
  --num: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, html[data-stijl="warm"] {
  /* Licht: strak en modern (wit, zilvergrijs, bijna-zwart), zelfde letter als donker */
  color-scheme: light;
  --bg: #f3f4f2; --surface: #ffffff; --ink: #0d0f0e; --muted: #6a706b; --line: rgba(13, 15, 14, .08);
  --accent: #0f7a4d; --best: #0f7a4d; --best-bg: #e6f4ec; --down: #0f7a4d; --up: #c2412d;
  --shell: rgba(13, 15, 14, .04); --hair: rgba(13, 15, 14, .08); --glow: rgba(20, 40, 30, .22);
  --glass: rgba(243, 244, 242, .7); --highlight: rgba(255, 255, 255, .95);
  --display: "Geist", "Segoe UI", system-ui, sans-serif; --body: "Geist", "Segoe UI", system-ui, sans-serif;
  --display-weight: 600;
  --grad: linear-gradient(100deg, #0f7a4d, #2aa36b 55%, #b9722a);
}
html[data-stijl="donker"] {
  color-scheme: dark;
  --bg: #050505; --surface: #0c0d0c; --ink: #f3f3ef; --muted: #8e948c; --line: rgba(255, 255, 255, .08);
  --accent: #e0a060; --best: #6ee7a8; --best-bg: rgba(110, 231, 168, .08); --down: #6ee7a8; --up: #f08a74;
  --shell: rgba(255, 255, 255, .035); --hair: rgba(255, 255, 255, .1); --glow: rgba(0, 0, 0, .7);
  --glass: rgba(10, 10, 10, .66); --highlight: rgba(255, 255, 255, .12);
  --display: "Geist", "Segoe UI", system-ui, sans-serif; --body: "Geist", "Segoe UI", system-ui, sans-serif;
  --display-weight: 600;
  --grad: linear-gradient(100deg, #6ee7a8, #b6f0c9 45%, #e0a060);
}

body { font-family: var(--body); background: var(--bg); color: var(--ink); }
.wrap { max-width: 1180px; padding: 0 28px; }

/* Achtergrond: papierkorrel (licht) of gloed (donker), vast en niet aanklikbaar */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; }
html[data-stijl="warm"] body::before, html:not([data-stijl]) body::before {
  background:
    radial-gradient(60vw 42vw at 8% -8%, rgba(42, 163, 107, .16), transparent 62%),
    radial-gradient(50vw 36vw at 98% 4%, rgba(185, 114, 42, .12), transparent 62%);
}
html[data-stijl="donker"] body::before {
  background:
    radial-gradient(62vw 44vw at 10% -6%, rgba(52, 160, 110, .24), transparent 62%),
    radial-gradient(52vw 38vw at 96% 6%, rgba(224, 160, 96, .17), transparent 62%),
    radial-gradient(60vw 40vw at 50% 110%, rgba(52, 160, 110, .1), transparent 60%);
}
main, .foot { position: relative; z-index: 1; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 40; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); transition: transform .6s var(--ease); }
.skip:focus { transform: translateY(76px); }

/* ---------- Zwevend menu ---------- */
.nav {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 30;
  display: flex; align-items: center; gap: 6px; width: max-content; max-width: calc(100vw - 24px);
  padding: 6px 6px 6px 20px; border-radius: 999px;
  background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: inset 0 1px 0 var(--highlight), 0 0 0 1px var(--hair), 0 18px 50px -24px var(--glow);
}
.nav-brand { font-family: var(--display); font-weight: var(--display-weight); font-size: 17px; letter-spacing: -.02em; text-decoration: none; margin-right: 10px; white-space: nowrap; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; text-decoration: none; color: var(--muted); transition: color .6s var(--ease), background .6s var(--ease); }
.nav-links a:hover { color: var(--ink); background: var(--shell); }
.thema { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); }
.thema button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; padding: 7px 13px; border-radius: 999px; cursor: pointer; transition: background .6s var(--ease), color .6s var(--ease), transform .6s var(--ease); }
.thema button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.thema button:active { transform: scale(.96); }

.burger { display: none; position: relative; width: 40px; height: 40px; border: 0; border-radius: 999px; background: var(--shell); cursor: pointer; }
.burger span { position: absolute; left: 12px; right: 12px; top: 50%; height: 1.5px; background: var(--ink); transition: transform .7s var(--ease); }
.burger span:first-child { transform: translateY(-4px); }
.burger span:last-child { transform: translateY(4px); }
.burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 96px 32px 48px; background: var(--glass); -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px); }
.menu[hidden] { display: none; }
.menu a { font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(38px, 11vw, 64px); letter-spacing: -.03em; text-decoration: none; padding: 6px 0; opacity: 0; transform: translateY(48px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.menu.open a { opacity: 1; transform: none; }
.menu.open a:nth-child(1) { transition-delay: .1s; }
.menu.open a:nth-child(2) { transition-delay: .16s; }
.menu.open a:nth-child(3) { transition-delay: .22s; }

/* ---------- Bouwstenen ---------- */
.eyebrow { display: inline-block; padding: 5px 13px; border-radius: 999px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .2em; color: var(--accent); background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); }

/* Dubbele rand: buitenschil als een bakje, met daarin de eigenlijke kaart */
.bezel { padding: var(--pad); border-radius: var(--r); background: var(--shell); box-shadow: 0 0 0 1px var(--hair), 0 40px 90px -50px var(--glow); }
.bezel > .core { border-radius: calc(var(--r) - var(--pad)); background: var(--surface); box-shadow: inset 0 1px 0 var(--highlight), 0 0 0 1px var(--hair); overflow: hidden; }
.bezel.pill, .bezel.pill > .core { border-radius: 999px; }

/* Knop als pil, met de pijl in een eigen rondje */
.cta { display: inline-flex; align-items: center; gap: 12px; padding: 6px 6px 6px 24px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; transition: transform .7s var(--ease); }
.cta:active { transform: scale(.98); }
.cta-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 16%, transparent); transition: transform .7s var(--ease); }
.cta-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.cta:hover .cta-ico { transform: translate(3px, -1px) scale(1.06); }
.cta.ghost { background: var(--shell); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair); }
.cta.ghost .cta-ico { background: var(--surface); box-shadow: 0 0 0 1px var(--hair); }
.cta.ghost:hover .cta-ico { transform: translateY(3px) scale(1.06); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Binnenkomen bij scrollen: alleen als het script draait en de bezoeker beweging toestaat */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(56px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
  .js [data-reveal].in { opacity: 1; transform: none; }
  .js .hero [data-reveal]:nth-child(2) { transition-delay: .08s; }
  .js .hero [data-reveal]:nth-child(3) { transition-delay: .16s; }
  .js .hero [data-reveal]:nth-child(4) { transition-delay: .24s; }
  .js .hero [data-reveal]:nth-child(5) { transition-delay: .32s; }
}

/* ---------- Opening ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 88px); align-items: center; min-height: 100dvh; padding-top: 150px; padding-bottom: 96px; }
.hero h1 { margin: 26px 0 0; font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(46px, 7.4vw, 104px); line-height: .96; letter-spacing: -.045em; text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--accent); }
html[data-stijl="donker"] .hero h1 em { font-style: normal; }
.lead { margin: 30px 0 0; max-width: 46ch; font-size: 18px; line-height: 1.6; color: var(--muted); opacity: 1; }
.hero-search { margin-top: 40px; max-width: 540px; }
.hero-search .core { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 26px; }
.hero-search input[type="search"] { flex: 1; min-width: 0; height: 48px; padding: 0; border: 0; background: transparent; font-size: 17px; }
.hero-search input[type="search"]:focus-visible { outline: 0; }
.hero-search:focus-within { box-shadow: 0 0 0 2px var(--accent), 0 40px 90px -50px var(--glow); }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; font-size: 13px; color: var(--muted); }
.quick button { border: 0; padding: 7px 14px; border-radius: 999px; background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; transition: transform .7s var(--ease), background .7s var(--ease); }
.quick button:hover { transform: translateY(-2px); background: var(--surface); }
.quick button:active { transform: scale(.97); }

/* Kaarten rechts: als losse kaarten op elkaar gelegd */
.hero-side { position: relative; display: grid; gap: 0; }
.card-a { position: relative; z-index: 2; rotate: -2deg; }
.card-b { position: relative; z-index: 1; width: 82%; margin: -26px 0 0 auto; rotate: 2.5deg; }
.hv { padding: 26px 26px 22px; }
.hv-kop { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hv h2 { margin: 12px 0 0; font-family: var(--display); font-weight: var(--display-weight); font-size: 30px; letter-spacing: -.03em; line-height: 1.05; }
.hv h2 span { font-family: var(--num); font-size: 17px; font-weight: 500; color: var(--accent); letter-spacing: 0; white-space: nowrap; }
.hv-lijst { list-style: none; margin: 20px 0 0; padding: 0; }
.hv-lijst li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.hv-lijst b { font-family: var(--num); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hv-lijst li:first-child b { color: var(--best); font-size: 19px; }
.hv-lijst small { color: var(--muted); font-family: var(--body); font-weight: 400; }
.hv-voet { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 16px; margin: 0; padding: 20px 24px; }
.stats dt { font-size: 10px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); opacity: 1; }
.stats dd { margin: 5px 0 0; font-family: var(--display); font-weight: var(--display-weight); font-size: 21px; letter-spacing: -.02em; }
.stats small { display: block; font-family: var(--body); font-size: 12px; font-weight: 400; color: var(--muted); opacity: 1; }

/* ---------- Secties ---------- */
.section { padding-top: var(--section); padding-bottom: calc(var(--section) * .35); scroll-margin-top: 20px; }
.sec-head { max-width: 780px; margin-bottom: 56px; }
.sec-head h2 { margin: 22px 0 0; font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(34px, 5vw, 62px); line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }

/* Zoeken en filters */
.controls { margin: 0; padding: 20px; border: 0; }
.tabs { gap: 8px; }
.tabs button { border-radius: 999px; padding: 12px 24px; border: 0; background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); transition: transform .7s var(--ease), background .7s var(--ease), color .7s var(--ease); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.tabs button:active, .seg button:active { transform: scale(.98); }
.search { margin-top: 14px; }
input[type="search"], select { height: 52px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); transition: box-shadow .6s var(--ease); }
.controls input[type="search"]:focus-visible, select:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--accent); }
.field span { margin: 0 0 6px 20px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.search-row { margin-top: 18px; gap: 12px; }
.toggle-row { margin-top: 18px; }
.seg { border: 0; padding: 3px; border-radius: 999px; background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); }
.seg button { border-radius: 999px; padding: 7px 14px; transition: background .6s var(--ease), color .6s var(--ease), transform .6s var(--ease); }
.check input { accent-color: var(--best); }
.count { margin: 44px 8px 26px; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }

/* Resultaten: elke maat een eigen kaart, de tabel erin blijft compact */
.list { gap: 34px; }
.group { background: var(--shell); border: 0; overflow: visible; }
.g-head { padding: 28px 28px 20px; }
.group h2 { font-family: var(--display); font-weight: var(--display-weight); font-size: 30px; letter-spacing: -.03em; line-height: 1.05; }
.g-size { font-family: var(--num); font-size: 18px; margin-left: 8px; }
/* Klein erbij wat de getallen van de maat betekenen */
.g-uitleg { margin-left: 10px; font-family: var(--text, inherit); font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.g-price { font-size: 34px; letter-spacing: -.04em; }
.chip, .q { border-radius: 999px; border-color: var(--hair); }
.q { padding: 1px 9px; }
.cmp { border-top: 1px solid var(--line); }
.row { padding: 13px 28px; }
.cmp-head { padding-top: 12px; padding-bottom: 8px; font-size: 10px; letter-spacing: .16em; }
.shoprow { border-top: 1px solid var(--line); }
.shoprow > summary { transition: background .6s var(--ease); }
.shoprow summary:hover { background: var(--shell); }
.shoprow.is-best > summary { background: var(--best-bg); }
.c-shop::before { transition: transform .6s var(--ease); display: inline-block; }
.shop-body { padding: 6px 28px 20px 48px; background: var(--shell); }
.lengths li { border-bottom: 1px solid var(--line); }
.show-all { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 28px; border-top: 1px solid var(--line); font-weight: 600; transition: background .6s var(--ease); }
.show-all:hover { background: var(--shell); }
.show-all .cta-ico { background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); }
.show-all:hover .cta-ico { transform: translateY(3px) scale(1.06); }
.show-all:active .cta-ico { transform: scale(.94); }
.more { display: flex; margin: 44px auto 0; padding: 6px 6px 6px 26px; border: 0; }
.more[hidden] { display: none; }
.empty { border-radius: var(--r); border: 0; box-shadow: inset 0 0 0 1px var(--hair); padding: 56px 28px; }

/* Uitleg: vlakken van ongelijke grootte */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 26px; }
.b-wide { grid-column: span 7; }
.b-narrow { grid-column: span 5; }
.bento .core { height: 100%; padding: 34px 34px 38px; }
.b-num { font-family: var(--num); font-size: 12px; letter-spacing: .1em; color: var(--accent); }
.bento h3 { margin: 46px 0 0; font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.03em; line-height: 1.08; }
.bento p { margin: 14px 0 0; max-width: 52ch; color: var(--muted); line-height: 1.6; }

/* Winkels */
.shop-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.shop-cloud a { padding: 10px 18px; border-radius: 999px; background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); font-size: 14px; text-decoration: none; transition: transform .7s var(--ease), background .7s var(--ease); }
.shop-cloud a:hover { transform: translateY(-3px); background: var(--surface); }
.shop-cloud small { color: var(--muted); margin-left: 6px; font-variant-numeric: tabular-nums; }
.shop-status { margin: 22px 4px 0; font-size: 13px; color: var(--muted); }
.foot { padding-top: var(--section); padding-bottom: 64px; font-size: 13px; line-height: 1.7; }

/* ---------- Telefoon en tablet: alles onder elkaar, zonder overlap of draaiing ---------- */
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .nav { top: 12px; padding-left: 18px; }
  .nav-links { display: none; }
  .burger { display: block; }
  .hero { grid-template-columns: 1fr; gap: 40px; min-height: 0; padding-top: 110px; padding-bottom: 32px; }
  .hero h1 { font-size: clamp(42px, 13vw, 64px); }
  .lead { font-size: 16px; }
  .card-a, .card-b { rotate: none; width: 100%; margin: 0; }
  .hero-side { gap: 20px; }
  .section { padding-top: 88px; }
  .sec-head { margin-bottom: 36px; }
  .controls { padding: 14px; }
  .g-head { padding: 22px 18px 16px; }
  .row { padding: 14px 18px; }
  .shop-body { padding: 4px 18px 16px; }
  .show-all { padding-left: 18px; }
  .list { gap: 24px; }
  .bento { grid-template-columns: 1fr; gap: 20px; }
  .b-wide, .b-narrow { grid-column: auto; }
  .bento .core { padding: 26px 24px 28px; }
  .bento h3 { margin-top: 28px; }
  .stats { padding: 18px 20px; }
  .stats dd { font-size: 17px; }
  :root { --r: 1.6rem; --pad: 6px; }
}
@media (max-width: 480px) {
  .cta { padding-left: 18px; }
  .hero-search .core { padding-left: 20px; }
  .thema button { padding: 7px 10px; }
  .hv h2 { font-size: 26px; }
}

/* Zoekveld in de opening: de pil eromheen is de rand, het veld zelf is kaal */
.hero-search .core input[type="search"] { background: transparent; box-shadow: none; padding: 0; height: 48px; }
.hero-search .core input[type="search"]:focus-visible { box-shadow: none; outline: 0; }

.stats dd { white-space: nowrap; font-size: 18px; }
.stats { gap: 14px; padding: 20px 22px; }


/* ================= Tweede ronde: duidelijker en met meer effect ================= */
.hero h1 em, html[data-stijl="donker"] .hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 { font-size: clamp(46px, 7vw, 98px); }

/* Live vergelijking in de opening */
.hero-side { perspective: 1400px; }
.live { transition: transform .9s var(--ease); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); will-change: transform; }
.lv { padding: 24px 24px 22px; }
.lv-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lv-dot { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.lv-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--best); box-shadow: 0 0 0 0 var(--best); animation: puls 2.4s var(--ease) infinite; }
@keyframes puls { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--best) 60%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
.lv-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.lv-tabs button { border: 0; padding: 7px 13px; border-radius: 999px; background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); color: var(--muted); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: background .6s var(--ease), color .6s var(--ease), transform .6s var(--ease); }
.lv-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.lv-tabs button:active { transform: scale(.96); }
.lv-titel { margin: 20px 0 0; font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: -.03em; line-height: 1.1; }
.lv-titel span { font-family: var(--num); font-size: 15px; font-weight: 500; color: var(--accent); letter-spacing: 0; white-space: nowrap; margin-left: 6px; }
.lv-bars { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.lv-bars li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; font-size: 14px; }
.lv-bars .naam { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-bars b { font-family: var(--num); font-weight: 600; font-variant-numeric: tabular-nums; }
.lv-bars .spoor { grid-column: 1 / -1; height: 10px; border-radius: 999px; background: var(--shell); overflow: hidden; }
.lv-bars .balk { display: block; height: 100%; width: 100%; border-radius: 999px; background: color-mix(in srgb, var(--ink) 26%, transparent); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease); }
.lv-bars.aan .balk { transform: scaleX(var(--w)); }
.lv-bars li:first-child .naam { color: var(--ink); font-weight: 600; }
.lv-bars li:first-child b { color: var(--best); font-size: 18px; }
.lv-bars li:first-child .balk { background: var(--grad); }
.lv-bars li.duurst .naam::after { content: " · duurste"; opacity: .7; }
.lv-voet { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.lv-voet strong { font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -.04em; color: var(--ink); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-reduced-motion: reduce) { .lv-bars .balk { transition: none; } .lv-dot::before { animation: none; } .live { transition: none; transform: none; } }

/* Zwevend label op de hoek van de kaart */
.badge { position: absolute; right: -14px; top: -18px; z-index: 3; rotate: 6deg; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 600; box-shadow: 0 18px 40px -18px var(--glow); }

/* Cijfers onder de opening */
.nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; padding-bottom: 40px; }
.nums .core { padding: 26px 28px; }
.nums b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(38px, 5vw, 64px); letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.nums span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }

/* Doorlopende band met winkelnamen */
.band { position: relative; z-index: 1; overflow: hidden; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.band-spoor { display: flex; gap: 44px; width: max-content; font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; color: var(--muted); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) { .band-spoor { animation: band 70s linear infinite; } .band:hover .band-spoor { animation-play-state: paused; } }
@keyframes band { to { transform: translateX(-50%); } }

/* Titels van maten in de resultaten krijgen dezelfde strakke letter */
.group h2, .sec-head h2, .bento h3 { font-weight: 600; }

@media (max-width: 860px) {
  .badge { right: 10px; top: -16px; }
  .nums { grid-template-columns: 1fr; gap: 16px; padding-bottom: 8px; }
  .nums .core { padding: 20px 22px; }
  .band-spoor { font-size: 18px; gap: 30px; }
  .live { transform: none; }
}

/* ================= Landingspagina: tegels voor de onderdelen ================= */
.sec-lead { margin: 22px 0 0; max-width: 56ch; font-size: 17px; line-height: 1.6; color: var(--muted); }
.b-full { grid-column: 1 / -1; }
.tegel { display: block; color: inherit; text-decoration: none; }
.tegel .core { display: flex; flex-direction: column; align-items: flex-start; min-height: 250px; }
.tegel h3 { margin-top: 34px; }
.tegel p { flex: 1; }
.tegel .cta { margin-top: 26px; }
.status { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); }
.status.klaar { color: var(--best); background: var(--best-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--best) 30%, transparent); }
.status.later { opacity: .75; }
a.tegel { transition: transform .8s var(--ease); }
a.tegel:hover { transform: translateY(-6px); }
a.tegel:active { transform: scale(.99); }
.tegel:not(.is-klaar) h3, .tegel:not(.is-klaar) p { opacity: .82; }
.stappen { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 26px 0 0; padding: 0; counter-reset: stap; }
.stappen li { counter-increment: stap; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); font-size: 13px; }
.stappen li::before { content: counter(stap); display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px var(--hair); font-family: var(--num); font-size: 11px; color: var(--accent); }

/* ================= Gereedschapspagina's: compact, direct ter zake ================= */
.tool-head { padding-top: 124px; }
.tool-head h1 { margin: 18px 0 0; font-family: var(--display); font-weight: 600; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.04; letter-spacing: -.04em; }
.gemeten { margin: 12px 0 28px; font-size: 14px; color: var(--muted); min-height: 1.4em; }
.tool .list { gap: 22px; }
.tool .count { margin: 30px 8px 18px; }
.tool .g-head { padding: 22px 26px 16px; }
.tool .group h2 { font-size: 24px; }
.tool .g-price { font-size: 28px; }
.tool .row { padding-top: 10px; padding-bottom: 10px; }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--shell); }

@media (max-width: 860px) {
  .tool-head { padding-top: 96px; }
  .tegel .core { min-height: 0; }
  .tegel h3 { margin-top: 24px; }
}

/* Keuzelijsten: de uitklaplijst krijgt een eigen dekkende achtergrond.
   Het veld zelf is half doorzichtig; zonder deze regel erft de lijst dat en wordt lichte tekst op wit onleesbaar. */
html, html[data-stijl="warm"] { --menu-bg: #ffffff; --menu-ink: #0d0f0e; }
html[data-stijl="donker"] { --menu-bg: #141614; --menu-ink: #f3f3ef; }
select { color: var(--ink); }
select option, select optgroup { background-color: var(--menu-bg); color: var(--menu-ink); }

/* ================= Zaagplan ================= */
.zp { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 26px; align-items: start; margin-top: 8px; }
.zp-invoer .core { padding: 24px; }
.zp-stap { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.zp-stap:first-child { margin-top: 0; }
.zp-stap span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); font-family: var(--num); font-size: 12px; color: var(--accent); }
.zp-rij { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.zp-rij.drie { grid-template-columns: repeat(3, 1fr); margin-top: 14px; }
.zp input[type="number"] { width: 100%; height: 48px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); font: inherit; font-family: var(--num); font-variant-numeric: tabular-nums; transition: box-shadow .6s var(--ease); }
.zp input[type="number"]:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--accent); }
.zp select { height: 48px; }
.zp-kop, .zp-stuk { display: grid; grid-template-columns: 1fr 110px 44px; gap: 8px; align-items: center; }
.zp-kop { padding: 0 18px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.zp-stuk { margin-bottom: 8px; }
.zp-weg { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; transition: background .6s var(--ease), color .6s var(--ease); }
.zp-weg:hover:not(:disabled) { background: var(--shell); color: var(--up); }
.zp-weg:disabled { opacity: .3; cursor: default; }
.zp-plus { border: 0; padding: 10px 16px; border-radius: 999px; background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: transform .6s var(--ease), background .6s var(--ease); }
.zp-plus:hover { background: var(--surface); }
.zp-plus:active { transform: scale(.98); }
.zp-wand { margin-top: 16px; }
.zp-wand summary { cursor: pointer; font-size: 14px; color: var(--muted); min-height: 32px; }
.zp-wand .zp-plus { margin-top: 14px; }
.zp-klein { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.zp-smal { display: block; max-width: 260px; }

.zp-uit { display: grid; gap: 26px; }
.zp-plan, .zp-anders { padding: 26px; }
.zp-titel h2 { margin: 14px 0 0; font-family: var(--display); font-weight: 600; font-size: 30px; letter-spacing: -.03em; line-height: 1.05; }
.zp-titel p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.zp-cijfers { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 16px; margin: 22px 0 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.zp-cijfers dt { font-size: 10px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.zp-cijfers dd { margin: 5px 0 0; font-family: var(--num); font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.zp-cijfers dd.groot { font-family: var(--display); font-size: 34px; letter-spacing: -.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.zp-cijfers small { font-family: var(--body); font-size: 12px; font-weight: 400; color: var(--muted); }
.zp-sub { margin: 24px 0 10px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.zp-sub small { font-family: var(--num); letter-spacing: 0; margin-left: 6px; }
.zp-anders .zp-sub { margin-top: 0; }
.zp-koop, .zp-zaag, .zp-winkels { list-style: none; margin: 0; padding: 0; }
.zp-koop li { display: grid; grid-template-columns: 1fr auto 90px; gap: 14px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.zp-koop li > :last-child, .zp-koop li > :nth-child(2) { text-align: right; font-family: var(--num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.zp-koop small { font-family: var(--body); font-size: 12px; color: var(--muted); }
.zb { margin-bottom: 14px; }
.zb-kop { margin-bottom: 6px; font-size: 14px; }
.zb-kop small { margin-left: 8px; font-size: 12px; color: var(--muted); }
.zb-balk { display: flex; gap: 3px; height: 34px; }
.zb-deel, .zb-rest { display: grid; place-items: center; min-width: 0; overflow: hidden; border-radius: 7px; font-family: var(--num); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zb-deel { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); color: var(--ink); }
.zb-rest { color: var(--muted); background: repeating-linear-gradient(135deg, var(--shell) 0 6px, transparent 6px 12px); box-shadow: inset 0 0 0 1px var(--hair); }
.zp-let { margin: 16px 0 0; padding: 12px 16px; border-radius: 16px; background: color-mix(in srgb, var(--up) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--up) 30%, transparent); font-size: 14px; }
.zp-plan .facts { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.zp-winkel { display: grid; grid-template-columns: 1fr auto 90px; gap: 14px; align-items: baseline; width: 100%; padding: 11px 12px; border: 0; border-radius: 14px; background: transparent; color: var(--ink); font: inherit; font-size: 15px; text-align: left; cursor: pointer; transition: background .6s var(--ease); }
.zp-winkel:hover { background: var(--shell); }
.zp-winkel.actief { background: var(--best-bg); }
.zp-winkel > :nth-child(2) { font-size: 13px; color: var(--muted); white-space: nowrap; }
.zp-winkel b { text-align: right; font-family: var(--num); font-variant-numeric: tabular-nums; }
.zp-winkel small { margin-left: 8px; font-size: 12px; color: var(--muted); }
.zp-winkel small.tag { color: var(--best); }
.zp-winkel small.no { color: var(--up); }

@media (max-width: 860px) {
  .zp { grid-template-columns: 1fr; gap: 20px; }
  .zp-invoer .core, .zp-plan, .zp-anders { padding: 18px; }
  .zp-rij, .zp-rij.drie { grid-template-columns: 1fr; }
  .zp-kop, .zp-stuk { grid-template-columns: 1fr 88px 44px; }
  .zp-cijfers { grid-template-columns: 1fr 1fr; }
  .zp-cijfers > :first-child { grid-column: 1 / -1; }
  .zp-winkel, .zp-koop li { grid-template-columns: 1fr auto; }
  .zp-winkel > :nth-child(2), .zp-koop li > :nth-child(2) { display: none; }
  .zp-uit { gap: 20px; }
}

.zp > *, .zp-uit > *, .zp-rij > * { min-width: 0; }
.zb-balk { min-width: 0; }

.zp-winkel > :first-child { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 860px) { .zp-winkel small { display: block; margin-left: 0; } }

/* Zaagplan: bezorgen en levertijd direct onder het totaal, en per winkel in de lijst */
.zp-plan .facts.zp-bezorg { margin-top: 0; padding: 16px 0; border-top: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 22px; font-size: 14px; }
.zp-w-bezorg { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.zp-winkel { row-gap: 3px; }
@media (max-width: 860px) { .zp-plan .facts.zp-bezorg { grid-template-columns: 1fr; } .zp-winkel > .zp-w-bezorg { display: block; } }

/* ================= Prijsverloop ================= */
/* Reekskleuren: nagerekend op onderscheid (ook bij kleurenblindheid) tegen de lichte en de donkere ondergrond */
html, html[data-stijl="warm"] { --serie-1: #2a78d6; --serie-2: #eb6834; --serie-3: #1baf7a; }
html[data-stijl="donker"] { --serie-1: #3987e5; --serie-2: #d95926; --serie-3: #199e70; }

.vl-kies { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 14px; align-items: end; padding: 20px; }
.vl-kies .seg { height: 52px; align-items: center; }
.vl-raster { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 26px; align-items: start; margin-top: 26px; }
.vl-raster > *, .vl-zij > * { min-width: 0; }
.vl-zij { display: grid; gap: 26px; }
.vl-kaart { padding: 26px; }
.vl-kop { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.vl-kop h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: -.03em; line-height: 1.1; }
.vl-kop p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.vl-kop .zp-plus { flex: none; }
.vl-tegels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 22px 0 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vl-tegels dt { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.vl-tegels dd { margin: 6px 0 0; font-family: var(--num); font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.vl-tegels dd span { font-size: 12px; font-weight: 400; color: var(--muted); }
.vl-tegels dd small { display: block; margin-top: 2px; font-family: var(--body); font-size: 12px; font-weight: 400; color: var(--muted); }
.vl-tegels dd .omlaag, .omlaag { color: var(--down); font-size: inherit; font-weight: 600; }
.vl-tegels dd .omhoog, .omhoog { color: var(--up); font-size: inherit; font-weight: 600; }
.vl-legenda { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-size: 13px; color: var(--muted); min-height: 20px; }
.vl-legenda i, .vl-tip i, .vl-winkels i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; }
.vl-grafiek { position: relative; margin-top: 8px; }
.vl-grafiek svg { display: block; width: 100%; height: auto; overflow: visible; }
.vl-raster-lijn { stroke: var(--line); stroke-width: 1; }
.vl-as { fill: var(--muted); font-family: var(--num); font-size: 11px; }
.vl-lijn { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.vl-punt { stroke: var(--surface); stroke-width: 2; }
.vl-label { fill: var(--ink); font-size: 12px; font-weight: 600; }
.vl-label-prijs { fill: var(--muted); font-family: var(--num); font-size: 11px; }
.vl-kruis { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
.vl-vang { fill: transparent; cursor: crosshair; }
.vl-tip { position: absolute; top: 6px; z-index: 2; display: grid; gap: 4px; min-width: 190px; padding: 10px 12px; border-radius: 14px; background: var(--menu-bg); box-shadow: 0 0 0 1px var(--hair), 0 18px 40px -20px var(--glow); font-size: 13px; pointer-events: none; }
.vl-tip[hidden] { display: none; }
.vl-tip b { font-size: 12px; }
.vl-tip span { display: flex; align-items: center; color: var(--muted); }
.vl-tip em { margin-left: auto; padding-left: 14px; font-style: normal; font-family: var(--num); color: var(--ink); }
.vl-noot { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.vl-noot:empty { display: none; }
.vl-winkels { margin: 20px 0 0; padding: 16px 0 0; border: 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 18px; }
.vl-winkels legend { padding: 0; margin-bottom: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.vl-winkels .check { font-size: 13px; }
.vl-winkels input:disabled + * , .vl-winkels .check:has(input:disabled) { opacity: .55; }
.vl-tabel { margin-top: 16px; }
.vl-tabel summary { cursor: pointer; font-size: 13px; color: var(--muted); min-height: 32px; }
.vl-leeg { margin: 0; font-size: 14px; color: var(--muted); }
.vl-kopje { margin: 14px 0 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.vl-kopje:first-child { margin-top: 0; }
.vl-volglijst { list-style: none; margin: 0; padding: 0; }
.vl-volglijst li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.vl-volglijst li:last-child { border-bottom: 0; }
.vl-open { display: grid; gap: 2px; width: 100%; padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.vl-open b { font-size: 14px; }
.vl-open span { color: var(--muted); }
.vl-open span.omlaag { color: var(--down); }
.vl-open span.omhoog { color: var(--up); }
.vl-open:hover b { text-decoration: underline; text-underline-offset: 3px; }
.vl-open .status { justify-self: start; margin-top: 4px; }
.vl-doel { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.vl-doel input { width: 96px; height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); font: inherit; font-family: var(--num); }

@media (max-width: 860px) {
  .vl-kies { grid-template-columns: 1fr; padding: 14px; }
  .vl-raster { grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }
  .vl-kaart { padding: 18px; }
  .vl-kop { flex-direction: column; }
  .vl-tegels { grid-template-columns: 1fr 1fr; }
  .vl-zij { gap: 20px; }
}

/* Verloop: zoeken en prijsalarm */
.vl-zoek { grid-column: 1 / -1; position: relative; }
.vl-zoek-uit { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.vl-zoek-uit:empty { display: none; }
.vl-zoek-uit button { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; width: 100%; padding: 10px 16px; border: 0; border-radius: 14px; background: transparent; color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; transition: background .5s var(--ease); }
.vl-zoek-uit button:hover, .vl-zoek-uit button:focus-visible { background: var(--shell); }
.vl-zoek-uit span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.vl-zoek-uit .vl-leeg { padding: 8px 16px; }
.vl-alarm { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.vl-alarm label { flex: 1 1 260px; color: var(--muted); }
.vl-alarm label b { display: block; color: var(--ink); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 3px; }
.vl-alarm-veld { display: inline-flex; align-items: center; gap: 8px; font-family: var(--num); white-space: nowrap; }
.vl-alarm-veld input { width: 104px; height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); font: inherit; }
.vl-alarm-veld input:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--accent); }
.vl-alarm-veld span { font-family: var(--body); font-size: 13px; color: var(--muted); }
.vl-alarm-status { flex: 1 1 100%; margin: 0; font-size: 13px; color: var(--muted); }
.vl-alarm-status:empty { display: none; }
.vl-alarm-status .status { margin-right: 6px; }
.vl-link { border: 0; padding: 0; background: none; color: var(--ink); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.vl-doel span { white-space: nowrap; }
@media (max-width: 860px) { .vl-zoek-uit button { flex-direction: column; gap: 2px; } }

/* Verloop: hoofdlijn over alle winkels, met een lichte band tot de duurste winkel */
.vl-lijn.hoofd { stroke-width: 3; }
.vl-band { fill: color-mix(in srgb, var(--serie-1) 10%, transparent); stroke: none; }
.vl-tip .sub { padding-left: 17px; margin-top: -3px; font-size: 12px; }
.vl-tip i.leeg { background: transparent; box-shadow: inset 0 0 0 1px var(--muted); }

/* Verloop: doorklikken naar de winkel */
.vl-knoppen { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; flex: none; }
.vl-knoppen .cta { text-decoration: none; font-size: 14px; padding: 4px 4px 4px 18px; }
.vl-knoppen .cta[hidden] { display: none; }
.vl-knoppen .cta-ico { width: 32px; height: 32px; }
.vl-winkellink { color: var(--ink); text-underline-offset: 3px; white-space: nowrap; }
.vl-tegels dd small .vl-winkellink { font-size: 13px; font-weight: 600; }
.vl-winkel { display: inline-flex; align-items: center; gap: 8px; }
.vl-winkel .vl-winkellink { font-size: 12px; color: var(--muted); }
.vl-naar { margin: 6px 0 0; font-size: 13px; }
.zp-naar-offerte { margin: 14px 0 0; }
/* ---------- Mailvenster ---------- */
.mailvenster { width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 28px; background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--hair), 0 40px 90px -30px rgba(0,0,0,.6); overflow: auto; }
.mailvenster::backdrop { background: rgba(0, 0, 0, .55); }
.mv-form { display: grid; gap: 12px; padding: 26px; }
.mv-form h2 { margin: 0 0 4px; font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.mv-form input, .mv-form textarea { width: 100%; padding: 0 18px; border: 0; background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); font: inherit; }
.mv-form input { height: 48px; border-radius: 999px; }
.mv-form textarea { padding: 14px 18px; border-radius: 20px; line-height: 1.5; resize: vertical; min-height: 180px; }
.mv-form input:focus-visible, .mv-form textarea:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--accent); }
.mv-bijlage { margin: 2px 0 0; font-size: 14px; }
.mv-bijlage a, .mv-form .zp-klein a { color: var(--ink); text-underline-offset: 3px; }
.mv-bijlage small { color: var(--muted); }
.mv-form .zp-klein { margin: 0; }
.mv-form .zp-klein b { color: var(--ink); }
.mv-form .ac-knoppen { margin-top: 6px; }
@media (max-width: 520px) { .mv-form { padding: 18px; } }
@media print { .mailvenster { display: none !important; } }

/* ---------- Administratie: eigen menu, kosten, btw en resultaat ---------- */
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.subnav a { display: inline-flex; align-items: center; height: var(--pil); padding: 0 18px; border-radius: 999px; background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .6s var(--ease), color .6s var(--ease); }
.subnav a:hover { background: var(--surface); }
.subnav a[aria-current="page"] { background: var(--ink); color: var(--bg); box-shadow: none; }
@media print { .subnav { display: none !important; } }
.ks { display: grid; gap: 22px; margin-top: 24px; }
.ks > .bezel:first-child { max-width: 860px; }
.ks-velden input:not([type="checkbox"]):not([type="file"]), .ks-velden select, .ks-filters select, .bk-keuze select { width: 100%; height: 48px; padding: 0 18px; border: 0; border-radius: 999px; background-color: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); font: inherit; }
.ks-velden input:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--accent); }
:root[data-stijl="donker"] .ks-velden input { color-scheme: dark; }
.ks-som { margin: 12px 0 0; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ks-som b { color: var(--ink); }
.ks-som:empty { display: none; }
.ks-bon { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.ks-bon a, .of-tabel td a { color: var(--ink); text-underline-offset: 3px; }
.ks-filters { display: flex; gap: 8px; }
.ks-filters select, .bk-keuze select { width: auto; height: var(--pil); }
.of-tabel td small { color: var(--muted); font-size: 11px; }
.bk-keuze { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bk-raster { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.bk-kop { margin: 6px 0 14px !important; }
.bk-saldo { display: grid; gap: 2px; padding: 16px 18px; border-radius: 18px; background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); }
.bk-saldo small { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.bk-saldo b { font-family: var(--display); font-size: 34px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.bk-saldo.terug b { color: var(--best); }
.bk-saldo span { font-size: 13px; color: var(--muted); }
.bk-tabel { margin-top: 14px; }
.bk-tabel td:first-child { width: 36px; font-family: var(--num); }
.bk-totaal td { font-weight: 600; border-top: 2px solid var(--ink); }
.bk-rijen .bk-som b, .bk-rijen .bk-som > div { font-weight: 600; }
.bk-rijen .bk-winst b { font-size: 20px; }
.bk-rijen .plus { color: var(--best); } .bk-rijen .min { color: var(--up); }
.db-blok .zp-let { margin-top: 12px; }
@media (max-width: 980px) { .bk-raster { grid-template-columns: 1fr; } }

/* ---------- Account en dashboard ---------- */
.nav-account { padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair); white-space: nowrap; transition: background .6s var(--ease); }
.nav-account:hover { background: var(--shell); }
/* Het menu heeft veel onderdelen: onder 1100 px klapt het in tot de menuknop, waar Inloggen ook in staat */
@media (max-width: 1100px) { .nav-links, .nav-account { display: none; } .burger { display: block; } }
.ac { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 24px; max-width: 920px; align-items: start; }
.ac form { display: grid; gap: 12px; }
.ac-breed { grid-column: 1 / -1; }
.ac .of-velden { margin-top: 4px; }
.ac-plek b { color: var(--ink); }
.ac input:not([type="checkbox"]):not([type="file"]) { width: 100%; height: 48px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); font: inherit; }
.ac input:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--accent); }
.ac h2 { margin: 0 0 4px; font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.ac-fout { margin: 0; font-size: 13px; color: var(--up); }
.ac-fout:empty { display: none; }
.ac-lijst { margin: 10px 0 0; padding-left: 18px; font-size: 14px; color: var(--muted); display: grid; gap: 6px; }
.ac-knoppen { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 0; }
@media (max-width: 760px) { .ac { grid-template-columns: 1fr; } }
.db-kop { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 22px; }
#db-uit { margin-top: 18px; }
.db-tegels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.db-tegel .core { padding: 18px 20px; display: grid; gap: 4px; }
.db-tegel dt { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.db-tegel dd { margin: 0; font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.db-tegel small { font-size: 12px; color: var(--muted); }
.db-tegel .plus { color: var(--best); } .db-tegel .min { color: var(--up); }
.db-raster { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 22px; margin-top: 22px; align-items: start; }
.db-blok { padding: 22px; }
.db-blok h2 { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.db-blok > p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.db-legenda { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 6px; font-size: 13px; color: var(--muted); }
.db-legenda i { display: inline-block; width: 10px; height: 10px; margin-right: 7px; border-radius: 3px; }
.db-grafiek { position: relative; }
.db-grafiek svg { display: block; width: 100%; height: auto; overflow: visible; }
.db-as { fill: var(--muted); font-size: 11px; font-family: var(--num); }
.db-lijn { stroke: var(--line); stroke-width: 1; }
.db-vang { fill: transparent; }
.db-vang:hover { fill: color-mix(in srgb, var(--ink) 6%, transparent); }
.db-tip { position: absolute; top: 0; pointer-events: none; padding: 10px 12px; border-radius: 12px; background: var(--menu-bg, var(--surface)); color: var(--menu-ink, var(--ink)); box-shadow: 0 10px 30px -12px rgba(0,0,0,.5), inset 0 0 0 1px var(--hair); font-size: 12px; display: grid; gap: 3px; min-width: 150px; z-index: 2; }
.db-tip b { font-size: 13px; }
.db-tip span { display: flex; justify-content: space-between; gap: 14px; font-variant-numeric: tabular-nums; }
.db-rijen { list-style: none; margin: 12px 0 0; padding: 0; }
.db-rijen li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.db-rijen li span { color: var(--muted); font-size: 12px; display: block; }
.db-rijen li b { font-family: var(--num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.db-rijen a { color: var(--ink); text-underline-offset: 3px; }
@media (max-width: 980px) { .db-tegels { grid-template-columns: repeat(2, minmax(0, 1fr)); } .db-raster { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .db-tegels { grid-template-columns: 1fr; } }

.wg-eigen { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.wg-eigen a { color: var(--ink); text-underline-offset: 3px; }
/* ---------- Mijn houthandel ---------- */
.mw-kies { margin: 22px 0 0; flex-wrap: wrap; border-radius: 26px; }
.mw { display: grid; gap: 18px; margin-top: 18px; max-width: 980px; }
.mw[hidden] { display: none; }
.mw textarea { width: 100%; margin-top: 12px; font: inherit; font-family: var(--num); font-size: 14px; padding: 14px 18px; border-radius: 18px; border: 0; background: var(--shell); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair); resize: vertical; }
.mw textarea:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--accent); }
.mw .zp-sub small { margin-left: 8px; text-transform: none; letter-spacing: 0; }
.mw-kop, .mw-regel { display: grid; grid-template-columns: minmax(0, 1.5fr) 74px 82px minmax(0, 1fr) minmax(0, 1.1fr) 84px 62px 32px; gap: 6px; align-items: center; }
.mw-kop.plaat, .mw-regel.plaat { grid-template-columns: minmax(0, 1.6fr) 74px 84px 84px 96px 62px 32px; }
.mw-kop { margin: 12px 0 6px; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.mw-regel { margin-bottom: 6px; }
.mw-regel input, .mw-regel select { width: 100%; min-width: 0; height: 42px; padding: 0 10px; border: 0; border-radius: 12px; background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); font: inherit; font-size: 14px; }
.mw-regel input:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--accent); }
.mw-incl { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mw-voet { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 6px 0 0; }
a.zp-plus { text-decoration: none; display: inline-flex; align-items: center; }
@media (max-width: 760px) {
  .mw-kop { display: none; }
  .mw-regel, .mw-regel.plaat { grid-template-columns: repeat(3, minmax(0, 1fr)) 32px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .mw-regel select[data-veld="soort"] { grid-column: 1 / -1; }
  .mw-incl { display: none; }
}

/* ---------- Stappenbalk: houtlijst, bestellijst, offerte ---------- */
.route { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; }
.route li { display: flex; align-items: center; gap: 6px; }
.route li + li::before { content: ""; width: 18px; height: 1px; background: var(--hair); }
.route a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; color: var(--muted); font-size: 13px; text-decoration: none; box-shadow: inset 0 0 0 1px var(--hair); transition: color .6s var(--ease), background .6s var(--ease); }
.route a:hover { color: var(--ink); }
.route a span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--shell); font-family: var(--num); font-size: 11px; }
.route .nu a { color: var(--ink); font-weight: 600; background: var(--shell); box-shadow: inset 0 0 0 1px var(--accent); }
.route .nu a span { background: var(--accent); color: var(--bg); }
@media print { .route { display: none !important; } }

/* ---------- Bestellijst ---------- */
.ko, .ko-uit { display: grid; gap: 22px; }
.ko { margin-top: 24px; max-width: 920px; }
.ko-leeg { padding: 26px; }
.ko-leeg a, .ko-oms a { color: var(--ink); text-underline-offset: 3px; }
.ko-totaal { padding: 22px; display: grid; gap: 12px; }
.ko-totaal > div { display: grid; gap: 2px; }
.ko-totaal small { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.ko-totaal b { font-family: var(--display); font-size: 36px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ko-totaal span { font-size: 13px; color: var(--muted); }
.ko-knoppen, .ko-acties { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.ko-winkel .core { padding: 22px; }
.ko-regels { list-style: none; margin: 14px 0 0; padding: 0; }
.ko-regels li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 96px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.ko-regels li.af .ko-oms { opacity: .55; text-decoration: line-through; }
.ko-oms small { margin-left: 6px; font-size: 12px; color: var(--muted); }
.ko-oms small.no { color: var(--up); }
.ko-stuk { color: var(--muted); font-size: 13px; white-space: nowrap; }
.ko-bedrag { text-align: right; font-family: var(--num); font-variant-numeric: tabular-nums; }
.ko-sub { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.ko-sub b { font-family: var(--num); font-variant-numeric: tabular-nums; }
.ko-winkel .facts.zp-bezorg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; margin: 0; padding: 14px 0; border-top: 1px solid var(--line); font-size: 13px; }
.ko-winkel .facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.ko-winkel .facts dd { margin: 3px 0 0; }
.ko-acties { margin-top: 4px; }
.ko-verder { padding: 22px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.ko-verder > div { display: grid; gap: 3px; max-width: 46ch; }
.ko-verder span { font-size: 14px; color: var(--muted); }
.cta.klein { padding: 6px 6px 6px 14px; font-size: 13px; }
@media (max-width: 620px) {
  .ko-regels li { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ko-stuk { display: none; }
  .ko-winkel .facts.zp-bezorg { grid-template-columns: 1fr; }
}
@media print {
  .ko-knoppen, .ko-acties, #ko-verder, .cta.klein { display: none !important; }
  .ko-winkel, .ko-totaal { break-inside: avoid; }
}

/* ---------- Kluscalculatie ---------- */
.zp.kl { grid-template-areas: "invoer plan"; grid-template-rows: auto; margin-top: 24px; }
.kl-invoer { grid-area: invoer; display: grid; gap: 18px; min-width: 0; }
#kl-onderdelen { display: grid; gap: 18px; }
.kl-uit { grid-area: plan; min-width: 0; }
.kl-onderdeel .core { padding: 20px; display: grid; gap: 14px; }
.kl-kop { display: flex; align-items: center; gap: 10px; }
.kl-naam { flex: 1; min-width: 0; height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); font: inherit; font-weight: 600; }
.kl-naam:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--accent); }
.kl-maten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kl-plaat { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.kl-onderdeel select { width: 100%; }
.kl-plus { display: flex; gap: 8px; margin: 0; }
.kl-wijze { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 18px 0 4px; }
/* Eigen plaats kiezen en afstand tot de afhaalplek */
.plek { margin: 10px 0; font-size: 13px; color: var(--muted); }
.plek p { margin: 0 0 6px; }
.plek-nu b { color: var(--ink); }
.wg-plek { grid-column: 1 / -1; margin: 0; }
.plek-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.plek-form input { flex: 1 1 170px; min-width: 0; height: 42px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); font: inherit; font-size: 14px; }
.plek-form input:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--accent); }
.plek-fout { color: var(--up); }
.plek-fout:empty { display: none; }
.plek-straal { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.plek-straal select { height: 36px; padding: 0 30px 0 14px; font-size: 13px; }
.zp-afstand { display: block; margin-top: 3px; font-size: 12px; color: var(--best); }
.zp-km { color: var(--best); font-weight: 600; font-family: inherit; text-align: left; }
.zp-winkel .zp-w-bezorg b.zp-km { text-align: left; font-family: inherit; }
.kl-optie { display: grid; gap: 3px; padding: 14px 16px; border: 0; border-radius: 18px; background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; transition: box-shadow .6s var(--ease), background .6s var(--ease); }
.kl-optie b { font-family: var(--num); font-size: 20px; font-variant-numeric: tabular-nums; }
.kl-optie small { font-size: 12px; color: var(--muted); }
.kl-optie.actief { background: var(--best-bg); box-shadow: inset 0 0 0 2px var(--best); }
.kl-optie.uit { cursor: default; opacity: .8; }
.kl-materiaal { padding-top: 6px; }
.kl-materiaal .zp-sub small { margin-left: 8px; }
@media (max-width: 860px) {
  .zp.kl { grid-template-areas: "invoer" "plan"; }
  .kl-wijze { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .kl-maten { grid-template-columns: 1fr 1fr; } .kl-plaat { grid-template-columns: 1fr; } }

/* ---------- Zaagplan voor platen ---------- */
/* Indeling: links invullen met daaronder de winkels, rechts het plan. Op de telefoon: invullen, plan, winkels. */
.zp { grid-template-areas: "invoer plan" "winkels plan"; grid-template-rows: auto 1fr; }
.zp-invoer { grid-area: invoer; }
.zp-uit { display: contents; }
.zp-uit > :first-child { grid-area: plan; }
.zp-uit > :nth-child(2) { grid-area: winkels; }
.zp-rij:not(.drie) { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.zp-kort { margin: 14px 0 0 !important; padding: 12px 16px; border-radius: 16px; background: var(--best-bg); color: var(--ink) !important; font-size: 15px !important; }
.zp-kort b { font-weight: 600; white-space: nowrap; }
.zp-meer { display: block; margin: 12px auto 0; }
@media (max-width: 860px) {
  .zp { grid-template-areas: "invoer" "plan" "winkels"; grid-template-rows: none; }
  .zp-rij:not(.drie) { grid-template-columns: 1fr; }
}
.zp-modus { margin: 24px 0 0; }
.zp-modus + .zp { margin-top: 16px; }
.zp-invoer form[hidden] { display: none; }
.zp-kop.plaat, .zp-stuk.plaat { grid-template-columns: 1fr 1fr 84px 44px; }
.pp-platen li { margin-bottom: 18px; }
.pp-svg { display: block; width: 100%; height: auto; }
.pp-plaat { fill: var(--shell); stroke: var(--hair); stroke-width: 6; }
.pp-deel { fill: color-mix(in srgb, var(--accent) 22%, var(--surface)); stroke: color-mix(in srgb, var(--accent) 55%, transparent); stroke-width: 5; }
.pp-maat { fill: var(--ink); text-anchor: middle; dominant-baseline: central; font-family: var(--num); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .zp-kop.plaat, .zp-stuk.plaat { grid-template-columns: 1fr 1fr 64px 40px; } }
/* Invoervelden op de houtwijzer en de offertepagina, in dezelfde stijl als het zaagplan */
.hw-invoer input, .of-velden input:not([type="checkbox"]), .of-regel input { height: 48px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); font: inherit; color-scheme: light dark; transition: box-shadow .6s var(--ease); }
.hw-invoer input:focus-visible, .of-velden input:focus-visible, .of-velden textarea:focus-visible, .of-regel input:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--accent); }
.of-regel input, .of-regel select { height: 42px; }
:root[data-stijl="donker"] .of-velden input { color-scheme: dark; }
:root[data-stijl="warm"] .of-velden input { color-scheme: light; }
/* ---------- Offerte en factuur ---------- */
.of-melding { margin: 12px 0 0; font-size: 14px; color: var(--best); }
.of-melding:empty { display: none; }
.of-dagprijs { margin: 10px 0 0; padding: 12px 16px; border-radius: 16px; font-size: 13px; background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); }
.of-dagprijs b { font-weight: 600; }
@media print { .of-dagprijs { display: none !important; } }
.of-raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 26px; align-items: start; margin-top: 24px; }
.of-bewerk { display: grid; gap: 18px; min-width: 0; }
.of-blok { padding: 20px; }
.of-velden { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.of-velden .breed { grid-column: 1 / -1; }
.of-velden input, .of-velden textarea { width: 100%; }
.of-velden textarea { font: inherit; padding: 12px 18px; border-radius: 18px; border: 0; background: var(--shell); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair); resize: vertical; }
.of-verlegd { align-self: end; min-height: 52px; }
.of-regelkop, .of-regel { display: grid; grid-template-columns: minmax(0, 1fr) 64px 62px 82px 68px 32px; gap: 6px; align-items: center; }
.of-regelkop { margin: 14px 0 6px; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.of-regel { margin-bottom: 6px; }
.of-regel input, .of-regel select { width: 100%; min-width: 0; padding: 9px 10px; border-radius: 12px; font-size: 14px; }
.of-knoppen { display: flex; gap: 8px; margin: 10px 0 0; }
.of-bedrijf > summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style-position: inside; }
.of-bedrijf[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.of-arch { display: flex; align-items: center; gap: 8px; }
.of-voorbeeld { position: sticky; top: 96px; min-width: 0; }
.of-mist { margin: 0 0 12px; padding: 12px 16px; border-radius: 16px; font-size: 13px; color: var(--up); background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); }
.of-acties { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0 0; }
.of-bewaard { margin: 10px 0 0; font-size: 13px; color: var(--best); }
.of-bewaard:empty { display: none; }
.of-logo { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.of-logo-beeld { display: grid; place-items: center; min-width: 120px; height: 64px; padding: 6px 10px; border-radius: 12px; background: #fff; color: #6b7078; font-size: 12px; box-shadow: inset 0 0 0 1px var(--hair); }
.of-logo-beeld img { max-width: 160px; max-height: 52px; display: block; }
.of-logo-kies { cursor: pointer; }
.pa-logo { display: block; max-width: 180px; max-height: 70px; margin-bottom: 10px; }
.of-historie { margin-top: 30px; }
.of-hist-kop { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.of-hist-kop h2 { margin: 0; font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.of-hist-cijfers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; margin: 18px 0 6px; }
.of-hist-cijfers:empty { display: none; }
.of-hist-cijfers dt { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.of-hist-cijfers dd { margin: 4px 0 0; font-family: var(--num); font-size: 22px; font-variant-numeric: tabular-nums; }
.of-hist-cijfers dd small { display: block; font-family: var(--text, inherit); font-size: 12px; color: var(--muted); }
.of-tabel { margin-top: 12px; }
.of-tabel td { vertical-align: middle; font-size: 14px; }
.of-tabel select { height: 38px; padding: 0 30px 0 14px; font-size: 13px; }
.of-rij-acties { display: flex; gap: 12px; align-items: center; justify-content: flex-end; white-space: nowrap; }
@media (max-width: 620px) { .of-hist-cijfers { grid-template-columns: 1fr; } }
@media print { .of-historie, .of-bewaard { display: none !important; } }
/* Het papier is altijd wit met zwarte tekst, ook in de donkere weergave */
.papier { background: #fff; color: #16181c; border-radius: 10px; padding: 34px; font-size: 13px; line-height: 1.5; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 18px 50px -24px rgba(0,0,0,.35); overflow-wrap: anywhere; }
.papier small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: #6b7078; }
.papier span { display: block; }
.pa-kop { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 18px; border-bottom: 2px solid #16181c; }
.pa-kop h2 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.pa-bedrijf b { display: block; font-size: 16px; }
.pa-partijen { display: flex; justify-content: space-between; gap: 20px; margin-top: 22px; }
.pa-partijen b { display: block; }
.pa-partijen dl { margin: 0; display: grid; gap: 3px; }
.pa-partijen dl div { display: flex; gap: 14px; justify-content: space-between; }
.pa-partijen dt { color: #6b7078; }
.pa-partijen dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.pa-betreft { margin: 20px 0 0; font-weight: 600; }
.pa-betreft small { display: inline; margin-right: 8px; font-weight: 400; }
.pa-tabel { width: 100%; margin-top: 18px; border-collapse: collapse; }
.pa-tabel th { padding: 6px 4px; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; text-align: left; color: #6b7078; border-bottom: 1px solid #16181c; background: none; }
.pa-tabel td { padding: 7px 4px; border-bottom: 1px solid #e3e5e8; vertical-align: top; color: #16181c; background: none; }
.pa-tabel .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pa-totaal { margin: 16px 0 0 auto; width: min(100%, 300px); display: grid; gap: 4px; }
.pa-totaal div { display: flex; justify-content: space-between; gap: 14px; }
.pa-totaal dt { color: #6b7078; }
.pa-totaal dd { margin: 0; font-variant-numeric: tabular-nums; }
.pa-totaal .groot { margin-top: 6px; padding-top: 8px; border-top: 2px solid #16181c; font-size: 16px; font-weight: 600; }
.pa-totaal .groot dt { color: #16181c; }
.pa-notitie { margin: 22px 0 0; }
.pa-voet { margin-top: 30px; padding-top: 14px; border-top: 1px solid #e3e5e8; font-size: 11px; color: #4d525a; }
.pa-voet p { margin: 0 0 4px; }
/* Onder 1180 px staan invullen en voorbeeld onder elkaar: anders is het papier te smal voor de tabel */
@media (max-width: 1180px) {
  .of-raster { grid-template-columns: 1fr; }
  .of-voorbeeld { position: static; }
}
@media (max-width: 980px) { .papier { padding: 20px; } }
.papier { overflow-x: auto; }
@media print { .papier { overflow: visible; } }
@media (max-width: 520px) {
  .of-velden { grid-template-columns: 1fr; }
  .of-regelkop { display: none; }
  .of-regel { grid-template-columns: repeat(4, minmax(0, 1fr)) 32px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .of-regel [data-veld="oms"] { grid-column: 1 / -1; }
  .pa-partijen, .pa-kop { flex-direction: column; }
}
@media print {
  @page { margin: 16mm; }
  html, body { background: #fff !important; }
  body::before, body::after, .nav, .menu, .skip, .foot, .eyebrow, .tool-head > h1, .tool-head > .gemeten, .of-melding, .of-bewerk, .of-mist, .of-acties { display: none !important; }
  .wrap, .tool-head, .of-raster, .of-voorbeeld { display: block; margin: 0 !important; padding: 0 !important; max-width: none; position: static; }
  .papier { box-shadow: none; border-radius: 0; padding: 0; font-size: 11pt; }
}

/* ---------- Houtwijzer ---------- */
.hw-spring { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.hw-spring .chip { padding: 6px 14px; font-size: 13px; text-decoration: none; color: var(--ink); }
.hw-blok { margin-top: 26px; scroll-margin-top: 96px; }
.hw-blok > .core { padding: 26px; }
.hw-blok h2 { margin: 0; font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.hw-intro { margin: 10px 0 18px; max-width: 78ch; color: var(--muted); font-size: 15px; }
.hw-tabel td { vertical-align: top; font-size: 14px; }
.hw-tabel td:first-child { white-space: nowrap; }
.hw-tabel a { color: var(--ink); text-underline-offset: 3px; white-space: nowrap; }
.hw-woorden { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 34px; margin: 16px 0 0; }
.hw-woorden > div { padding: 14px 0; border-top: 1px solid var(--line); }
.hw-woorden dt { font-weight: 600; font-size: 15px; }
.hw-woorden dd { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.hw-klein { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.hw-klein a { color: var(--ink); text-underline-offset: 3px; }
.hw-reken { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; margin-bottom: 22px; }
.hw-invoer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hw-invoer .field:first-child { grid-column: 1 / -1; }
.hw-invoer input, .hw-invoer select { width: 100%; }
.hw-uit { padding: 20px; border-radius: 22px; background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); }
.hw-uit p { margin: 0 0 8px; font-size: 14px; }
.hw-groot { font-family: var(--display); font-size: clamp(40px, 6vw, 64px) !important; font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.hw-groot span { font-size: .4em; color: var(--muted); letter-spacing: 0; }
.hw-waarschuwing { margin: 18px 0 0; padding: 14px 18px; border-radius: 16px; font-size: 13px; background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); }
@media (max-width: 860px) {
  .hw-blok > .core { padding: 16px; }
  .hw-woorden, .hw-reken { grid-template-columns: 1fr; }
}

/* ---------- Winkelgids: in de buurt ---------- */
.wg-modus { margin: 22px 0 18px; }
.bu-form { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bu-form input { flex: 1 1 260px; min-width: 0; }
.bu-types { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0 0 0 4px; border: 0; }
.bu-fout { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--up); }
.bu-fout:empty { display: none; }
.bu-status { grid-column: 1 / -1; justify-self: start; }
.bu-km { font-family: var(--mono, monospace); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bu-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; font-size: 13px; }
.bu-links .vl-winkellink { font-weight: 600; }
.wg-samenvatting .status { text-decoration: none; }
.bu-meer { display: block; margin: 22px auto 0; }
.bu-meer[hidden] { display: none; }
#wg-buurt .wg-feiten { border-bottom: 0; padding-bottom: 0; }

/* ---------- Winkelgids ---------- */
.wg-kies { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; padding: 20px; }
.wg-zoek { grid-column: 1 / -1; }
.wg-zoek input { width: 100%; }
.wg-kies .seg { height: 52px; align-items: center; }
.wg-check { margin-left: 4px; }
.wg-aantal { margin: 0; justify-self: end; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wg-lijst { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 26px; align-items: start; }
.wg-lijst > .empty { grid-column: 1 / -1; }
.wg-kaart .core { padding: 22px; }
.wg-kop { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.wg-kop h2 { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.wg-kop .vl-winkellink { font-size: 13px; font-weight: 600; }
.wg-samenvatting { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.wg-samenvatting b { color: var(--ink); font-weight: 600; }
.wg-feiten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; margin: 16px 0 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wg-feiten dt { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.wg-feiten dd { margin: 4px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.wg-onbekend { color: var(--muted); }
.wg-soorten { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 14px 0 0; }
.wg-soorten .chip { padding: 4px 10px; text-decoration: none; }
.wg-soorten .chip:hover { color: var(--ink); }
.wg-meer { font-size: 12px; color: var(--muted); }
.wg-voet { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.wg-voet a { color: inherit; text-underline-offset: 3px; }
@media (max-width: 860px) {
  .wg-kies { grid-template-columns: 1fr; padding: 14px; }
  .wg-aantal { justify-self: start; }
  .wg-lijst { grid-template-columns: 1fr; gap: 16px; }
  .wg-kaart .core { padding: 16px; }
}
@media (max-width: 520px) { .wg-feiten { grid-template-columns: 1fr; } }

.vl-vonk { display: block; width: 100%; height: 30px; margin: 4px 0 2px; overflow: visible; }
.vl-vonk path { fill: none; stroke: var(--serie-1); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.vl-vonk circle { fill: var(--serie-1); }
@media (max-width: 860px) { .vl-knoppen { flex: 1 1 auto; } }

/* ---------- Knoppen in pilvorm: overal één maat, en nooit een pil in een pil ---------- */
:root { --pil: 44px; }
.cta, .zp-plus, .seg button { box-sizing: border-box; height: var(--pil); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none; }
.zp-plus, .seg button { padding: 0 18px; }
.cta, .cta.klein { padding: 0 6px 0 20px; gap: 10px; font-size: 14px; }
.cta-ico { width: 32px; height: 32px; flex: none; }
/* Keuzeknoppen (bijvoorbeeld "Dit jaar / Alles"): losse pillen naast elkaar, de gekozen is gevuld */
.seg { display: inline-flex; flex-wrap: wrap; gap: 8px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.seg button { border: 0; border-radius: 999px; background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); cursor: pointer; }
.seg button:hover { background: var(--surface); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.vl-kies .seg, .wg-kies .seg, .mw-kies { height: auto; border-radius: 0; }
.zp-meer, .bu-meer { display: flex; }
.zp-meer[hidden], .bu-meer[hidden] { display: none; }
.plek-nu .vl-link { margin-left: 10px; }

/* ---------- Keuzelijsten: één eigen pijltje, overal op dezelfde afstand van de rand ----------
   Het pijltje van de browser zelf plakt tegen de afgeronde rand. Daarom tekent de site het zelf:
   --pijl-rand is de afstand tot de rechterrand; de tekst houdt daar vanzelf ruimte voor vrij.
   Andere kleur of vorm? Alleen --keuzepijl aanpassen (de kleur staat erin als stroke='%23…'). */
html, html[data-stijl="warm"] { --keuzepijl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%236a706b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 1.5 6 6l4.5-4.5'/%3E%3C/svg%3E"); }
html[data-stijl="donker"] { --keuzepijl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%238e948c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 1.5 6 6l4.5-4.5'/%3E%3C/svg%3E"); }
:root { --pijl-rand: 20px; --pijl-lucht: 10px; } /* afstand tot de rand, en ruimte tussen tekst en pijltje */
select:not([multiple]):not([size]) { -webkit-appearance: none; appearance: none; background-image: var(--keuzepijl); background-repeat: no-repeat; background-size: 12px 8px; background-position: right var(--pijl-rand) center; padding-right: calc(var(--pijl-rand) + 12px + var(--pijl-lucht)); text-overflow: ellipsis; }
/* Kleine keuzelijsten (in tabellen en regels) zijn minder rond en smal: daar staat het pijltje iets dichter bij de rand */
.plek-straal select, .of-tabel select { --pijl-rand: 12px; }
.of-regel select, .mw-regel select { --pijl-rand: 10px; --pijl-lucht: 6px; }
