/* Mandmaat: alle stijlen. Kleuren en lettertypes staan als variabelen bovenaan; thema's (Groen, Bes, Zon, Hoog contrast)
   overschrijven alleen die variabelen. Licht en donker volgen het systeem. */

/* Lettertypes: van de eigen site (geen verzoeken naar Google, werkt offline). Licenties in app/fonts/. */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 500 800; font-stretch: 75% 100%; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

/* Basis (wat de browser anders zelf zou doen) */
:root { color-scheme: light; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
/* App-scherm: rustige kop, één kolom, grote navigatie onderin op duimhoogte. Gele stickers = korting. */
:root {
  --bg: #f3f4f0;
  --vlak: #ffffff;
  --inkt: #1a1d1a;
  --grijs: #5d655e;
  --lijn: #d9ddd5;
  --accent: #1f5c45;
  --accent-zacht: #e0ece5;
  --op-accent: #ffffff;
  --sticker: #ffd84a;
  --sticker-inkt: #2a2200;
  --toast: #1a1d1a;
  --op-toast: #f3f4f0;
  --toast-knop: #ffd84a;
  --w1: #6b4fa0; --w2: #1d7a86; --w3: #b5562a; --w4: #4d7a2c; --w5: #a03f68; --w6: #46608f;
  --w7: #b0306a; --w8: #7a5a12; --w9: #2b6cb0; --w10: #c2410c;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --tekst: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121513; --vlak: #1b1f1c; --inkt: #e8ece9; --grijs: #a0a9a2; --lijn: #2f3631;
    --accent: #6cc9a4; --accent-zacht: #1f3229; --op-accent: #0d1a14; --sticker: #f5cf3c; --sticker-inkt: #241d00;
    --toast: #e8ece9; --op-toast: #121513; --toast-knop: #1f5c45;
    --w1: #a993d6; --w2: #5cbcc8; --w3: #e39467; --w4: #93c26d; --w5: #dc85ad; --w6: #8ea6d6;
    --w7: #f08ab6; --w8: #d9b25c; --w9: #7fb0e8; --w10: #f59e6b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121513; --vlak: #1b1f1c; --inkt: #e8ece9; --grijs: #a0a9a2; --lijn: #2f3631;
  --accent: #6cc9a4; --accent-zacht: #1f3229; --op-accent: #0d1a14; --sticker: #f5cf3c; --sticker-inkt: #241d00;
  --toast: #e8ece9; --op-toast: #121513; --toast-knop: #1f5c45;
  --w1: #a993d6; --w2: #5cbcc8; --w3: #e39467; --w4: #93c26d; --w5: #dc85ad; --w6: #8ea6d6;
  --w7: #f08ab6; --w8: #d9b25c; --w9: #7fb0e8; --w10: #f59e6b;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { background: var(--bg); color: var(--inkt); font-family: var(--tekst); line-height: 1.45; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--vlak); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.verborgen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg { width: 1.3em; height: 1.3em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Lettergrootte: één knop maakt alles groter */
.schil { --f: 17px; font-size: var(--f); min-height: 100vh; }
.schil.groot { --f: 20px; }
.gutter { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* kop */
.kop { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--vlak); border-bottom: 1px solid var(--lijn); }
.kop-in { max-width: 840px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.merk { font-family: var(--display); font-weight: 800; font-stretch: 85%; font-size: calc(var(--f) * 1.5); letter-spacing: -0.02em; line-height: 1; }
.kop-knop { display: flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--lijn); border-radius: 999px; padding: 6px 12px; font-size: calc(var(--f) * .85); font-weight: 600; color: var(--grijs); min-height: 44px; }
.kop-knop b { font-family: var(--display); font-size: calc(var(--f) * 1.05); color: var(--inkt); }
.kop-knop[aria-pressed="true"] { background: var(--accent-zacht); border-color: var(--accent); color: var(--inkt); }

main { max-width: 840px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 20px calc(110px + env(safe-area-inset-bottom, 0px)); }
h2 { font-family: var(--display); font-weight: 800; font-stretch: 85%; font-size: calc(var(--f) * 1.75); letter-spacing: -0.02em; margin: 0; line-height: 1.05; text-wrap: balance; }
h3 { margin: 0; font-size: calc(var(--f) * 1.05); font-weight: 700; }
.sub { color: var(--grijs); margin: 6px 0 0; }
.paneel { background: var(--vlak); border: 1px solid var(--lijn); border-radius: 16px; }
.label { font-size: calc(var(--f) * .78); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--grijs); }

/* knoppen */
.knop { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--op-accent); border: 0; border-radius: 12px; padding: 12px 18px; font-weight: 700; min-height: 48px; text-decoration: none; }
.knop.tweede { background: var(--accent-zacht); color: var(--accent); }
.knop.geel { background: var(--sticker); color: var(--sticker-inkt); }
.knop.breed { width: 100%; }
.knop:disabled { opacity: .5; cursor: default; }
.tekstknop { background: none; border: 0; padding: 8px 4px; color: var(--accent); font-weight: 700; min-height: 44px; }
.stip { width: .75em; height: .75em; border-radius: 50%; background: var(--wk, var(--grijs)); flex: none; display: inline-block; }

/* welkom */
.welkom { padding: 18px; display: grid; gap: 14px; border-color: var(--accent); }
.welkom ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: stap; }
.welkom li { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; counter-increment: stap; color: var(--grijs); }
.welkom li::before { content: counter(stap); width: 1.8em; height: 1.8em; border-radius: 50%; background: var(--accent); color: var(--op-accent); display: grid; place-items: center; font-weight: 700; font-size: calc(var(--f) * .9); }
.welkom li b { color: var(--inkt); display: block; }

/* toevoegen */
.toevoeg { display: flex; gap: 8px; }
.toevoeg input { flex: 1; min-width: 0; padding: 14px 16px; border: 2px solid var(--lijn); border-radius: 14px; background: var(--vlak); font-size: calc(var(--f) * 1.05); min-height: 56px; }
.toevoeg input:focus { border-color: var(--accent); outline: none; }
.toevoeg .knop { border-radius: 14px; min-height: 56px; padding-inline: 18px; }
.suggesties { display: grid; background: var(--vlak); border: 1px solid var(--lijn); border-radius: 14px; overflow: hidden; margin-top: -8px; }
.sug { display: flex; align-items: center; gap: 12px; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--lijn); padding: 12px 16px; min-height: 52px; font-weight: 500; }
.sug:last-child { border-bottom: 0; }
.sug svg { color: var(--accent); }
.snel { display: grid; gap: 8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--lijn); background: var(--vlak); border-radius: 999px; padding: 8px 14px; font-weight: 600; color: var(--inkt); min-height: 44px; }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-zacht); }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
.chips.scroll .chip { flex: none; }

/* kansbalk */
.kans { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none; color: var(--inkt); background: var(--accent-zacht); border: 1px solid var(--accent); border-radius: 16px; }
.kans span { flex: 1; min-width: 0; }
.kans b { font-weight: 700; }
.kans .pijl { flex: none; color: var(--accent); font-weight: 700; }

/* groepen en items */
.groep { overflow: hidden; }
.groep-kop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 14px 16px; border-bottom: 1px solid var(--lijn); }
.groep-kop h3 { display: flex; align-items: center; gap: 10px; }
.groep-kop .meta { color: var(--grijs); font-size: calc(var(--f) * .88); font-weight: 500; }
.onverdeeld { border-style: dashed; border-width: 2px; }
.uitleg { padding: 12px 16px; display: grid; gap: 10px; border-bottom: 1px solid var(--lijn); background: var(--bg); color: var(--grijs); font-size: calc(var(--f) * .92); }
.items { list-style: none; margin: 0; padding: 0; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--lijn); }
.item:last-child { border-bottom: 0; }
.vink { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; cursor: pointer; min-height: 44px; }
.vink input { width: 1.5em; height: 1.5em; margin: 0; accent-color: var(--accent); grid-row: span 2; cursor: pointer; }
.vink .naam { font-weight: 600; overflow-wrap: anywhere; }
.prijs-regel { color: var(--grijs); font-size: calc(var(--f) * .85); font-variant-numeric: tabular-nums; }
.item.klaar .naam { color: var(--grijs); text-decoration: line-through; font-weight: 500; }
.rechts { display: flex; align-items: center; gap: 4px; }
.weg { background: none; border: 0; color: var(--grijs); width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; }
.weg:hover { color: var(--inkt); background: var(--bg); }
.aantal { font-weight: 700; font-size: calc(var(--f) * 1.1); padding-inline: 8px; }
.tip { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: calc(var(--f) * .85); color: var(--grijs); margin-left: calc(1.5em + 14px); }
.tip-knop { background: none; border: 1px solid var(--lijn); border-radius: 10px; padding: 6px 10px; text-align: left; justify-self: start; min-height: 40px; color: var(--grijs); }
.tip-actie { color: var(--accent); font-weight: 700; }
.sticker { display: inline-block; background: var(--sticker); color: var(--sticker-inkt); font-family: var(--display); font-weight: 800; font-stretch: 82%; font-size: calc(var(--f) * .82); padding: 2px 8px; border-radius: 4px; transform: rotate(-2deg); letter-spacing: .01em; white-space: nowrap; }
.leeg { padding: 22px 18px; color: var(--grijs); display: grid; gap: 6px; }
.leeg b { color: var(--inkt); font-size: calc(var(--f) * 1.1); }
.voet-acties { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; }

/* stapper */
k-stapper { display: inline-flex; align-items: center; border: 1px solid var(--lijn); border-radius: 999px; background: var(--vlak); }
k-stapper button { width: 40px; height: 40px; border: 0; background: none; color: var(--accent); border-radius: 999px; font-size: calc(var(--f) * 1.2); font-weight: 600; }
k-stapper button:disabled { color: var(--grijs); opacity: .35; cursor: default; }
k-stapper output { min-width: 1.6em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* aanbiedingen */
.zoek { width: 100%; padding: 14px 16px; border: 2px solid var(--lijn); border-radius: 14px; background: var(--vlak); min-height: 52px; }
.zoek:focus { border-color: var(--accent); outline: none; }
.melding { color: var(--grijs); border-left: 4px solid var(--sticker); padding: 4px 0 4px 12px; margin: 0; font-size: calc(var(--f) * .88); }
.melding a { color: var(--accent); font-weight: 700; }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.kaart { padding: 16px; display: grid; gap: 10px; align-content: start; }
.kaart .winkel { display: flex; align-items: center; gap: 8px; color: var(--grijs); font-weight: 600; font-size: calc(var(--f) * .85); }
.kaart h4 { margin: 0; font-size: var(--f); font-weight: 600; line-height: 1.3; }
.kaart .sticker { justify-self: start; font-size: calc(var(--f) * .9); }
.prijs { display: flex; align-items: baseline; gap: 10px; }
.prijs strong { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: calc(var(--f) * 1.9); line-height: 1; font-variant-numeric: tabular-nums; }
.prijs s { color: var(--grijs); font-size: calc(var(--f) * .85); font-variant-numeric: tabular-nums; }
.kaart .knop { margin-top: 2px; }

/* vergelijk */
.winnaar { padding: 20px; display: grid; gap: 8px; border: 2px solid var(--accent); }
.winnaar-naam { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-stretch: 85%; font-size: calc(var(--f) * 2); line-height: 1.05; letter-spacing: -0.02em; }
.winnaar-bedrag { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: calc(var(--f) * 2.6); line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.winnaar p { margin: 0 0 6px; color: var(--grijs); }
.splits { padding: 16px; display: grid; gap: 12px; border: 2px solid var(--sticker); }
.splits p { margin: 0; color: var(--grijs); }
.splits b { color: var(--inkt); }
.rang { overflow: hidden; }
.sectie-kop { padding: 14px 16px 6px; }
.rang-rij { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 10px 16px; }
.rang-naam { display: flex; align-items: center; gap: 10px; font-weight: 600; min-width: 0; }
.rang-bedrag { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.rang-bedrag small { display: block; color: var(--grijs); font-weight: 500; font-size: calc(var(--f) * .8); }
.balk { grid-column: 1 / -1; height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.balk span { display: block; height: 100%; background: var(--wk); border-radius: 999px; }
.geen-data { color: var(--grijs); }
.geen-data .rang-naam { font-weight: 500; }
.v-item { border-bottom: 1px solid var(--lijn); padding: 12px 16px; display: grid; gap: 10px; }
.v-item:last-child { border-bottom: 0; }
.v-kop { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; }
.v-kop .naam { font-weight: 600; overflow-wrap: anywhere; }
.v-best { grid-column: 1; color: var(--grijs); font-size: calc(var(--f) * .88); }
.v-best b { color: var(--inkt); }
.v-kop .tekstknop { grid-column: 2; grid-row: 1 / span 2; }
.v-details { list-style: none; margin: 0; padding: 6px 12px; display: grid; background: var(--bg); border-radius: 12px; }
.v-details li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--lijn); }
.v-details li:last-child { border-bottom: 0; }
.v-winkel { font-weight: 700; }
.v-prijs { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.v-prijs small { display: block; color: var(--grijs); font-weight: 500; font-size: calc(var(--f) * .75); }
.v-details .laagst .v-prijs { color: var(--accent); }
.v-product { grid-column: 2 / -1; display: flex; gap: 8px; align-items: center; min-width: 0; }
.v-product select { flex: 1; min-width: 0; width: 100%; padding: 8px; border: 1px solid var(--lijn); border-radius: 10px; background: var(--vlak); font-size: calc(var(--f) * .82); min-height: 40px; }
.v-product a { color: var(--accent); font-weight: 700; font-size: calc(var(--f) * .82); white-space: nowrap; }
.v-product.leeg { color: var(--grijs); padding: 0; }
.klein { color: var(--grijs); font-size: calc(var(--f) * .85); margin: 0; }

/* winkelen */
.winkelen .item { padding-block: 14px; }
.winkelen .vink .naam { font-size: calc(var(--f) * 1.15); }
.voortgang { height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden; margin: 12px 16px; }
.voortgang span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s ease; }
.klaar-melding { padding: 18px; display: grid; gap: 10px; text-align: left; border: 2px solid var(--accent); }

/* kopiëren-paneel */
.kopie { padding: 16px; display: grid; gap: 10px; }
.kopie textarea { width: 100%; min-height: 160px; border: 1px solid var(--lijn); border-radius: 12px; padding: 12px; background: var(--bg); resize: vertical; }

/* navigatie onderin */
.onder { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--vlak); border-top: 1px solid var(--lijn); padding-bottom: env(safe-area-inset-bottom, 0px); }
.onder-in { max-width: 840px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.onder a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 10px 4px 12px; text-decoration: none; color: var(--grijs); font-size: calc(var(--f) * .74); font-weight: 600; min-height: 64px; }
.onder a svg { width: 1.7em; height: 1.7em; font-size: var(--f); }
.onder a[aria-current="page"] { color: var(--accent); }
.onder a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
.onder .tel { position: absolute; top: 6px; left: calc(50% + 6px); background: var(--accent); color: var(--op-accent); font-size: 12px; font-weight: 700; border-radius: 999px; padding: 0 6px; line-height: 18px; min-width: 18px; text-align: center; }

/* melding onderin */
.toast { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(78px + env(safe-area-inset-bottom, 0px)); z-index: 7; max-width: 560px; margin: 0 auto; background: var(--toast); color: var(--op-toast); border-radius: 14px; padding: 10px 10px 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 6px 24px rgb(0 0 0 / .18); }
.toast[hidden] { display: none; }
.toast button { background: none; border: 0; color: var(--toast-knop); font-weight: 700; padding: 8px 10px; min-height: 44px; white-space: nowrap; }

@media (max-width: 460px) { .schil.groot .toevoeg .knop span { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---- versie 3: lege start, eigen lijsten, producttegels ---- */
.start { display: grid; gap: 20px; padding-block: 8px 24px; }
.collage { display: flex; gap: 10px; padding: 6px 2px 4px; }
.collage span { width: 64px; height: 64px; border-radius: 18px; background: var(--vlak); border: 1px solid var(--lijn); display: grid; place-items: center; font-size: 34px; box-shadow: 0 4px 14px rgb(0 0 0 / .06); }
.collage span:nth-child(odd) { transform: rotate(-5deg); }
.collage span:nth-child(even) { transform: rotate(4deg) translateY(6px); }
.collage span:nth-child(3) { background: var(--sticker); border-color: var(--sticker); }
.start h1 { font-family: var(--display); font-weight: 800; font-stretch: 85%; font-size: calc(var(--f) * 2.4); line-height: .98; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
.start .sub { font-size: calc(var(--f) * 1.05); max-width: 34ch; margin: 0; }
.start form { display: grid; gap: 10px; }
.start label, .start-keuze-label { font-weight: 700; }
.veld { width: 100%; padding: 14px 16px; border: 2px solid var(--lijn); border-radius: 14px; background: var(--vlak); min-height: 56px; font-size: calc(var(--f) * 1.05); }
.veld:focus { border-color: var(--accent); outline: none; }
.stappen { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: stap; }
.stappen li { counter-increment: stap; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; color: var(--grijs); }
.stappen li::before { content: counter(stap); width: 1.8em; height: 1.8em; border-radius: 50%; background: var(--accent-zacht); color: var(--accent); display: grid; place-items: center; font-weight: 700; }

/* titel met lijstkeuze */
.titel { display: grid; gap: 2px; }
.titel-knop { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 0; text-align: left; min-width: 0; color: var(--inkt); }
.titel-knop h2 { overflow-wrap: break-word; min-width: 0; font-size: calc(var(--f) * 1.6); }
.titel-knop .pijltje { color: var(--accent); font-size: calc(var(--f) * 1.1); flex: none; }
.titel .meta { color: var(--grijs); font-size: calc(var(--f) * .9); white-space: nowrap; }
.lijsten { padding: 8px; display: grid; gap: 4px; }
.lijst-rij { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px; border-radius: 12px; }
.lijst-rij.actief { background: var(--accent-zacht); }
.lijst-rij > button:first-child { background: none; border: 0; text-align: left; padding: 12px; display: grid; min-height: 52px; color: var(--inkt); }
.lijst-rij b { font-weight: 700; overflow-wrap: anywhere; }
.lijst-rij small { color: var(--grijs); font-size: calc(var(--f) * .82); }
.nieuwe-lijst { display: flex; gap: 8px; padding: 8px 4px 4px; border-top: 1px solid var(--lijn); margin-top: 4px; }
.nieuwe-lijst input { flex: 1; min-width: 0; padding: 10px 12px; border: 2px solid var(--lijn); border-radius: 12px; background: var(--vlak); min-height: 48px; }

/* zoeken en toevoegen */
/* Een vaste plek in de DOM voorkomt dat de zoekbalk bij de eerste letter wordt vervangen. */
.lijst-overzicht { display: contents; }
.lijst-overzicht[hidden] { display: none; }
.zoekbalk { position: relative; }
.zoekbalk svg.vergrootglas { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--grijs); pointer-events: none; }
.zoekbalk input { width: 100%; padding: 14px 16px 14px 48px; border: 2px solid var(--lijn); border-radius: 16px; background: var(--vlak); min-height: 58px; font-size: calc(var(--f) * 1.05); }
.zoekbalk input:focus { border-color: var(--accent); outline: none; }

/* producttegels */
.tegels { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(30%, 104px), 1fr)); gap: 10px; }
.tegel { position: relative; display: grid; justify-items: center; align-content: center; gap: 6px; padding: 14px 6px 12px; min-height: 104px; background: var(--vlak); border: 1px solid var(--lijn); border-radius: 18px; color: var(--inkt); font-weight: 600; font-size: calc(var(--f) * .85); line-height: 1.2; text-align: center; transition: transform .12s ease, background .12s ease; }
.tegel:active { transform: scale(.96); }
.tegel .emoji { font-size: calc(var(--f) * 2); line-height: 1; }
.tegel[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--op-accent); }
.tegel .vinkje { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--op-accent); color: var(--accent); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.tegel.eigen { border-style: dashed; border-width: 2px; color: var(--accent); }
.catalogus { display: grid; gap: 12px; }
.catalogus-kop { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.afd-chip .emoji { font-size: 1.1em; }

/* lijst per afdeling */
.afdeling { overflow: hidden; }
.afd-kop { display: flex; align-items: center; gap: 10px; padding: 12px 16px 8px; font-weight: 700; color: var(--grijs); font-size: calc(var(--f) * .82); letter-spacing: .05em; text-transform: uppercase; }
.afd-kop .emoji { font-size: calc(var(--f) * 1.15); letter-spacing: 0; }
.item { padding-block: 12px; }
.vink { grid-template-columns: auto auto minmax(0, 1fr); column-gap: 12px; }
.vink input { grid-row: span 2; }
.vink .ico { grid-row: span 2; font-size: calc(var(--f) * 1.5); line-height: 1; width: 1.4em; text-align: center; }
.item.klaar .ico { opacity: .45; }
.meta-regel .rechts { margin-left: auto; order: 2; }
.meta-regel .tip-knop, .meta-regel > .sticker { order: 3; }
.meta-regel { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: calc(1.5em + 1.4 * 1.5 * var(--f) + 24px); font-size: calc(var(--f) * .85); color: var(--grijs); }
.pil { appearance: none; -webkit-appearance: none; border: 1px solid var(--lijn); border-left: 6px solid var(--wk, var(--lijn)); background: var(--vlak); border-radius: 999px; padding: 5px 26px 5px 10px; font-weight: 600; font-size: calc(var(--f) * .85); min-height: 44px; color: var(--inkt);
  background-image: linear-gradient(45deg, transparent 50%, var(--grijs) 50%), linear-gradient(135deg, var(--grijs) 50%, transparent 50%);
  background-position: calc(100% - 13px) 55%, calc(100% - 8px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.pil.leeg-pil { border-style: dashed; border-left-width: 1px; color: var(--accent); }
.tip-knop { margin: 0; }
.totaal-regel { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px; }
.totaal-regel span { color: var(--grijs); font-size: calc(var(--f) * .9); }
.totaal-regel strong { font-family: var(--display); font-weight: 800; font-stretch: 85%; font-size: calc(var(--f) * 1.6); font-variant-numeric: tabular-nums; }
.banner { display: grid; gap: 10px; padding: 16px; border: 2px solid var(--sticker); }
.banner p { margin: 0; color: var(--grijs); }
.banner b { color: var(--inkt); }
@media (max-width: 420px) {
  .meta-regel { margin-left: 0; }
  .collage span { width: 56px; height: 56px; font-size: 30px; }
}

/* ---- versie 4: kleurenschema's, tekstmaten, eenvoudige stand, instellingen, winkels in de buurt ---- */
.schil { background: var(--bg); color: var(--inkt); }
.schil.maat-0 { --f: 17px; } .schil.maat-1 { --f: 20px; } .schil.maat-2 { --f: 23px; }
.schil.simpel.maat-0 { --f: 19px; } .schil.simpel.maat-1 { --f: 22px; } .schil.simpel.maat-2 { --f: 25px; }

/* Groen (standaard): frisse muntgrond, diep blad-groen */
.t-groen { --bg: #edf3ee; --vlak: #ffffff; --inkt: #14201a; --grijs: #4f5d55; --lijn: #d3dfd6; --accent: #0b6e45; --accent-zacht: #d5ebdd; --op-accent: #ffffff; --sticker: #ffd23f; --sticker-inkt: #2a2200; --toast: #14201a; --op-toast: #edf3ee; --toast-knop: #ffd23f; }
/* Bes: zacht roze grond, diep framboos */
.t-bes { --bg: #f8f1f4; --vlak: #ffffff; --inkt: #22161b; --grijs: #5f4f56; --lijn: #ead9e0; --accent: #9e1f4c; --accent-zacht: #f6dbe5; --op-accent: #ffffff; --sticker: #ffd23f; --sticker-inkt: #2a2200; --toast: #22161b; --op-toast: #f8f1f4; --toast-knop: #ffd23f; }
/* Zon: warm zandgeel, diep oranje-bruin */
.t-zon { --bg: #faf5e8; --vlak: #ffffff; --inkt: #231a0e; --grijs: #5e5240; --lijn: #e8dcc2; --accent: #8f4500; --accent-zacht: #f6e2c2; --op-accent: #ffffff; --sticker: #ffd23f; --sticker-inkt: #2a2200; --toast: #231a0e; --op-toast: #faf5e8; --toast-knop: #ffd23f; }
/* Hoog contrast: zwart op wit, dikke randen, geel voor nadruk */
.t-contrast { --bg: #ffffff; --vlak: #ffffff; --inkt: #000000; --grijs: #1f1f1f; --lijn: #000000; --accent: #000000; --accent-zacht: #ffe14d; --op-accent: #ffffff; --sticker: #ffe14d; --sticker-inkt: #000000; --toast: #000000; --op-toast: #ffffff; --toast-knop: #ffe14d; }
.t-contrast .paneel, .t-contrast .tegel, .t-contrast .chip, .t-contrast .veld, .t-contrast .zoekbalk input { border-width: 2px; }
.t-contrast .knop.tweede, .t-contrast .chip[aria-pressed="true"] { color: #000; }
.t-contrast .prijs-regel, .t-contrast .klein, .t-contrast .sub { color: var(--inkt); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .t-groen { --bg: #0f1612; --vlak: #17201a; --inkt: #e6efe9; --grijs: #a3b3a8; --lijn: #2a372f; --accent: #5fd3a0; --accent-zacht: #1c3328; --op-accent: #06180f; --sticker: #f5cb35; --sticker-inkt: #241d00; --toast: #e6efe9; --op-toast: #0f1612; --toast-knop: #0b6e45; }
  :root:not([data-theme="light"]) .t-bes { --bg: #161013; --vlak: #20171b; --inkt: #f2e8ec; --grijs: #b9a5ae; --lijn: #3a2b32; --accent: #f28ab0; --accent-zacht: #3d1c29; --op-accent: #2a0816; --sticker: #f5cb35; --sticker-inkt: #241d00; --toast: #f2e8ec; --op-toast: #161013; --toast-knop: #9e1f4c; }
  :root:not([data-theme="light"]) .t-zon { --bg: #15110a; --vlak: #1f1a11; --inkt: #f3ecdf; --grijs: #b9ab92; --lijn: #3a3222; --accent: #f5b35c; --accent-zacht: #3a2a12; --op-accent: #241400; --sticker: #f5cb35; --sticker-inkt: #241d00; --toast: #f3ecdf; --op-toast: #15110a; --toast-knop: #8f4500; }
  :root:not([data-theme="light"]) .t-contrast { --bg: #000000; --vlak: #000000; --inkt: #ffffff; --grijs: #f0f0f0; --lijn: #ffffff; --accent: #ffe14d; --accent-zacht: #333333; --op-accent: #000000; --sticker: #ffe14d; --sticker-inkt: #000000; --toast: #ffffff; --op-toast: #000000; --toast-knop: #000000; }
  :root:not([data-theme="light"]) .t-contrast .knop.tweede, :root:not([data-theme="light"]) .t-contrast .chip[aria-pressed="true"] { color: #ffe14d; }
}
:root[data-theme="dark"] .t-groen { --bg: #0f1612; --vlak: #17201a; --inkt: #e6efe9; --grijs: #a3b3a8; --lijn: #2a372f; --accent: #5fd3a0; --accent-zacht: #1c3328; --op-accent: #06180f; --sticker: #f5cb35; --sticker-inkt: #241d00; --toast: #e6efe9; --op-toast: #0f1612; --toast-knop: #0b6e45; }
:root[data-theme="dark"] .t-bes { --bg: #161013; --vlak: #20171b; --inkt: #f2e8ec; --grijs: #b9a5ae; --lijn: #3a2b32; --accent: #f28ab0; --accent-zacht: #3d1c29; --op-accent: #2a0816; --sticker: #f5cb35; --sticker-inkt: #241d00; --toast: #f2e8ec; --op-toast: #161013; --toast-knop: #9e1f4c; }
:root[data-theme="dark"] .t-zon { --bg: #15110a; --vlak: #1f1a11; --inkt: #f3ecdf; --grijs: #b9ab92; --lijn: #3a3222; --accent: #f5b35c; --accent-zacht: #3a2a12; --op-accent: #241400; --sticker: #f5cb35; --sticker-inkt: #241d00; --toast: #f3ecdf; --op-toast: #15110a; --toast-knop: #8f4500; }
:root[data-theme="dark"] .t-contrast { --bg: #000000; --vlak: #000000; --inkt: #ffffff; --grijs: #f0f0f0; --lijn: #ffffff; --accent: #ffe14d; --accent-zacht: #333333; --op-accent: #000000; --sticker: #ffe14d; --sticker-inkt: #000000; --toast: #ffffff; --op-toast: #000000; --toast-knop: #000000; }
:root[data-theme="dark"] .t-contrast .knop.tweede, :root[data-theme="dark"] .t-contrast .chip[aria-pressed="true"] { color: #ffe14d; }

/* kop: tandwiel met label */
.kop-knop svg { width: 1.2em; height: 1.2em; }
@media (max-width: 480px) { .maat-2 .kop-label, .simpel.maat-1 .kop-label { display: none; } .maat-2 .kop-knop, .simpel.maat-1 .kop-knop { padding: 8px; min-width: 48px; justify-content: center; } }
.toast { flex-wrap: wrap; }
.toast button { margin-left: auto; white-space: normal; text-align: right; }

/* instellingen */
.instellingen { padding: 6px 16px; display: grid; }
.ins-rij { display: grid; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--lijn); }
.ins-rij:last-child { border-bottom: 0; }
.ins-label { font-weight: 700; font-size: calc(var(--f) * 1.05); }
.segment { display: flex; flex-wrap: wrap; gap: 8px; }
.segment button { flex: 1 1 auto; min-height: 48px; padding: 10px 14px; border: 2px solid var(--lijn); background: var(--vlak); border-radius: 12px; font-weight: 600; color: var(--inkt); }
.segment button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-zacht); }
.voorbeeld-tekst { margin: -6px 0 0; color: var(--grijs); padding-bottom: 14px; border-bottom: 1px solid var(--lijn); }
.kleur-keuze { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kleur-staal { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border: 2px solid var(--lijn); border-radius: 12px; background: var(--vlak); color: var(--inkt); font-weight: 600; text-align: left; }
.kleur-staal[aria-pressed="true"] { outline: 3px solid var(--inkt); outline-offset: 1px; }
.staal { display: flex; flex: none; }
.staal i { width: 16px; height: 28px; display: block; border: 1px solid rgb(0 0 0 / .15); }
.staal i:first-child { border-radius: 6px 0 0 6px; background: var(--bg); }
.staal i:nth-child(2) { background: var(--accent); }
.staal i:last-child { border-radius: 0 6px 6px 0; background: var(--sticker); }
.instellingen .kleur-staal.t-groen, .instellingen .kleur-staal.t-bes, .instellingen .kleur-staal.t-zon, .instellingen .kleur-staal.t-contrast { background: var(--vlak); color: var(--inkt); border-color: var(--lijn); }
.belofte { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--grijs); font-size: calc(var(--f) * .85); }
.belofte::before { content: "🔒"; }

/* navigatie met 2 of 4 tabs */
.onder-in { grid-template-columns: repeat(var(--tabs, 4), minmax(0, 1fr)); }
.simpel .onder a { font-size: calc(var(--f) * .8); }
.onder a { font-size: clamp(11px, calc(var(--f) * .74), 15px); }
.onder-in[style*="--tabs: 5"] a { font-size: clamp(11px, calc(var(--f) * .7), 13px); padding-inline: 2px; }
.onder a span:not(.tel) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* eenvoudige stand */
.simpel .tegels { grid-template-columns: repeat(auto-fill, minmax(min(45%, 140px), 1fr)); }
.simpel .tegel { min-height: 130px; font-size: calc(var(--f) * .95); }
.simpel .tegel .emoji { font-size: calc(var(--f) * 2.6); }
.simpel .vink input { width: 1.8em; height: 1.8em; }
.simpel .item { padding-block: 16px; }
.voortgang-tekst { margin: 0 16px 14px; font-weight: 700; }

/* winkels in de buurt */
.winkelen { display: grid; gap: 12px; }
.buurt { padding: 16px; display: grid; gap: 12px; }
.buurt-kop { display: grid; gap: 4px; }
.buurt-kop h3 { display: flex; align-items: center; gap: 8px; }
.buurt-kop h3 svg { color: var(--accent); }
.buurt-lijst { list-style: none; margin: 0; padding: 0; display: grid; }
.buurt-lijst li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--lijn); }
.buurt-naam { display: flex; align-items: center; gap: 10px; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.klein-knop { min-height: 44px; padding: 8px 12px; font-size: calc(var(--f) * .85); border-radius: 10px; }
.klein-knop svg { width: 1.1em; height: 1.1em; }
/* versie 7: rustige regels met afbeelding, details uitklappen */
.beeld { width: 44px; height: 44px; object-fit: contain; flex: none; display: block; }
.item.rij-item { display: block; padding: 0; }
.rij { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; min-height: 64px; }
label.rij { cursor: pointer; }
.vinkbox { width: 1.6em; height: 1.6em; accent-color: var(--accent); flex: none; margin: 0; cursor: pointer; }
.rij-knop { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 4px 0; text-align: left; color: var(--inkt); min-height: 52px; }
.rij-tekst { flex: 1; min-width: 0; display: grid; gap: 2px; }
.rij-tekst .naam { font-weight: 600; overflow-wrap: anywhere; }
.rij-tekst .x { color: var(--accent); font-weight: 700; }
.rij-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--grijs); font-size: calc(var(--f) * .82); }
.actie-tekst { color: var(--accent); font-weight: 600; }
.actie-label { font-size: calc(var(--f) * .7); font-weight: 700; border: 1.5px solid var(--sticker); color: var(--inkt); border-radius: 4px; padding: 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.rij-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.rij-sub .stip { margin-right: 6px; vertical-align: middle; }
.rij-prijs { display: grid; justify-items: end; gap: 4px; text-align: right; font-variant-numeric: tabular-nums; flex: none; }
.rij-prijs b { font-size: calc(var(--f) * 1.05); }
.pijl-open { color: var(--grijs); font-size: 1.5em; line-height: 1; transition: transform .15s ease; flex: none; width: .6em; }
.open .pijl-open { transform: rotate(90deg); }
.item.klaar .beeld { opacity: .45; filter: grayscale(1); }
.item.klaar .rij-tekst .naam { text-decoration: line-through; color: var(--grijs); font-weight: 500; }
.details { padding: 12px 14px 14px; display: grid; gap: 10px; background: var(--bg); border-top: 1px solid var(--lijn); }
.details .klein { margin: 0; }
.details-knoppen { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.samenvatting { padding: 14px 16px; display: grid; gap: 10px; }
.sv-totaal { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sv-totaal span { color: var(--grijs); font-size: calc(var(--f) * .9); }
.sv-totaal strong { font-family: var(--display); font-weight: 800; font-stretch: 85%; font-size: calc(var(--f) * 1.7); font-variant-numeric: tabular-nums; }
.sv-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-decoration: none; color: var(--inkt); padding: 10px 12px; border-radius: 12px; background: var(--accent-zacht); font-size: calc(var(--f) * .92); }
.sv-link .pijl { color: var(--accent); font-weight: 700; white-space: nowrap; }
.afd-kop img { width: 22px; height: 22px; }
.chip-beeld { width: 1.3em; height: 1.3em; }
.tegel .beeld { width: calc(var(--f) * 3.2); height: calc(var(--f) * 3.2); }
.simpel .tegel .beeld { width: calc(var(--f) * 3.6); height: calc(var(--f) * 3.6); }
.collage img { width: 44px; height: 44px; }
.simpel .beeld { width: 52px; height: 52px; }
.simpel .rij { min-height: 76px; }

/* versie 9: terugkomen */
.meter { padding: 14px 16px; display: grid; gap: 10px; border: 2px solid var(--accent); }
.meter-leeg { border-style: dashed; border-width: 2px; }
.meter-kop { display: flex; align-items: center; gap: 8px; }
.meter-kop svg { color: var(--accent); width: 1.4em; height: 1.4em; }
.meter-kop .klein { margin-left: auto; }
.meter-inhoud { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.meter-cijfers { display: flex; gap: 18px; min-width: 0; }
.meter-cijfers div { display: grid; }
.meter-cijfers span { color: var(--grijs); font-size: calc(var(--f) * .8); }
.meter-cijfers strong { font-family: var(--display); font-weight: 800; font-stretch: 85%; font-size: calc(var(--f) * 1.6); line-height: 1.05; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.meter-weken { display: flex; align-items: flex-end; gap: 4px; height: 48px; flex: none; }
.meter-weken span { width: 7px; background: var(--accent); opacity: .45; border-radius: 3px 3px 0 0; }
.meter-weken span.nu { opacity: 1; }
.meter-weken span.nul { background: var(--lijn); opacity: 1; }
.meter .klein { margin: 0; }
.alarm { background: var(--vlak); border: 2px solid var(--sticker); }
.alarm span:first-child { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.alarm svg { color: var(--accent); }
.vast { padding: 14px 0 12px; display: grid; gap: 8px; overflow: hidden; }
.vast-kop .knop { white-space: nowrap; flex: none; }
.vast-kop { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px; }
.vast > .klein { padding: 0 16px; margin: 0; }
.vast-rij { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 6px; scroll-snap-type: x proximity; }
.vast-item { flex: none; width: 96px; display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border: 1px solid var(--lijn); border-radius: 14px; background: var(--vlak); color: var(--inkt); scroll-snap-align: start; text-align: center; }
.vast-item img { width: 40px; height: 40px; }
.vast-naam { font-weight: 600; font-size: calc(var(--f) * .82); line-height: 1.2; overflow-wrap: anywhere; }
.vast-item small { color: var(--grijs); font-size: calc(var(--f) * .7); }
.vast-item.nodig { border: 2px solid var(--accent); background: var(--accent-zacht); }
.vast-item.nodig small { color: var(--accent); font-weight: 700; }
.vast-kop { flex-wrap: wrap; }

/* Een vaste basis voor de volgende boodschappenronde. */
.herhaal-kop { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; text-align: left; }
.herhaal-kop span { flex: none; }
.herhaal-inhoud { display: grid; gap: 12px; }
.herhaal-inhoud[hidden] { display: none; }
.vaste-lijsten { padding: 14px 16px; display: grid; gap: 10px; }
.vaste-lijsten h3, .vaste-lijsten p { margin: 0; }
.vaste-lijsten > .knop { justify-self: start; text-align: left; }
.vaste-lijsten-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vaste-lijsten-rij { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; }
.vaste-lijsten-rij + .vaste-lijsten-rij { border-top: 1px solid var(--lijn); padding-top: 10px; }
.vaste-lijsten-naam { display: grid; min-width: 0; flex: 1 1 140px; overflow-wrap: anywhere; }
.vaste-lijsten-naam small { color: var(--grijs); font-size: calc(var(--f) * .8); }
.vaste-lijsten-acties { display: flex; align-items: center; gap: 6px; max-width: 100%; }
.vaste-lijsten-acties .knop { min-width: 0; white-space: normal; text-align: left; }
.vaste-lijsten-acties .weg { flex: none; }
.vaste-lijsten button:disabled { opacity: .7; cursor: default; }
.vl-naam { display: flex; align-items: center; gap: 8px; }
.vl-naam img { width: 28px; height: 28px; }
.vast-label { font-size: calc(var(--f) * .7); font-weight: 700; color: var(--accent); border: 1px solid var(--accent); border-radius: 4px; padding: 0 5px; text-transform: uppercase; }
.nieuw-label { position: absolute; top: -8px; right: 6px; background: var(--accent); color: var(--op-accent); font-size: 11px; font-weight: 800; border-radius: 999px; padding: 1px 7px; }
.op-lijst-zetten { color: var(--accent); font-weight: 700; font-size: calc(var(--f) * .72); }
.onder .tel.geel { background: var(--sticker); color: var(--sticker-inkt); }
.ronde-besparing { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); }
@media (max-width: 380px) { .meter-weken { display: none; } }

/* versie 10: spel */
.spel-kaart { padding: 16px; display: grid; gap: 12px; }
.spel-kop { display: flex; align-items: center; gap: 12px; }
.spel-kop > img { flex: none; width: 48px; height: 48px; }
.spel-kop h3, .spel-kop-tekst h3 { margin: 0; }
.spel-kop .klein, .spel-kop-tekst .klein { margin: 2px 0 0; }
.spel-kaart > .klein { margin: 0; }
.score { border: 2px solid var(--accent); }
.score-hoofd { display: flex; align-items: center; gap: 16px; }
.score-medaille { width: 76px; height: 76px; flex: none; }
.score-tekst { display: grid; justify-items: start; gap: 2px; }
.score-getal { font-family: var(--display); font-weight: 800; font-stretch: 85%; font-size: calc(var(--f) * 3.2); line-height: .95; font-variant-numeric: tabular-nums; }
.niveau { display: inline-block; font-weight: 800; font-size: calc(var(--f) * .78); text-transform: uppercase; letter-spacing: .06em; padding: 2px 10px; border-radius: 999px; border: 2px solid var(--lijn); color: var(--inkt); background: var(--vlak); }
.niveau.n-goud { background: var(--sticker); border-color: var(--sticker); color: var(--sticker-inkt); }
.niveau.n-zilver { border-color: var(--grijs); }
.niveau.n-brons { border-color: var(--w3); }
.niveau.n-geen { background: var(--accent-zacht); border-color: var(--accent-zacht); color: var(--accent); }
.score-feiten { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.score-feiten li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.score-feiten img { width: 24px; height: 24px; flex: none; }
.score-feiten small { color: var(--grijs); font-weight: 500; }
.uitdagingen { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.uitdagingen li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--lijn); border-radius: 12px; }
.uitdagingen li > img { width: 36px; height: 36px; flex: none; }
.uitdagingen li.klaar { border-color: var(--accent); background: var(--accent-zacht); }
.uitd-tekst { flex: 1; min-width: 0; display: grid; gap: 5px; }
.uitd-tekst b { font-weight: 600; line-height: 1.3; }
.uitd-tekst small { color: var(--grijs); font-variant-numeric: tabular-nums; }
.uitdagingen li.klaar small { color: var(--accent); font-weight: 700; }
.uitd-balk { height: 6px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.uitd-balk span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.vink-rond { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--op-accent); display: grid; place-items: center; font-weight: 800; }
.quiz-start { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.quiz { padding: 18px 16px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.quiz-kop { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.quiz-stippen { display: flex; gap: 6px; }
.quiz-stippen span { width: 30px; height: 6px; border-radius: 999px; background: var(--lijn); }
.quiz-stippen .nu { background: var(--grijs); }
.quiz-stippen .goed { background: var(--accent); }
.quiz-stippen .fout { background: var(--w3); }
.quiz-beeld { width: 96px; height: 96px; }
.quiz h2 { font-size: calc(var(--f) * 1.5); max-width: 22ch; }
.quiz-opties { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quiz-optie { display: grid; gap: 4px; justify-items: center; align-content: center; min-height: 80px; padding: 12px 8px; border: 2px solid var(--lijn); border-top: 6px solid var(--wk); border-radius: 14px; background: var(--vlak); color: var(--inkt); font-weight: 700; font-size: var(--f); }
.quiz-optie:disabled { cursor: default; }
.quiz-optie.goed { border-color: var(--accent); border-top-color: var(--wk); background: var(--accent-zacht); box-shadow: inset 0 0 0 2px var(--accent); }
.quiz-optie.fout { border-color: var(--w3); border-top-color: var(--wk); }
.quiz-prijs { font-family: var(--display); font-weight: 800; font-stretch: 85%; font-size: calc(var(--f) * 1.4); font-variant-numeric: tabular-nums; }
.quiz-product { color: var(--grijs); font-weight: 500; font-size: calc(var(--f) * .72); line-height: 1.25; overflow-wrap: anywhere; }
.quiz-oordeel { margin: 0; font-weight: 800; font-size: calc(var(--f) * 1.15); }
.quiz-oordeel.goed { color: var(--accent); }
.quiz .klein { margin: 0; }
.quiz-klaar h2 { font-size: calc(var(--f) * 2); }
.quiz-klaar p { margin: 0; color: var(--grijs); }
.doel-voorbeelden { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.doel-keuze { display: grid; justify-items: center; gap: 4px; padding: 12px 8px; border: 1px solid var(--lijn); border-radius: 14px; background: var(--vlak); color: var(--inkt); font-weight: 600; text-align: center; min-height: 44px; }
.doel-keuze img { width: 40px; height: 40px; }
.doel-keuze small { color: var(--grijs); font-variant-numeric: tabular-nums; }
.doel-eigen { display: flex; gap: 8px; flex-wrap: wrap; }
.doel-eigen input { flex: 1 1 150px; min-width: 0; padding: 10px 12px; border: 2px solid var(--lijn); border-radius: 12px; background: var(--vlak); min-height: 48px; }
.doel-eigen input[type="number"] { flex: 0 1 120px; }
.doel-eigen input:focus { border-color: var(--accent); outline: none; }
.doel-balk { display: block; height: 14px; background: var(--bg); border: 1px solid var(--lijn); border-radius: 999px; overflow: hidden; }
.doel-balk span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--sticker)); border-radius: 999px; transition: width .5s ease; }
.doel-stand { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.doel-stand span { color: var(--grijs); }
.doel.gehaald { border: 2px solid var(--sticker); }
.equivalent { margin: 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.equivalent img { width: 36px; height: 36px; flex: none; }
.medailles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.medaille { display: grid; justify-items: center; align-content: start; gap: 4px; padding: 12px 6px; border-radius: 14px; border: 1px solid var(--lijn); text-align: center; }
.medaille img { width: 52px; height: 52px; filter: grayscale(1); opacity: .35; }
.medaille b { font-size: calc(var(--f) * .8); line-height: 1.2; }
.medaille small { color: var(--grijs); font-size: calc(var(--f) * .68); line-height: 1.25; }
.medaille.behaald { border-color: var(--sticker); background: var(--vlak); }
.medaille.behaald img { filter: none; opacity: 1; }
.medaille.nieuw { box-shadow: 0 0 0 3px var(--sticker); }
.medaille.nieuw img { animation: pop .6s cubic-bezier(.2, 1.6, .4, 1) both; }
.meter-doel { display: grid; gap: 6px; text-decoration: none; color: var(--inkt); }
.meter-doel-tekst { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: calc(var(--f) * .9); }
.meter-doel-tekst img { width: 24px; height: 24px; }
.meter-doel-tekst b { margin-left: auto; color: var(--accent); font-variant-numeric: tabular-nums; }
.meter-doel .doel-balk { height: 8px; }
.tegel.recept small { color: var(--grijs); font-weight: 500; font-size: calc(var(--f) * .72); }
.tegel.recept[aria-pressed="true"] small { color: var(--op-accent); }

/* uitslag na een ronde */
.blad-achter { position: fixed; inset: 0; z-index: 8; background: rgb(0 0 0 / .45); }
.blad { position: fixed; z-index: 9; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: 460px; max-height: 86vh; margin: 0 auto; overflow-y: auto; background: var(--vlak); color: var(--inkt); border-radius: 22px; padding: 22px 20px 14px; display: grid; justify-items: center; gap: 8px; text-align: center; box-shadow: 0 12px 40px rgb(0 0 0 / .3); }
.uitslag-medaille { width: 104px; height: 104px; }
.uitslag-score { font-family: var(--display); font-weight: 800; font-stretch: 85%; font-size: calc(var(--f) * 4); line-height: .9; margin: 0; font-variant-numeric: tabular-nums; }
.uitslag > p { margin: 0; }
.uitslag-extra { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 8px; width: 100%; text-align: left; }
.uitslag-extra:empty { display: none; }
.uitslag-extra li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--bg); font-weight: 600; }
.uitslag-extra img { width: 28px; height: 28px; flex: none; }
.uitslag .knop { margin-top: 6px; }
.pop { animation: pop .6s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes pop { from { transform: scale(.4) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
.confetti { position: fixed; inset: 0; z-index: 10; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 15px; border-radius: 2px; background: var(--sticker); animation: val 2.2s ease-in forwards; }
.confetti i:nth-child(3n) { background: var(--accent); }
.confetti i:nth-child(3n+1) { background: var(--w7); width: 7px; height: 11px; }
.confetti i:nth-child(1) { left: 5%; animation-delay: 0s; } .confetti i:nth-child(2) { left: 12%; animation-delay: .25s; }
.confetti i:nth-child(3) { left: 19%; animation-delay: .1s; } .confetti i:nth-child(4) { left: 26%; animation-delay: .4s; }
.confetti i:nth-child(5) { left: 33%; animation-delay: .05s; } .confetti i:nth-child(6) { left: 40%; animation-delay: .3s; }
.confetti i:nth-child(7) { left: 47%; animation-delay: .15s; } .confetti i:nth-child(8) { left: 54%; animation-delay: .45s; }
.confetti i:nth-child(9) { left: 61%; animation-delay: .2s; } .confetti i:nth-child(10) { left: 68%; animation-delay: .05s; }
.confetti i:nth-child(11) { left: 75%; animation-delay: .35s; } .confetti i:nth-child(12) { left: 82%; animation-delay: .1s; }
.confetti i:nth-child(13) { left: 89%; animation-delay: .5s; } .confetti i:nth-child(14) { left: 95%; animation-delay: .2s; }
.confetti i:nth-child(15) { left: 8%; animation-delay: .6s; } .confetti i:nth-child(16) { left: 72%; animation-delay: .65s; }
@keyframes val { 0% { transform: translateY(0) rotate(0); opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(105vh) rotate(720deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } .pop, .medaille.nieuw img { animation: none; } }
@media (max-width: 380px) { .medailles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* prijzen van alle winkels naast elkaar */
.prijsrij { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(30%, 104px), 1fr)); gap: 6px; }
.pw { position: relative; display: grid; gap: 2px; justify-items: start; text-align: left; padding: 8px 10px 9px; min-height: 56px; border: 1px solid var(--lijn); border-top: 4px solid var(--wk, var(--lijn)); border-radius: 10px; background: var(--vlak); color: var(--inkt); font-size: calc(var(--f) * .8); }
.pw-naam { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--grijs); min-width: 0; overflow-wrap: anywhere; line-height: 1.2; }
.pw-naam .stip { display: none; }
.pw-prijs { font-weight: 800; font-size: calc(var(--f) * 1.02); font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
.pw-prijs small { font-size: calc(var(--f) * .68); font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.pw.laagste { border-color: var(--accent); border-top-color: var(--wk); box-shadow: inset 0 0 0 1px var(--accent); }
.pw[aria-pressed="true"] { background: var(--accent-zacht); border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.pw[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 4px; right: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--op-accent); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.pw-prijs small.onbekend { color: var(--grijs); text-transform: none; letter-spacing: 0; font-weight: 600; font-size: calc(var(--f) * .75); }
.sticker.mini { font-size: calc(var(--f) * .7); padding: 1px 6px; transform: rotate(-1.5deg); }
.voor-lijst { border: 2px solid var(--sticker); overflow: hidden; }
.voor-lijst .sectie-kop { display: grid; gap: 2px; padding-bottom: 10px; }
.vl-item { padding: 12px 16px; border-top: 1px solid var(--lijn); display: grid; gap: 8px; }
.vl-naam { font-weight: 700; }
@media (max-width: 440px) {
  .buurt-lijst li { grid-template-columns: 1fr 1fr; }
  .buurt-naam { grid-column: 1 / -1; }
  .kleur-keuze { grid-template-columns: minmax(0, 1fr); }
}

/* App op je telefoon: melding zonder internet en de installatierij in Instellingen */
.offline-balk { margin: 0; display: flex; align-items: center; gap: 10px; background: var(--accent-zacht); color: var(--inkt); border-radius: 12px; padding: 10px 14px; font-size: calc(var(--f) * .9); line-height: 1.35; }
.offline-balk svg { color: var(--accent); width: 1.25em; height: 1.25em; }
.app-rij .knop { justify-self: start; }
.app-hulp { margin: 0; line-height: 1.6; }
.app-teken { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 8px; background: var(--accent-zacht); color: var(--accent); font-weight: 700; white-space: nowrap; }
.app-teken svg { width: 1.1em; height: 1.1em; }
.licenties { text-align: center; }
.licenties a { color: var(--grijs); }
