/* BLOK — website. Kleuren, maten en hoeken komen uit tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
body { margin: 0; display: flow-root; min-height: 100svh; background: var(--surface); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 27px; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* accentkleur van de pagina: zalm, of de tint van het gekozen model (thema-… op <html>, gezet in site.js; alle kleuren per plank in modellen.css) */
:root { --accent: var(--zalm); --op-accent: var(--on-zalm); --zacht: cubic-bezier(.22, .8, .24, 1); }
.thema-petrol { --accent: var(--petrol); --op-accent: var(--on-petrol); }
.thema-oker { --accent: var(--oker); --op-accent: var(--on-oker); }
.thema-mos { --accent: var(--mos); --op-accent: var(--on-mos); }
.thema-olijf { --accent: var(--olijf); --op-accent: var(--on-olijf); }
.mono { font-family: var(--font-mono); font-size: 12px; font-weight: 500; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }

/* ---------- de kast: het paneelraster ---------- */
.kast {
  --hoek: 72px;                         /* buitenkant: linksboven en rechtsonder */
  --hoek-in: 62px;                      /* elk vak: dezelfde blok-hoek */
  --rand: 10px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 240px;
  grid-template-rows: 180px minmax(0, 1fr);
  grid-template-areas: "kop kop hout" "vlak toon toon";
  gap: var(--rand);
  width: min(100% - 48px, 1360px);
  height: calc(100svh - 48px);
  min-height: 680px;
  max-height: 940px;
  margin: 24px auto;
  padding: var(--rand);
  background: var(--antraciet);
  border-radius: var(--hoek) 0 var(--hoek) 0;
}
/* grote schermen (bv. 4K): de hele kast vergroot evenredig; --z wordt in site.js berekend.
   Breedtes in px, niet in ch: Safari vergroot ch-maten onder zoom te veel. */
.kast.geschaald {
  zoom: var(--z);
  width: min(calc((100vw - 48px) / var(--z)), 1360px);
  height: calc((100svh - 48px) / var(--z));
  max-height: none;
  margin: calc(24px / var(--z)) auto;
}
.paneel { position: relative; min-width: 0; min-height: 0; background: var(--surface-raised); border-radius: var(--hoek-in) 0 var(--hoek-in) 0; overflow: hidden; }
.p-kop { grid-area: kop; }
.p-hout { grid-area: hout; }
.p-vlak { grid-area: vlak; }
.p-toon { grid-area: toon; }

/* kop: woordmerk + menu */
.p-kop { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6); padding: 28px 40px 28px 44px; }
.kop-merk { display: flex; flex-direction: column; gap: var(--space-3); text-decoration: none; }
.kop-merk svg { display: block; height: 64px; width: auto; overflow: visible; } /* punt niet afsnijden aan de rand */
.kop-merk svg path:last-child { transition: fill .35s ease; }
.menu { align-self: flex-start; display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.menu a { font-family: var(--font-mono); font-size: 13px; font-weight: 500; line-height: 20px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.menu a:hover { border-bottom-color: var(--line-strong); }
.menu a[aria-current="page"] { border-bottom-color: var(--accent); transition: border-color .35s ease; }

/* hout: rustige lijst, geen textuur */
.p-hout { display: flex; flex-direction: column; justify-content: space-between; padding: 22px 30px 20px 34px; }
.hout-lijst { display: flex; flex-direction: column; }
.hout-lijst button { display: flex; align-items: center; gap: 12px; height: 30px; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); text-align: left; cursor: pointer; }
.hout-lijst button:last-child { border-bottom: 0; }
.hout-lijst button:hover { color: var(--ink); }
.hout-stip { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.hout-lijst button[aria-pressed="true"] { color: var(--ink); font-weight: 500; }
.hout-lijst button[aria-pressed="true"] .hout-stip { outline: 2px solid var(--ink); outline-offset: 2px; }
.hout-lijst button[aria-pressed="true"]::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transition: background-color .35s ease; }
.merk-groot { position: absolute; inset: 28px; display: grid; place-items: center; }
.merk-groot svg { width: auto; height: 100%; max-width: 100%; }

/* vlak: zalm inhoudstafel + ronde knop in de bocht */
.p-vlak { display: flex; flex-direction: column; padding: 72px 32px 0; background: var(--vlak, var(--zalm)); color: var(--op-vlak, var(--on-zalm)); transition: background-color .35s ease, color .35s ease; }
/* elk model zijn eigen tint; 01 Offset in de hoofdkleur zalm */
.vlak-zalm { --vlak: var(--zalm); --op-vlak: var(--on-zalm); }
.vlak-petrol { --vlak: var(--petrol); --op-vlak: var(--on-petrol); }
.vlak-oker { --vlak: var(--oker); --op-vlak: var(--on-oker); }
.vlak-mos { --vlak: var(--mos); --op-vlak: var(--on-mos); }
.vlak-olijf { --vlak: var(--olijf); --op-vlak: var(--on-olijf); }
.modellen { margin: 0; padding: 0; list-style: none; }
.modellen a { display: flex; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid currentColor; text-decoration: none; transition: padding .55s var(--zacht), border-bottom-width .55s var(--zacht); }
.modellen .nr { transition: font-weight .55s var(--zacht); }
.modellen .nr { font-family: var(--font-mono); font-size: 13px; }
.modellen .naam { font-size: 22px; line-height: 26px; font-weight: 500; letter-spacing: 0; transition: font-size .55s var(--zacht), line-height .55s var(--zacht), font-weight .55s var(--zacht), letter-spacing .55s var(--zacht); }
.modellen a:hover .naam { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.modellen a[aria-current="true"] { padding: 10px 0; border-bottom-width: 1.5px; }
.modellen a[aria-current="true"] .nr { font-weight: 500; }
.modellen a[aria-current="true"] .naam { font-size: 44px; line-height: 46px; font-weight: 800; letter-spacing: -.03em; text-decoration: none; }
/* middelpunt van de knop = middelpunt van de afronding rechtsonder, zoals de punt in het brandmerk */
.rond { position: absolute; right: calc(var(--hoek-in) - 30px); bottom: calc(var(--hoek-in) - 30px); display: grid; place-items: center; width: 60px; height: 60px; padding: 0; border: 0; border-radius: 50%; background: var(--antraciet); color: var(--licht); cursor: pointer; text-decoration: none; }
.rond:hover { background: var(--licht); color: var(--antraciet); }
.rond svg { width: 30px; height: 30px; display: block; }

/* architecturale pijl: lijn met één weerhaak */
.pijl-svg path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: miter; }

/* toon: de viewer */
.p-toon { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: var(--space-4); padding: 28px 40px 36px; }
.bovenrij { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.uitleg { display: flex; align-items: center; flex-wrap: wrap; row-gap: 4px; margin: 0; }
.stip { width: 8px; height: 8px; margin: 0 12px; border-radius: 50%; background: var(--accent); flex: none; transition: background-color .35s ease; }
.pijlen { display: flex; gap: var(--space-2); flex: none; }
.pijl { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 2px solid var(--line-strong); background: transparent; color: var(--ink); border-radius: 14px 0 14px 0; cursor: pointer; }
.pijl:hover { border-color: var(--ink); }
.pijl-vol { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.pijl-vol:hover { background: var(--accent); border-color: var(--accent); color: var(--op-accent); }
.pijl svg { width: 24px; height: 24px; display: block; }
.pijl .pijl-svg path { stroke-width: 1.8; }

.podium { position: relative; display: grid; place-items: center; min-height: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.podium-laag { position: absolute; inset: 0; display: grid; place-items: center; padding: var(--space-2); transition: opacity .45s ease, transform .45s ease; }
.podium-laag .plank-svg, .podium-laag .plank-foto { max-width: 100%; max-height: 100%; width: auto; height: 100%; }
.laag-render { opacity: 0; transform: scale(.985); }
.podium:hover .laag-lijn, .podium.is-echt .laag-lijn { opacity: 0; }
.podium:hover .laag-render, .podium.is-echt .laag-render { opacity: 1; transform: none; }

.plank-omtrek, .plank-gat { fill: none; stroke: var(--ink); stroke-width: .16; }
.plank-nerf path { fill: none; stroke: var(--ink); stroke-opacity: .22; stroke-width: .06; }
.render-nerf path { fill: none; stroke-opacity: .3; stroke-width: .07; }

.toon-onder { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: var(--space-6); }
.model-code { margin: 0 0 8px; }
.schakel:empty { display: none; }
.toon-titel { margin: 0; font-size: 64px; line-height: 60px; font-weight: 800; letter-spacing: -.03em; }
.toon-tekst { margin: 10px 0 0; max-width: 416px; color: var(--ink-muted); }
.toon-rechts { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-3); margin-left: auto; }
.schakel { display: inline-flex; padding: 4px; border-radius: 16px 0 16px 0; background: var(--surface-sunken); }
.schakel button { height: 40px; padding: 0 18px; border: 0; background: transparent; border-radius: 12px 0 12px 0; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); cursor: pointer; }
.schakel button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.schakel button:disabled { color: var(--line-strong); text-decoration: line-through; text-decoration-thickness: 1px; cursor: not-allowed; }
.maten { margin: 0; font-family: var(--font-mono); font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; text-align: right; }
.maten small { display: block; font-size: 11px; color: var(--ink-muted); letter-spacing: .04em; }

/* ---------- tekstpagina's (Over, Contact) ---------- */
.p-toon.tekst { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-8); overflow: auto; padding: 40px 48px 44px; }
.bovenschrift { margin: 0 0 var(--space-3); }
.titel-2 { margin: 0; font-size: 48px; line-height: 50px; font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
.lopend { max-width: 624px; }
.lopend p { margin: var(--space-4) 0 0; }
.lopend .intro { font-size: 20px; line-height: 30px; }
/* over: ons verhaal */
.lopend .bovenschrift + .titel-3 { margin-top: 0; }
.lopend > .titel-3:first-child { margin-top: 0; }
.p-hout.p-foto { position: relative; padding: 0; overflow: hidden; }
.p-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feiten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.feiten li { padding: var(--space-4) var(--space-6); background: var(--surface-sunken); border-radius: 28px 0 28px 0; }
.feiten b { display: block; font-size: 40px; line-height: 44px; font-weight: 500; letter-spacing: -.04em; }
.feiten span { display: block; margin-top: var(--space-2); font-family: var(--font-mono); font-size: 13px; line-height: 19px; color: var(--ink-muted); }
.contactregels { display: grid; gap: var(--space-4); margin: var(--space-8) 0 0; }
.contactregel { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3) var(--space-4); }
.contactregel .mono { width: 124px; }
.contact-waarde { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .06em; color: var(--ink); text-decoration: none; }
a.contact-waarde:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.kopieer { height: 32px; padding: 0 var(--space-3); border: 2px solid var(--line-strong); background: transparent; border-radius: 10px 0 10px 0; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.kopieer:hover { border-color: var(--ink); }
.voet { margin: 0; font-family: var(--font-mono); font-size: 12px; line-height: 16px; color: var(--ink-muted); }

/* ---------- smaller ---------- */
/* tablet: hetzelfde raster, compacter */
@media (max-width: 1100px) {
  .kast { --hoek: 60px; --hoek-in: 50px; grid-template-columns: 230px minmax(0, 1fr) 200px; grid-template-rows: 150px minmax(0, 1fr); width: calc(100% - 32px); height: calc(100svh - 32px); min-height: 620px; max-height: none; margin: 16px auto; }
  .p-kop { padding: 22px 28px 22px 34px; }
  .kop-merk svg { height: 50px; }
  .menu { gap: 18px; }
  .p-hout { padding: 18px 22px 16px 28px; }
  .p-vlak { padding: 56px 24px 0; }
  .p-toon { padding: 22px 28px 28px; }
  .toon-titel { font-size: 48px; line-height: 48px; }
  .modellen a[aria-current="true"] .naam { font-size: 34px; line-height: 38px; }
  .uitleg { font-size: 11px; }
}
@media (max-width: 860px) {
  .kast { grid-template-columns: 200px minmax(0, 1fr) 180px; grid-template-rows: 150px minmax(0, 1fr); }
  .kop-merk .mono { display: none; }
  .stip { margin: 0 8px; }
}
/* telefoon: vakken onder elkaar */
@media (max-width: 700px) {
  .kast {
    --hoek: 44px; --hoek-in: 36px; --rand: 8px;
    width: calc(100% - 24px); height: auto; min-height: 0; max-height: none; margin: 12px auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "kop" "toon" "vlak" "hout";
  }
  .kop-merk .mono { display: block; }
  .uitleg { font-size: 11px; }
  .p-kop { flex-direction: column; align-items: flex-start; padding: 24px 20px 24px 24px; }
  .menu { align-self: stretch; gap: var(--space-4); }
  .kop-merk svg { height: 46px; }
  .p-toon { padding: 20px; }
  .podium { height: 52svh; min-height: 300px; }
  .toon-titel { font-size: 38px; line-height: 40px; }
  .toon-rechts { align-items: flex-start; margin-left: 0; }
  .maten { text-align: left; }
  .p-vlak { padding: 20px 96px 20px 24px; min-height: 200px; }
  .modellen a[aria-current="true"] .naam { font-size: 32px; line-height: 36px; }
  .rond { right: calc(var(--hoek-in) - 30px + 6px); bottom: calc(var(--hoek-in) - 30px + 6px); }
  .p-hout { gap: var(--space-3); padding: 20px 24px; }
  .p-toon.tekst { overflow: visible; padding: 24px; }
  .titel-2 { font-size: 34px; line-height: 38px; }
  .feiten { grid-template-columns: minmax(0, 1fr); }
  .merk-groot { position: static; height: 120px; }
}
/* ---------- onderhoud, vragen, privacy, gegevens, galerij ---------- */
.voet a { color: inherit; }
.titel-3 { margin: var(--space-8) 0 0; font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -.01em; }
.stappen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.stappen li { padding: var(--space-4) var(--space-6) var(--space-6); background: var(--surface-sunken); border-radius: 28px 0 28px 0; }
.stappen h2 { margin: var(--space-2) 0 0; font-size: 20px; line-height: 26px; font-weight: 700; }
.stappen p { margin: var(--space-2) 0 0; font-size: 15px; line-height: 23px; }
.vragen { max-width: 728px; }
.vragen .titel-3 { margin: 0 0 var(--space-3); }
.vragen details { border-top: 1px solid var(--line); }
.vragen details:last-of-type { border-bottom: 1px solid var(--line); }
.vragen summary { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) 0; font-weight: 600; cursor: pointer; list-style: none; }
.vragen summary::-webkit-details-marker { display: none; }
.vragen summary::after { content: "+"; font-family: var(--font-mono); font-weight: 500; color: var(--ink-muted); transition: transform .2s ease; }
.vragen details[open] summary::after { transform: rotate(45deg); }
.vragen details p { margin: 0 0 var(--space-4); color: var(--ink-muted); }
.gegevens { display: grid; gap: var(--space-3); margin: var(--space-8) 0 0; }
.gegevens div { display: flex; flex-wrap: wrap; gap: 0 var(--space-4); }
.gegevens dt { width: 124px; }
.gegevens dd { margin: 0; font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .06em; color: var(--ink); }
.galerij { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.galerij figure { margin: 0; }
.galerij img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px 0 28px 0; background: var(--surface-sunken); }
.galerij figcaption { margin-top: var(--space-2); font-family: var(--font-mono); font-size: 12px; line-height: 16px; color: var(--ink-muted); }
@media (max-width: 1100px) {
  .stappen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .galerij { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .menu { flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
  .stappen, .galerij { grid-template-columns: minmax(0, 1fr); }
}
/* ---------- gsm-bediening planken (strook, vegen, houtsoort onder de plank, bestelbalk); op grote schermen verborgen ---------- */
.strook, .gsm-onder, .bestelbalk { display: none; }
@media (max-width: 700px) {
  #viewer .p-vlak, #viewer .p-hout, #viewer .bovenrij { display: none; }
  #viewer .p-toon { overflow: visible; gap: var(--space-3); padding-top: 12px; }
  .strook { position: sticky; top: 8px; z-index: 20; display: flex; gap: 6px; overflow-x: auto; margin: 0 -8px; padding: 8px; background: var(--vlak, var(--zalm)); border-radius: 22px 0 22px 0; scrollbar-width: none; transition: background-color .35s ease; }
  .strook::-webkit-scrollbar { display: none; }
  .strook a { flex: none; display: inline-flex; align-items: baseline; gap: 6px; padding: 9px 14px; border-radius: 14px 0 14px 0; color: var(--op-vlak, var(--antraciet)); font-size: 16px; font-weight: 600; text-decoration: none; }
  .strook a .nr { font-family: var(--font-mono); font-size: 10px; opacity: .75; }
  .strook a[aria-current="true"] { background: var(--antraciet); color: var(--licht); }
  .podium { height: 42svh; min-height: 260px; touch-action: pan-y; }
  .gsm-onder { display: grid; gap: 10px; justify-items: center; }
  .stippen { display: flex; gap: 6px; }
  .stippen span { width: 6px; height: 6px; border-radius: 3px; background: var(--line-strong); transition: width .3s ease, background-color .3s ease; }
  .stippen span.aan { width: 18px; background: var(--accent); }
  .veeg { margin: 0; font-size: 10px; }
  .hout-rij { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
  .hout-rij button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 9px 0 6px; border: 1.5px solid var(--line); border-radius: 12px 0 12px 0; background: transparent; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--ink); cursor: pointer; }
  .hout-rij .hout-stip { width: 16px; height: 16px; border-radius: 50%; }
  .hout-rij button[aria-pressed="true"] { border-color: var(--ink); background: var(--surface-sunken); }
  .hout-rij button[aria-pressed="true"] .hout-stip { box-shadow: 0 0 0 2px var(--surface-raised), 0 0 0 3.5px var(--accent); }
  .bestelbalk { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; background: var(--antraciet); color: var(--licht); border-radius: 22px 0 22px 0; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
  .bestelbalk b { display: block; font-size: 18px; line-height: 22px; }
  .bestelbalk small { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .03em; opacity: .75; }
  .balk-knop { display: inline-grid; place-items: center; height: 46px; padding: 0 18px; border-radius: 14px 0 14px 0; background: var(--accent); color: var(--op-accent); font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: background-color .35s ease; }
  body:has(#viewer) { padding-bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .podium-laag, .modellen .naam, .modellen a, .modellen .nr, .p-vlak { transition: none; }
}
