:root {
  --navy: #1B365D;
  --navy-deep: #142842;
  --gold: #EFB93A;
  --gold-deep: #C99417;
  --terra: #DC6A4D;
  --terra-dark: #A3432B;
  --ink: #3B3B3B;
  --cream: #FBF5EF;
  --cream-2: #F3EAE0;
  --white: #FFFFFF;
  --muted: #767676;
  --shadow-card: 0 4px 18px -6px rgba(27, 54, 93, .14);
  --shadow-soft: 0 14px 40px -14px rgba(27, 54, 93, .22);
  --radius: 14px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  padding-bottom: 112px;
}
::selection { background: var(--gold); color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 2px; }

.wrap { max-width: 640px; margin: 0 auto; padding: 24px 16px 32px; }
.kop { text-align: center; }
.kop img { width: 200px; height: auto; display: block; margin: 0 auto; mix-blend-mode: multiply; }
h1, h2 { font-family: var(--font-display); color: var(--navy); line-height: 1.12; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 7vw, 2.8rem); margin: 8px 0 8px; }
.em-accent { font-style: italic; font-weight: 500; color: var(--terra); }
.lead { margin: 0 0 24px; color: var(--ink); }

.lijst { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.item {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-card);
  border: 2px solid transparent; transition: border-color .2s ease, background .2s ease;
}
.item.aan { border-color: var(--gold); }
.item-rij {
  display: flex; align-items: center; gap: 16px; padding: 16px; cursor: pointer;
  min-height: 64px;
}
.item-rij input { position: absolute; opacity: 0; pointer-events: none; }
.vink {
  flex: none; width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--navy);
  display: grid; place-items: center; transition: background .2s ease;
}
.vink svg { opacity: 0; transition: opacity .15s ease; }
.item.aan .vink { background: var(--navy); }
.item.aan .vink svg { opacity: 1; }
.item-rij input:focus-visible + .vink { outline: 3px solid var(--gold-deep); outline-offset: 2px; }
.item-naam { flex: 1; font-weight: 600; color: var(--navy); }
.item-prijs { font-weight: 600; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.item.later { box-shadow: none; background: var(--cream-2); }
.item.later .item-rij { cursor: default; }
.item.later .vink { border-color: var(--muted); }
.item.later .item-naam { color: var(--muted); }
.item.later .item-prijs { color: var(--muted); font-weight: 500; font-style: italic; }

.extra { display: none; padding: 0 16px 16px 60px; }
.item.aan .extra { display: grid; gap: 12px; }
.keuzes { display: flex; gap: 8px; flex-wrap: wrap; }
.teller-rij { display: flex; align-items: center; gap: 12px; }
.teller-label { font-size: .9rem; color: var(--muted); }
.teller { display: inline-flex; align-items: center; border: 1.5px solid var(--cream-2); border-radius: 12px; background: var(--cream); }
.teller button {
  width: 44px; height: 40px; border: 0; background: none; color: var(--navy); cursor: pointer;
  display: grid; place-items: center; border-radius: 10px; transition: background .2s ease, color .2s ease;
}
.teller button:hover:not(:disabled) { background: var(--cream-2); }
.teller button:disabled { color: #c9bfb3; cursor: default; }
.aantal { min-width: 28px; text-align: center; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.regel-prijs { margin-left: auto; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.keuze { position: relative; }
.keuze input { position: absolute; opacity: 0; }
.keuze span {
  display: inline-block; padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--cream-2);
  background: var(--cream); font-size: .95rem; cursor: pointer; transition: border-color .2s ease, background .2s ease;
}
.keuze input:checked + span { border-color: var(--navy); background: var(--white); color: var(--navy); font-weight: 600; }
.keuze input:focus-visible + span { outline: 3px solid var(--gold-deep); outline-offset: 2px; }

.nep { text-align: center; color: var(--terra-dark); font-size: .9rem; margin-top: 24px; }

.balk {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: var(--navy-deep); color: var(--white);
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
}
.balk-in { max-width: 640px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.balk-label { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.balk-totaal { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.knop {
  border: 0; border-radius: 12px; background: var(--terra-dark); color: var(--white);
  font: 600 1.05rem var(--font-body); padding: 14px 24px; cursor: pointer; min-height: 48px;
  transition: background .2s ease;
}
.knop:hover:not(:disabled) { background: var(--terra); }
.knop:disabled { background: #4a5a74; color: #b9c2d0; cursor: not-allowed; }
.knop-breed { width: 100%; margin-top: 8px; }
.knop-terug {
  width: 100%; margin-top: 8px; background: none; border: 0; color: var(--navy);
  font: 500 .95rem var(--font-body); padding: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}

.venster-achter {
  position: fixed; inset: 0; z-index: 200; background: rgba(20, 40, 66, .6);
  display: flex; align-items: flex-end; justify-content: center;
}
.venster-achter[hidden] { display: none; }
.venster {
  background: var(--cream); width: 100%; max-width: 480px; border-radius: 20px 20px 0 0;
  padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 20px 60px rgba(0,0,0,.5);
  max-height: 92vh; overflow-y: auto;
}
@media (min-width: 560px) {
  .venster-achter { align-items: center; }
  .venster { border-radius: 20px; }
}
.venster h2 { margin: 0 0 4px; font-size: 1.7rem; }
.venster-sub { margin: 0 0 16px; }
.samenvatting { list-style: none; margin: 0 0 16px; padding: 12px 16px; background: var(--white); border-radius: 12px; font-size: .95rem; }
.samenvatting li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.samenvatting li span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.samenvatting li.som { border-top: 1px solid var(--cream-2); margin-top: 4px; padding-top: 8px; font-weight: 700; color: var(--navy); }
.venster label { display: block; font-weight: 600; color: var(--navy); font-size: .95rem; margin-bottom: 12px; }
.venster input {
  display: block; width: 100%; margin-top: 4px; padding: 12px; font: 400 1rem var(--font-body);
  border: 1.5px solid #d9cdbf; border-radius: 10px; background: var(--white); color: var(--ink);
}
.venster input:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(239,185,58,.35); }
.afhalen { border: 0; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.afhalen legend { font-weight: 600; color: var(--navy); font-size: .95rem; margin-bottom: 8px; padding: 0; }
.venster .afhaal { display: block; margin: 0; cursor: pointer; }
.afhaal input { position: absolute; opacity: 0; }
.afhaal span {
  display: block; padding: 12px 16px 12px 44px; border: 1.5px solid #d9cdbf; border-radius: 12px; background: var(--white);
  font-weight: 400; color: var(--ink); position: relative; transition: border-color .2s ease;
}
.afhaal span::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  border: 2px solid var(--navy); border-radius: 50%; box-sizing: border-box;
}
.afhaal strong { display: block; color: var(--navy); }
.afhaal input:checked + span { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.afhaal input:checked + span::before { border-width: 6px; }
.afhaal input:focus-visible + span { outline: 3px solid var(--gold-deep); outline-offset: 2px; }
.verplicht { margin: -4px 0 8px; font-size: .85rem; color: var(--muted); }
.fout { color: var(--terra-dark); font-size: .95rem; min-height: 1.4em; margin: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
