/* Gleiche Gestaltung wie die Filmdatenbank, mit kühlem Blau als Akzent.
   Farben: hell ist Standard, dunkel per System-Einstellung oder Umschalter (data-theme) */
:root {
  color-scheme: light;
  --bg: #f4f6f9;
  --flaeche: #ffffff;
  --flaeche2: #e9edf2;
  --rand: #dde2e9;
  --text: #15181d;
  --leise: #667080;
  --akzent: #0b78c9;
  --akzent-text: #ffffff;
  --akzent-weich: rgba(11, 120, 201, .09);
  --rot: #d9363e;
  --gold: #c97a00;
  --gruen: #2a8a45;
  --kopf-bg: rgba(244, 246, 249, .78);
  --schatten: 0 1px 2px rgba(20, 30, 45, .06), 0 6px 20px rgba(20, 30, 45, .08);
  --schatten-hoch: 0 4px 10px rgba(20, 30, 45, .08), 0 20px 44px rgba(20, 30, 45, .16);
  --abdeckung: rgba(30, 35, 45, .35);
  --ph-s: 60%; --ph-l1: 92%; --ph-l2: 82%;
  --radius: 14px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1014;
  --flaeche: #161a20;
  --flaeche2: #20262e;
  --rand: #2a313b;
  --text: #f1f4f7;
  --leise: #94a0b0;
  --akzent: #5ab8ff;
  --akzent-text: #0d1014;
  --akzent-weich: rgba(90, 184, 255, .13);
  --rot: #ff6b70;
  --gold: #f5b942;
  --gruen: #5fce7e;
  --kopf-bg: rgba(13, 16, 20, .78);
  --schatten: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .35);
  --schatten-hoch: 0 4px 10px rgba(0, 0, 0, .4), 0 22px 48px rgba(0, 0, 0, .6);
  --abdeckung: rgba(0, 0, 0, .62);
  --ph-s: 30%; --ph-l1: 26%; --ph-l2: 17%;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d1014;
    --flaeche: #161a20;
    --flaeche2: #20262e;
    --rand: #2a313b;
    --text: #f1f4f7;
    --leise: #94a0b0;
    --akzent: #5ab8ff;
    --akzent-text: #0d1014;
    --akzent-weich: rgba(90, 184, 255, .13);
    --rot: #ff6b70;
    --gold: #f5b942;
    --gruen: #5fce7e;
    --kopf-bg: rgba(13, 16, 20, .78);
    --schatten: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .35);
    --schatten-hoch: 0 4px 10px rgba(0, 0, 0, .4), 0 22px 48px rgba(0, 0, 0, .6);
    --abdeckung: rgba(0, 0, 0, .62);
    --ph-s: 30%; --ph-l1: 26%; --ph-l2: 17%;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

/* Kopf */
.kopf {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 20px;
  padding: 12px 32px; background: var(--kopf-bg); backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--rand);
}
.marke { display: flex; align-items: center; gap: 10px; }
.logo {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #fff; font-size: 18px; line-height: 1;
  background: linear-gradient(140deg, #0b84d8, #35c9c4);
}
.marke h1 { font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
#suche {
  flex: 1; min-width: 0; max-width: 560px; margin: 0 auto; padding: 9px 16px 9px 40px; border-radius: 12px;
  border: 1px solid transparent; color: var(--text); font: inherit; outline: none;
  background: var(--flaeche2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23888896' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 3.5 3.5'/%3E%3C/svg%3E") no-repeat 14px center;
}
#suche:focus { border-color: var(--akzent); background-color: var(--flaeche); }
.kopf-knoepfe { display: flex; gap: 8px; }

.knopf {
  padding: 8px 15px; border-radius: 10px; border: 1px solid var(--rand); background: var(--flaeche);
  color: var(--text); font: inherit; font-weight: 550; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s;
}
.knopf:hover { background: var(--flaeche2); }
.knopf:active { transform: scale(.97); }
.knopf.akzent { background: var(--akzent); color: var(--akzent-text); border-color: transparent; }
.knopf.akzent:hover { filter: brightness(1.1); }
.knopf.gefahr { color: var(--rot); }
.knopf.klein { padding: 6px 12px; font-size: 13px; }
.knopf.rund { width: 38px; padding: 8px 0; text-align: center; }
.knopf:disabled { opacity: .45; cursor: default; }

/* Bereiche: Gefrierschrank / Kühlschrank */
.medien { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--rand); border-radius: 10px; }
.medien button { padding: 5px 13px; border: 0; border-radius: 7px; background: none; color: var(--leise); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.medien button:hover:not(:disabled) { color: var(--text); }
.medien button.aktiv { background: var(--akzent); color: var(--akzent-text); }
.medien button:disabled { opacity: .55; cursor: default; }
.medien small { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* Einstieg mit Zahlen */
.intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; padding: 40px 32px 8px; }
.intro h2 { font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.intro p { color: var(--leise); margin-top: 6px; }
.zahlen { display: flex; gap: 6px; overflow-x: auto; }
.zahl { flex: 0 0 auto; padding: 8px 14px; border: 0; border-radius: 12px; background: none; cursor: pointer; text-align: left; color: var(--text); font: inherit; }
.zahl:hover { background: var(--flaeche2); }
.zahl.aktiv { background: var(--akzent-weich); }
.zahl b { display: block; font-size: 22px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.zahl span { font-size: 12px; color: var(--leise); }
.zahl.bald b { color: var(--gold); }
.zahl.rot b { color: var(--rot); }

/* Filter */
.filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 18px 32px; }
.filter select {
  appearance: none; padding: 7px 30px 7px 13px; border-radius: 999px; border: 1px solid var(--rand);
  color: var(--text); font: inherit; font-size: 13px; max-width: 100%; cursor: pointer;
  background: var(--flaeche) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%23888896' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m1 1 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center
}
.filter select:hover { border-color: var(--leise); }
.filter select.aktiv { border-color: var(--akzent); background-color: var(--akzent-weich); color: var(--akzent); font-weight: 600; }
.filter .knopf.klein { border-radius: 999px; border-color: transparent; background: none; color: var(--leise); }
.filter .knopf.klein:hover { color: var(--text); background: var(--flaeche2); }
.treffer { margin-left: auto; color: var(--leise); font-size: 13px; }

/* Karten: Bild, Angaben, Entnehmen-Knopf; der linke Rand zeigt die Haltbarkeit */
.raster { display: grid; gap: 12px; padding: 6px 32px 48px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); align-items: stretch; }
.karte {
  display: flex; flex-direction: column; border-radius: var(--radius); background: var(--flaeche); box-shadow: var(--schatten);
  border-left: 4px solid var(--gruen); overflow: hidden; transition: transform .2s cubic-bezier(.2, .7, .3, 1), box-shadow .2s;
}
.karte.bald { border-left-color: var(--gold); }
.karte.rot { border-left-color: var(--rot); }
.karte:hover { transform: translateY(-2px); box-shadow: var(--schatten-hoch); }
.karte-kopf { flex: 1; display: flex; align-items: stretch; }
.karte-haupt { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 12px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.karte-haupt:focus-visible { outline-offset: -2px; border-radius: var(--radius); }
.bild {
  position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(165deg, hsl(var(--h) var(--ph-s) var(--ph-l1)), hsl(calc(var(--h) + 35) var(--ph-s) var(--ph-l2)));
}
.bild i { font-style: normal; font-size: 30px; line-height: 1; }
.bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.karte-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.karte-text b { font-weight: 600; line-height: 1.3; letter-spacing: -.005em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.karte-text small { font-size: 12px; color: var(--leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frist { align-self: flex-start; margin-top: 5px; padding: 1px 9px; border-radius: 6px; font-size: 12px; font-weight: 650; color: var(--gruen); background: color-mix(in srgb, var(--gruen) 13%, transparent); }
.frist.bald { color: var(--gold); background: color-mix(in srgb, var(--gold) 15%, transparent); }
.frist.rot { color: var(--rot); background: color-mix(in srgb, var(--rot) 13%, transparent); }
.entnehmen { flex: 0 0 54px; border: 0; border-left: 1px solid var(--rand); background: none; color: var(--leise); font: inherit; font-size: 16px; font-weight: 650; cursor: pointer; }
.entnehmen:hover { background: var(--akzent-weich); color: var(--akzent); }
div.karte-haupt { cursor: default; }
/* Posten: mehrere Einträge desselben Artikels mit eigener Menge und eigenem Datum */
.posten { display: flex; align-items: stretch; border-top: 1px solid var(--rand); }
.posten-haupt { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 12px; border: 0; background: none; color: inherit; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.posten-haupt:hover, button.karte-haupt:hover { background: var(--akzent-weich); }
.posten-haupt > span:first-child { min-width: 0; display: flex; flex-direction: column; }
.posten-haupt small { font-size: 12px; color: var(--leise); }
.posten .frist { align-self: center; margin: 0; flex: 0 0 auto; }

/* Umschalter Kacheln / Liste */
.darstellung { display: inline-flex; gap: 2px; padding: 3px; background: var(--flaeche2); border-radius: 999px; }
.darstellung button { width: 32px; height: 26px; border: 0; border-radius: 999px; background: none; color: var(--leise); font-size: 15px; line-height: 1; cursor: pointer; }
.darstellung button.aktiv { background: var(--flaeche); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }

/* Listenansicht */
.raster.liste { display: block; padding-top: 0; }
.lz {
  display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 3.2fr) minmax(0, 1.3fr) 44px;
  align-items: center; gap: 12px; padding: 3px 0 3px 10px; border-bottom: 1px solid var(--rand); border-left: 3px solid var(--gruen); font-size: 13px; min-height: 42px;
}
.lz.bald { border-left-color: var(--gold); }
.lz.rot { border-left-color: var(--rot); }
.lz:hover { background: var(--flaeche); }
.lz-kopf { position: sticky; top: 63px; z-index: 2; min-height: 32px; border-left-color: transparent; background: var(--bg); color: var(--leise); font-size: 12px; font-weight: 600; }
.lz-kopf:hover { background: var(--bg); }
.lz-info { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 12px; min-width: 0; color: var(--leise); }
.lz-info > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lz-titel { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; }
button.lz-titel { cursor: pointer; }
.lz-titel i { flex: 0 0 24px; font-style: normal; font-size: 18px; text-align: center; }
.lz-titel span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lz-titel b { font-weight: 600; }
.lz small { color: var(--leise); }
.lz .frist { margin: 0; white-space: nowrap; }
.lz .entnehmen { flex: none; align-self: stretch; min-height: 36px; border-left: 0; border-radius: 8px; }
.lz-gruppe { border-bottom-color: transparent; }
.lz-posten { min-height: 34px; }
.lz-posten:not(:last-child):has(+ .lz-posten) { border-bottom-color: transparent; }
.lz-posten .lz-titel { padding-left: 24px; color: var(--leise); }

.leer { text-align: center; padding: 80px 24px; color: var(--leise); }
.leer .gross { font-size: 48px; }
.leer h2 { color: var(--text); margin: 8px 0; letter-spacing: -.02em; }
.leer .knopf { margin-top: 18px; }

/* Dialog */
dialog {
  width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 1px solid var(--rand);
  border-radius: 22px; background: var(--flaeche); color: var(--text); box-shadow: var(--schatten-hoch);
}
dialog:focus { outline: none; }
dialog[open] { animation: auf .2s cubic-bezier(.2, .7, .3, 1); }
@keyframes auf { from { opacity: 0; transform: translateY(10px) scale(.985); } }
dialog::backdrop { background: var(--abdeckung); backdrop-filter: blur(6px); }
.dlg-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 24px 4px; }
.dlg-kopf h2 { font-size: 19px; font-weight: 650; letter-spacing: -.02em; }
.dlg-koerper { padding: 20px 24px; }
.dlg-fuss {
  position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 14px 24px;
  background: var(--flaeche); border-top: 1px solid var(--rand);
}
.dlg-fuss .links { margin-right: auto; }
.schliessen { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--flaeche2); color: var(--leise); font-size: 20px; line-height: 1; cursor: pointer; }
.schliessen:hover { color: var(--text); }
.fehler { color: var(--rot); font-weight: 600; margin-top: 12px; }

/* Strichcode-Feld im Formular */
.scan-box { padding: 14px 18px; margin-bottom: 12px; border-radius: var(--radius); background: var(--akzent-weich); }
.scan-box > span { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 650; }
.scan-box small { display: block; margin-top: 8px; font-size: 12px; color: var(--leise); }
.suchzeile { display: flex; gap: 8px; }
.suchzeile input { flex: 1; min-width: 0; }

/* Formular */
.formular .abschnitt { padding: 18px; margin-bottom: 12px; background: var(--bg); border-radius: var(--radius); }
.formular .abschnitt:last-of-type { margin-bottom: 0; }
.formular .felder { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-top: 14px; }
.formular h3 { font-size: 13px; font-weight: 650; }
.formular .f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.formular .f > span { font-size: 12px; color: var(--leise); }
.formular .breit { grid-column: 1 / -1; }
.formular input:not([type=radio]), .formular textarea, .formular select {
  width: 100%; min-height: 42px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--rand);
  background: var(--flaeche); color: var(--text); font: inherit; outline: none;
}
.formular input.gross { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.formular input:focus, .formular textarea:focus, .formular select:focus { border-color: var(--akzent); }
.formular textarea { min-height: 80px; resize: vertical; line-height: 1.5; }
.menge { display: flex; gap: 6px; }
.menge input { flex: 0 0 64px; width: 64px; text-align: center; }
.menge .knopf { flex: 0 0 42px; padding: 0; font-size: 18px; }
.menge select { flex: 1; min-width: 0; }
.frist-info { font-size: 13px; color: var(--leise); }
.frist-info:empty { display: none; }
.link { background: none; border: 0; padding: 0 0 0 10px; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* Umschalter */
.seg { display: flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--flaeche2); border-radius: 10px; }
.seg label { flex: 1; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 7px 10px; border-radius: 8px; text-align: center; font-size: 13px; color: var(--leise); white-space: nowrap; transition: background .15s, color .15s; }
.seg label:hover span { color: var(--text); }
.seg input:checked + span { background: var(--flaeche); color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.seg input:focus-visible + span { outline: 2px solid var(--akzent); }

.hinweis {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 99; padding: 11px 20px; max-width: calc(100vw - 28px);
  border-radius: 12px; background: var(--text); color: var(--bg); font-weight: 600; box-shadow: var(--schatten-hoch);
}

/* Anmeldung */
.konto-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 6px 0; border-top: 1px solid var(--rand); }
.konto-zeile:first-child { border-top: 0; margin-top: 8px; }
.konto-zeile small { margin-left: 6px; color: var(--leise); }
#btnKonto { font-weight: 700; color: var(--akzent); }
.anmeldung { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: var(--bg); }
.anmelde-karte { display: flex; flex-direction: column; gap: 12px; width: min(360px, 100%); padding: 32px 28px; border-radius: 22px; background: var(--flaeche); box-shadow: var(--schatten-hoch); text-align: center; }
.anmelde-karte .logo { width: 44px; height: 44px; margin: 0 auto 4px; border-radius: 13px; font-size: 26px; }
.anmelde-karte h2 { font-size: 22px; letter-spacing: -.02em; }
.anmelde-karte p { color: var(--leise); font-size: 14px; }
.anmelde-karte input { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--rand); background: var(--bg); color: var(--text); font: inherit; font-size: 16px; outline: none; }
.anmelde-karte input:focus { border-color: var(--akzent); }
.anmelde-karte .knopf { padding: 12px; }
.anmelde-karte .fehler { color: var(--rot); margin: 0; }

/* Strichcode-Scanner */
dialog.scanner { width: min(560px, 100vw); max-width: 100vw; padding: 16px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
dialog.scanner:not([open]) { display: none; }
.scan-bild { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #000; }
.scan-bild video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-rahmen { position: absolute; left: 7%; right: 7%; top: 30%; bottom: 30%; border: 3px solid #fff; border-radius: 12px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .35); }
.scan-text { color: var(--leise); font-size: 14px; text-align: center; }

/* ---------- Handy ---------- */
@media (max-width: 720px) {
  /* Kopf: Logo, Bereiche und Knöpfe in einer Zeile, Suche darunter */
  .kopf { flex-wrap: wrap; gap: 8px 10px; padding: 8px 14px 10px; }
  .marke h1, .nur-breit { display: none; }
  .medien button { padding: 5px 9px; font-size: 12.5px; }
  .kopf-knoepfe { margin-left: auto; gap: 6px; }
  .kopf-knoepfe .knopf { width: 38px; padding: 8px 0; text-align: center; }
  #btnNeu { font-size: 20px; line-height: 1; padding: 6px 0; }
  #suche { order: 4; flex-basis: 100%; max-width: none; }
  /* 16px verhindert, dass das iPhone beim Antippen in die Seite hineinzoomt */
  #suche, .filter select, .formular input, .formular textarea, .formular select { font-size: 16px !important; }

  .intro { padding: 20px 14px 0; gap: 10px; }
  .intro h2 { font-size: 25px; }
  .zahlen { margin: 0 -14px; padding: 0 6px; scrollbar-width: none; max-width: 100vw; }
  .zahlen::-webkit-scrollbar, .filter::-webkit-scrollbar { display: none; }
  .zahl { padding: 6px 10px; }
  .zahl b { font-size: 19px; }

  /* Filter: eine Zeile zum seitlichen Wischen statt vieler Zeilen */
  .filter { flex-wrap: nowrap; overflow-x: auto; padding: 12px 14px; scrollbar-width: none; }
  .filter > * { flex: 0 0 auto; }
  .filter select { padding: 8px 30px 8px 13px; max-width: 70vw; }
  .treffer { order: -1; margin: 0 2px 0 0; font-weight: 600; color: var(--akzent); }
  .treffer:empty { display: none; }

  .raster { padding: 4px 14px 32px; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .darstellung { order: -2; }
  /* Liste am Handy: Titel und Haltbarkeit oben, darunter Menge · Fach · Datum */
  .lz { grid-template-columns: minmax(0, 1fr) auto 40px; grid-template-areas: "titel frist knopf" "info info knopf"; gap: 0 8px; padding: 5px 0 5px 8px; }
  .lz-kopf { display: none; }
  .lz > :first-child { grid-area: titel; }
  .lz-frist { grid-area: frist; }
  .lz > :last-child { grid-area: knopf; }
  .lz-info { grid-area: info; display: block; padding-left: 34px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lz-info > span { display: inline; overflow: visible; }
  .lz-info > span:not(:empty) ~ span:not(:empty)::before { content: ' · '; }
  .lz-posten .lz-info { padding-left: 58px; }
  .karte:hover { transform: none; box-shadow: var(--schatten); }
  .bild { width: 56px; height: 56px; }

  /* Dialoge kommen als Blatt von unten und nutzen die ganze Breite */
  dialog { width: 100vw; max-width: 100vw; max-height: 94dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; border-width: 1px 0 0; }
  @keyframes auf { from { transform: translateY(40px); opacity: 0; } }
  .dlg-kopf { padding: 16px 16px 2px; }
  .dlg-koerper { padding: 16px; }
  .dlg-fuss { padding: 10px 16px 14px; }
  .dlg-fuss .knopf { flex: 1 1 auto; padding: 11px 12px; text-align: center; }
  .dlg-fuss .links { margin-right: 0; }
  .schliessen { width: 36px; height: 36px; }
  .formular .abschnitt { padding: 14px; }
  .formular .felder { grid-template-columns: 1fr; gap: 12px; }
  .seg span { padding: 9px 8px; white-space: normal; }
  .suchzeile { flex-wrap: wrap; }
  .suchzeile input { flex-basis: 100%; }
  .suchzeile .knopf { flex: 1; }
  .hinweis { bottom: 18px; text-align: center; }
}
