/* Ons Kookboek — stijl Avondtafel: donker, warm, sierlijke koppen, saffraan als accent. */

:root {
  --bg: #15130F;
  --bg-diep: #0F0E0B;
  --vlak: #1D1A16;
  --kaart: #24211B;
  --kaart-hover: #2B2720;
  --lijn: rgba(243, 237, 226, 0.14);
  --lijn-zacht: rgba(243, 237, 226, 0.08);
  --tekst: #F3EDE2;
  --gedempt: #A89F8F;
  --saffraan: #E9A93A;
  --saffraan-licht: #F3C26A;
  --saffraan-zacht: rgba(233, 169, 58, 0.13);
  --fout: #EE8468;
  --goed: #9CC48A;
  --schaduw: 0 18px 40px rgba(0, 0, 0, 0.45);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --rand: 22px;
  --boven: env(safe-area-inset-top, 0px);
  --onder: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--tekst);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--saffraan); text-decoration: none; }
a:hover { color: var(--saffraan-licht); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--saffraan); outline-offset: 2px; }
.verborgen { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#app {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100dvh;
  position: relative;
}
@media (min-width: 560px) {
  body { background: #0B0A08; }
  #app { background: var(--bg); box-shadow: 0 0 0 1px var(--lijn-zacht); }
}

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic.vol { fill: currentColor; stroke: none; }

/* ---------- Schermen ---------- */
.scherm { padding: calc(var(--boven) + 20px) 22px calc(var(--onder) + 120px); display: flex; flex-direction: column; gap: 26px; }
.scherm.zonder-nav { padding-bottom: calc(var(--onder) + 40px); }
.kop { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.woordmerk { font-family: var(--serif); font-style: italic; font-size: 23px; line-height: 1; color: var(--tekst); }
.kop-knoppen { display: flex; gap: 8px; }

.titel-groot { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 13vw, 54px); line-height: 0.98; letter-spacing: -0.01em; text-wrap: balance; }
.titel-groot em { color: var(--saffraan); }
.titel { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.05; text-wrap: balance; }
.sectiekop { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--lijn); }
.sectiekop h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.1; }
.sectiekop a, .sectiekop button.link { font-size: 14px; font-weight: 600; }
.bovenschrift { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gedempt); }
.gedempt { color: var(--gedempt); }
.klein { font-size: 14px; }

/* ---------- Knoppen ---------- */
.knop {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 18px; border: 0;
  background: var(--saffraan); color: #15130F; font-size: 16px; font-weight: 700; text-decoration: none;
  transition: transform 0.12s ease, background 0.15s ease;
}
.knop:hover { background: var(--saffraan-licht); color: #15130F; }
.knop:active { transform: scale(0.98); }
.knop[disabled] { opacity: 0.5; pointer-events: none; }
.knop.breed { width: 100%; }
.knop.groot { min-height: 58px; font-size: 17px; }
.knop.licht { background: var(--tekst); color: #15130F; }
.knop.omlijnd { background: transparent; color: var(--tekst); box-shadow: inset 0 0 0 1px var(--lijn); }
.knop.omlijnd:hover { background: var(--lijn-zacht); }
.knop.stil { background: transparent; color: var(--tekst); }
.knop.stil:hover { background: var(--lijn-zacht); }
.knop.gevaar { background: transparent; color: var(--fout); box-shadow: inset 0 0 0 1px rgba(238, 132, 104, 0.4); }
.knop.klein { min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 14px; }
.knop.tonaal { background: var(--kaart); color: var(--tekst); }
.knop.tonaal:hover { background: var(--kaart-hover); color: var(--tekst); }

.rondknop {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--lijn); background: transparent; color: var(--tekst);
}
.rondknop:hover { background: var(--lijn-zacht); color: var(--tekst); }
.rondknop.zwevend { border: 0; background: rgba(21, 19, 15, 0.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.rondknop.vol { border: 0; background: var(--saffraan); color: #15130F; }

.link { background: none; border: 0; padding: 0; color: var(--saffraan); font-weight: 600; min-height: 44px; }

/* ---------- Toevoegen-kaart op de start ---------- */
.plakkaart { display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1px solid var(--lijn); border-radius: 22px; }
.plakkaart p { margin: 0; color: var(--gedempt); font-size: 15px; }
.plakkaart .rij { display: flex; gap: 10px; }
.plakkaart .rij .knop { flex: 1 1 auto; padding: 0 14px; white-space: nowrap; }

/* ---------- Lopende imports ---------- */
.imports { display: flex; flex-direction: column; gap: 10px; }
.importkaart { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 20px; background: var(--kaart); color: var(--tekst); text-decoration: none; }
.importkaart:hover { background: var(--kaart-hover); color: var(--tekst); }
.importkaart .duim { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; flex: none; background: var(--vlak); }
.importkaart .duim img, .importkaart .duim svg { width: 100%; height: 100%; object-fit: cover; }
.importkaart .tekst { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.importkaart strong { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.importkaart span { font-size: 13px; color: var(--gedempt); }
.importkaart.klaar span { color: var(--saffraan); }
.importkaart.fout span { color: var(--fout); }

/* ---------- Uitgelicht recept ---------- */
.uitgelicht { display: flex; flex-direction: column; gap: 14px; color: var(--tekst); text-decoration: none; }
.uitgelicht:hover { color: var(--tekst); }
.uitgelicht .beeld { position: relative; height: 300px; border-radius: 28px; overflow: hidden; background: var(--vlak); }
.uitgelicht .beeld img, .uitgelicht .beeld svg { width: 100%; height: 100%; object-fit: cover; }
.label-op-beeld { position: absolute; left: 16px; top: 16px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(21, 19, 15, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tekst); }
.uitgelicht h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.05; text-wrap: balance; }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -22px; padding: 2px 22px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--lijn); background: transparent; color: var(--tekst);
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.chip:hover { background: var(--lijn-zacht); }
.chip[aria-pressed="true"] { background: var(--tekst); border-color: var(--tekst); color: #15130F; }
.chip.stippel { border-style: dashed; color: var(--gedempt); }
.chip .ic { width: 15px; height: 15px; }

/* ---------- Receptenlijst ---------- */
.lijst { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lijst li { border-bottom: 1px solid var(--lijn-zacht); }
.lijst a { display: flex; align-items: center; gap: 16px; padding: 14px 0; color: var(--tekst); text-decoration: none; }
.lijst a:hover { color: var(--tekst); }
.lijst a:hover .naam { color: var(--saffraan-licht); }
.lijst .nr { flex: none; width: 28px; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--saffraan); }
.lijst .duim { flex: none; width: 62px; height: 62px; border-radius: 50%; overflow: hidden; background: var(--vlak); }
.lijst .duim img, .lijst .duim svg { width: 100%; height: 100%; object-fit: cover; }
.lijst .tekst { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lijst .naam { font-family: var(--serif); font-size: 22px; line-height: 1.12; transition: color 0.15s; }
.lijst .meta { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gedempt); }
.lijst .hart { color: var(--saffraan); }

.leeg { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 26px 0 10px; }
.leeg h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; }
.leeg p { margin: 0; color: var(--gedempt); max-width: 34ch; }

/* ---------- Onderbalk ---------- */
.onderbalk {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 20;
  width: 100%; max-width: 520px; height: calc(var(--onder) + 82px);
  padding: 0 24px var(--onder); display: flex; align-items: center; justify-content: space-between;
  background: rgba(21, 19, 15, 0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--lijn-zacht);
}
.onderbalk a { min-height: 44px; min-width: 44px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 500; color: var(--gedempt); text-decoration: none; }
.onderbalk a[aria-current="page"] { color: var(--tekst); font-weight: 700; }
.onderbalk .plus { width: 56px; height: 56px; border-radius: 50%; background: var(--saffraan); color: #15130F; }
.onderbalk .plus .ic { width: 26px; height: 26px; stroke-width: 2; }

/* ---------- Onderblad (toevoegen, dialogen) ---------- */
.waas { position: fixed; inset: 0; z-index: 40; background: rgba(5, 4, 3, 0.62); animation: invagen 0.2s ease; }
.blad {
  position: fixed; z-index: 41; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 520px; max-height: 92dvh; overflow-y: auto;
  padding: 10px 22px calc(var(--onder) + 26px); border-radius: 30px 30px 0 0;
  background: var(--vlak); box-shadow: var(--schaduw); display: flex; flex-direction: column; gap: 20px;
  animation: omhoog 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.blad .greep { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--lijn); }
.blad .bladkop { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.blad h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.05; }
.blad p { margin: 0; color: var(--gedempt); }
@keyframes omhoog { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
@keyframes invagen { from { opacity: 0; } to { opacity: 1; } }

.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 18px; background: var(--bg); }
.tabs.twee { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tabs button { min-height: 44px; border: 0; border-radius: 14px; background: transparent; color: var(--gedempt); font-size: 15px; font-weight: 600; }
.tabs button[aria-selected="true"] { background: var(--kaart); color: var(--tekst); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }

/* ---------- Velden ---------- */
.veld { display: flex; flex-direction: column; gap: 8px; }
.veld > label, .veldlabel { font-size: 13px; font-weight: 600; color: var(--gedempt); letter-spacing: 0.02em; }
.invoer {
  width: 100%; min-height: 54px; padding: 14px 16px; border-radius: 16px;
  border: 1px solid var(--lijn); background: var(--bg); color: var(--tekst); font-size: 16px; outline: 0;
}
.invoer:focus { border-color: var(--saffraan); }
.invoer::placeholder { color: #857D6F; }
textarea.invoer { resize: none; line-height: 1.5; min-height: 54px; field-sizing: content; }
select.invoer { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gedempt) 50%), linear-gradient(135deg, var(--gedempt) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.invoerrij { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 14px; border-radius: 18px; border: 1px solid var(--lijn); background: var(--bg); }
.invoerrij:focus-within { border-color: var(--saffraan); }
.invoerrij .invoer { border: 0; padding: 12px 0; min-height: 50px; background: transparent; }
.invoerrij .ic { color: var(--gedempt); }
.raster3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.foutmelding { color: var(--fout); font-size: 14px; margin: 0; }

/* ---------- Import bezig ---------- */
.importscherm { min-height: 100dvh; padding: calc(var(--boven) + 20px) 22px calc(var(--onder) + 30px); display: flex; flex-direction: column; gap: 22px; }
.bordring { align-self: center; margin-top: 10px; width: 230px; height: 230px; border-radius: 50%; overflow: hidden; background: var(--kaart); box-shadow: 0 0 0 10px rgba(233, 169, 58, 0.06), 0 0 0 22px rgba(233, 169, 58, 0.03); animation: adem 2.6s ease-in-out infinite; }
.bordring img, .bordring svg { width: 100%; height: 100%; object-fit: cover; }
.bordring.stil { animation: none; }
.draait { transform-box: fill-box; transform-origin: center; animation: draai 10s linear infinite; }
@keyframes adem { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes draai { to { transform: rotate(360deg); } }
.importscherm .uitleg { text-align: center; display: flex; flex-direction: column; gap: 10px; padding: 0 6px; }
.importscherm .uitleg p { margin: 0; color: var(--gedempt); text-wrap: pretty; }
.stappen-lijst { list-style: none; margin: 0; padding: 6px 18px; border-radius: 24px; background: var(--kaart); }
.stappen-lijst li { display: flex; align-items: center; gap: 14px; min-height: 54px; font-weight: 600; }
.stappen-lijst li + li { border-top: 1px solid var(--lijn-zacht); }
.stappen-lijst li.wacht { color: var(--gedempt); font-weight: 500; }
.bol { width: 28px; height: 28px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; }
.bol.gedaan { background: var(--saffraan); color: #15130F; }
.bol.gedaan .ic { width: 15px; height: 15px; stroke-width: 2.6; }
.bol.wacht { border: 2px solid var(--lijn); }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 2.6px solid var(--lijn); border-top-color: var(--saffraan); animation: draai 0.9s linear infinite; }
.onderaan { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }

/* ---------- Bewerken / nakijken ---------- */
.balk { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: calc(var(--boven) + 6px) 10px 6px; background: rgba(21, 19, 15, 0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--lijn-zacht); }
.balk h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 22px; }
.balk .links { justify-self: start; }
.balk .rechts { justify-self: end; }
.balk .link { padding: 0 12px; }
.editor { padding: 18px 22px calc(var(--onder) + 130px); display: flex; flex-direction: column; gap: 22px; }
.melding { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 20px; background: var(--saffraan-zacht); }
.melding .bol { width: 26px; height: 26px; }
.melding p { margin: 0; font-size: 14px; line-height: 1.45; }
.melding ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; color: var(--gedempt); }
.fotovak { position: relative; height: 190px; border-radius: 24px; overflow: hidden; background: var(--kaart); }
.fotovak img, .fotovak svg { width: 100%; height: 100%; object-fit: cover; }
.fotovak .knop { position: absolute; right: 12px; bottom: 12px; background: rgba(21, 19, 15, 0.78); color: var(--tekst); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.editsectie { display: flex; flex-direction: column; gap: 10px; }
.editsectie h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 26px; display: flex; align-items: baseline; gap: 10px; }
.editsectie h2 span { font-family: var(--sans); font-size: 14px; color: var(--gedempt); }
.regels { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.regel { display: flex; flex-direction: column; gap: 6px; }
.regel .rij { display: flex; align-items: flex-start; gap: 8px; }
.regel .rij .invoer { min-height: 50px; padding: 12px 14px; }
.regel .nummer { flex: none; width: 30px; height: 50px; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--saffraan); }
.regel .weg { flex: none; width: 44px; height: 50px; border: 0; background: transparent; color: var(--gedempt); display: flex; align-items: center; justify-content: center; border-radius: 12px; }
.regel .weg:hover { color: var(--fout); background: var(--lijn-zacht); }
.regel.twijfel .invoer { border-color: rgba(233, 169, 58, 0.6); background: var(--saffraan-zacht); }
.twijfeltekst { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--saffraan-licht); padding-left: 4px; }
.twijfeltekst .ic { width: 15px; height: 15px; }
.twijfeltekst button { margin-left: auto; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--kaart); color: var(--tekst); font-size: 13px; font-weight: 600; }
.groepnaam { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gedempt); margin-top: 6px; }
.toevoegknop { align-self: flex-start; }
.vastonder { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 15; width: 100%; max-width: 520px; padding: 18px 22px calc(var(--onder) + 18px); background: linear-gradient(to top, var(--bg) 68%, rgba(21, 19, 15, 0)); }
.vastonder.boven-menu { bottom: calc(var(--onder) + 82px); padding: 14px 22px 12px; }
.vastonder.boven-menu .knop.groot { min-height: 54px; }

/* ---------- Receptpagina ---------- */
.held { position: relative; height: 340px; background: var(--kaart); }
.held img, .held svg { width: 100%; height: 100%; object-fit: cover; }
.held-knoppen { position: fixed; z-index: 12; top: calc(var(--boven) + 12px); left: 50%; transform: translateX(-50%); width: 100%; max-width: 520px; padding: 0 16px; display: flex; justify-content: space-between; pointer-events: none; }
.held-knoppen > * { pointer-events: auto; }
.held-knoppen::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: calc(-12px - var(--boven)); height: calc(var(--boven) + 68px); background: rgba(21, 19, 15, 0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--lijn-zacht); opacity: 0; transition: opacity 0.2s; }
.held-knoppen.donker::before { opacity: 1; }
.held-knoppen.donker .rondknop.zwevend { background: transparent; }
.held-knoppen .groep { display: flex; gap: 10px; }
.receptblad { position: relative; margin-top: -34px; padding: 26px 22px calc(var(--onder) + 210px); border-radius: 32px 32px 0 0; background: var(--bg); display: flex; flex-direction: column; gap: 22px; }
.bronrij { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bronlabel { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--kaart); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gedempt); max-width: 70%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.receptblad h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1.02; text-wrap: balance; }
.receptblad .intro { margin: 0; color: var(--gedempt); font-size: 16px; text-wrap: pretty; }
.tegels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tegel { padding: 14px 12px; border-radius: 18px; background: var(--kaart); display: flex; flex-direction: column; gap: 4px; }
.tegel .ic { color: var(--saffraan); margin-bottom: 4px; }
.tegel strong { font-size: 16px; font-weight: 700; }
.tegel span { font-size: 12px; color: var(--gedempt); }
.stepper { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 6px 18px; border-radius: 22px; border: 1px solid var(--lijn); }
.stepper .knoppen { display: flex; align-items: center; gap: 4px; }
.stepper output { width: 44px; text-align: center; font-family: var(--serif); font-size: 28px; }
.ingredienten { list-style: none; margin: 0; padding: 0; }
.ingkop { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.mini-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--kaart); }
.mini-tabs button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--gedempt); font-size: 13px; font-weight: 600; white-space: nowrap; }
.mini-tabs button[aria-pressed="true"] { background: var(--tekst); color: #15130F; }
.ingkop .link.klein { min-height: 36px; font-size: 13px; white-space: nowrap; }
.afdelingkop { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 22px; padding-bottom: 6px; border-bottom: 1px solid var(--lijn); }
.afdelingkop span:first-child { font-family: var(--serif); font-size: 22px; line-height: 1.1; color: var(--tekst); }
.afdelingkop .nog { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gedempt); }
.afdelingkop .nog .ic { width: 14px; height: 14px; color: var(--saffraan); }
.afdelingkop.klaar span:first-child { color: #7E7769; }
.afdelingkop.klaar .nog { color: var(--saffraan); }
.ingredienten .afdelingkop:first-child { margin-top: 8px; }
.ingredienten li button { width: 100%; min-height: 54px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--lijn-zacht); background: transparent; display: flex; align-items: center; gap: 14px; text-align: left; color: var(--tekst); }
.ingredienten .vink { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--lijn); display: flex; align-items: center; justify-content: center; }
.ingredienten .hoeveel { flex: none; width: 104px; font-weight: 700; }
.ingredienten .wat { flex: 1; }
.ingredienten .wat small { display: block; color: var(--gedempt); font-size: 13px; }
.ingredienten [aria-pressed="true"] .vink { border: 0; background: var(--saffraan); color: #15130F; }
.ingredienten [aria-pressed="true"] .vink .ic { width: 14px; height: 14px; stroke-width: 2.8; }
.ingredienten [aria-pressed="true"] .hoeveel, .ingredienten [aria-pressed="true"] .wat { color: #7E7769; text-decoration: line-through; }
.bereiding { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.bereiding li { display: flex; gap: 16px; }
.bereiding .stapnr { flex: none; font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1; color: var(--saffraan); width: 28px; padding-top: 2px; }
.bereiding p { margin: 0; font-size: 17px; line-height: 1.55; }
.timerlabel { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--saffraan-zacht); color: var(--saffraan-licht); font-size: 13px; font-weight: 600; }
.timerlabel .ic { width: 15px; height: 15px; }
.notitie { padding: 16px 18px; border-radius: 20px; background: var(--kaart); display: flex; flex-direction: column; gap: 8px; }
.notitie p { margin: 0; white-space: pre-wrap; }

/* ---------- Kookmodus ---------- */
.koken { min-height: 100dvh; padding: calc(var(--boven) + 14px) 20px calc(var(--onder) + 24px); background: var(--bg-diep); display: flex; flex-direction: column; gap: 22px; touch-action: pan-y; }
.koken .boven { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.koken .boven .rechts { justify-self: end; }
.wakker { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--kaart); font-size: 12px; font-weight: 600; color: var(--gedempt); }
.wakker .ic { width: 14px; height: 14px; color: var(--saffraan); }
.voortgang { display: grid; gap: 6px; }
.voortgang span { height: 4px; border-radius: 2px; background: var(--lijn); }
.voortgang span.gedaan { background: var(--saffraan); }
.voortgang span.nu { background: var(--tekst); }
.stapgroot { margin: 8px 0 0; font-family: var(--serif); font-size: clamp(30px, 8.6vw, 38px); line-height: 1.16; text-wrap: pretty; }
.nodig { display: flex; flex-direction: column; gap: 10px; }
.nodig .chips { margin: 0; padding: 0; flex-wrap: wrap; overflow: visible; }
.nodig .chip { border: 0; background: var(--kaart); cursor: default; }
.timerkaart { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 18px 18px 22px; border-radius: 28px; background: var(--kaart); }
.timerkaart .klok { font-family: var(--serif); font-size: 56px; line-height: 1; font-variant-numeric: tabular-nums; }
.timerkaart .knoppen { display: flex; flex-direction: column; gap: 8px; }
.timerkaart.af { box-shadow: inset 0 0 0 2px var(--saffraan); animation: knipper 1s ease-in-out infinite; }
@keyframes knipper { 50% { background: rgba(233, 169, 58, 0.18); } }
.lopende-timers { display: flex; gap: 8px; flex-wrap: wrap; }
.lopende-timers button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--saffraan-zacht); color: var(--saffraan-licht); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lopende-timers button.af { background: var(--saffraan); color: #15130F; }
.koken .onderaan { gap: 14px; }
.koken .hierna { margin: 0; font-size: 14px; color: var(--gedempt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.koken .hierna strong { color: var(--tekst); font-weight: 600; }
.koken .navrij { display: flex; gap: 10px; }
.koken .navrij .vorige { flex: none; width: 64px; min-height: 64px; border-radius: 22px; }
.koken .navrij .volgende { flex: 1; min-height: 64px; border-radius: 22px; font-size: 18px; }

/* ---------- Collecties ---------- */
.tegelraster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.coltegel { min-height: 112px; padding: 16px; border-radius: 22px; background: var(--kaart); display: flex; flex-direction: column; justify-content: space-between; color: var(--tekst); text-decoration: none; }
.coltegel:hover { background: var(--kaart-hover); color: var(--tekst); }
.coltegel strong { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.05; }
.coltegel span { font-size: 13px; color: var(--gedempt); }
.coltegel.accent { background: var(--saffraan); color: #15130F; }
.coltegel.accent span { color: rgba(21, 19, 15, 0.7); }

/* ---------- Aanmelden ---------- */
.aanmelden { min-height: 100dvh; padding: calc(var(--boven) + 56px) 22px calc(var(--onder) + 30px); display: flex; flex-direction: column; gap: 24px; }
.aanmelden form { display: flex; flex-direction: column; gap: 14px; margin-top: auto; }

/* ---------- Toast en dialoog ---------- */
#toast { position: fixed; z-index: 60; left: 50%; bottom: calc(var(--onder) + 100px); transform: translate(-50%, 20px); max-width: calc(100% - 40px); padding: 12px 18px; border-radius: 16px; background: var(--tekst); color: #15130F; font-weight: 600; font-size: 15px; box-shadow: var(--schaduw); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
#toast.zichtbaar { opacity: 1; transform: translate(-50%, 0); }
.dialoog { gap: 16px; }
.dialoog .knoppen { display: flex; flex-direction: column; gap: 10px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
