/* Bestelpagina – werkt als een app op de gsm, gecentreerd op de computer */

html, body { height: 100%; }
body.bestel { background: var(--zand); }
.app { max-width: 560px; min-height: 100%; margin: 0 auto; display: flex; flex-direction: column; background: var(--creme); box-shadow: 0 0 60px rgba(60,30,15,.12); }

.app-kop { position: sticky; top: 0; z-index: 5; overflow: hidden; background: var(--creme-licht); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid var(--zand); }
.app-kop .stempel-a { right: -60px; top: -40px; width: 170px; transform: rotate(-20deg); }
.app-kop .stempel-b { left: -50px; top: -20px; width: 120px; transform: rotate(18deg); }
.app-kop-rij { position: relative; display: flex; align-items: center; justify-content: space-between; }
.app-kop-rij img { height: 46px; width: auto; }
.rond { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--zand); color: var(--bruin); display: flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; }
.rond[hidden] { display: flex; visibility: hidden; }
.voortgang { position: relative; display: flex; gap: 6px; }
.voortgang span { flex: 1 1 0; height: 4px; border-radius: 4px; background: #E3D8CE; }
.voortgang span.aan { background: var(--rood); }

.proef { background: #FCE9D6; color: #6B2E0E; font-size: 14px; line-height: 1.45; padding: 10px 16px; text-align: center; }

.app-inhoud { flex: 1 1 auto; padding: 20px 16px 28px; }
.scherm { display: flex; flex-direction: column; gap: 14px; }
.scherm h1 { font-family: var(--serif); font-weight: 800; font-size: 30px; line-height: 1.05; }
.scherm .welkom { font-family: var(--serif); font-style: italic; color: var(--rood); font-size: 18px; margin-bottom: -10px; }
.uitleg { color: var(--tekst-zacht); font-size: 15px; line-height: 1.45; }
.uitleg-rood { font-family: var(--serif); font-style: italic; color: var(--rood); font-size: 16px; line-height: 1.4; }

.keuze { text-align: left; font: inherit; color: var(--bruin); background: #fff; border: none; border-radius: 24px; padding: 8px; display: flex; flex-direction: column; cursor: pointer; box-shadow: 0 6px 18px rgba(60,30,15,.08); transition: transform .15s, box-shadow .15s; }
.keuze:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(60,30,15,.14); }
.keuze img { width: 100%; height: 130px; object-fit: cover; border-radius: 18px; }
.keuze span.t { padding: 12px 10px 10px; display: flex; flex-direction: column; gap: 4px; }
.keuze em { font-family: var(--serif); color: var(--rood); font-size: 16px; }
.keuze b { font-family: var(--serif); font-weight: 800; font-size: 24px; }
.keuze small { color: var(--tekst-zacht); font-size: 15px; line-height: 1.45; }

.tabs { display: flex; background: #fff; border-radius: 999px; padding: 4px; }
.tabs.zand { background: var(--zand); }
.tab { flex: 1 1 0; font: inherit; font-weight: 700; font-size: 14px; min-height: 44px; border-radius: 999px; border: none; cursor: pointer; background: transparent; color: var(--tekst); padding: 0 6px; }
.tab[aria-selected="true"], .tab[aria-pressed="true"] { background: var(--rood); color: #fff; }

.melding { background: #FCE9D6; color: #6B2E0E; border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.melding a { color: #6B2E0E; font-weight: 700; }
.fout { background: #F9DEDA; color: #7A1E12; }

.lijst { background: #fff; border-radius: 20px; padding: 4px 14px; list-style: none; margin: 0; }
.lijst h2 { padding: 18px 0 4px; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 20px; color: var(--rood); border-bottom: 1px solid var(--lijn-licht); }
.item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--lijn-licht); }
.item:last-child { border-bottom: none; }
.item-links { display: flex; align-items: center; gap: 12px; min-width: 0; }
.item-foto { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.item-foto.leeg { background: var(--zand-licht); display: flex; align-items: center; justify-content: center; }
.item-foto.leeg img { width: 30px; opacity: .55; }
.item-tekst { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.item-tekst b { font-family: var(--serif); font-weight: 600; font-size: 18px; line-height: 1.2; }
.item-tekst i { font-family: var(--serif); color: var(--tekst-grijs); font-size: 15px; }
.item-tekst small { color: var(--tekst-grijs); font-size: 13px; line-height: 1.35; }
.item-tekst .label { font-size: 12px; padding: 3px 9px; }
.teller { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.teller output { min-width: 20px; text-align: center; font-weight: 700; font-size: 17px; }
.plus, .min { width: 44px; height: 44px; border-radius: 50%; font-size: 22px; font-weight: 700; cursor: pointer; font-family: inherit; line-height: 1; }
.plus { border: none; color: #fff; background: var(--rood); }
.plus:disabled { background: #B8AAA2; cursor: not-allowed; }
.min { border: 1.5px solid var(--lijn); background: #fff; color: var(--bruin); }
.mail-knop { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--rood); color: var(--rood); text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; }
.mail-knop:hover { background: var(--rood); color: #fff; }

.dag { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.dag h2 { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 20px; color: var(--rood); }
.momenten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.moment { font: inherit; font-weight: 700; font-size: 16px; min-height: 48px; border-radius: 14px; cursor: pointer; background: #fff; color: var(--bruin); border: 1.5px solid var(--lijn); }
.moment[aria-pressed="true"] { background: var(--rood); color: #fff; border-color: var(--rood); }

.vensters { display: flex; flex-direction: column; gap: 10px; }
.venster { font: inherit; text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 18px; cursor: pointer; background: #fff; color: var(--bruin); border: 1.5px solid var(--lijn); }
.venster b { font-family: var(--serif); font-weight: 800; font-size: 20px; }
.venster span { font-size: 16px; color: var(--tekst-zacht); }
.venster[aria-pressed="true"] { background: var(--rood); border-color: var(--rood); color: #fff; }
.venster[aria-pressed="true"] span { color: #F4E1D8; }
.venster:disabled { cursor: not-allowed; background: var(--zand-licht); color: var(--tekst-grijs); border-style: dashed; }
.venster:disabled b { text-decoration: line-through; }
.bijna { display: block; color: #6B2E0E; font-weight: 700; font-size: 13px; }
.venster[aria-pressed="true"] .bijna { color: #FCE9D6; }
.volzet { color: var(--tekst-grijs); font-weight: 700; padding: 12px 14px; border: 1.5px dashed var(--lijn); border-radius: 14px; }

.overzicht { background: #fff; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.overzicht .wanneer { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 17px; color: var(--rood); }
.overzicht .groep { font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--tekst-grijs); margin-top: 4px; }
.overzicht .regel { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.overzicht .regel span:last-child { white-space: nowrap; }
.overzicht .totaal { font-weight: 700; font-size: 17px; border-top: 1px solid var(--lijn-licht); padding-top: 8px; }

.veld { display: flex; flex-direction: column; gap: 6px; }
.veld label { font-weight: 700; font-size: 15px; }
.veld input, .veld textarea { font: inherit; font-size: 16px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--lijn); background: #fff; color: var(--bruin); width: 100%; }
.veld textarea { resize: vertical; min-height: 70px; }
.veld input:focus, .veld textarea:focus { border-color: var(--rood); outline: none; box-shadow: 0 0 0 3px rgba(141,55,37,.18); }
.veld input[aria-invalid="true"] { border-color: #B3261E; }
.veld .fouttekst { color: #B3261E; font-size: 14px; }
.honing { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.klaar { align-items: center; text-align: center; padding-top: 32px; gap: 16px; }
.vinkje { width: 88px; height: 88px; border-radius: 50%; background: #F4E1D8; color: var(--rood); display: flex; align-items: center; justify-content: center; }
.klaar .info { background: #fff; border-radius: 20px; padding: 16px; width: 100%; text-align: left; font-size: 15px; line-height: 1.5; color: var(--tekst); }

.balk { position: sticky; bottom: 0; z-index: 5; background: var(--creme-licht); border-top: 1px solid var(--zand); padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.balk[hidden] { display: none; }
.balk-info { display: flex; flex-direction: column; }
.balk-info small { font-size: 13px; color: var(--tekst-grijs); }
.balk-info b { font-family: var(--serif); font-weight: 800; font-size: 24px; }
.verder { font: inherit; font-weight: 700; font-size: 17px; padding: 15px 24px; border-radius: 999px; border: none; cursor: pointer; color: #fff; background: var(--rood); }
.verder:disabled { background: #B8AAA2; cursor: not-allowed; }

/* Tijdens het typen op de gsm: de kop scrolt mee weg (meer plaats), de
   knop onderaan blijft staan en het vak schuift erboven in beeld */
@media (max-width: 760px) and (pointer: coarse) {
  body.typt .app-kop { position: static; }
  body.typt .app-inhoud { padding-bottom: 40vh; }
}
.veld input, .veld textarea { scroll-margin: 90px 0 120px; }

/* Pizza aanklikken: grote foto + ingrediënten */
.item-open { all: unset; cursor: pointer; display: block; min-width: 0; flex: 1 1 auto; border-radius: 12px; }
.item-open:focus-visible { outline: 3px solid var(--rood); outline-offset: 3px; }
.item-open:hover .item-tekst b { color: var(--rood); }
.item-tekst .meer { color: var(--rood); font-size: 13px; text-decoration: underline; text-underline-offset: 2px; }

.detail { border: none; padding: 0; width: min(480px, calc(100% - 24px)); max-height: calc(100% - 24px); border-radius: 24px; background: var(--creme); color: var(--bruin); box-shadow: 0 24px 60px rgba(30,23,20,.35); overflow: auto; }
.detail::backdrop { background: rgba(30, 23, 20, .55); }
.detail-sluit { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(249, 241, 232, .92); }
.detail-foto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.detail-foto.leeg { background: var(--zand-licht); display: flex; align-items: center; justify-content: center; }
.detail-foto.leeg img { width: 90px; opacity: .55; }
.detail-tekst { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.detail-naam { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.detail-naam h2 { font-family: var(--serif); font-weight: 800; font-size: 28px; line-height: 1.1; }
.detail-naam span { font-family: var(--serif); font-weight: 600; font-size: 22px; white-space: nowrap; }
.detail .veg { align-self: flex-start; }
.detail-ingr { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.5; color: var(--tekst-zacht); }
.detail-allergenen { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--tekst-grijs); }
.detail-allergenen ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.detail-allergenen li { display: flex; align-items: center; gap: 6px; color: var(--tekst); }
.detail-voet { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--lijn-licht); }
.scherm h1:focus { outline: none; }

/* Eerste scherm: voor welke dagen kan je bestellen? */
.bakdagen { background: #fff; border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.bakdagen h2 { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 18px; color: var(--rood); }
.bakdagen ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.bakdag { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--lijn-licht); }
.bakdag:first-child { border-top: none; }
.bakdag div { display: flex; flex-direction: column; }
.bakdag b { font-size: 16px; }
.bakdag small { color: var(--tekst-grijs); font-size: 13px; }
.bakdag .status { flex: 0 0 auto; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #FCE9D6; color: #6B2E0E; }
.bakdag.volzet b { color: var(--tekst-grijs); }
.bakdag.volzet .status { background: var(--zand); color: var(--tekst-grijs); }

/* Te weinig deeg voor deze bestelling */
.tekort { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; border-radius: 18px; background: #FCE9D6; color: #6B2E0E; }
.tekort b { font-family: var(--serif); font-weight: 800; font-size: 20px; color: var(--bruin); }

/* Extra klik voor een latere dag als een eerdere dag niet kon */
.ontgrendel { font: inherit; text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 18px; cursor: pointer; background: var(--rood); color: #fff; border: none; margin-bottom: 8px; }
.ontgrendel span { font-size: 14px; color: #F4E1D8; }
.ontgrendel b { font-family: var(--serif); font-weight: 800; font-size: 20px; }
.ontgrendel:hover { background: var(--rood-donker); }

/* Kopjes in de lijst niet onder de vaste kop laten verdwijnen bij het springen */
.lijst h2 { scroll-margin-top: 150px; }

/* ---------- Dranken ---------- */
/* Vier tabs: iets kleiner, het aantal als bolletje */
.tabs.vier .tab { font-size: 13px; padding: 0 4px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.tab .tel { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--rood); color: #fff; font-size: 12px; line-height: 20px; }
.tab[aria-selected="true"] .tel { background: #fff; color: var(--rood); }
@media (max-width: 380px) { .tabs.vier .tab { font-size: 12px; } }

/* Flessen en blikjes: rechtop, niet rond bijgesneden */
.item-foto.fles { width: 42px; height: 70px; border-radius: 10px; object-fit: contain; background: var(--creme); }
.item-tekst .past { color: var(--rood); font-style: italic; }
.label-grijs { background: var(--zand); color: var(--tekst-grijs); }

/* "Lekker met" (bij een pizza) en "Niets vergeten?" */
.lekker { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--lijn-licht); }
.lekker .kicker-sm { font-size: 16px; }
.mini { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.mini .item-tekst { flex: 1 1 auto; }
.mini .item-tekst b { font-size: 16px; }
.mini .item-tekst i { font-size: 14px; }
.mini .item-tekst small { font-size: 12px; }

.vergeten { padding-bottom: 0; }
.vergeten .detail-tekst { padding-top: 22px; }
.vergeten-titel { font-family: var(--serif); font-weight: 800; font-size: 28px; line-height: 1.1; padding-right: 48px; }
.vergeten .uitleg.klein { font-size: 13px; }
.vergeten-voet { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); background: var(--creme-licht); border-top: 1px solid var(--zand); }
.vergeten-voet span { display: flex; flex-direction: column; }
.vergeten-voet small { font-size: 13px; color: var(--tekst-grijs); }
.vergeten-voet b { font-family: var(--serif); font-weight: 800; font-size: 22px; }

/* 18+ vinkje */
.veld.vink label { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; cursor: pointer; background: #fff; border: 1.5px solid var(--lijn); border-radius: 14px; padding: 14px; }
.veld.vink input { width: 22px; height: 22px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--rood); }
.veld.vink input[aria-invalid="true"] { outline: 2px solid #B3261E; outline-offset: 2px; }
.vergeten-voet b { white-space: nowrap; }
.vergeten-voet .verder { padding: 13px 18px; font-size: 16px; }

/* Detail van een drank: de hele fles in beeld */
.detail-foto.fles { background: var(--creme); display: flex; align-items: center; justify-content: center; aspect-ratio: auto; height: 300px; }
.detail-foto.fles img { height: 100%; width: auto; }
.drank-feiten { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; border-top: 1px solid var(--lijn-licht); }
.drank-feiten li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--lijn-licht); font-size: 15px; }
.drank-feiten span { color: var(--tekst-grijs); }
.past-bij { display: flex; flex-direction: column; gap: 6px; }
.past-bij .kicker-sm { font-size: 16px; }
.past-bij ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.past-bij li { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--lijn-licht); }
.detail .uitleg.klein { font-size: 13px; }
.drank-feiten li { margin: 0; align-items: center; line-height: 1.35; }
.drank-feiten li span { font-family: var(--sans); font-style: normal; font-size: 15px; line-height: 1.35; }

/* Aantal bovenaan in het pizzavenster */
.detail-aantal { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: #fff; border-radius: 16px; }
.detail-aantal > span { font-weight: 700; font-size: 16px; }
.detail-voet.rechts { justify-content: flex-end; }
