/* TSPSB webshop — zelfde familie als de bedrijfssite (src/styles/site.css), alleen tokens uit tokens.css. */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--dark); }
body {
  background: var(--dark); color: var(--on-dark);
  font-family: var(--font-body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
main:has(> .vlak:last-child) { display: flex; flex-direction: column; }
main > .vlak:last-child { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; }
h1 { font-size: clamp(40px, 3.9vw, 56px); line-height: 1.06; letter-spacing: -0.022em; text-wrap: balance; }
h2 { font-size: 26px; line-height: 1.15; letter-spacing: -0.015em; }
ul { list-style: none; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.skip {
  position: absolute; left: var(--pad); top: -80px; z-index: 10;
  background: var(--cream); color: var(--on-cream); padding: 10px 14px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 96px; padding: 0 var(--pad);
}
.mark { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.mark img { height: 36px; width: auto; }
.mark small {
  font-size: 12px; line-height: 1.2; color: var(--on-dark-2);
  border-left: 1px solid var(--line-dark); padding-left: 16px;
}
.menu ul { display: flex; align-items: center; gap: 40px; font-size: 15px; color: var(--on-dark-2); }
.menu ul a { transition: color 0.2s; }
.menu ul a:hover, .menu ul a[aria-current] { color: var(--on-dark); }
.menu form { display: flex; }
.menu .link { text-decoration: none; color: var(--on-dark-2); }
.menu .link:hover { color: var(--on-dark); }
.lang { font-size: 13px; letter-spacing: 0.06em; font-weight: 600; color: var(--on-dark); }
.lang span { color: var(--on-dark-2); font-weight: 400; }

/* ---------- knoppen: rood alleen voor de ene hoofdknop ---------- */
.cta {
  display: inline-block; background: var(--red); color: var(--on-red);
  font: 600 16px/1.4 var(--font-body); padding: 16px 28px; border: 0; cursor: pointer;
  transition: background 0.2s;
}
.cta:hover { background: var(--red-press); }
.cta:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.vlak .cta:focus-visible, .beheer .cta:focus-visible, .hero .cta:focus-visible { outline-color: var(--on-cream); }
.knop {
  display: inline-block; background: transparent; color: inherit; cursor: pointer;
  font: 600 16px/1.4 var(--font-body); padding: 14.5px 26.5px; border: 1.5px solid currentColor;
}
.knop:hover { text-decoration: underline; text-underline-offset: 3px; }
.link {
  background: none; border: 0; padding: 0; cursor: pointer; font-size: 15px;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.link:disabled { opacity: 0.35; cursor: default; }
.knoppen { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.terug { display: inline-block; font-size: 15px; color: var(--ink-2); }
.terug:hover { color: var(--on-cream); }

/* ---------- overzicht: rustige lijst met haarlijnen op donker ---------- */
.kop { padding: 88px var(--pad) 56px; }
.lijst { padding: 0 var(--pad); margin-bottom: 64px; }
.lijst li { border-top: 1px solid var(--line-dark); }
.lijst li:last-child { border-bottom: 1px solid var(--line-dark); }
.item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; align-items: baseline;
  padding: 30px 0 34px;
}
.item-naam { font: 700 24px/1.25 var(--font-head); letter-spacing: -0.01em; }
.item:hover .item-naam { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.item-prijs { font-size: 18px; text-align: right; white-space: nowrap; }
.item-prijs small { display: block; font-size: 13px; color: var(--on-dark-2); }
.leeg { padding: 0 var(--pad) 64px; color: var(--on-dark-2); }

/* ---------- productpagina: zandvlak links, foto rechts ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 600px; }
.hero-vol { grid-template-columns: 1fr; min-height: 0; }
.hero-text {
  background: var(--cream); color: var(--on-cream);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 72px 88px 88px var(--pad);
}
.hero-vol .hero-text { padding-top: 64px; }
.hero h1 { margin: 28px 0 22px; max-width: 13em; }
.prijs { font: 700 28px/1.25 var(--font-head); }
.prijs small { font: 400 15px/1.4 var(--font-body); color: var(--ink-2); margin-left: 8px; }
.koop { display: flex; align-items: flex-end; gap: 28px; margin-top: 44px; }
.koop .field { width: 88px; }
.uitverkocht { margin-top: 28px; font-weight: 600; }
.hero .cta { margin-top: 0; }
.hero-text > .cta { margin-top: 44px; }
.photo { position: relative; overflow: hidden; background: var(--dark-2); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.beschrijving { padding: 96px var(--pad) 0; }
.beschrijving p { font-size: 19px; line-height: 1.6; max-width: 36em; text-wrap: pretty; }
.beschrijving p + p { margin-top: 1em; }
.strook { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 32px; padding: 96px var(--pad) 0; }
.strook .photo { aspect-ratio: 4 / 5; }

/* ---------- zandvlak: winkelwagen, afrekenen, status, pagina's ---------- */
.vlak { background: var(--cream); color: var(--on-cream); padding: 88px var(--pad) 112px; }
.vlak h1 { margin-bottom: 44px; }
.vlak h2 { margin-bottom: 28px; }
.vlak .terug { margin-top: 40px; }
.melding {
  border-left: 3px solid currentColor; padding: 8px 0 8px 16px; font-weight: 600;
  margin-bottom: 36px; max-width: 40em;
}
.klein { font-size: 14px; color: var(--ink-2); }
.tekst p { font-size: 18px; line-height: 1.65; max-width: 38em; text-wrap: pretty; }
.tekst p + p { margin-top: 1em; }
.tekst .prijs { margin: 28px 0 36px; }

.regels { border-bottom: 1px solid var(--line-cream); }
.regels li {
  display: grid; align-items: end; column-gap: 32px;
  grid-template-columns: minmax(0, 1fr) 110px 88px 120px 96px;
  padding: 22px 0 24px; border-top: 1px solid var(--line-cream);
}
.regel-naam { font: 700 20px/1.3 var(--font-head); padding-bottom: 10px; }
.regel-naam:hover { text-decoration: underline; text-underline-offset: 4px; }
.regel-prijs, .regel-totaal { text-align: right; padding-bottom: 10px; font-variant-numeric: tabular-nums; }
.regel-prijs { color: var(--ink-2); }
.regel-totaal { font-weight: 600; }
.regel-weg { justify-self: end; padding-bottom: 12px; font-size: 14px; color: var(--ink-2); }

.totalen { max-width: 400px; margin: 28px 0 0 auto; font-variant-numeric: tabular-nums; }
.totalen div { display: flex; justify-content: space-between; gap: 24px; padding: 5px 0; }
.totalen dd { text-align: right; }
.totalen .eind {
  font: 700 21px/1.3 var(--font-head); border-top: 1px solid var(--line-cream);
  margin-top: 10px; padding-top: 16px;
}
.totalen .btw { font-size: 14px; color: var(--ink-2); }
.eind-knoppen { justify-content: flex-end; margin-top: 40px; }
.leeg-wagen { font-size: 18px; }

.kolommen { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); column-gap: 112px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 32px; align-content: start; }
.form h2, .vol { grid-column: 1 / -1; }
.form h2 { margin: 16px 0 -8px; }
.form h2:first-child, .form input[type="hidden"] + h2 { margin-top: 0; }
.overzicht { border-left: 1px solid var(--line-cream); padding-left: 48px; align-self: start; }
.overzicht .totalen { max-width: none; }
.kort li { display: flex; justify-content: space-between; gap: 24px; padding: 10px 0; border-bottom: 1px solid var(--line-cream); }
.kort li span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.status-tekst { font-size: 21px; line-height: 1.5; max-width: 30em; margin-bottom: 12px; }
.vlak .factuur-knop { margin-top: 32px; }
.te-betalen { display: none; }
.status-regels { margin-top: 40px; max-width: 640px; }
.vlak .status-regels + .totalen { margin: 20px 0 0; max-width: 640px; }
.vlak > p + p { margin-top: 12px; }

/* ---------- velden: onderstreept, zoals het contactformulier van de site ---------- */
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  display: block; width: 100%; font: 17px/1.4 var(--font-body); color: var(--on-cream);
  background: transparent; border: 0; border-bottom: 1.5px solid var(--ink-2); border-radius: 0;
  padding: 8px 0 9px;
}
.field input, .field select { height: 44px; }
.field input[type="file"] { height: auto; border-bottom: 0; font-size: 15px; color: var(--ink-2); }
.field input[type="file"]::file-selector-button {
  font: 600 15px/1.4 var(--font-body); color: var(--on-cream); background: transparent; cursor: pointer;
  border: 1.5px solid currentColor; border-radius: 0; padding: 10px 18px; margin-right: 18px;
}
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 24px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-2) 50%),
    linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 10px) 50%, calc(100% - 5px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.field textarea { resize: vertical; min-height: 80px; line-height: 1.55; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--on-cream); outline-offset: 4px; border-bottom-color: var(--on-cream);
}
.fout input, .fout select { border-bottom: 2.5px solid var(--on-cream); }
.veldfout { font-size: 14px; font-weight: 600; margin-top: 8px; }
.vink { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; cursor: pointer; }
.vink input { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; accent-color: var(--dark); }
.vink a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- beheer: zelfde tokens, zandvlak, tabellen met haarlijnen ---------- */
.beheer { background: var(--cream); color: var(--on-cream); padding: 64px var(--pad) 112px; }
.beheer h1 { font-size: 40px; margin-bottom: 32px; }
.beheer h2 { margin: 64px 0 24px; }
.beheer .terug { margin-bottom: 20px; }
.beheer h2 + .klein { margin: -12px 0 28px; }
.beheer .form { max-width: 880px; }
.beheer .form h2 { margin: 24px 0 -8px; }
.kopregel { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-bottom: 36px; }
.kopregel h1 { margin: 0; }
.tabel-wrap { overflow-x: auto; }
.tabel { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabel th {
  text-align: left; font-size: 13px; font-weight: 600; color: var(--ink-2);
  padding: 0 20px 10px 0; border-bottom: 1px solid var(--ink-2); white-space: nowrap;
}
.tabel td { padding: 14px 20px 14px 0; border-bottom: 1px solid var(--line-cream); vertical-align: top; }
.tabel th:last-child, .tabel td:last-child { padding-right: 0; }
.tabel .getal { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabel a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-cream); }
.tabel a:hover { text-decoration-color: currentColor; }
.tabel small { display: block; color: var(--ink-2); font-size: 13px; }
.tabel .som td { font-weight: 700; border-bottom: 0; }
.label { font-size: 12px; font-weight: 700; border: 1.5px solid currentColor; padding: 1px 6px; white-space: nowrap; }
.filter { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 28px; font-size: 15px; color: var(--ink-2); }
.filter a[aria-current] { color: var(--on-cream); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.filter a:hover { color: var(--on-cream); }
.let-op { border: 1.5px solid var(--on-cream); padding: 18px 22px; margin-bottom: 40px; max-width: 48em; }
.let-op p { margin: 4px 0 14px; }
.statusregel { color: var(--ink-2); margin: -16px 0 36px; }
.statusregel strong { color: var(--on-cream); }
.beheer .kolommen h2 { margin-top: 0; }
.adres { display: flex; flex-direction: column; gap: 4px; }
.adres a, .gegevens a { text-decoration: underline; text-underline-offset: 3px; }
.gegevens div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line-cream); font-size: 15px; }
.gegevens dt { color: var(--ink-2); }
.gegevens dd { overflow-wrap: anywhere; }
.ruimte { margin-top: 24px; }
.foto-regel {
  display: grid; grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1fr); gap: 16px 28px; align-items: end;
  padding: 24px 0; border-top: 1px solid var(--line-cream); max-width: 880px;
}
.foto-regel img { width: 160px; aspect-ratio: 4 / 3; object-fit: cover; grid-row: span 2; align-self: start; }
.foto-regel .knoppen { grid-column: 2 / -1; }
.foto-nieuw { margin-top: 32px; }
.beheer .inlog { max-width: 440px; margin: 40px 0 40px; grid-template-columns: 1fr; }
.inlog h1 { margin-bottom: 0; }

/* ---------- footer ---------- */
.footer {
  display: grid; grid-template-columns: 1fr auto; column-gap: 48px; row-gap: 56px; align-items: end;
  padding: 112px var(--pad) 40px;
}
.footer-logo { width: 260px; height: auto; }
.footer address { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--on-dark-2); text-align: right; }
.footer address a { color: var(--on-dark); }
.footer address a:hover, .legal a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal {
  grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px;
  padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: 14px; color: var(--on-dark-2);
}
.legal ul { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.legal-rechts { display: flex; gap: 24px; }
.legal-rechts a { color: var(--on-dark); font-weight: 600; }

/* ---------- smaller dan 1200 ---------- */
@media (max-width: 1200px) {
  .hero-text { padding-right: 56px; }
  .kolommen { column-gap: 64px; }
}

/* ---------- gestapeld (telefoon, kleine tablet) ---------- */
@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav { height: auto; min-height: 68px; padding: 14px var(--pad); flex-wrap: wrap; row-gap: 10px; column-gap: 16px; }
  .mark { gap: 12px; }
  .mark img { height: 28px; }
  .mark small { font-size: 11px; padding-left: 12px; }
  .menu ul { flex-wrap: wrap; gap: 6px 20px; }
  .nav-beheer .menu { width: 100%; }

  h1 { font-size: clamp(32px, 9vw, 44px); }
  h2 { font-size: 22px; }
  .kop { padding: 48px var(--pad) 32px; }
  .item { padding: 22px 0 24px; column-gap: 20px; }
  .item-naam { font-size: 19px; }
  .item-prijs { font-size: 16px; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 40px var(--pad) 48px; }
  .hero h1 { margin: 20px 0 16px; }
  .prijs { font-size: 24px; }
  .koop { margin-top: 32px; gap: 20px; }
  .hero-photo { aspect-ratio: 1 / 1; order: -1; }
  .beschrijving { padding-top: 56px; }
  .beschrijving p { font-size: 17px; }
  .strook { grid-template-columns: 1fr; row-gap: 24px; padding-top: 56px; }

  .vlak { padding: 48px var(--pad) 72px; }
  .vlak h1 { margin-bottom: 28px; }
  .regels li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 10px; column-gap: 16px; padding: 18px 0 20px; }
  .regel-naam { grid-column: 1 / -1; font-size: 18px; padding-bottom: 0; }
  .regel-prijs { display: none; }
  .regel-aantal { width: 88px; }
  .regel-totaal { padding-bottom: 10px; }
  .regel-weg { grid-column: 1 / -1; justify-self: start; padding: 0; }
  .totalen { max-width: none; }
  .eind-knoppen { justify-content: stretch; flex-direction: column-reverse; align-items: stretch; text-align: center; }

  .kolommen { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; gap: 26px; }
  .overzicht { border-left: 0; padding: 32px 0 0; margin-top: 56px; border-top: 1px solid var(--line-cream); }
  .status-tekst { font-size: 18px; }
  .te-betalen {
    display: flex; justify-content: space-between; gap: 16px; margin: 4px 0 20px;
    font: 700 20px/1.3 var(--font-head); font-variant-numeric: tabular-nums;
  }
  .vlak .form .cta { width: 100%; }

  .beheer { padding: 40px var(--pad) 72px; }
  .beheer h1 { font-size: 30px; }
  .beheer h2 { margin-top: 48px; }
  .beheer .kolommen section + section { margin-top: 40px; }
  .gegevens div { grid-template-columns: 1fr; gap: 2px; }
  .foto-regel { grid-template-columns: 1fr; }
  .foto-regel img { grid-row: auto; }
  .foto-regel .knoppen { grid-column: auto; }

  /* tabellen worden stapels: elke rij een blok, kolomkop als label vóór de waarde */
  .tabel thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tabel, .tabel tbody, .tabel tr, .tabel td { display: block; width: 100%; }
  .tabel tr { padding: 14px 0 12px; border-bottom: 1px solid var(--line-cream); }
  .tabel tbody tr:first-child { border-top: 1px solid var(--ink-2); }
  .tabel td { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; border: 0; text-align: right; }
  .tabel td::before { content: attr(data-label); color: var(--ink-2); font-size: 14px; text-align: left; }
  .tabel td:first-child { display: block; text-align: left; padding-bottom: 6px; font-size: 16px; }
  .tabel td:first-child small { display: inline; margin-left: 8px; }
  .tabel tr.voet { display: flex; justify-content: space-between; gap: 16px; }
  .tabel tr.voet td { width: auto; padding: 0; }

  .footer { grid-template-columns: 1fr; row-gap: 32px; padding-top: 72px; }
  .footer-logo { width: 220px; }
  .footer address { text-align: left; }
  .footer address span { overflow-wrap: anywhere; }
  .legal { grid-column: auto; flex-direction: column; }
}

/* ---------- smalle telefoon: winkelkop in één regel ---------- */
@media (max-width: 520px) {
  .nav:not(.nav-beheer) .mark small { display: none; }
  .nav:not(.nav-beheer) .menu ul { gap: 6px 18px; }
}
