/* Wijnkelder — huisstijl volgens SPEC.md (september 2026).
   Eén letterfamilie voor de hele app, geen serif. Kleuren uit de officiële
   Wit & Rood huisstijl.

   Geen stijlregels in de html zelf: de Content-Security-Policy staat die niet
   toe. Alles wat varieert (breedte van de drinkvensterbalk, kleur van de
   streep) loopt daarom via een klasse. */

:root {
  /* Merkkleuren */
  --goud: #C59012;
  --goud-licht: #DBA31C;
  --inkt: #21272D;
  --inkt-zacht: #2E353C;
  --zand: #EFECD9;
  --zand-donker: #E4E0CB;
  --wit: #FFFFFF;
  --lijn: #DFDBC4;
  --hairline: #EFECDF;
  --grijs: #545B62;
  --grijs-licht: #8A8F94;

  /* Datakleuren voor de wijnsoorten */
  --bordeaux: #7A1F2E;
  --champagne: #D9C083;
  --rose: #D08B93;
  --amber: #8A5A22;
  --onbekend: #B7B2A4;   /* soort niet bekend — nooit een kleur gokken */

  /* Roc Grotesk is de huisstijlletter en komt uit de Adobe Fonts-kit.
     Werkt die kit niet, dan neemt Hanken Grotesk van Google Fonts het over. */
  --letter: 'roc-grotesk', 'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  --kolom: 430px;
  --balkhoogte: 78px;      /* onderbalk met de tabs */
  /* Vaste merkbalk bovenaan: 18px boven + 46px schild + 16px onder + de rand. */
  --merkbalk: 81px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; min-height: 100%; }

body {
  background: var(--zand-donker);
  color: var(--inkt-zacht);
  font-family: var(--letter);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}


input, button, textarea, select { font: inherit; }

a { color: inherit; text-decoration: none; }

/* ---------- Merkbalk ---------- */

.merkbalk {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: var(--merkbalk);
  padding: 18px 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--zand);
  border-bottom: 1px solid var(--lijn);
}

/* Het schild is hoger dan breed (150,8 × 191,21). Bij 46px hoog hoort dus
   36px breed; een vierkant vak zou er lucht naast zetten. */
.merkbalk__schild { width: 36px; height: 46px; display: block; }

.merkbalk__naam {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--inkt);
}

/* ---------- Schermopbouw ---------- */

/* Ruimte voor de vaste merkbalk, maar alleen op schermen die hem hebben.
   Het inlogscherm heeft geen balk en begint dus gewoon bovenaan. */
body.met-merkbalk { padding-top: var(--merkbalk); }
body.met-merkbalk .scherm,
body.met-merkbalk .detail {
  min-height: calc(100vh - var(--merkbalk));
  min-height: calc(100dvh - var(--merkbalk));
}

.scherm {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 26px;
  max-width: var(--kolom);
  margin: 0 auto;
  background: var(--zand);
}


.scherm--gecentreerd { justify-content: center; padding: 40px 32px; }
.scherm--met-balk { padding-bottom: calc(var(--balkhoogte) + 26px); }

/* ---------- Inlogscherm en de andere schermen zonder merkbalk ---------- */

.inlogscherm {
  position: relative;
  overflow: hidden;
  justify-content: center;
  padding: 40px 28px;
}

.merk {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 36px;
}

.merk__schild { width: 66px; height: 66px; display: block; }

.merk__naam {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--inkt);
}

.merk__titel {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--inkt);
}

.merk__onderschrift { font-size: 15px; color: var(--grijs); }

/* Het stijlelement: de vier bogen, rechtsonder, half buiten beeld. */
.stijlelement {
  position: absolute;
  right: -110px;
  bottom: -60px;
  width: 260px;
  height: auto;
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}

/* Op het inlogscherm staan de velden links uitgelijnd onder het gecentreerde
   merkblok. */
.inlogscherm form, .inlogscherm .velden, .inlogscherm .knoprij { text-align: left; }

/* ---------- Koppen ---------- */

.kop {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--inkt);
  margin: 0;
  line-height: 1.15;
}

.kop--klein {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--inkt);
  margin: 0 0 10px;
}

.kop--afstand { margin-top: 28px; }
.inleiding { font-size: 14px; color: var(--grijs); margin: 8px 0 20px; }

.schermkop {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grijs-licht);
}

.meta { font-size: 12px; color: var(--grijs-licht); }
.onderstreept { text-decoration: underline; }

/* ---------- Formulieren ---------- */

.velden { display: flex; flex-direction: column; gap: 14px; }
.velden--twee { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.veld { display: flex; flex-direction: column; gap: 6px; }

.veld__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grijs-licht);
}

.veld__hulp { font-size: 12px; color: var(--grijs-licht); margin: 0; }


.veld__invoer {
  width: 100%;
  background: var(--wit);
  border: 1px solid var(--lijn);
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 16px;
  color: var(--inkt);
  outline: none;
  min-height: 44px;
}
.veld__invoer:focus { border-color: var(--goud); }
textarea.veld__invoer { line-height: 1.5; resize: vertical; }

/* ---------- Knoppen ---------- */

/* Actieknoppen zijn rechthoekig met een lichte ronding, zoals op
   witenrood.nl. Pilvormig zijn alleen de filterchips en de plus- en
   minknoppen. */
.knop {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  min-height: 44px;
}

.knop--primair { background: var(--goud); color: var(--wit); }
.knop--primair:hover { background: var(--goud-licht); }
.knop--secundair { background: var(--inkt); color: var(--wit); }
.knop--rand { background: transparent; border: 1px solid var(--lijn); color: var(--inkt); }
.knop--smal { padding: 12px 16px; font-size: 14px; font-weight: 500; }
.knop--auto { width: auto; }
.knop--bezig { opacity: 0.7; cursor: progress; }

.knoprij { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }

.tekstknop {
  display: block;
  width: 100%;
  background: none;
  border: 0;
  color: var(--grijs);
  font-size: 14px;
  padding: 12px;
  cursor: pointer;
  text-align: center;
}

.hulpregel {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--grijs-licht);
}
.hulpregel a.accent { color: var(--goud); }

.knop-stippel {
  display: block;
  margin-top: 14px;
  padding: 12px;
  border: 1px dashed var(--lijn);
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--inkt);
  cursor: pointer;
  list-style: none;
  min-height: 44px;
  background: none;
  width: 100%;
}
.knop-stippel::-webkit-details-marker { display: none; }
.uitklap[open] .knop-stippel { border-style: solid; margin-bottom: 14px; }
.uitklap .veld { margin-bottom: 12px; }

/* ---------- Meldingen ---------- */

.melding { margin-top: 16px; padding: 12px 14px; border-radius: 12px; font-size: 14px; }

.melding--fout {
  background: #F8EDEE;
  border: 1px solid #E4C7CB;
  color: var(--bordeaux);
}
.melding--klaar { background: var(--wit); border: 1px solid var(--lijn); color: var(--inkt-zacht); }
.meldingen { max-width: var(--kolom); margin: 0 auto; padding: 14px 20px 0; background: var(--zand); }
.meldingen .melding { margin-top: 0; }

.foutlijst { margin: 4px 0 0; padding-left: 18px; font-size: 13px; color: var(--bordeaux); }

/* Verbinding weg. Staat onder de merkbalk en schuift de inhoud niet weg. */
.verbindingsmelding {
  position: fixed;
  top: var(--merkbalk);
  left: 0;
  right: 0;
  z-index: 9;
  margin: 0;
  padding: 10px 20px;
  background: var(--bordeaux);
  color: var(--wit);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}
body:not(.met-merkbalk) .verbindingsmelding { top: 0; }

.voetnoot { margin-top: auto; padding-top: 40px; font-size: 11px; line-height: 1.6; color: var(--grijs); }
.voetnoot a { text-decoration: underline; }

.knop-in-tekst {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- Zoeken en filteren ---------- */

.zoekbalk { margin-bottom: 12px; }

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  border: 1px solid var(--lijn);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--grijs);
  background: transparent;
  white-space: nowrap;
}
.chip--actief { background: var(--inkt); border-color: var(--inkt); color: var(--zand); }

/* ---------- Wijnkaarten ---------- */

.lijst { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }

/* Naar links slepen legt de verwijderknop bloot die eronder ligt. */
.rij { position: relative; border-radius: 14px; overflow: hidden; }

.rij__verwijder {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 104px;
  border: 0;
  background: var(--bordeaux);
  color: var(--wit);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.rij .wijnkaart {
  position: relative;
  transition: transform 0.18s ease;
  will-change: transform;
}

.rij--open .wijnkaart { transform: translateX(-104px); }

@media (prefers-reduced-motion: reduce) {
  .rij .wijnkaart { transition: none; }
}

.wijnkaart {
  display: flex;
  align-items: stretch;
  background: var(--wit);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(26, 24, 21, 0.06);
  min-height: 76px;
}

/* Zonder bekende soort de kleur 'onbekend', geen gegokte wijnkleur. */
.wijnkaart__streep { width: 5px; flex: 0 0 5px; background: var(--onbekend); }
.streep--wit { background: var(--goud); }
.streep--rood { background: var(--bordeaux); }
.streep--rose { background: var(--rose); }
.streep--bubbels { background: var(--champagne); }
.streep--versterkt { background: var(--amber); }

.wijnkaart__foto {
  width: 56px;
  flex: 0 0 56px;
  margin: 10px 0 10px 10px;
  border-radius: 8px;
  background: repeating-linear-gradient(135deg, #F2EFDE, #F2EFDE 5px, #E7E3CD 5px, #E7E3CD 10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 9px ui-monospace, monospace;
  color: #A9A48C;
}

img.wijnkaart__foto { object-fit: cover; }

.wijnkaart__tekst { flex: 1; padding: 12px 10px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }

.wijnkaart__naam {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--inkt);
}

.wijnkaart__meta {
  font-size: 12px;
  color: var(--grijs-licht);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wijnkaart__aantal {
  align-self: center;
  margin-right: 12px;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 999px;
  background: var(--inkt);
  color: var(--zand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}

/* ---------- Lege staat ---------- */

.leeg {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
}
.leeg__tekst {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--inkt);
  line-height: 1.35;
  margin: 0;
}
.leeg .knop { width: auto; min-width: 200px; }

/* ---------- Detailscherm ---------- */

.detail {
  max-width: var(--kolom);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--zand);
}

.detailkop { padding: 20px 20px 22px; background: var(--inkt); color: var(--zand); }
.detailkop__terug { display: inline-block; font-size: 13px; color: var(--grijs-licht); margin-bottom: 16px; }
.detailkop__naam {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0;
}
.detailkop__meta { font-size: 13px; color: var(--grijs-licht); margin: 8px 0 0; }

.detail__blokken { padding: 20px; display: flex; flex-direction: column; gap: 14px; }

.kaart {
  background: var(--wit);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(26, 24, 21, 0.06);
  padding: 18px;
}
.kaart--rij { display: flex; align-items: center; justify-content: space-between; }
.kaart__regel { display: flex; align-items: baseline; justify-content: space-between; margin-top: 6px; }
.kaart__leeg { margin: 6px 0 0; font-size: 14px; color: var(--grijs-licht); }

.getal-groot {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--inkt);
  line-height: 1.1;
  margin-top: 4px;
}
.getal-midden {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--inkt);
  margin-top: 4px;
}
.getal-prijs {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--inkt);
}
.status { font-size: 12px; color: var(--goud); }

/* Een geschat drinkvenster staat er als schatting bij, in grijs. */
.schatting {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--grijs-licht);
  text-transform: none;
}

.telknoppen { display: flex; gap: 10px; }
.telknop {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.telknop--af { border: 1px solid var(--lijn); background: var(--zand); color: var(--inkt); }
.telknop--op { border: 0; background: var(--inkt); color: var(--zand); }
.telknop:disabled { opacity: 0.35; cursor: default; }

.balk { margin-top: 12px; height: 6px; border-radius: 999px; background: var(--zand-donker); overflow: hidden; }
.balk__vulling { display: block; height: 100%; background: var(--goud); border-radius: 999px; }

/* Breedte van de vulling, in stappen van vijf. Zie kern/drinkvenster.py. */
.v-5{width:5%}.v-10{width:10%}.v-15{width:15%}.v-20{width:20%}.v-25{width:25%}
.v-30{width:30%}.v-35{width:35%}.v-40{width:40%}.v-45{width:45%}.v-50{width:50%}
.v-55{width:55%}.v-60{width:60%}.v-65{width:65%}.v-70{width:70%}.v-75{width:75%}
.v-80{width:80%}.v-85{width:85%}.v-90{width:90%}.v-95{width:95%}.v-100{width:100%}

.notitie {
  font-size: 16px;
  font-style: italic;
  color: var(--inkt);
  margin: 8px 0 4px;
  line-height: 1.5;
}

.bron { font-size: 13px; color: var(--grijs); margin: 6px 0 12px; word-break: break-word; }

.veldrijen { margin: 0 0 14px; }
.veldrij {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
}
.veldrij dt { color: var(--grijs-licht); }
.veldrij dd { margin: 0; color: var(--inkt); text-align: right; }

/* ---------- Herkenscherm (SPEC scherm 4) ---------- */

.herkend {
  margin-top: 18px;
  background: var(--wit);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(26, 24, 21, 0.06);
  padding: 18px;
}

.herkend__kop { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

.herkend__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--goud);
}

.herkend__kwaliteit { font-size: 12px; color: var(--grijs-licht); text-align: right; }

/* De wijnnaam is een invoerveld met alleen een hairline eronder. */
.herkend__naam {
  width: 100%;
  margin-top: 8px;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--inkt);
  padding: 4px 0 10px;
  outline: none;
}
.herkend__naam:focus { border-bottom-color: var(--goud); }
.herkend__naam::placeholder { color: var(--grijs-licht); font-weight: 400; }

.herkendrij {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  border-top: 1px solid var(--hairline);
}

.herkendrij__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grijs-licht);
  flex: 0 0 auto;
}

.herkendrij__waarde {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  text-align: right;
  font-size: 15px;
  color: var(--inkt);
  padding: 10px 0;
  outline: none;
  min-height: 44px;
}
.herkendrij__waarde::placeholder { color: var(--grijs-licht); }
.herkendrij__waarde:focus { color: var(--inkt); }

.herkendrij--dubbel { gap: 6px; }
.herkendrij--dubbel .herkendrij__waarde { text-align: right; }
.herkendrij__scheiding { color: var(--grijs-licht); font-size: 14px; }

/* Ondergeschikt: velden die niet in de zes rijen staan maar wel bij de wijn
   horen. Kleiner en gedempt, zodat de hoofdrijen de aandacht houden. */
.herkend__overig { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.herkend__overig .herkendrij { border-top: 0; }
.herkend__overig .herkendrij__label { font-size: 11px; }
.herkend__overig .herkendrij__waarde { font-size: 14px; color: var(--grijs); }
.herkend__overig .herkendrij__waarde:focus { color: var(--inkt); }

/* Aankoopgegevens: horen bij het aantal en de locatie, niet bij de wijn. */
.aankoop {
  margin-top: 10px;
  padding: 4px 16px 8px;
  border-radius: 14px;
  background: var(--wit);
  box-shadow: 0 1px 2px rgba(26, 24, 21, 0.06);
}
.aankoop .herkendrij:first-child { border-top: 0; }

.herkend__onderregel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}

.herkend__bron { font-size: 12px; color: var(--grijs-licht); word-break: break-word; min-width: 0; }
.herkend__bron a { text-decoration: underline; }

.herkend__waarschuwing {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #FAF3DF;
  border: 1px solid #E8DCB2;
  font-size: 13px;
  color: var(--inkt-zacht);
}

.herkend__botsing { font-size: 13px; margin: 10px 0 4px; color: var(--inkt-zacht); }
.herkend__keuzes { margin: 0 0 8px; padding-left: 18px; font-size: 13px; color: var(--inkt-zacht); }

/* Kandidatenpaneel: "Verkeerde wijn" */

.kandidaat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
  width: 100%;
  background: none;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  text-align: left;
  cursor: pointer;
}

.kandidaat__naam { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; color: var(--inkt); }
.kandidaat__meta { font-size: 12px; color: var(--grijs-licht); margin-top: 2px; }
.kandidaat__kies { font-size: 14px; font-weight: 500; color: var(--goud); flex: 0 0 auto; }

/* Aantal flessen: grijze balk met min, getal, plus */

.aantalbalk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--zand-donker);
}

.aantalbalk__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grijs);
}

.aantalbalk__regeling { display: flex; align-items: center; gap: 10px; }

.aantalbalk__getal {
  width: 56px;
  border: 1px solid var(--lijn);
  border-radius: 10px;
  background: var(--wit);
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--inkt);
  padding: 10px 4px;
  min-height: 44px;
  outline: none;
}

/* ---------- Etiket scannen ---------- */

.fotoplek {
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  background: repeating-linear-gradient(135deg, #F2EFDE, #F2EFDE 6px, #E7E3CD 6px, #E7E3CD 12px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
}

.fotoplek__tekst { font: 11px ui-monospace, monospace; color: #A9A48C; }

.bezig {
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  background: var(--inkt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 6px;
}

.bezig .stappen { color: var(--zand); }
.bezig .stap { color: rgba(239, 236, 217, 0.55); }
.bezig .stap--bezig, .bezig .stap--klaar { color: var(--zand); }

/* ---------- Stappen van een scan ---------- */

.stappen {
  list-style: none;
  margin: 14px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.stap {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--grijs-licht);
}

.stap--klaar { color: var(--grijs); }
.stap--bezig { color: var(--inkt); font-weight: 500; }

/* Een open rondje dat vol loopt als de stap klaar is. */
.stap__teken {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  position: relative;
}

.stap--klaar .stap__teken { background: var(--goud); border-color: var(--goud); }

/* Het vinkje, met twee randen getekend zodat er geen plaatje nodig is. */
.stap--klaar .stap__teken::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 1.5px;
  width: 4px;
  height: 8px;
  border: solid var(--wit);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.stap--bezig .stap__teken {
  border-color: var(--goud);
  border-top-color: transparent;
  animation: draaien 0.9s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .stap--bezig .stap__teken { animation-duration: 3s; }
}

.bezig__ring {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid rgba(239, 236, 217, 0.25);   /* zand, sterk doorzichtig */
  border-top-color: var(--goud);
  animation: draaien 0.8s linear infinite;
}

.bezig__tekst { font-size: 14px; color: var(--zand); }

@keyframes draaien { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .bezig__ring { animation-duration: 3s; }
}

/* Het echte bestandsveld is onzichtbaar; het label eroverheen is de knop. */
.verborgen-invoer {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

label.knop { cursor: pointer; }

/* De gemaakte foto op het herkenscherm */
.etiketfoto {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 14px;
  background: var(--zand-donker);
  margin-bottom: 14px;
}

.detailfoto {
  display: block;
  width: 100%;
  border-radius: 14px;
  background: var(--zand-donker);
}

/* ---------- Analyse ---------- */

.onderdeel { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline); }

.onderdeel__kop {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grijs-licht);
  margin-bottom: 8px;
}

.onderdeel__leeg { margin: 0; font-size: 13px; color: var(--grijs-licht); font-style: italic; }

.bevinding { margin-bottom: 12px; }
.bevinding:last-child { margin-bottom: 0; }
.bevinding__tekst { margin: 0; font-size: 14px; color: var(--inkt-zacht); line-height: 1.55; }

.bevinding__voet {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--grijs-licht);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.bevinding__bron { text-decoration: underline; word-break: break-word; }
.bevinding__opmerking { font-style: italic; }

/* Onzeker en inferentie krijgen een markering; bevestigd niet. */
.markering {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grijs-licht);
  border: 1px solid var(--lijn);
  border-radius: 4px;
  padding: 1px 6px;
  cursor: help;
}

/* ---------- Bevestiging bij verwijderen ---------- */

.bevestiging {
  border: 0;
  padding: 24px 20px calc(26px + env(safe-area-inset-bottom));
  margin: auto auto 0;
  width: 100%;
  max-width: var(--kolom);
  background: var(--zand);
  border-radius: 16px 16px 0 0;
  color: var(--inkt-zacht);
  animation: omhoog 0.22s ease-out;
}

.bevestiging::backdrop { background: rgba(33, 39, 45, 0.55); }

@keyframes omhoog {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .bevestiging { animation: none; }
}

.bevestiging__kop {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--inkt);
  margin: 0;
}

.bevestiging__uitleg { font-size: 14px; color: var(--grijs); margin: 10px 0 0; }
.bevestiging .knoprij { margin-top: 20px; }

.knop--gevaar { background: var(--bordeaux); color: var(--wit); }
.knop--gevaar:hover { background: #8E2637; }

/* ---------- Onderbalk ---------- */

.tabbalk { position: fixed; left: 0; right: 0; bottom: 0; }

.tabbalk__binnen {
  max-width: var(--kolom);
  margin: 0 auto;
  display: flex;
  padding: 12px 8px 26px;
  background: rgba(239, 236, 217, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--lijn);
}

.tab {
  flex: 1;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grijs-licht);
  padding: 8px 0;
}
.tab--actief { color: var(--inkt); font-weight: 700; }

/* ---------- Kelder (SPEC scherm 5) ---------- */

.tegels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }

.tegel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 16px 18px;
  border-radius: 14px;
  background: var(--inkt);
  color: var(--zand);
}

.tegel__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grijs-licht);
}

.tegel__getal { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.tegel__getal--leeg { color: var(--grijs-licht); }
.tegel__onder { font-size: 12px; color: var(--grijs-licht); }

.verdeelrij {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
}
.verdeelrij:first-child { border-top: 0; }
.verdeelrij__naam { flex: 1; color: var(--inkt); }
.verdeelrij__aantal { font-weight: 600; color: var(--inkt); }

/* Een soort zonder kleur krijgt de neutrale stip; nooit een kleur gokken. */
.stip {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 999px;
  background: var(--onbekend);
}

/* ---------- Spijsadvies (SPEC scherm 6) ---------- */

.gang { margin-top: 8px; }
.gang__stijl { font-size: 14px; color: var(--grijs); margin: 16px 0 10px; }
.gang__serveren, .gang__bronnen {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--grijs);
  word-break: break-word;
}
.gang__serveren .label, .gang__bronnen .label { margin-right: 6px; }

.advies {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  padding: 16px;
  border-radius: 14px;
  background: var(--wit);
  border: 1px solid var(--lijn);
}

.advies__kop { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

.advies__naam {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--inkt);
  min-width: 0;
}

.advies__label {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--goud);
  text-align: right;
}

.advies__meta { font-size: 12px; color: var(--grijs-licht); }
.advies__tekst { font-size: 14px; color: var(--inkt-zacht); line-height: 1.55; }
/* Een voorwaardelijke valkuil: een kanttekening, geen afkeuring. Daarom
   grijs en niet bordeauxrood zoals het gesloten drinkvenster. */
.advies__letop { font-size: 13px; color: var(--grijs); }
.advies__waarschuwing { font-size: 13px; color: var(--bordeaux); }
.advies__voet { font-size: 12px; color: var(--grijs-licht); }
