:root {
  --oranje: #e8622c;
  --oranje-donker: #c94f1d;
  --inkt: #17191c;
  --grijs: #4a4d52;
  --lijn: #d9d6ce;
  --papier: #fafaf7;
  --wit: #ffffff;
  --zacht: #f1efe9;
  --groen: #2f7d3b;
  --rood: #b42318;
  --radius: 10px;
  --max: 1160px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Archivo Black", "Archivo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--papier);
  color: var(--inkt);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 800; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sectie { padding: 64px 0; }
.sectie.zacht { background: var(--zacht); }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grijs); margin-bottom: 8px; }
.lead { font-size: 1.15rem; color: var(--grijs); max-width: 60ch; }
.klein { font-size: 0.875rem; color: var(--grijs); }

/* Header */
.header { background: var(--oranje); position: sticky; top: 0; z-index: 10; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { font-family: var(--display); font-size: 1.6rem; text-decoration: none; letter-spacing: -0.01em; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav a { text-decoration: none; font-weight: 600; padding: 10px 12px; border-radius: 8px; }
.nav a:hover { background: rgba(23, 25, 28, 0.1); }
.nav .wagen { background: var(--inkt); color: var(--wit); }
.nav .wagen:hover { background: #000; }

/* Knoppen */
.knop {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid var(--inkt); background: var(--inkt); color: var(--wit);
}
.knop:hover { background: #000; }
.knop.licht { background: transparent; color: var(--inkt); }
.knop.licht:hover { background: rgba(23, 25, 28, 0.06); }
.knop.oranje { background: var(--oranje); border-color: var(--oranje); color: var(--inkt); }
.knop.oranje:hover { background: var(--oranje-donker); border-color: var(--oranje-donker); }
.knop[disabled] { opacity: 0.45; cursor: not-allowed; }
.knoppen { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero */
.hero { background: var(--oranje); padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero .lead { color: var(--inkt); }
.hero-kaart { background: var(--papier); border-radius: 14px; padding: 28px; box-shadow: 0 1px 0 rgba(0,0,0,0.08); }
.hero-kaart ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.hero-kaart li { display: flex; gap: 10px; align-items: flex-start; }
.vink { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--inkt); color: var(--wit); display: grid; place-items: center; font-size: 13px; margin-top: 2px; }

/* Raster en kaarten */
.raster { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.raster.twee { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.kaart { background: var(--wit); border: 1px solid var(--lijn); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.kaart .prijs { font-size: 1.4rem; font-weight: 800; }
.kaart .knoppen { margin-top: auto; padding-top: 8px; }
.label { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: var(--zacht); padding: 4px 8px; border-radius: 6px; align-self: flex-start; }
.stap { display: flex; flex-direction: column; gap: 6px; }
.stap .nr { font-family: var(--display); font-size: 2.2rem; color: var(--oranje); line-height: 1; }

/* Configurator */
.config { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: 32px; align-items: start; }
.blok { background: var(--wit); border: 1px solid var(--lijn); border-radius: 14px; padding: 24px; margin-bottom: 20px; }
.blok h2 { font-size: 1.2rem; margin-bottom: 4px; }
.blok > .klein { margin-bottom: 16px; }
.keuzes { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.keuze { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 2px solid var(--lijn); border-radius: var(--radius); cursor: pointer; background: var(--wit); min-height: 44px; }
.keuze:hover { border-color: var(--grijs); }
.keuze input { position: absolute; opacity: 0; pointer-events: none; }
.keuze:has(input:checked) { border-color: var(--inkt); background: #fff7f2; box-shadow: inset 0 0 0 1px var(--inkt); }
.keuze:has(input:focus-visible) { outline: 3px solid var(--oranje); outline-offset: 2px; }
.keuze:has(input:disabled) { opacity: 0.45; cursor: not-allowed; }
.keuze strong { font-weight: 700; }
.keuze span { font-size: 0.875rem; color: var(--grijs); }
.teller { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--zacht); }
.teller:last-child { border-bottom: 0; }
.teller-knoppen { display: flex; align-items: center; gap: 8px; }
.teller-knoppen button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--inkt); background: var(--wit); font: inherit; font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.teller-knoppen button:disabled { opacity: 0.35; cursor: not-allowed; }
.teller-knoppen output { min-width: 28px; text-align: center; font-weight: 800; font-size: 1.15rem; }

.samenvatting { position: sticky; top: 88px; background: var(--wit); border: 2px solid var(--inkt); border-radius: 14px; overflow: hidden; }
.samenvatting-kop { background: var(--inkt); color: var(--wit); padding: 18px 24px; }
.samenvatting-kop h2 { font-size: 1.1rem; margin: 0; }
.samenvatting-body { padding: 20px 24px; display: grid; gap: 16px; }
.regels { width: 100%; border-collapse: collapse; font-size: 0.925rem; }
.regels td { padding: 6px 0; border-bottom: 1px solid var(--zacht); vertical-align: top; }
.regels td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; font-variant-numeric: tabular-nums; }
.totaal { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 1.3rem; }
.melding { padding: 12px 14px; border-radius: 8px; background: #fff4e5; border: 1px solid #f0c48a; font-size: 0.9rem; }
.melding.fout { background: #fdecea; border-color: #f2b8b5; color: var(--rood); }
.melding.goed { background: #ecf6ee; border-color: #b6dcbd; color: var(--groen); }

.inhoudslijst { display: grid; gap: 16px; }
.inhoudslijst h3 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grijs); margin-bottom: 6px; }
.inhoudslijst ul { list-style: none; margin: 0; padding: 0; }
.inhoudslijst li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dotted var(--lijn); font-size: 0.925rem; }
.inhoudslijst li span:last-child { color: var(--grijs); white-space: nowrap; }

/* Formulieren */
.form { display: grid; gap: 16px; }
.form-rij { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.veld { display: flex; flex-direction: column; gap: 6px; }
.veld label { font-weight: 600; font-size: 0.925rem; }
.veld input, .veld select, .veld textarea {
  font: inherit; min-height: 48px; padding: 10px 12px; border: 2px solid var(--lijn); border-radius: 8px; background: var(--wit); color: var(--inkt);
}
.veld textarea { min-height: 120px; resize: vertical; }
.veld input:focus, .veld select:focus, .veld textarea:focus { outline: none; border-color: var(--inkt); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.925rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }

/* Winkelwagen */
.wagenregel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--lijn); }
.wagenregel:first-child { padding-top: 0; }
.wagenregel .acties { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.linkknop { background: none; border: 0; padding: 8px 0; font: inherit; text-decoration: underline; cursor: pointer; color: var(--grijs); min-height: 44px; }

/* Footer */
.footer { background: var(--inkt); color: #d8d6d0; padding: 48px 0; margin-top: 64px; }
.footer a { color: var(--wit); }
.footer .wrap { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer .logo { color: var(--oranje); }

@media (max-width: 860px) {
  .hero .wrap, .config { grid-template-columns: minmax(0, 1fr); }
  .samenvatting { position: static; }
  .header { position: static; }
  .header .wrap { padding-top: 10px; padding-bottom: 10px; }
  .nav a { padding: 8px 10px; font-size: 0.95rem; }
  .sectie { padding: 48px 0; }
}

/* PHP-versie: aanvullingen */
.samenvatting-kop .sub { opacity: 0.8; font-size: 0.9rem; }
.samenvatting details summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.samenvatting details .inhoudslijst { margin-top: 12px; }
.teller-knoppen input { width: 56px; min-height: 44px; text-align: center; font: inherit; font-weight: 800; font-size: 1.15rem; border: 0; background: transparent; -moz-appearance: textfield; }
.teller-knoppen input::-webkit-outer-spin-button, .teller-knoppen input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.js .alleen-zonder-js { display: none; }
.wagenregel form { display: inline-flex; gap: 8px; align-items: center; }
.wagenregel select { min-height: 44px; font: inherit; padding: 0 8px; border-radius: 8px; }
.footer .klein { color: #d8d6d0; }
.laden { opacity: 0.6; transition: opacity 0.15s; }

/* Beheer */
.beheer .sectie { padding: 40px 0; }
.beheer h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.beheer h2 { font-size: 1.3rem; margin-top: 1.5em; }
.beheer .kaart h2 { margin-top: 0; }
.beheer .nav .linkknop { color: var(--inkt); padding: 10px 12px; font-weight: 600; }
.beheer-kaarten { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--lijn); margin-bottom: 24px; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; font-weight: 700; text-decoration: none; color: var(--grijs); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a[aria-current="page"] { color: var(--inkt); border-bottom-color: var(--oranje); }
.teller-klein { font-size: 0.8rem; font-weight: 700; background: var(--zacht); color: var(--inkt); border-radius: 999px; padding: 1px 8px; }
.filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 20px; }
.tabel-scroll { overflow-x: auto; background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--radius); }
.tabel { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 0.925rem; }
.tabel th, .tabel td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--zacht); vertical-align: top; }
.tabel th { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grijs); white-space: nowrap; }
.tabel tbody tr:last-child td { border-bottom: 0; }
.tabel .bericht { min-width: 240px; max-width: 48ch; }
.status { display: inline-block; font-family: var(--font); font-size: 0.8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--zacht); color: var(--inkt); white-space: nowrap; }
.status.goed { background: #ecf6ee; color: var(--groen); }
.status.fout { background: #fdecea; color: var(--rood); }
.bladeren { align-items: center; margin-top: 16px; }
.paklijst { list-style: none; margin: 8px 0 0; padding: 0; max-width: 520px; }
.paklijst li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dotted var(--lijn); font-size: 0.9rem; }
