/* =================================================================
   Bella India - Gestaltung
   Farben aus der gedruckten Speisekarte, eine Spur heller und
   pastelliger: Creme #FEF0E1, Rot #912C2A, Grün #185030.
   ================================================================= */
:root {
    --creme:        #FFF8F0;
    --creme-tief:   #FDEFE1;
    --karte:        #FFFFFF;
    --rot:          #A8453F;
    --rot-tief:     #8E322D;
    --rot-pastell:  #FBE8E4;
    --gruen:        #3B7355;
    --gruen-pastell:#E7F0EA;
    --gold:         #C89A4B;
    --gold-pastell: #FBF1DD;
    --text:         #3D2B22;
    --text-leise:   #8A7566;
    --rand:         #EFE0CE;
    --rand-stark:   #E2CDB4;
    --schatten:     0 1px 2px rgba(61,43,34,.05), 0 8px 24px rgba(61,43,34,.07);
    --schatten-hoch:0 12px 40px rgba(61,43,34,.16);
    --rund:         14px;
    --max:          1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 132px; }

body {
    margin: 0;
    background: var(--creme);
    color: var(--text);
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; line-height: 1.2; margin: 0; }
h1 { font-size: clamp(28px, 5vw, 44px); }
h2 { font-size: clamp(21px, 3vw, 27px); }
h3 { font-size: 17px; }
p { margin: 0 0 12px; }
a { color: var(--rot); }

.huelle { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.nur-fuer-screenreader {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------- Knöpfe ---------------- */
button { font: inherit; cursor: pointer; }

.knopf {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid transparent; border-radius: 999px;
    padding: 11px 22px; font-size: 15px; font-weight: 600;
    background: var(--rot); color: #fff; text-decoration: none;
    transition: background .15s, transform .08s, box-shadow .15s;
}
.knopf:hover { background: var(--rot-tief); }
.knopf:active { transform: translateY(1px); }
.knopf:disabled { background: #d9c9ba; cursor: not-allowed; transform: none; }
.knopf.still { background: var(--karte); color: var(--text); border-color: var(--rand-stark); }
.knopf.still:hover { background: var(--creme-tief); }
.knopf.klein { padding: 7px 14px; font-size: 14px; }
.knopf.breit { width: 100%; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* ---------------- Kopf ---------------- */
.kopf {
    position: sticky; top: 0; z-index: 60;
    background: rgba(255, 248, 240, .96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rand);
}
.kopf-reihe { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.marke { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; margin-right: auto; min-width: 0; }
.marke-text { min-width: 0; }
.marke-zeichen {
    width: 42px; height: 42px; border-radius: 12px; flex: none;
    background: var(--rot); color: #fff;
    display: grid; place-items: center;
    font-family: Georgia, serif; font-size: 20px; font-weight: 700;
}
.marke-text strong { display: block; font-family: Georgia, serif; font-size: 18px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marke-text span { font-size: 12px; color: var(--text-leise); }

.ampel { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.ampel::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gruen); flex: none; }
.ampel.zu { color: var(--rot); }
.ampel.zu::before { background: var(--rot); }

.korb-knopf { position: relative; flex: none; }
.korb-zahl {
    position: absolute; top: -5px; right: -5px; min-width: 21px; height: 21px;
    border-radius: 999px; background: var(--gruen); color: #fff;
    font-size: 12px; font-weight: 700; display: grid; place-items: center; padding: 0 5px;
}

/* ---------------- Kategorienleiste ---------------- */
.kat-leiste { border-bottom: 1px solid var(--rand); background: var(--creme); overflow: hidden; position: relative; }
.kat-leiste::after { content: ""; position: absolute; top: 0; right: 0; bottom: 5px; width: 36px; pointer-events: none; background: linear-gradient(90deg, rgba(255,248,240,0), var(--creme)); }
.kat-rolle { display: flex; gap: 8px; overflow-x: auto; padding: 10px 20px; scrollbar-width: thin; }
.kat-rolle::-webkit-scrollbar { height: 5px; }
.kat-rolle::-webkit-scrollbar-thumb { background: var(--rand-stark); border-radius: 9px; }
.kat-chip {
    flex: none; border: 1px solid var(--rand-stark); background: var(--karte);
    border-radius: 999px; padding: 7px 15px; font-size: 14px; color: var(--text);
    text-decoration: none; white-space: nowrap;
}
.kat-chip:hover { background: var(--creme-tief); }
.kat-chip.aktiv { background: var(--gruen); border-color: var(--gruen); color: #fff; }

/* ---------------- Hinweisband ---------------- */
.band { padding: 10px 0; font-size: 14px; text-align: center; }
.band.warnung { background: var(--rot-pastell); color: var(--rot-tief); }
.band.gut { background: var(--gruen-pastell); color: var(--gruen); }

/* ---------------- Kopfbereich ---------------- */
.buehne { padding: 34px 0 26px; }
.buehne p { color: var(--text-leise); max-width: 62ch; }
.buehne-fakten { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.fakt {
    background: var(--karte); border: 1px solid var(--rand); border-radius: var(--rund);
    padding: 9px 15px; font-size: 14px;
}
.fakt strong { display: block; font-size: 12px; color: var(--text-leise); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

.wahl { display: inline-flex; background: var(--creme-tief); border: 1px solid var(--rand-stark); border-radius: 999px; padding: 4px; margin: 20px 0 6px; }
.wahl button {
    border: 0; background: transparent; border-radius: 999px; padding: 9px 20px;
    font-size: 15px; font-weight: 600; color: var(--text-leise);
}
.wahl button[aria-pressed="true"] { background: var(--karte); color: var(--text); box-shadow: var(--schatten); }
.rabatt-wink { font-size: 14px; color: var(--gruen); font-weight: 600; }

/* ---------------- Liefergebiet abfragen ---------------- */
.zone-abfrage {
    margin-top: 16px; background: var(--karte); border: 1px solid var(--rand);
    border-radius: var(--rund); padding: 14px 16px; max-width: 560px;
}
.zone-eingabe { display: flex; gap: 9px; flex-wrap: wrap; }
.zone-eingabe input { width: 110px; flex: none; }
.zone-eingabe select { flex: 1 1 190px; min-width: 150px; }
.zone-abfrage .hinweis { margin-top: 8px; }
.zone-abfrage .treffer { color: var(--gruen); font-weight: 600; }
.zone-abfrage .daneben { color: var(--rot); font-weight: 600; }

/* ---------------- Angebote ---------------- */
.angebots-band {
    margin-top: 18px; display: grid; gap: 9px;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.angebot-karte {
    display: flex; gap: 12px; align-items: flex-start;
    background: var(--gold-pastell); border: 1px solid #e8d4ac;
    border-radius: var(--rund); padding: 12px 15px;
}
.angebot-karte.hier { background: var(--gruen-pastell); border-color: #bcd6c6; }
.angebot-zeichen {
    flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
    background: var(--gold); color: #fff; font-size: 16px; font-weight: 700; font-family: Georgia, serif;
}
.angebot-karte.hier .angebot-zeichen { background: var(--gruen); }
.angebot-text strong { display: block; font-size: 14.5px; }
.angebot-text span { font-size: 12.5px; color: var(--text-leise); }
.angebot-karte.hier .angebot-text span { color: var(--gruen); }

.angebot-marke {
    display: inline-block; background: var(--gold); color: #fff; border-radius: 999px;
    padding: 2px 9px; font-size: 11.5px; font-weight: 700; letter-spacing: .01em;
}
.angebot-marke.hier { background: var(--gruen); }

.zeile-angebot { font-size: 12.5px; color: var(--gruen); font-weight: 600; }

/* ---------------- Gerichte ---------------- */
.kat { padding: 26px 0 6px; }
.kat-kopf { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.kat-notiz { font-size: 13px; color: var(--text-leise); margin: 0 0 14px; }

.gitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(305px, 1fr)); gap: 12px; }

.gericht {
    background: var(--karte); border: 1px solid var(--rand); border-radius: var(--rund);
    padding: 14px 15px; display: flex; gap: 12px; align-items: flex-start;
    transition: border-color .15s, box-shadow .15s;
}
.gericht:hover { border-color: var(--rand-stark); box-shadow: var(--schatten); }
.gericht.weg { opacity: .55; }
.gericht-text { flex: 1 1 auto; min-width: 0; }
.gericht-nr { font-size: 12px; color: var(--text-leise); font-variant-numeric: tabular-nums; }
.gericht-name { font-size: 15.5px; font-weight: 600; margin: 1px 0 3px; }
.gericht-info { font-size: 13.5px; color: var(--text-leise); margin: 0; }
.kennz { font-size: 11px; color: var(--text-leise); cursor: help; border-bottom: 1px dotted var(--rand-stark); }
.grundpreis { font-size: 11.5px; color: var(--text-leise); }
.gericht-rechts { flex: none; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.preis { font-weight: 700; font-size: 15.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.preis .ab { font-size: 11.5px; color: var(--text-leise); font-weight: 400; }
.preis .alt { display: block; font-size: 11.5px; color: var(--text-leise); text-decoration: line-through; font-weight: 400; }
.plus {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--rand-stark);
    background: var(--creme); color: var(--rot); font-size: 21px; line-height: 1;
    display: grid; place-items: center; padding: 0;
}
.plus:hover { background: var(--rot); color: #fff; border-color: var(--rot); }
.plus:disabled { opacity: .4; cursor: not-allowed; background: var(--creme); color: var(--text-leise); }
.marke-weg { font-size: 12px; color: var(--rot); font-weight: 600; }

/* ---------------- Warenkorb ---------------- */
.korb {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 100%);
    background: var(--creme); border-left: 1px solid var(--rand);
    box-shadow: var(--schatten-hoch); z-index: 90;
    display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform .22s ease;
}
.korb[data-offen="ja"] { transform: none; }
.korb-kopf { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--rand); }
.korb-kopf h2 { margin-right: auto; font-size: 20px; }
.korb-inhalt { flex: 1 1 auto; overflow-y: auto; padding: 14px 18px; }
.korb-fuss { border-top: 1px solid var(--rand); padding: 14px 18px; background: var(--karte); }

.zeile { display: flex; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--rand); }
.zeile:last-child { border-bottom: 0; }
.zeile-text { flex: 1 1 auto; min-width: 0; }
.zeile-name { font-size: 14.5px; font-weight: 600; }
.zeile-extra { font-size: 12.5px; color: var(--text-leise); }
.zeile-rechts { text-align: right; flex: none; }
.menge { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--rand-stark); border-radius: 999px; background: var(--karte); }
.menge button { border: 0; background: transparent; width: 29px; height: 29px; font-size: 17px; color: var(--rot); border-radius: 999px; }
.menge button:hover { background: var(--creme-tief); }
.menge span { min-width: 22px; text-align: center; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }

.summen { font-size: 14.5px; }
.summen div { display: flex; justify-content: space-between; padding: 3px 0; }
.summen .nachlass { color: var(--gruen); font-weight: 600; }
.summen .gesamt { font-size: 19px; font-weight: 700; border-top: 1px solid var(--rand); margin-top: 7px; padding-top: 9px; }
.summen .pfand-hinweis { font-size: 12px; color: var(--text-leise); }
.mbw-warnung { background: var(--gold-pastell); border: 1px solid #e8d4ac; border-radius: 10px; padding: 9px 12px; font-size: 13.5px; margin-bottom: 10px; }

.schleier { position: fixed; inset: 0; background: rgba(61,43,34,.4); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .22s; }
.schleier[data-offen="ja"] { opacity: 1; pointer-events: auto; }

.leer { text-align: center; color: var(--text-leise); padding: 46px 10px; font-size: 14.5px; }

/* ---------------- Fenster (Modal) ---------------- */
.fenster { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(61,43,34,.45); }
.fenster[data-offen="ja"] { display: flex; }
.fenster-inhalt {
    background: var(--creme); border-radius: 18px; box-shadow: var(--schatten-hoch);
    width: min(620px, 100%); max-height: min(88vh, 860px); display: flex; flex-direction: column;
}
.fenster-kopf { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 12px; border-bottom: 1px solid var(--rand); }
.fenster-kopf h2 { margin-right: auto; }
.fenster-koerper { overflow-y: auto; padding: 16px 20px; }
.fenster-fuss { border-top: 1px solid var(--rand); padding: 14px 20px; background: var(--karte); border-radius: 0 0 18px 18px; }
.schliessen { border: 0; background: transparent; font-size: 25px; line-height: 1; color: var(--text-leise); padding: 2px 6px; border-radius: 9px; }
.schliessen:hover { background: var(--creme-tief); color: var(--text); }

fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 9px; }
.legende-wink { font-weight: 400; color: var(--text-leise); font-size: 13px; }

.optionen { display: grid; gap: 7px; }
.option {
    display: flex; align-items: center; gap: 11px; padding: 10px 13px;
    border: 1px solid var(--rand); border-radius: 11px; background: var(--karte); cursor: pointer;
}
.option:hover { border-color: var(--rand-stark); }
.option input { accent-color: var(--rot); width: 17px; height: 17px; flex: none; }
.option .o-name { flex: 1 1 auto; font-size: 14.5px; }
.option .o-preis { font-size: 13.5px; color: var(--text-leise); font-variant-numeric: tabular-nums; white-space: nowrap; flex: none; }
.option:has(input:checked) { border-color: var(--rot); background: var(--rot-pastell); }
.option input:disabled { opacity: .4; }
.option:has(input:disabled) { opacity: .55; cursor: not-allowed; }

.zutaten-gitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 7px; }

/* ---------------- Formulare ---------------- */
label.feld { display: block; margin-bottom: 13px; }
label.feld > span { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 5px; }
label.feld .wink { font-weight: 400; color: var(--text-leise); }

input[type=text], input[type=tel], input[type=email], input[type=number], input[type=password], input[type=date], select, textarea {
    width: 100%; padding: 11px 13px; font: inherit; font-size: 15px;
    border: 1px solid var(--rand-stark); border-radius: 11px;
    background: var(--karte); color: var(--text);
}
input:focus, select:focus, textarea:focus { border-color: var(--rot); outline: 2px solid var(--rot-pastell); outline-offset: 0; }
input[aria-invalid="true"] { border-color: var(--rot); background: var(--rot-pastell); }
textarea { resize: vertical; min-height: 78px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-leise) 50%), linear-gradient(135deg, var(--text-leise) 50%, transparent 50%); background-position: calc(100% - 19px) 51%, calc(100% - 14px) 51%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 38px; }

.reihe { display: grid; gap: 12px; }
.reihe.zwei { grid-template-columns: 1fr 1fr; }
.reihe.plz-ort { grid-template-columns: 130px 1fr; }
.reihe.strasse { grid-template-columns: 1fr 110px; }
.reihe.telefon { grid-template-columns: 180px 1fr; }

.haken { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; margin-bottom: 12px; cursor: pointer; }
.haken input { width: 18px; height: 18px; accent-color: var(--rot); flex: none; margin-top: 2px; }

.fehler { color: var(--rot-tief); background: var(--rot-pastell); border: 1px solid #e9c5bf; border-radius: 11px; padding: 11px 14px; font-size: 14px; margin-bottom: 14px; }
.hinweis { color: var(--text-leise); font-size: 13px; margin-top: 5px; }

/* Vorschlagsliste Straße */
.vorschlag-huelle { position: relative; }
.vorschlaege {
    position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20;
    background: var(--karte); border: 1px solid var(--rand-stark); border-radius: 11px;
    box-shadow: var(--schatten); max-height: 230px; overflow-y: auto; padding: 4px;
}
.vorschlaege:empty { display: none; }
.vorschlaege button {
    display: block; width: 100%; text-align: left; border: 0; background: transparent;
    padding: 9px 11px; border-radius: 8px; font-size: 14.5px;
}
.vorschlaege button:hover, .vorschlaege button[aria-selected="true"] { background: var(--rot-pastell); }
.vorschlaege .nebensache { display: block; font-size: 12px; color: var(--text-leise); }

/* ---------------- Sterne ---------------- */
.sterne { display: inline-flex; gap: 3px; }
.sterne button { border: 0; background: transparent; font-size: 29px; line-height: 1; padding: 2px; color: var(--rand-stark); }
.sterne button[data-an="ja"] { color: var(--gold); }
.sterne-klein { color: var(--gold); font-size: 14px; letter-spacing: 1px; }

.bewertung { background: var(--karte); border: 1px solid var(--rand); border-radius: var(--rund); padding: 14px 16px; }
.bewertung-kopf { display: flex; align-items: baseline; gap: 10px; margin-bottom: 5px; }
.bewertung-kopf strong { font-size: 14.5px; }
.bewertung-kopf time { font-size: 12.5px; color: var(--text-leise); margin-left: auto; }
.bewertung p { font-size: 14px; margin: 0; }

/* ---------------- Fuß ---------------- */
.fuss { margin-top: 48px; background: var(--creme-tief); border-top: 1px solid var(--rand); padding: 30px 0 34px; font-size: 14px; }
.fuss-gitter { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px; }
.fuss h3 { font-size: 14px; margin-bottom: 8px; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: 5px; }
.fuss a { color: var(--text); text-decoration: none; }
.fuss a:hover { text-decoration: underline; }
.fuss .klein { color: var(--text-leise); font-size: 12.5px; }

/* ---------------- Rechtstexte ---------------- */
.rechtstext { max-width: 760px; margin: 0 auto; padding: 30px 20px 50px; }
.rechtstext h1 { margin-bottom: 18px; }
.rechtstext h2 { margin: 28px 0 9px; font-size: 20px; }
.rechtstext h3 { margin: 18px 0 6px; }
.rechtstext ul, .rechtstext ol { padding-left: 21px; }
.rechtstext li { margin-bottom: 5px; }
.rechtstext table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14.5px; }
.rechtstext th, .rechtstext td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rand); vertical-align: top; }
.rechtstext th { background: var(--creme-tief); font-size: 13px; }
.luecke { background: var(--gold-pastell); border-bottom: 1px dashed var(--gold); padding: 0 3px; font-weight: 600; }

/* ---------------- Meldung ---------------- */
.meldung {
    position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(140%);
    background: var(--text); color: #fff; padding: 11px 19px; border-radius: 999px;
    font-size: 14.5px; z-index: 200; box-shadow: var(--schatten-hoch);
    transition: transform .25s, opacity .25s, visibility .25s;
    max-width: calc(100% - 32px);
    opacity: 0; visibility: hidden;
}
.meldung[data-an="ja"] { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }

/* ---------------- Schmale Bildschirme ---------------- */
@media (max-width: 680px) {
    html { scroll-padding-top: 118px; }
    .marke-text span { display: none; }
    /* Der Öffnungsstatus steht auf schmalen Schirmen im Band darunter. */
    .ampel { display: none; }
    .korb-zahl { right: -2px; }
    .reihe.zwei, .reihe.telefon { grid-template-columns: 1fr; }
    .gitter { grid-template-columns: 1fr; }
    .buehne { padding: 24px 0 18px; }
    .korb { width: 100%; }
    .fenster { padding: 0; align-items: flex-end; }
    .fenster-inhalt { max-height: 92vh; border-radius: 18px 18px 0 0; }
    .fenster-fuss { border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
}

@media print {
    .kopf, .kat-leiste, .korb, .schleier, .plus, .wahl, .fuss { display: none !important; }
}

/* ---------------------------------------------------------------
   Statusleiste: geöffnet + aktuelle Wartezeiten
   --------------------------------------------------------------- */
.band.status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    background: var(--gruen-hell, #eef7ef);
    color: var(--gruen-dunkel, #1f5c2a);
    border: 1px solid var(--gruen-rand, #cfe6d3);
}
.status-punkt {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--gruen, #2f7d32);
    flex: 0 0 auto;
}
.status-notiz {
    flex-basis: 100%;
    font-size: 13.5px;
    opacity: .85;
}
@media (max-width: 520px) {
    .band.status { font-size: 14px; }
}

/* ---------------------------------------------------------------
   Mein Konto
   --------------------------------------------------------------- */
.punkte-kachel {
    border: 1px solid var(--rand);
    border-radius: 12px;
    padding: 16px 18px;
    margin: 10px 0 6px;
    background: var(--karte, #fff);
}
.punkte-zahl { font-size: 28px; line-height: 1.1; }
.punkte-zahl span { font-size: 16px; opacity: .75; }
.punkte-balken {
    height: 10px;
    border-radius: 999px;
    background: var(--rand);
    overflow: hidden;
    margin: 12px 0 10px;
}
.punkte-fuellung {
    display: block;
    height: 100%;
    background: var(--gruen, #2f7d32);
}

.konto-bestellung {
    border: 1px solid var(--rand);
    border-radius: 12px;
    padding: 14px 16px;
    margin: 12px 0;
    background: var(--karte, #fff);
}
.konto-kopf {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    margin-bottom: 8px;
}
.konto-marke {
    font-size: 12.5px;
    border: 1px solid var(--rand);
    border-radius: 999px;
    padding: 1px 9px;
}
.konto-zeilen { list-style: none; margin: 0; padding: 0; }
.konto-zeilen li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 3px 0;
    border-bottom: 1px dashed var(--rand);
}
.konto-zeilen li:last-child { border-bottom: 0; }
.konto-fuss {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--rand);
}
.konto-punkte { font-size: 13.5px; color: var(--gruen, #2f7d32); font-weight: 600; }
table.konto-daten { width: 100%; border-collapse: collapse; }
table.konto-daten td { padding: 5px 0; border-bottom: 1px solid var(--rand); vertical-align: top; }
table.konto-daten td:first-child { width: 42%; opacity: .75; }

/* Anmeldung per Code auf der Kontoseite */
.anmelde-kasten {
    border: 1px solid var(--rand);
    border-radius: 12px;
    padding: 16px 18px;
    margin: 12px 0;
    background: var(--karte, #fff);
    max-width: 460px;
}
.anmelde-kasten .feld { display: block; margin-bottom: 12px; }
.anmelde-kasten .feld span { display: block; margin-bottom: 4px; font-size: 14px; }
.anmelde-kasten input {
    width: 100%;
    font: inherit;
    padding: 9px 11px;
    border: 1px solid var(--rand);
    border-radius: 8px;
}
#anmelde-code {
    letter-spacing: .35em;
    font-size: 20px;
    text-align: center;
}
.anmelde-kasten .knopf + .knopf { margin-left: 8px; }

/* Das hidden-Attribut muss immer gewinnen. Ohne diese Regel zeigen
   Elemente mit eigener display-Angabe (etwa .knopf) sich trotzdem -
   so war anfangs "Mein Konto" auch für unbekannte Gäste sichtbar. */
[hidden] { display: none !important; }

/* ---------------------------------------------------------------
   Sprachumschalter
   --------------------------------------------------------------- */
.sprachwahl {
    display: inline-flex;
    border: 1px solid var(--rand);
    border-radius: 999px;
    overflow: hidden;
    flex: 0 0 auto;
}
.sprach-knopf {
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    padding: 5px 11px;
    min-height: 32px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}
.sprach-knopf + .sprach-knopf { border-left: 1px solid var(--rand); }
.sprach-knopf.aktiv { background: var(--akzent, #8a5a2b); color: #fff; }
.sprach-knopf:focus-visible { outline: 2px solid var(--akzent); outline-offset: -2px; }
@media (max-width: 420px) {
    .sprach-knopf { padding: 5px 9px; font-size: 12.5px; }
}

/* ---------------------------------------------------------------
   Fingergerechte Tippziele

   Der Kennzeichnungs-Knopf war 22 px hoch - auf dem Telefon trifft
   man das kaum. Auf Zeigegeräten bleibt es kompakt, auf
   Berührungsbildschirmen wird es größer.
   --------------------------------------------------------------- */
@media (pointer: coarse) {
    .kennz {
        display: inline-block;
        min-height: 40px;
        line-height: 40px;
        padding: 0 2px;
        font-size: 12px;
    }
    .gericht-info + .kennz,
    .kennz + .kennz { margin-left: 2px; }
}

/* ---------------------------------------------------------------
   Breite Tabellen auf dem Telefon

   Die Cookie-Tabelle und die Zonentabelle haben vier Spalten und
   passen bei 360 px nicht. Statt die ganze Seite seitlich zu
   schieben, scrollt jetzt nur die Tabelle selbst.
   --------------------------------------------------------------- */
@media (max-width: 620px) {
    .rechtstext table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border: 1px solid var(--rand);
        border-radius: 8px;
    }
    .rechtstext table th,
    .rechtstext table td { min-width: 108px; }
    .rechtstext table td:first-child,
    .rechtstext table th:first-child { min-width: 92px; }
}

/* Schließen-Knopf war 29 px - auf dem Telefon zu klein zum Treffen */
@media (pointer: coarse) {
    .schliessen {
        min-width: 44px;
        min-height: 44px;
        padding: 4px 10px;
    }
}
