@font-face { font-family: "Inter"; src: url("/fonts/Inter-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("/fonts/PlayfairDisplay-Variable.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }

:root {
  --gruen: #0D6452;
  --gruen-mittel: #0a5242;
  --orange: #DC4115;
  --orange-tief: #C63A10;
  --oliv: #5f9a8d;
  --oliv-hell: #E7EFEE;
  --creme: #F4F5F5;
  --creme-tief: #E7EFEE;
  --karte: #ffffff;
  --text: #292f36;
  --text-leise: #4d5762;
  --rot: #9a2b1f;
  --rot-hell: #f6dcd6;
  --linie: #cdd8d6;
  --radius-card: 14px;
  --radius-btn: 999px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
h1, h2, h3 { font-family: var(--serif); color: var(--gruen); line-height: 1.2; margin: 0 0 0.6rem; font-weight: 600; }
h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
h2 { font-size: clamp(1.25rem, 4.5vw, 1.55rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 0.8rem; }
a { color: var(--gruen); }
a:hover { color: var(--orange-tief); }
.leise { color: var(--text-leise); font-size: 0.92rem; }
.versteckt { display: none !important; }

.kopf { background: #fff; color: var(--gruen); border-bottom: 1px solid var(--linie); }
.kopf-innen { max-width: 760px; margin: 0 auto; padding: 0.6rem 1rem; display: flex; align-items: center; gap: 0.75rem; }
.kopf a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 0.6rem; }
.kopf img { flex: none; display: block; }
.kopf-titel { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; line-height: 1.15; }
.kopf-titel small { display: block; font-family: var(--sans); font-weight: 400; font-size: 0.78rem; color: var(--text-leise); letter-spacing: 0.04em; }
@media (max-width: 480px) { .kopf-innen:has(.kopf-rechts) .kopf-titel small { display: none; } }
.kopf-rechts { margin-left: auto; font-size: 0.9rem; display: flex; align-items: center; gap: 0.9rem; flex: none; }
.kopf-rechts .hilfe-link { text-decoration: none; border: 1px solid currentColor; border-radius: 999px; padding: 0.3rem 0.9rem; font-weight: 600; min-height: 36px; display: inline-flex; align-items: center; }
.hilfe-seite ul, .hilfe-seite ol { margin: 0 0 0.8rem; padding-left: 1.3rem; }
.hilfe-seite li { margin-bottom: 0.4rem; }
.hilfe-seite .hinweis ul { margin-bottom: 0; }
.hilfe-seite .hinweis ol { margin-bottom: 0; }
.hilfe-seite .hinweis details { margin-top: 0.4rem; }
.hilfe-seite .hinweis summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.hilfe-seite .hinweis summary::before { content: "▸"; margin-right: 0.5rem; }
.hilfe-seite .hinweis details[open] summary::before { content: "▾"; }
.hilfe-seite h2 .marke { font-family: var(--sans); font-weight: 600; }
.hilfe-seite .karte h3 { display: block; margin-top: 0.8rem; }
.sprung { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; }
.sprung a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 0.9rem; border: 1px solid var(--linie); border-radius: 999px; background: var(--karte); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.hilfe-video { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto; aspect-ratio: 9 / 16; background: #1b1b14; border-radius: 10px; }
.kopf-rechts a { text-decoration: underline; }

.fuss { background: var(--creme-tief); border-top: 1px solid var(--linie); padding: 1.25rem 1rem; font-size: 0.9rem; text-align: center; }
.fuss a { display: inline-block; margin: 0.15rem 0.5rem; }
.fuss .version { margin: 0.6rem 0 0; font-size: 0.75rem; color: #4b5563; }
.fuss .backlink { margin-top: 1rem; font-size: 0.75rem; color: #4b5563; }
.fuss .backlink a { color: #4b5563; margin: 0; }

.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius-card); padding: 1rem; margin-bottom: 1rem; }
.karte h3 { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.karte h3 .datum { font-family: var(--sans); font-size: 0.85rem; font-weight: 400; color: var(--text-leise); }
.karte.zu { opacity: 0.75; }

.gericht { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.55rem 0; border-top: 1px dashed var(--linie); }
.gericht:first-of-type { border-top: 0; }
.gericht .preis { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--gruen); font-weight: 600; }
.marke { display: inline-block; font-size: 0.72rem; background: var(--oliv-hell); color: var(--gruen); border-radius: 999px; padding: 0.05rem 0.5rem; margin-left: 0.4rem; vertical-align: middle; }
.marke.rot { background: var(--rot-hell); color: var(--rot); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 48px; padding: 0.6rem 1.3rem; border-radius: var(--radius-btn);
  border: 2px solid var(--gruen); background: transparent; color: var(--gruen);
  font: inherit; font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; text-decoration: none; text-align: center;
}
.btn:hover { background: var(--orange-tief); border-color: var(--orange-tief); color: #fff; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .tab:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.btn.voll { background: var(--gruen); color: #fff; }
.btn.voll:hover { background: var(--orange-tief); }
.btn.gefahr { border-color: var(--rot); color: var(--rot); }
.btn.gefahr:hover { background: var(--rot-hell); border-color: var(--rot); color: var(--rot); }
.btn.klein { min-height: 40px; padding: 0.3rem 0.9rem; font-size: 0.82rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.btn.block { display: flex; width: 100%; }
.aktionen { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem; }

label { display: block; font-weight: 600; margin: 0.9rem 0 0.25rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="month"], input[type="number"], input[type="time"], select, textarea {
  width: 100%; min-height: 48px; padding: 0.6rem 0.8rem; font: inherit; color: var(--text);
  background: #fff; border: 1.5px solid #7b8887; border-radius: 10px;
}
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; accent-color: var(--gruen); flex: none; }
.zeile { display: flex; gap: 0.75rem; align-items: center; }
.zeile > * { flex: 1; }
.hilfe { font-size: 0.88rem; color: var(--text-leise); margin: 0.25rem 0 0; }
[hidden] { display: none !important; }
.honig { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.hinweis { border-radius: 10px; padding: 0.8rem 1rem; margin: 0 0 1rem; background: var(--oliv-hell); border: 1px solid var(--oliv); }
.hinweis.fehler { background: var(--rot-hell); border-color: var(--rot); color: #5c150d; }
.hinweis.gut { background: #dcebe7; border-color: var(--gruen); }

.wahl { display: flex; align-items: center; gap: 0.7rem; padding: 0.65rem 0.6rem; border: 1.5px solid var(--linie); border-radius: 10px; margin: 0.4rem 0; background: #fff; cursor: pointer; font-weight: 400; }
.wahl:has(input:checked) { border-color: var(--gruen); background: #E7EFEE; }
.wahl .text { flex: 1; }
.wahl .preis { font-variant-numeric: tabular-nums; white-space: nowrap; }

.woche-nav { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin: 0.5rem 0 1rem; }
.woche-nav strong { font-family: var(--serif); text-align: center; flex: 1; }

.oliven-linie { height: 1px; margin: 1.4rem 0; background: var(--linie); }

.tabs { display: flex; gap: 0.1rem; overflow-x: auto; box-shadow: inset 0 -2px 0 var(--linie); margin-bottom: 1rem; position: sticky; top: 0; background: var(--creme); z-index: 5; }
.tab { flex: 1 1 auto; min-width: 0; padding: 0 0.4rem; min-height: 48px; border: 0; background: transparent; font: inherit; font-size: 0.8rem; font-weight: 600; color: var(--text-leise); cursor: pointer; border-bottom: 4px solid transparent; }
.tab[aria-selected="true"] { color: var(--gruen); border-bottom-color: var(--orange); }

.liste-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; padding: 0.7rem 0; border-top: 1px solid var(--linie); }
.liste-zeile:first-child { border-top: 0; }
.liste-zeile .wer { flex: 1 1 11rem; min-width: 0; }
.zeilen-knoepfe { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.liste-zeile .wer strong { display: block; overflow-wrap: anywhere; }
.liste-zeile.noshow { background: var(--rot-hell); margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; }
.liste-zeile.noshow strong { text-decoration: line-through; }
.abgesagt-block { margin-top: 1.25rem; padding-top: 0.5rem; border-top: 2px dashed var(--linie); }
.abgesagt-block h3 { margin: 0.5rem 0 0.25rem; font-size: 1rem; }
.liste-zeile.abgesagt .wer { opacity: 0.85; }

.zaehler { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 1rem; }
.zaehler span { background: var(--gruen); color: #fff; border-radius: 999px; padding: 0.25rem 0.8rem; font-weight: 600; }

table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 0.45rem 0.4rem; border-bottom: 1px solid var(--linie); }
th { font-size: 0.85rem; color: var(--text-leise); }
td.zahl, th.zahl { text-align: right; }
tfoot td { font-weight: 700; border-top: 2px solid var(--gruen); }

.toast { position: fixed; left: 50%; top: 1rem; transform: translateX(-50%); background: var(--gruen); color: #fff; padding: 0.7rem 1.2rem; border-radius: 10px; z-index: 20; max-width: 92vw; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }
.toast.fehler { background: var(--rot); }

.nur-druck { display: none; }
@media (min-width: 640px) {
  main { padding-top: 2rem; }
  .tab { font-size: 1rem; padding: 0 0.5rem; }
  .karte { padding: 1.25rem 1.5rem; }
}
@media print {
  body { background: #fff; }
  .kopf, .fuss, .tabs, .no-print, .toast { display: none !important; }
  .nur-druck { display: block; }
  .karte { border: 0; padding: 0; }
  main { max-width: none; padding: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background 0.15s; }
}

fieldset.karte { min-width: 0; margin-left: 0; margin-right: 0; }
legend.karte-titel { font-family: var(--serif); font-weight: 700; color: var(--gruen); font-size: 1.1rem; padding: 0 0.4rem; }

.wahl .preis small { display: block; font-size: 0.78rem; color: var(--text-leise); font-weight: 400; }
label.merken { display: flex; gap: 0.6rem; align-items: center; font-weight: 400; margin-top: 1rem; }
.gericht-zeile { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.5rem 0.75rem; padding: 0.7rem 0; border-top: 1px solid var(--linie); }
.gericht-zeile:first-child { border-top: 0; }
.gericht-name, .gericht-allergene { flex: 1 1 100%; }
.gericht-name label, .gericht-allergene > label, .gericht-preis label { margin: 0.1rem 0 0.2rem; font-size: 0.88rem; }
.allergen-wahl summary { cursor: pointer; font-weight: 600; color: var(--gruen); min-height: 44px; display: flex; align-items: center; }
.allergen-wahl summary::before { content: "▸"; margin-right: 0.5rem; }
.allergen-wahl[open] summary::before { content: "▾"; }
.allergen-knoepfe { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-bottom: 0.4rem; }
.allergen-knopf { min-height: 44px; padding: 0.3rem 0.9rem; font: inherit; font-size: 0.9rem; color: var(--gruen); background: #fff; border: 1.5px solid var(--gruen); border-radius: var(--radius-btn); cursor: pointer; }
.allergen-knopf[aria-pressed="true"] { background: var(--gruen); color: #fff; }
.allergen-knopf[aria-pressed="true"]::before { content: "✓ "; }
#app :focus-visible { outline-color: var(--gruen); }
.allergen-knopf:focus-visible, .allergen-wahl summary:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; }
.allergenhinweis { margin: 0.4rem 0 1rem; }
.speisekarten-link { margin-top: 1.8rem; }
.speisekarten-link .btn { display: inline-flex; width: auto; max-width: 100%; text-transform: none; letter-spacing: normal; font-size: 0.9rem; text-align: center; }
.karte-bild { display: block; width: 100%; height: auto; border: 1px solid var(--linie); border-radius: var(--radius-card); }
.gericht-preis { flex: 0 0 6.5rem; }
.gericht-veg { display: flex; gap: 0.4rem; align-items: center; margin: 0; min-height: 48px; font-weight: 400; flex: 1; }
.speicherleiste { position: sticky; bottom: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; background: var(--creme); border-top: 2px solid var(--linie); padding: 0.7rem 0; margin-top: 1rem; }
.speicher-status { font-size: 0.92rem; color: var(--text-leise); }
.speicher-status.offen { color: var(--text); font-weight: 600; background: var(--oliv-hell); border-radius: 999px; padding: 0.25rem 0.8rem; }
.schnellwahl { display: grid; gap: 0.5rem; margin-top: 0.4rem; }
.label-ersatz { font-weight: 600; margin: 0.9rem 0 0; }
.karte.neu { border: 2px dashed var(--oliv); background: #f7faf9; }
.firma-karte { border-top: 1px solid var(--linie); padding-top: 0.5rem; margin-top: 0.8rem; }
.firma-karte:first-of-type { border-top: 0; margin-top: 0; }
.rundmail code { display: block; overflow-wrap: anywhere; background: var(--creme-tief); border-radius: 8px; padding: 0.5rem 0.7rem; font-size: 0.85rem; }
details.mehr { margin-top: 1.2rem; border-top: 1px solid var(--linie); padding-top: 0.8rem; }
details.mehr summary { cursor: pointer; font-weight: 600; color: var(--gruen); min-height: 44px; display: flex; align-items: center; }
@media print {
  .speicherleiste { display: none !important; }
}
details.mehr summary::before { content: "▸"; margin-right: 0.5rem; }
details.mehr[open] summary::before { content: "▾"; }

/* Ausgabeliste (druckliste.html) */
@page { size: A4 portrait; margin: 12mm; }
.dl-leiste { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.dl-stand { border: 2px solid var(--rot); background: var(--rot-hell); color: #5c150d; border-radius: 10px; padding: 0.5rem 0.8rem; font-weight: 600; }
.dl-kochen { font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; }
.dl-abgesagt { margin-top: 0.75rem; font-size: 0.95rem; }
.dl-erklaerung { margin-top: 0.75rem; font-size: 0.95rem; font-weight: 600; }
.dl-tabelle th, .dl-tabelle td { padding: 0.6rem 0.4rem; border-bottom: 1px solid var(--text); vertical-align: middle; font-size: 1.05rem; overflow-wrap: anywhere; }
.dl-tabelle th { color: var(--text); font-size: 0.9rem; }
.dl-tabelle .dl-box { width: 3rem; text-align: center; }
.dl-name { font-weight: 700; }
.dl-tabelle th:nth-child(2) { width: 34%; }
.dl-tabelle th:nth-child(3) { width: 26%; }
.dl-leer td { height: 3.2rem; }
/* Handy: je Bestellung ein Block (Name und Firma links, Gericht rechts), damit ganze Wörter Platz haben und nur extrem lange Namen umbrechen */
@media screen and (max-width: 639px) {
  .dl-tabelle, .dl-tabelle tbody { display: block; }
  .dl-tabelle thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .dl-tabelle tr { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "box name dish" "box firm dish"; column-gap: 0.4rem; align-items: start; padding: 0.55rem 0; border-bottom: 1px solid var(--text); }
  .dl-tabelle td { padding: 0; border-bottom: 0; overflow-wrap: anywhere; hyphens: manual; }
  .dl-tabelle td.dl-box { grid-area: box; align-self: center; width: auto; }
  .dl-tabelle td:nth-child(2) { grid-area: name; }
  .dl-tabelle td:nth-child(3) { grid-area: firm; font-size: 0.9rem; }
  .dl-tabelle td:nth-child(4) { grid-area: dish; }
  .dl-leer td { height: auto; }
  .dl-leer { min-height: 3.2rem; }
}
.kaestchen { display: inline-block; width: 1.5rem; height: 1.5rem; border: 2px solid var(--text); border-radius: 3px; vertical-align: middle; }
@media print {
  .druckliste { color: #000; font-size: 14pt; }
  .druckliste h1 { font-size: 20pt; color: #000; margin-bottom: 4mm; }
  .dl-stand { background: #fff; border-color: #000; color: #000; }
  .dl-kochen { font-size: 16pt; }
  .dl-tabelle th, .dl-tabelle td { font-size: 14pt; border-bottom-color: #000; padding: 2.5mm 2mm; }
  .dl-tabelle th { font-size: 11pt; }
  .dl-tabelle thead { display: table-header-group; }
  .dl-tabelle tr { break-inside: avoid; }
  .dl-leer td { height: 12mm; }
  .kaestchen { width: 7mm; height: 7mm; border-color: #000; }
}

.pw-zeile { display: flex; gap: 0.5rem; align-items: center; }
.pw-zeile input { flex: 1; min-width: 0; }
.pw-zeile .btn { flex: none; }
.nur-leser { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.passwort-vergessen { margin-top: 1.2rem; }
.oder { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--linie); }
.oder .btn { margin-top: 0.6rem; }
dialog.dialog { width: calc(100% - 1.5rem); max-width: 30rem; max-height: calc(100vh - 1.5rem); overflow-y: auto; padding: 1.2rem; border: 0; border-radius: var(--radius-card); background: var(--karte); color: var(--text); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35); }
dialog.dialog::backdrop { background: rgba(41, 41, 31, 0.55); }

/* Guthaben (Betreiber-Bereich, Anzeige in der Verwaltung) */
.stand { margin: 0 0 0.3rem; font-size: 1.1rem; }
.stand strong { font-family: var(--serif); font-size: clamp(2.2rem, 11vw, 3rem); color: var(--gruen); line-height: 1.1; }
td.notiz { overflow-wrap: anywhere; }
.guthaben { margin: 0 0 1rem; padding: 0.6rem 1rem; border-radius: 10px; border: 1px solid var(--linie); background: var(--karte); font-size: 0.95rem; }
.guthaben.knapp { border-color: var(--oliv); background: var(--oliv-hell); font-weight: 600; }
.guthaben.leer { border-color: var(--rot); background: var(--rot-hell); color: #5c150d; font-weight: 600; }
