/* ==========================================================================
   Casa da Enzo · Trattoria App · Bausteine
   Baut nur auf tokens/tokens.css auf. Keine Farben, Maße oder Schriften
   außerhalb der Tokens. Klassen sind flach (BEM-artig), ohne Framework.
   Entscheid Runde 1 (Sergio, 21.10.2026): Liste wie Richtung B,
   Bearbeiten wie Richtung A, Gestaltung nach Trattoria, nicht nach Karte.
   ========================================================================== */

/* ---------- Grundlage ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--panna);
  color: var(--lava);
  font: 400 var(--text-base)/1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; }
.serif { font-family: var(--font-serif); }
.muted { color: var(--muted); }
.caps {
  font-size: var(--text-xs); font-weight: 500;
  letter-spacing: var(--caps-spacing); text-transform: uppercase;
}
.icon { width: 24px; height: 24px; flex: none; }
.icon--s { width: 18px; height: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- App-Rahmen ----------
   Mobil: Kopfzeile oben, Reiter unten. Ab 960 px: Seitenleiste links. */
.app { min-height: 100dvh; display: flex; flex-direction: column; }
.app__main { flex: 1; min-width: 0; padding-bottom: calc(var(--touch) + var(--s-6) + env(safe-area-inset-bottom, 0px)); }

.kopf {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  display: flex; align-items: center; gap: var(--s-3);
  min-height: 56px;
  padding: var(--s-2) max(var(--rand-mobil), env(safe-area-inset-right, 0px)) var(--s-2) max(var(--rand-mobil), env(safe-area-inset-left, 0px));
  background: var(--white); border-bottom: var(--linie);
}
.kopf__marke { width: 28px; height: 28px; flex: none; }
.kopf__titel { flex: 1; min-width: 0; margin: 0; font: 500 var(--text-lg)/1.2 var(--font-serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kopf__zurueck { margin-left: calc(var(--s-3) * -1); }

.reiter {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  background: var(--white); border-top: var(--linie);
}
.reiter__punkt {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: var(--touch); padding: var(--s-2) 0;
  border: 0; background: none; color: var(--muted);
  font-size: var(--text-xs); letter-spacing: 0.04em;
}
.reiter__punkt[aria-current="page"] { color: var(--vino); }
.reiter__punkt[aria-current="page"] .icon { stroke-width: 2; }

.leiste { display: none; }

@media (min-width: 960px) {
  .app { flex-direction: row; }
  .reiter { display: none; }
  .app__main { padding-bottom: var(--s-14); }
  .leiste {
    position: sticky; top: 0; height: 100dvh; width: 248px; flex: none;
    display: flex; flex-direction: column; gap: var(--s-1);
    padding: var(--s-6) var(--s-4);
    background: var(--white); border-right: var(--linie);
  }
  .leiste__marke { display: flex; align-items: center; gap: var(--s-3); padding: 0 var(--s-2) var(--s-6); }
  .leiste__marke img { width: 36px; height: 36px; }
  .leiste__marke span { font: 500 var(--text-lg)/1.1 var(--font-serif); }
  .leiste__marke small { display: block; font: 400 var(--text-xs)/1.4 var(--font-sans); letter-spacing: var(--caps-spacing); text-transform: uppercase; color: var(--muted); }
  .leiste__punkt {
    display: flex; align-items: center; gap: var(--s-3);
    min-height: 44px; padding: 0 var(--s-3);
    border: 0; background: none; text-align: left; color: var(--lava);
  }
  .leiste__punkt:hover { background: var(--panna); }
  .leiste__punkt[aria-current="page"] { background: var(--vino-hell); color: var(--vino-tief); font-weight: 500; }
  .leiste__punkt .zahl { margin-left: auto; }
  .leiste__trenner { margin: var(--s-4) var(--s-3) var(--s-2); color: var(--muted); }
  .leiste__fuss { margin-top: auto; padding: var(--s-3); border-top: var(--linie); }
  .kopf { padding-inline: var(--rand-desktop); min-height: 64px; }
  .kopf__marke { display: none; }
  .kopf__titel { font-size: var(--text-xl); }
}

.seite {
  max-width: var(--content-max); margin: 0 auto;
  padding: var(--s-6) max(var(--rand-mobil), env(safe-area-inset-right, 0px)) var(--s-6) max(var(--rand-mobil), env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: var(--s-6);
}
@media (min-width: 960px) { .seite { padding: var(--s-8) var(--rand-desktop); gap: var(--s-8); } }
.seite__titel { margin: 0; font: 500 var(--text-xl)/1.15 var(--font-serif); text-wrap: balance; }
.seite__titel em { font-style: italic; color: var(--vino); }
.abschnitt { display: flex; flex-direction: column; gap: var(--s-3); }
.abschnitt__kopf { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }

/* ---------- Knöpfe ----------
   Primär trägt die Punkte der Marke: • Veröffentlichen • */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--touch); padding: 0 var(--s-6);
  border: 1.5px solid var(--vino); border-radius: var(--radius);
  background: var(--vino); color: var(--white);
  font-size: var(--text-sm); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
}
.knopf:hover { background: var(--vino-tief); border-color: var(--vino-tief); }
.knopf--punkte::before, .knopf--punkte::after { content: "•"; opacity: 0.7; }
.knopf--zweit { background: transparent; color: var(--vino); }
.knopf--zweit:hover { background: var(--vino-hell); color: var(--vino-tief); }
.knopf--still { background: transparent; border-color: transparent; color: var(--lava); padding-inline: var(--s-3); }
.knopf--still:hover { background: var(--panna-dark); border-color: transparent; }
.knopf--warn { background: var(--lava); border-color: var(--lava); }
.knopf--warn:hover { background: var(--lava-80); border-color: var(--lava-80); }
.knopf--breit { width: 100%; }
.knopf[disabled] { opacity: 0.4; pointer-events: none; }
.knopf-icon {
  display: inline-grid; place-items: center; width: var(--touch); height: var(--touch); flex: none;
  border: 0; background: none; color: inherit;
}
.knopf-icon:hover { background: var(--panna); }
.knopfreihe { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.knopfreihe > .knopf { flex: 1 1 auto; }

/* ---------- Status und Marken ---------- */
.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  white-space: nowrap;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: var(--radius-rund); background: currentColor; }
.status--live { color: var(--live); }
.status--entwurf { color: var(--muted); }
.status--entwurf::before { background: transparent; border: 1.5px solid currentColor; }
.status--freigabe { color: #8A6A1F; }
.status--freigabe::before { background: var(--geaendert); }
.status--archiv { color: var(--muted); }
.status--archiv::before { background: var(--line); }

.marke {
  display: inline-flex; align-items: center; min-height: 22px; padding: 0 var(--s-2);
  font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.06em;
  color: var(--lava); white-space: nowrap;
}
.marke--neu { background: var(--neu-hell); color: var(--neu); }
.marke--geaendert { background: var(--geaendert-hell); }
.marke--gestrichen { background: var(--gestrichen-hell); color: var(--gestrichen); }
.marke--hinweis { background: transparent; color: var(--hinweis); border: 1px solid currentColor; }
.zahl {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: var(--radius-rund); background: var(--vino); color: var(--white);
  font-size: var(--text-xs); font-weight: 500;
}

/* ---------- Kacheln (Start) ---------- */
.kacheln { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.kachel {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-6); border: var(--linie); background: var(--white);
  text-align: left; color: inherit; text-decoration: none;
}
button.kachel:hover { border-color: var(--lava); }
.kachel__titel { margin: 0; font: 500 var(--text-lg)/1.2 var(--font-serif); }
.kachel__titel small { display: block; margin-top: 2px; font: italic 400 var(--text-sm)/1.3 var(--font-serif); color: var(--muted); }
.kachel__zeile { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); font-size: var(--text-sm); }
.kachel--bald { background: transparent; border-style: dashed; color: var(--muted); }
.kachel--aufgabe { border-left: 4px solid var(--geaendert); }

/* ---------- Suche, Filter-Chips ---------- */
.suche {
  display: flex; align-items: center; gap: var(--s-2);
  min-height: var(--touch); padding: 0 var(--s-3);
  border: var(--linie); background: var(--white);
}
.suche input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: var(--text-base); }
.suche:focus-within { border-color: var(--lava); }
.chips { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--rand-mobil) * -1); padding-inline: var(--rand-mobil); }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 960px) { .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; } }
.chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  min-height: 40px; padding: 0 var(--s-3);
  border: var(--linie); background: var(--white); color: var(--lava);
  font-size: var(--text-sm); white-space: nowrap;
}
.chip__punkt { width: 8px; height: 8px; border-radius: var(--radius-rund); background: var(--kap, var(--muted)); }
.chip__zahl { color: var(--muted); font-size: var(--text-xs); }
.chip[aria-pressed="true"] { background: var(--lava); border-color: var(--lava); color: var(--white); }
.chip[aria-pressed="true"] .chip__zahl { color: var(--sabbia); }

/* ---------- Artikelliste (Richtung B) ----------
   Kompakt: Name Garamond, Zusatz Jost, Preis rechts. Kapitel nur als Punkt. */
.liste { display: flex; flex-direction: column; background: var(--white); border: var(--linie); }
.liste__kapitel {
  position: sticky; top: calc(56px + env(safe-area-inset-top, 0px)); z-index: 5;
  display: flex; align-items: center; gap: var(--s-2);
  padding: var(--s-3) var(--s-4); background: var(--panna); border-bottom: var(--linie);
}
@media (min-width: 960px) { .liste__kapitel { top: 64px; } }
.liste__kapitel .chip__punkt { width: 10px; height: 10px; }
.liste__kapitel h3 { margin: 0; font: italic 500 var(--text-md)/1.2 var(--font-serif); }
.liste__kapitel span { color: var(--muted); font-size: var(--text-sm); }
.liste__gruppe { padding: var(--s-2) var(--s-4) 0; }

.zeile {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s-1) var(--s-4);
  min-height: 60px; padding: var(--s-3) var(--s-4);
  border: 0; border-bottom: var(--linie); background: none; text-align: left; width: 100%;
}
.zeile:last-child { border-bottom: 0; }
.zeile:hover { background: var(--panna); }
.zeile::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--zustand, transparent); }
.zeile--neu { --zustand: var(--neu); }
.zeile--geaendert { --zustand: var(--geaendert); }
.zeile--gestrichen { --zustand: var(--gestrichen); }
.zeile--gestrichen .zeile__name, .zeile--gestrichen .zeile__preis { text-decoration: line-through; color: var(--muted); }
.zeile__name { min-width: 0; font: 400 var(--text-md)/1.25 var(--font-serif); }
.zeile__zusatz { grid-column: 1; min-width: 0; font-size: var(--text-sm); line-height: 1.35; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zeile__marken { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s-1); }
.zeile__preis { grid-column: 2; grid-row: 1 / span 2; text-align: right; font: 400 var(--text-md)/1.25 var(--font-serif); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.zeile__preis s { color: var(--muted); margin-right: var(--s-1); font-size: var(--text-sm); }
.zeile__preis small { display: block; font: 400 var(--text-xs)/1.4 var(--font-sans); color: var(--muted); }

/* Schwebende Hauptaktion über den Reitern */
.schwebend {
  position: fixed; z-index: 25;
  right: max(var(--rand-mobil), env(safe-area-inset-right, 0px));
  bottom: calc(var(--touch) + var(--s-4) + env(safe-area-inset-bottom, 0px));
  box-shadow: var(--schatten-lift);
}
@media (min-width: 960px) { .schwebend { bottom: var(--s-8); right: var(--s-8); } }

/* Statusband über der Liste */
.lage {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4);
  padding: var(--s-4); background: var(--white); border: var(--linie); border-left: 4px solid var(--geaendert);
}
.lage__text { flex: 1 1 200px; min-width: 0; font-size: var(--text-sm); }
.lage__text strong { display: block; font: 500 var(--text-md)/1.3 var(--font-serif); }

/* ---------- Blatt (Richtung A) ----------
   Mobil: fährt von unten hoch. Ab 960 px: rechte Spalte, Liste bleibt sichtbar. */
.schleier { position: fixed; inset: 0; z-index: 40; background: rgba(39, 41, 40, 0.42); }
.blatt {
  position: fixed; z-index: 50; inset: auto 0 0 0;
  display: flex; flex-direction: column;
  max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px));
  background: var(--panna); box-shadow: var(--schatten-lift);
  animation: blatt-hoch 220ms ease-out;
}
@keyframes blatt-hoch { from { transform: translateY(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .blatt { animation: none; } }
.blatt__griff { width: 40px; height: 4px; margin: var(--s-2) auto 0; border-radius: var(--radius-rund); background: var(--line); }
.blatt__kopf {
  display: flex; align-items: flex-start; gap: var(--s-2);
  padding: var(--s-3) max(var(--rand-mobil), env(safe-area-inset-right, 0px)) var(--s-3) max(var(--rand-mobil), env(safe-area-inset-left, 0px));
  border-bottom: var(--linie);
}
.blatt__titel { flex: 1; min-width: 0; margin: 0; font: 500 var(--text-xl)/1.15 var(--font-serif); text-wrap: balance; }
.blatt__titel small { display: block; margin-bottom: 2px; }
.blatt__inhalt {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: var(--s-6);
  padding: var(--s-4) max(var(--rand-mobil), env(safe-area-inset-right, 0px)) var(--s-6) max(var(--rand-mobil), env(safe-area-inset-left, 0px));
}
.blatt__fuss {
  display: flex; gap: var(--s-3);
  padding: var(--s-3) max(var(--rand-mobil), env(safe-area-inset-right, 0px)) calc(var(--s-3) + env(safe-area-inset-bottom, 0px)) max(var(--rand-mobil), env(safe-area-inset-left, 0px));
  background: var(--white); border-top: var(--linie);
}
.blatt__fuss .knopf { flex: 1; padding-inline: var(--s-3); }
@media (min-width: 960px) {
  .blatt { inset: 0 0 0 auto; width: 520px; max-height: none; animation-name: blatt-rein; }
  @keyframes blatt-rein { from { transform: translateX(24px); opacity: 0; } }
  .blatt__griff { display: none; }
  .blatt__kopf, .blatt__inhalt, .blatt__fuss { padding-inline: var(--s-8); }
  .blatt__kopf { padding-top: var(--s-6); }
}

/* ---------- Formular ---------- */
.gruppe { display: flex; flex-direction: column; gap: var(--s-3); }
.gruppe__titel { margin: 0; color: var(--muted); }
.feld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feld__label { font-size: var(--text-sm); font-weight: 500; }
.feld__label small { font-weight: 400; color: var(--muted); }
.eingabe {
  width: 100%; min-height: var(--touch); padding: var(--s-2) var(--s-3);
  border: var(--linie); border-radius: var(--radius); background: var(--white);
  font-size: var(--text-base);
}
.eingabe:focus { outline: 0; border-color: var(--lava); box-shadow: inset 0 0 0 1px var(--lava); }
.eingabe--serif { font: 400 var(--text-lg)/1.3 var(--font-serif); }
textarea.eingabe { min-height: 88px; resize: vertical; line-height: 1.45; }
.eingabe[aria-invalid="true"] { border-color: var(--hinweis); box-shadow: inset 0 0 0 1px var(--hinweis); }
.feld__hilfe { font-size: var(--text-sm); color: var(--muted); }
.feld__fehler { display: flex; gap: 6px; font-size: var(--text-sm); color: var(--hinweis); }
.feld__fehler button { padding: 0; border: 0; background: none; color: var(--vino); text-decoration: underline; text-underline-offset: 3px; }
.zwei { display: grid; gap: var(--s-3); grid-template-columns: 1fr 1fr; }

/* Preiszeile: Ausschank · Menge · Preis · entfernen */
.preise { display: flex; flex-direction: column; border: var(--linie); background: var(--white); }
.preis {
  display: grid; grid-template-columns: auto minmax(0, 1fr) 88px auto; align-items: center; gap: var(--s-2);
  padding: var(--s-2) var(--s-2) var(--s-2) var(--s-3); border-bottom: var(--linie);
}
.preis:last-child { border-bottom: 0; }
.preis__art { display: inline-grid; place-items: center; width: 40px; height: 40px; border: var(--linie); background: var(--panna); }
.preis__art img { width: 22px; height: 22px; }
.preis .eingabe { min-height: 44px; }
.preis__wert { text-align: right; font: 400 var(--text-lg)/1 var(--font-serif); font-variant-numeric: lining-nums tabular-nums; }
.preis__variante { grid-column: 2 / -1; font-size: var(--text-sm); color: var(--muted); margin-top: calc(var(--s-2) * -1); }
.preis--alt .preis__wert { box-shadow: inset 4px 0 0 var(--geaendert); }
.preis__fehler { grid-column: 1 / -1; }
.preis__alt { grid-column: 1 / -1; font-size: var(--text-sm); color: var(--muted); }
.preis__alt s { font-family: var(--font-serif); }

/* Zutaten als Chips mit Mittelpunkt-Logik der Karte */
.zutaten { display: flex; flex-wrap: wrap; gap: var(--s-2); padding: var(--s-2); border: var(--linie); background: var(--white); min-height: var(--touch); }
.zutat { display: inline-flex; align-items: center; gap: 2px; min-height: 36px; padding: 0 2px 0 var(--s-3); background: var(--panna); font-size: var(--text-sm); }
.zutat button { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; background: none; color: var(--muted); }
.zutaten input { flex: 1 1 120px; min-width: 120px; min-height: 36px; border: 0; outline: 0; background: none; font-size: var(--text-base); }

/* Allergene, Zusatzstoffe: Schalter. Vorschlag der KI gestrichelt. */
.schalter { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.schalter__punkt {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 var(--s-3);
  border: var(--linie); background: var(--white); font-size: var(--text-sm);
}
.schalter__punkt b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border: 1px solid var(--line); font-size: var(--text-xs); font-weight: 500; }
.schalter__punkt[aria-pressed="true"] { background: var(--lava); border-color: var(--lava); color: var(--white); }
.schalter__punkt[aria-pressed="true"] b { border-color: var(--sabbia); color: var(--sabbia); }
.schalter__punkt--vorschlag { border: 1.5px dashed var(--vino); color: var(--vino); background: var(--vino-hell); }

/* Wahl aus wenigen Werten (Segment) */
.segment { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: var(--linie); background: var(--white); }
.segment button { min-height: 44px; border: 0; border-right: var(--linie); background: none; font-size: var(--text-sm); }
.segment button:last-child { border-right: 0; }
.segment button[aria-pressed="true"] { background: var(--lava); color: var(--white); }

/* ---------- KI-Vorschlag ----------
   Immer als Vorschlag erkennbar, nie stillschweigend übernommen. */
.ki {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-4); border: 1.5px dashed var(--vino); background: var(--white);
}
.ki__kopf { display: flex; align-items: center; gap: var(--s-2); color: var(--vino); }
.ki__kopf .caps { flex: 1; }
.ki__text { margin: 0; font-size: var(--text-sm); }
.ki__liste { display: grid; gap: var(--s-1) var(--s-4); grid-template-columns: auto 1fr; margin: 0; font-size: var(--text-sm); }
.ki__liste dt { color: var(--muted); }
.ki__liste dd { margin: 0; font-weight: 500; }
.ki__aktionen { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.ki__aktionen .knopf { min-height: 44px; padding-inline: var(--s-4); }
.ki--laeuft .ki__text::after { content: " …"; animation: ki-punkte 1s steps(3) infinite; }
@keyframes ki-punkte { 50% { opacity: 0.3; } }
.ki--still { border-style: solid; border-color: var(--line); }
.ki--still .ki__kopf { color: var(--muted); }

/* ---------- Prüfen: vorher / nachher ---------- */
.schritte { display: flex; gap: var(--s-2); counter-reset: schritt; margin: 0; padding: 0; list-style: none; }
.schritte li { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: var(--text-xs); color: var(--muted); letter-spacing: 0.04em; }
.schritte li::before { content: ""; height: 4px; background: var(--line); }
.schritte li[data-stand="fertig"]::before { background: var(--lava); }
.schritte li[data-stand="jetzt"] { color: var(--lava); font-weight: 500; }
.schritte li[data-stand="jetzt"]::before { background: var(--vino); }

.vergleich { display: flex; flex-direction: column; border: var(--linie); background: var(--white); }
.vergleich__punkt { display: grid; grid-template-columns: 4px 1fr; border-bottom: var(--linie); }
.vergleich__punkt:last-child { border-bottom: 0; }
.vergleich__punkt::before { content: ""; background: var(--zustand, var(--line)); }
.vergleich__inhalt { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4); min-width: 0; }
.vergleich__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2); font: 400 var(--text-md)/1.3 var(--font-serif); }
.vergleich__name .muted { font: 400 var(--text-sm)/1.3 var(--font-sans); }
.vergleich__feld { display: grid; grid-template-columns: 96px 1fr; gap: var(--s-1) var(--s-3); font-size: var(--text-sm); }
.vergleich__feld dt { color: var(--muted); }
.vergleich__feld dd { margin: 0; min-width: 0; }
.vorher { color: var(--muted); text-decoration: line-through; margin-right: var(--s-2); }
.nachher { font-weight: 500; }

/* Bestätigung in der Seite (kein Browser-Dialog) */
.bestaetigung {
  display: flex; flex-direction: column; gap: var(--s-4);
  padding: var(--s-6); border: 1.5px solid var(--lava); background: var(--white);
}
.bestaetigung h3 { margin: 0; font: 500 var(--text-lg)/1.25 var(--font-serif); }
.bestaetigung p { margin: 0; font-size: var(--text-sm); }

/* ---------- Versionen ---------- */
.verlauf { display: flex; flex-direction: column; border: var(--linie); background: var(--white); }
.version {
  display: grid; grid-template-columns: 56px 1fr; gap: var(--s-1) var(--s-4); align-items: start;
  padding: var(--s-4); border-bottom: var(--linie);
}
.version:last-child { border-bottom: 0; }
.version__nr {
  grid-row: span 3; display: grid; place-items: center; width: 48px; height: 48px;
  border: var(--ring); border-radius: var(--radius-rund);
  font: 400 var(--text-lg)/1 var(--font-serif); color: var(--muted);
}
.version--live .version__nr { color: var(--live); }
.version__kopf { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); font: 500 var(--text-md)/1.3 var(--font-serif); }
.version__meta { font-size: var(--text-sm); color: var(--muted); }
.version__aktionen { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.version__aktionen .knopf { min-height: 44px; padding-inline: var(--s-4); }

/* ---------- Tabelle (Benutzer, Desktop) ---------- */
.tabelle-rahmen { overflow-x: auto; border: var(--linie); background: var(--white); }
.tabelle { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.tabelle th { padding: var(--s-3) var(--s-4); text-align: left; border-bottom: var(--linie); background: var(--panna); }
.tabelle td { padding: var(--s-3) var(--s-4); border-bottom: var(--linie); vertical-align: middle; }
.tabelle tr:last-child td { border-bottom: 0; }
.person { display: flex; align-items: center; gap: var(--s-3); }
.person__kreis { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: var(--radius-rund); background: var(--sabbia); font: 500 var(--text-sm)/1 var(--font-serif); }
.person__name { font: 500 var(--text-md)/1.2 var(--font-serif); }

/* ---------- Anmeldung ---------- */
.anmeldung { min-height: 100dvh; display: grid; place-items: center; padding: var(--s-8) max(var(--rand-mobil), env(safe-area-inset-right, 0px)) var(--s-8) max(var(--rand-mobil), env(safe-area-inset-left, 0px)); }
.anmeldung__karte { width: min(100%, 400px); display: flex; flex-direction: column; gap: var(--s-6); }
.anmeldung__siegel { width: 132px; margin: 0 auto; }
.anmeldung__titel { margin: 0; text-align: center; font: 500 var(--text-xl)/1.2 var(--font-serif); }
.anmeldung__titel small { display: block; margin-top: var(--s-1); font: 400 var(--text-sm)/1.4 var(--font-sans); color: var(--muted); }

/* ---------- Meldung ---------- */
.meldung {
  position: fixed; z-index: 60; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--touch) + var(--s-6) + env(safe-area-inset-bottom, 0px));
  width: max-content; max-width: calc(100% - 2 * var(--rand-mobil));
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4); background: var(--lava); color: var(--white);
  font-size: var(--text-sm); box-shadow: var(--schatten-lift);
}
.meldung button { border: 0; background: none; color: var(--sabbia); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; font-size: var(--text-xs); min-height: 36px; }
@media (min-width: 960px) { .meldung { bottom: var(--s-8); } }

/* Leerer Zustand */
.leer { padding: var(--s-8) var(--s-4); text-align: center; color: var(--muted); border: 1px dashed var(--line); }
.leer strong { display: block; margin-bottom: var(--s-1); font: 500 var(--text-lg)/1.3 var(--font-serif); color: var(--lava); }
