:root {
  /* Zwart, grijstinten en wit; rood alleen voor de spijkerkruisjes (zoals in de PDF) */
  --bg: #f5f5f5;
  --surface: #ffffff;
  --ink: #111111;
  --muted: #666666;
  --line: #e2e2e2;
  --accent: #111111;
  --accent-hover: #3a3a3a;
  --accent-ink: #ffffff;
  --accent-soft: #ececec;
  --wall: #ebebeb;
  --paper: #ffffff;
  --nail: #d0391e;
  --warn-bg: #efefef;
  --warn: #333333;
  --radius: 14px;
  --header-h: 64px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  /* Systeemfonts met schreef voor koppen; geen externe fonts nodig */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); scrollbar-gutter: stable; }
/* Pagina staat stil zolang de fotoviewer open is */
html:has(dialog[open]) { overflow: hidden; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 20; padding: 8px 14px; border-radius: 8px;
  background: var(--ink); color: var(--bg); text-decoration: none;
}
.skip:focus { top: 12px; }

/* Knoppen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 13px 22px; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink); font-weight: 650; font-size: 16px; text-decoration: none;
  transition: background-color 0.15s, box-shadow 0.15s;
}
.btn:hover { background: var(--accent-hover); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-small { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(245, 245, 245, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.brand-logo { display: block; height: 40px; width: auto; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.eyebrow {
  margin: 0 0 14px; font-size: 13px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}
.hero h1 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 5vw, 58px); line-height: 1.04;
  letter-spacing: -0.02em; margin: 0 0 20px;
}
.lead { font-size: 19px; color: var(--muted); margin: 0 0 30px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points {
  list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-size: 14px; color: var(--muted);
}
.hero-points li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 7px; }

.hero-art {
  margin: 0; padding: 18px 18px 14px; background: var(--wall); border-radius: 20px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 18px 40px rgba(0, 0, 0, 0.08);
}
#hero-art svg { display: block; width: 100%; height: auto; }
.hero-art figcaption { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; color: var(--muted); }
.hero-art figcaption span::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px;
}
.hero-art figcaption span:first-child::before { background: var(--nail); }
.hero-art figcaption span:last-child::before { background: var(--ink); }

/* Hero-illustratie (SVG) */
.paper { fill: var(--paper); }
.paper-shadow { fill: rgba(0, 0, 0, 0.14); }
.paper-seam { fill: none; stroke: #d4d4d4; }
.outline { fill: none; stroke: #444444; }
.outline-inner { fill: none; stroke: #c8c8c8; }
.paper-no { fill: #e3e3e3; font-family: var(--font); font-weight: 700; }
.cross { stroke: var(--nail); fill: none; }
.tape { fill: rgba(200, 200, 200, 0.75); }

/* Secties */
.section { padding: 80px 0; }
.how, .why { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title {
  font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12;
  letter-spacing: -0.015em; margin: 0 0 12px;
}
.section-head { max-width: 720px; }
.section-lead { color: var(--muted); font-size: 18px; margin: 0; }

/* Zo werkt het */
.how-steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.how-step { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.how-icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; margin-bottom: 18px;
  background: var(--accent-soft); color: var(--accent);
}
.how-icon svg { width: 30px; height: 30px; }
.how-step h3 { display: flex; align-items: baseline; gap: 10px; font-size: 19px; margin: 0 0 8px; }
.how-no { font-family: var(--serif); color: var(--muted); font-weight: 600; }
.how-step p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Tool */
.step-title { display: flex; align-items: center; gap: 12px; font-size: 20px; margin: 40px 0 16px; }
.step-no {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--bg); font-size: 15px;
}

/* Seriekeuze */
.series-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.series-card {
  position: relative; display: grid; gap: 10px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.series-card:hover { border-color: var(--muted); }
.series-card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
/* De kiesknop beslaat de hele kaart; fotoknop en IKEA-link liggen erboven (z-index) */
.series-select {
  display: flex; gap: 16px; align-items: center; width: 100%; padding: 0; border: 0; background: none;
  text-align: left; font: inherit; color: inherit; cursor: pointer;
}
.series-select::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.series-select:focus-visible { outline: none; }
.series-select:focus-visible::after { outline: 3px solid var(--accent); outline-offset: 2px; }
.series-art { flex: 0 0 64px; height: 80px; background: var(--wall); border-radius: 8px; padding: 6px; }
.series-art svg { display: block; width: 100%; height: 100%; }
.series-art.has-photo { padding: 0; overflow: hidden; }
.series-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.series-actions {
  position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  padding-left: 80px; font-size: 13px;
}
.series-photos {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600;
}
.series-photos svg { width: 15px; height: 15px; }
.series-photos:hover { border-color: var(--ink); }
.series-photos:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.series-ikea { color: var(--muted); text-underline-offset: 3px; }
.series-ikea:hover { color: var(--ink); }
.series-ikea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.series-body { display: grid; gap: 2px; }
.series-name { font-weight: 650; font-size: 17px; }
.series-desc { color: var(--muted); font-size: 14px; }
.series-meta { font-size: 13px; color: var(--muted); }
.dots { display: flex; gap: 5px; margin-top: 4px; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid; flex: none; }

/* Catalogus */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 16px; }
.chip {
  font: inherit; font-size: 14px; cursor: pointer; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.chip:hover { border-color: var(--muted); }
.chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip-count { opacity: 0.6; margin-left: 2px; }
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column; text-align: left; padding: 0; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; font: inherit; color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
.card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.card-art { background: var(--wall); height: 190px; padding: 12px; }
.card-art svg { display: block; width: 100%; height: 100%; }
.card-body { display: grid; gap: 2px; padding: 14px 16px 16px; }
.card-title { font-weight: 650; font-size: 17px; }
.card-meta { color: var(--muted); font-size: 14px; }
.card-sheets {
  justify-self: start; margin-top: 6px; font-size: 13px; font-weight: 600;
  color: var(--accent); background: var(--accent-soft); padding: 2px 10px; border-radius: 999px;
}

/* Detail */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.stage { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.preview { background: var(--wall); min-height: 260px; padding: 16px; display: grid; align-items: center; }
.preview svg { display: block; width: 100%; height: auto; max-height: 520px; }
.stage-toggles { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 14px 18px; border-top: 1px solid var(--line); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  position: sticky; top: calc(var(--header-h) + 16px);
}
.panel-title { margin: 0; font-size: 22px; }
.panel-sub { margin: 18px 0 6px; font-size: 15px; }
.muted { color: var(--muted); }
#detail-desc { margin: 4px 0 4px; font-size: 15px; }

.field { border: 0; padding: 0; margin: 16px 0 0; }
.field legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.field legend .muted { font-weight: 400; }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--bg); padding: 4px; border-radius: 10px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: block; text-align: center; padding: 7px 8px; border-radius: 7px; font-size: 14px; }
.segmented input:checked + span { background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); font-weight: 600; }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); }

.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.swatch-inner {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-size: 14px;
}
.swatch input:checked + .swatch-inner { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); font-weight: 600; }
.swatch input:focus-visible + .swatch-inner { outline: 2px solid var(--accent); outline-offset: 2px; }
.article { display: block; font-size: 12px; color: var(--muted); margin-left: 32px; }

.format-row { margin-top: 10px; }
.format-row[hidden] { display: none; }
.format-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.select {
  width: 100%; font: inherit; font-size: 14px; padding: 9px 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 0; }
.facts div { background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; font-size: 15px; }

.shopping { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.shopping li { padding: 4px 0; border-bottom: 1px dashed var(--line); }
.shopping .qty { display: inline-block; min-width: 28px; font-weight: 700; }

.download {
  width: 100%; margin-top: 20px; padding: 14px 18px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 650; font-size: 16px;
}
.download:hover { background: var(--accent-hover); }
.download:disabled { opacity: 0.6; cursor: progress; }
.download-secondary {
  width: 100%; margin-top: 8px; padding: 11px 18px; border-radius: 12px; cursor: pointer;
  background: var(--surface); color: var(--accent); border: 1.5px solid var(--accent);
  font: inherit; font-weight: 600; font-size: 15px;
}
.download-secondary[hidden] { display: none; }
.download-secondary:hover { background: var(--accent-soft); }
.download-secondary:disabled { opacity: 0.6; cursor: progress; }
.hint { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.note { font-size: 13px; color: var(--warn); background: var(--warn-bg); border-radius: 10px; padding: 10px 12px; margin: 12px 0 0; }

/* Fotoviewer (lightbox) */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: transparent; color: #ffffff;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.92); }
.lb-figure { margin: 0; display: grid; gap: 14px; justify-items: center; }
/* width/height auto + max-afmetingen: de foto schaalt mee met behoud van verhouding */
.lb-figure img {
  display: block; width: auto; height: auto; max-width: min(88vw, 1100px); max-height: 76vh;
  border-radius: 8px; background: #222222;
}
.lb-caption { color: #e6e6e6; font-size: 15px; text-align: center; }
.lb-count { position: fixed; top: 22px; left: 24px; margin: 0; color: #bdbdbd; font-size: 14px; }
.lb-btn {
  position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); color: #ffffff; font: inherit; font-size: 28px; line-height: 1; cursor: pointer;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.24); }
.lb-btn:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
.lb-btn[hidden], .lb-count[hidden] { display: none; }
.lb-close { top: 14px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* SVG-preview */
.wall { fill: var(--wall); }
.shadow { fill: rgba(0, 0, 0, 0.16); }
.sheet { fill: none; stroke: #4d4d4d; opacity: 0.75; }
.sheet-code { fill: #4d4d4d; font-family: var(--font); font-weight: 600; }
.nail { fill: var(--nail); }
.badge { fill: rgba(255, 255, 255, 0.92); stroke: var(--ink); stroke-width: 2; }
.badge-text { fill: var(--ink); font-family: var(--font); font-weight: 700; }
.dim line { stroke: var(--muted); }
.dim-text { fill: var(--muted); font-family: var(--font); }

/* Waarom */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 36px; margin-top: 40px; }
.why-item { border-top: 2px solid var(--ink); padding-top: 16px; }
.why-item h3 { font-size: 18px; margin: 0 0 6px; }
.why-item p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* FAQ */
.faq-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px; align-items: start; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  position: relative; list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 600; font-size: 17px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--muted); transition: transform 0.15s;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.faq-list details p { margin: 0 0 20px; color: var(--muted); max-width: 62ch; }

/* Privacypagina */
.legal { padding: 64px 0 96px; }
.legal-inner { max-width: 720px; }
.legal h1 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 4.5vw, 48px); line-height: 1.08;
  letter-spacing: -0.015em; margin: 0 0 8px;
}
.legal-meta { margin: 0 0 32px; color: var(--muted); font-size: 14px; }
.legal h2 { font-size: 20px; margin: 36px 0 8px; }
.legal p { margin: 0 0 12px; color: #333333; font-size: 16.5px; max-width: 66ch; }
.legal a { color: var(--ink); text-underline-offset: 3px; }

/* 404-pagina */
/* Schermvullend, zodat de footer (reveal) pas bij scrollen verschijnt en niet half zichtbaar is */
.notfound {
  display: grid; place-items: center; padding: 80px 0; text-align: center;
  min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
}
.notfound-code {
  margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(88px, 14vw, 160px); line-height: 1;
  letter-spacing: -0.03em;
}
.notfound h1 { margin: 8px 0; font-size: 24px; }
.notfound p { margin: 0 0 28px; color: var(--muted); }

/* Footer met reveal-effect: de footer staat al klaar, vast onderin het scherm, achter de pagina.
   main ligt erboven (z-index 1, eigen achtergrond) en schuift er bij het scrollen vanaf. */
main {
  position: relative; z-index: 1; background: var(--bg);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}
.site-footer {
  position: relative; z-index: 0; display: flex;
  min-height: 50vh; min-height: 50svh; padding: 64px 0 40px;
  background: var(--ink); color: #a6a6a6; font-size: 14px;
}
/* Alleen vastzetten als de footer in het scherm past; anders zou de bovenkant onbereikbaar zijn */
@media (min-height: 560px) {
  .site-footer { position: sticky; bottom: 0; }
}
.footer-inner { width: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px 48px; align-items: start; }
.footer-logo { display: block; height: 44px; width: auto; filter: invert(1); } /* zwart logo -> wit */
.footer-brand p { margin: 14px 0 0; }
.footer-nav { display: grid; gap: 10px; justify-items: start; }
.footer-nav a { color: #ffffff; text-decoration: none; font-size: 15px; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-nav a:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px;
  padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.disclaimer, .copyright { margin: 0; font-size: 13px; color: #8c8c8c; }
.disclaimer { max-width: 62ch; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 620px; }
  .how-steps { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-inner { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 860px) {
  .detail-grid { grid-template-columns: 1fr; }
  .panel { position: static; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .header-inner .btn-small { margin-left: auto; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .series-picker { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 36px 0 48px; }
  .lead { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .section { padding: 56px 0; }
  .section-lead { font-size: 16px; }
  .brand-logo { height: 36px; }
  .hero-art { padding: 12px 12px 10px; border-radius: 16px; }
  .lb-btn { width: 40px; height: 40px; font-size: 24px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}
