/* Telefonliste Klinikum Landau-SÜW — v3
   Gestaltung angelehnt an klinikum-ld-suew.de:
   Weiß, flach, Hellblau #009FE3 als Akzent, Navy #013859 für Überschriften,
   Rot #d4403a für Notfall, feine Linien #e9e9e9, kleine Radien. */

:root {
  --brand: #009fe3;          /* Akzent: Linien, Unterstreichung, Kreuz */
  --brand-strong: #0077ab;   /* Text/Flächen mit AA-Kontrast auf Weiß */
  --brand-soft: #e6f5fc;
  --navy: #013859;
  --red: #d4403a;
  --red-strong: #b8322d;
  --red-soft: #fcecea;
  --amber: #a4660e;
  --amber-soft: #fbf1e3;
  --teal: #287f9a;
  --teal-soft: #e5f2f6;
  --green: #3a833a;

  --bg: #ffffff;
  --bg-alt: #f8f8f8;
  --surface: #ffffff;
  --line: #e9e9e9;
  --line-strong: #d6d8da;
  --text: #212121;
  --text-2: #5c5f62;
  --text-3: #8a8d90;
  --hl: #fff1a8;
  --backdrop: rgba(1, 56, 89, .38);
  --shadow: 0 -6px 30px rgba(1, 56, 89, .14);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-din: "DIN Alternate", "DIN Next LT Pro", "DINPro", "Barlow Semi Condensed", "Roboto Condensed", "Arial Narrow", var(--font);

  --r: 4px;
  --sticky-h: 74px;
  --bottom-h: 48px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #29b3ee; --brand-strong: #4cc0f2; --brand-soft: #0d2b3d;
    --navy: #cfe6f3; --red: #f0625c; --red-strong: #e0463f; --red-soft: #3a1818;
    --amber: #e3a44a; --amber-soft: #33240f; --teal: #62b7d0; --teal-soft: #0f2a33;
    --bg: #0c1720; --bg-alt: #101e29; --surface: #13222e; --line: #1f3140; --line-strong: #2b4153;
    --text: #e8eef2; --text-2: #a7b4be; --text-3: #7a8a96; --hl: #5a4a00;
    --backdrop: rgba(0, 0, 0, .55); --shadow: 0 -6px 30px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #29b3ee; --brand-strong: #4cc0f2; --brand-soft: #0d2b3d;
  --navy: #cfe6f3; --red: #f0625c; --red-strong: #e0463f; --red-soft: #3a1818;
  --amber: #e3a44a; --amber-soft: #33240f; --teal: #62b7d0; --teal-soft: #0f2a33;
  --bg: #0c1720; --bg-alt: #101e29; --surface: #13222e; --line: #1f3140; --line-strong: #2b4153;
  --text: #e8eef2; --text-2: #a7b4be; --text-3: #7a8a96; --hl: #5a4a00;
  --backdrop: rgba(0, 0, 0, .55); --shadow: 0 -6px 30px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.35 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--bottom-h) + var(--safe-b));
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--brand-strong); text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
.muted { color: var(--text-2); }
.small { font-size: 12.5px; }

/* ---------- Sticky-Kopf ---------- */
.sticky {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding-top: var(--safe-t);   /* Platz unter der iPhone-Statusleiste; kein negativer Margin, sonst verdeckt der Kopf den Listenanfang */
}
.searchrow { display: flex; align-items: center; gap: 6px; padding: 6px 10px 4px 6px; }
.logo-btn { flex: none; width: 32px; height: 36px; display: grid; place-items: center; border-radius: var(--r); }
.logo-btn svg { width: 22px; height: 22px; stroke: var(--brand); stroke-width: 2.4; stroke-linecap: butt; }
.logo-btn svg rect { fill: var(--navy); stroke: none; }
.logo-btn:active { background: var(--bg-alt); }
.icon-btn {
  width: 34px; height: 34px; display: inline-grid; place-items: center;
  border-radius: var(--r); color: var(--text-2);
}
.icon-btn:active { background: var(--bg-alt); }
.icon-btn svg { width: 19px; height: 19px; }
.sos {
  flex: none; height: 36px; padding: 0 7px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--red); color: #fff; border-radius: var(--r);
  font: 700 15px/1 var(--font-din); font-variant-numeric: tabular-nums;
}
.sos small { font: 600 8.5px/1.1 var(--font); letter-spacing: .4px; text-transform: uppercase; opacity: .92; }
.sos:active { background: var(--red-strong); }
.search {
  flex: 1; display: flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 2px 0 9px; min-width: 0;
  background: var(--bg-alt); border: 1px solid var(--line-strong); border-radius: var(--r);
}
.search:focus-within { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 2px var(--brand-soft); }
.search > svg { width: 17px; height: 17px; color: var(--text-3); }
.search input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  font-size: 16px; /* verhindert iOS-Zoom */
}
.search input::-webkit-search-cancel-button { display: none; }
.search input::placeholder { color: var(--text-3); }
.q-clear { width: 30px; height: 30px; display: grid; place-items: center; color: var(--text-3); }
.q-clear svg { width: 16px; height: 16px; }
.filter-btn {
  position: relative; flex: none; width: 38px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: var(--r); color: var(--navy); background: var(--surface);
}
.filter-btn.on { border-color: var(--brand-strong); color: var(--brand-strong); background: var(--brand-soft); }
.badge {
  position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--red); color: #fff; font: 700 10.5px/17px var(--font); text-align: center;
}

/* Reiter im Stil der Website-Navigation: blau, mit feinen Trennstrichen */
.tabs {
  display: flex; overflow-x: auto; scrollbar-width: none; padding: 0 6px;
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: none; height: 30px; padding: 0 9px;
  font-size: 13.5px; color: var(--brand-strong); white-space: nowrap;
}
.tab + .tab::before {
  content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 1px; background: var(--line-strong);
}
.tab.active { color: var(--navy); font-weight: 600; }
.tab.active::after {
  content: ""; position: absolute; left: 9px; right: 9px; bottom: 0; height: 2px; background: var(--brand);
}
.tab .n { font-size: 11.5px; color: var(--text-3); font-weight: 400; font-variant-numeric: tabular-nums; }
.tab .n:empty { display: none; }

/* ---------- Ergebnisleiste ---------- */
.resultbar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 28px; padding: 2px 10px; overflow-x: auto; scrollbar-width: none;
  background: var(--bg-alt); border-top: 1px solid var(--line);
}
.result-left { display: flex; align-items: center; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.result-left::-webkit-scrollbar { display: none; }
.result-count { flex: none; font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.active-chips { display: flex; gap: 5px; }
.achip {
  flex: none; display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 4px 0 8px;
  border-radius: 12px; background: var(--brand-soft); color: var(--brand-strong); font-size: 12px; white-space: nowrap;
}
.achip svg { width: 14px; height: 14px; }
.achip.clear-all { background: transparent; color: var(--text-2); padding: 0 6px; text-decoration: underline; }

/* ---------- Liste ---------- */
.list { background: var(--surface); }
.gh {
  position: sticky; top: var(--sticky-h); z-index: 5;
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 3px 10px 2px; background: var(--bg-alt);
  border-bottom: 1px solid var(--line); border-top: 1px solid var(--line);
  font-size: 11.5px; font-weight: 600; letter-spacing: .2px; color: var(--navy);
}
.gh:first-child { border-top: 0; }
.gh small { font-weight: 400; color: var(--text-3); font-size: 11.5px; white-space: nowrap; }
.gh .gh-cat { font-weight: 400; color: var(--text-3); }

.row {
  display: flex; align-items: center; gap: 8px;
  min-height: 38px; padding: 2px 6px 2px 4px; gap: 6px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.row:active { background: var(--bg-alt); }
.num {
  flex: none; width: 54px; min-height: 32px; padding: 1px 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: var(--r); color: var(--brand-strong);
}
.num:active { background: var(--brand-soft); }
.num b {
  font-family: var(--font-din); font-weight: 700; font-size: 16.5px; line-height: 1.05;
  font-variant-numeric: tabular-nums; letter-spacing: .2px;
}
.num i { font-style: normal; font-size: 8.5px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--text-3); line-height: 1.2; }
.row.emerg .num b { color: var(--red-strong); }
.row.emerg .num i { color: var(--red); }
.row.dect .num i { color: var(--teal); }
.row.fax .num b { color: var(--text-2); }
.row.emerg { box-shadow: inset 3px 0 0 var(--red); }

.txt { flex: 1; min-width: 0; }
.t1 { font-size: 14.5px; line-height: 1.22; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t1 b { font-weight: 600; }
.t1 .role { color: var(--text-2); }
.t2 {
  display: flex; align-items: center; gap: 4px; margin-top: 0;
  font-size: 12px; line-height: 1.25; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.t2 .sep { color: var(--line-strong); }
.tag {
  flex: none; display: inline-block; padding: 0 5px; border-radius: 3px; font-size: 10px; font-weight: 600; line-height: 14px;
  background: var(--bg-alt); color: var(--text-2); border: 1px solid var(--line);
}
.tag.own { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.tag.mob { background: var(--teal-soft); color: var(--teal); border-color: transparent; }
.star { flex: none; width: 14px; height: 14px; color: #e0a100; fill: #e0a100; stroke: none; }
.call {
  flex: none; width: 36px; height: 30px; display: grid; place-items: center;
  border-radius: var(--r); color: var(--brand-strong); border: 1px solid var(--line-strong); background: var(--surface);
}
.call svg { width: 16px; height: 16px; stroke-width: 2; }
.call:active { background: var(--brand-strong); color: #fff; border-color: var(--brand-strong); }
.row.emerg .call { color: var(--red-strong); }

mark { background: var(--hl); color: inherit; padding: 0; border-radius: 2px; }

/* ---------- Bereiche-Übersicht ---------- */
.areas { padding: 8px 12px 16px; display: grid; gap: 8px; }
.area { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.area-head {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 10px; text-align: left;
  border-left: 3px solid var(--brand);
}
.area-secs { border-top: 1px solid var(--line); }
.area-head span { font-weight: 600; color: var(--navy); font-size: 14.5px; }
.area-head small { color: var(--text-3); font-size: 12px; white-space: nowrap; }
.area-secs { display: flex; flex-wrap: wrap; gap: 5px; padding: 7px 10px 8px; }
.sec {
  display: inline-flex; align-items: baseline; gap: 4px; height: 30px; padding: 0 9px;
  border: 1px solid var(--line-strong); border-radius: var(--r); font-size: 13px; color: var(--text); line-height: 28px;
}
.sec small { color: var(--text-3); font-size: 11px; }
.sec:active { background: var(--brand-soft); border-color: var(--brand); }

/* ---------- Leerer Zustand ---------- */
.empty { padding: 40px 24px; text-align: center; }
.empty-title { margin: 0 0 4px; font-weight: 600; color: var(--navy); }
.empty-desc { margin: 0 0 14px; color: var(--text-2); font-size: 14px; }

/* ---------- Untere Navigation ---------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--bottom-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--bg); border-top: 1px solid var(--line);
}
.bn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 10px; color: var(--text-2);
}
.bn svg { width: 20px; height: 20px; }
.bn.active { color: var(--brand-strong); font-weight: 600; }
.bn.active svg { stroke-width: 2.1; }
.bn-add-box {
  width: 32px; height: 22px; display: grid; place-items: center;
  background: var(--brand-strong); color: #fff; border-radius: var(--r);
}
.bn-add-box svg { width: 18px; height: 18px; stroke-width: 2.4; }

/* ---------- Bottom Sheets ---------- */
dialog.sheet {
  position: fixed; inset: auto 0 0 0; margin: 0 auto; width: 100%; max-width: 560px;
  max-height: 86vh; max-height: 86dvh; padding: 0; border: 0;
  border-radius: 10px 10px 0 0; background: var(--surface); color: var(--text);
  box-shadow: var(--shadow); display: none; flex-direction: column; overflow: hidden;
}
dialog.sheet[open] { display: flex; animation: up .18s ease-out; }
dialog.sheet-tall { height: 86vh; height: 86dvh; }
dialog.sheet::backdrop { background: var(--backdrop); }
@keyframes up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { dialog.sheet[open] { animation: none; } }
@media (min-width: 700px) {
  dialog.sheet { inset: 0; margin: auto; border-radius: 8px; max-height: 80vh; }
  dialog.sheet-tall { height: auto; min-height: 60vh; }
}
dialog.sheet.dragging { animation: none; transition: none; }
dialog.sheet.settle { transition: transform .18s ease-out; }
/* Griff: großer Anfasser (ganze Breite, 18 px hoch) zum Herunterziehen */
.sheet-grip { position: relative; height: 18px; flex: none; touch-action: none; cursor: grab; }
.sheet-grip::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 36px; height: 4px; margin-left: -18px;
  border-radius: 2px; background: var(--line-strong);
}
.sheet-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  padding: 2px 10px 8px 16px; border-bottom: 1px solid var(--line); flex: none; touch-action: none;
}
.sheet [autofocus]:focus { outline: none; }
.sheet-title { margin: 4px 0; font: 700 18px/1.2 var(--font-din); color: var(--navy); }
.sheet-body {
  padding: 12px 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  flex: 1 1 auto; min-height: 0;   /* Basis „auto“, nicht 0 %: Safari ließ den Inhalt sonst auf 0 px zusammenfallen */
}
.sheet-body:last-child { padding-bottom: calc(16px + var(--safe-b)); }   /* ohne Fußleiste: Abstand zur Home-Leiste */
.sheet-foot {
  display: flex; gap: 8px; padding: 10px 16px calc(10px + var(--safe-b));
  border-top: 1px solid var(--line); flex: none;
}
.sheet-foot .btn { flex: 1; }

/* Detail */
.d-section { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.d-title { margin: 1px 0 0; font-size: 18px; font-weight: 600; color: var(--navy); line-height: 1.25; }
.d-role { font-size: 13.5px; color: var(--text-2); }
.d-lines { border: 1px solid var(--line); border-radius: var(--r); }
.d-line {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--line);
}
.d-line:last-child { border-bottom: 0; }
.d-line .lbl { width: 62px; flex: none; font-size: 12px; color: var(--text-2); }
.d-line .val { flex: 1; min-width: 0; font-family: var(--font-din); font-weight: 700; font-size: 20px; color: var(--navy); font-variant-numeric: tabular-nums; }
.d-line .val.txt-val { font-family: var(--font); font-weight: 400; font-size: 14.5px; color: var(--text); }
.d-line .mini {
  flex: none; height: 34px; min-width: 38px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid var(--line-strong); border-radius: var(--r); color: var(--brand-strong); font-size: 13px;
}
.d-line .mini svg { width: 17px; height: 17px; }
.d-line .mini.primary { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.d-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.d-actions .btn { flex: 1 1 auto; }

/* Filter */
.fgroup { margin-bottom: 14px; }
.flabel { font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--text-2); margin-bottom: 6px; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip {
  display: inline-flex; align-items: baseline; gap: 4px; height: 30px; padding: 0 10px;
  border: 1px solid var(--line-strong); border-radius: 15px; font-size: 13px; line-height: 28px; color: var(--text);
}
.fchip small { font-size: 11px; color: var(--text-3); }
.fchip.on { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.fchip.on small { color: rgba(255,255,255,.8); }
.toggles { display: grid; gap: 2px; }
.tgl { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 14px; cursor: pointer; }
.tgl input { width: 18px; height: 18px; accent-color: var(--brand-strong); margin: 0; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 14px; border-radius: var(--r); font-size: 14.5px; font-weight: 600;
  border: 1px solid transparent; white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--brand-strong); color: #fff; }
.btn-primary:active { filter: brightness(.92); }
.btn-primary:disabled { opacity: .55; }
.btn-ghost { border-color: var(--line-strong); color: var(--navy); background: var(--surface); }
.btn-danger { border-color: var(--red); color: var(--red-strong); background: var(--surface); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn-block { width: 100%; }

/* Segment */
.seg { display: flex; margin: 10px 16px 0; border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; flex: none; }
.seg-btn { flex: 1; height: 32px; font-size: 13.5px; color: var(--brand-strong); }
.seg-btn + .seg-btn { border-left: 1px solid var(--line-strong); }
.seg-btn.active { background: var(--brand-strong); color: #fff; font-weight: 600; }

/* Formular */
.form { display: grid; gap: 10px; }
.frow { display: flex; gap: 8px; }
.frow > * { flex: 1; min-width: 0; }
.frow .w-num { flex: 0 0 34%; }
.frow-checks { gap: 16px; }
.frow-checks > * { flex: none; }
.field { display: grid; gap: 3px; }
.field > span { font-size: 12px; color: var(--text-2); }
.field input, .field select, .field textarea {
  width: 100%; height: 38px; padding: 0 9px; font-size: 16px;
  border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); outline: 0;
}
.field textarea { height: auto; padding: 8px 9px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.hint { margin: 0; padding: 8px 10px; border-radius: var(--r); background: var(--amber-soft); color: var(--amber); font-size: 13px; }
.form-actions { margin-top: 2px; }

/* Diktat */
.voice { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.mic {
  flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-strong); color: #fff;
}
.mic svg { width: 24px; height: 24px; }
.mic.rec { background: var(--red); animation: pulse 1.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(212,64,58,.45); } 100% { box-shadow: 0 0 0 14px rgba(212,64,58,0); } }
.voice p { margin: 0; }
.mode .field { margin-bottom: 10px; }

/* Foto */
.drop {
  width: 100%; display: grid; justify-items: center; gap: 4px; padding: 22px 12px;
  border: 1.5px dashed var(--line-strong); border-radius: var(--r); color: var(--navy); font-size: 14.5px; font-weight: 600;
}
.drop svg { width: 30px; height: 30px; color: var(--brand-strong); }
.drop small { font-weight: 400; font-size: 12.5px; }
.photo-preview img { width: 100%; max-height: 220px; object-fit: contain; background: var(--bg-alt); border-radius: var(--r); margin-bottom: 8px; }
.busy { display: flex; align-items: center; gap: 10px; padding: 12px 0; color: var(--text-2); font-size: 14px; }
.spinner { width: 20px; height: 20px; border: 2.5px solid var(--line-strong); border-top-color: var(--brand-strong); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.detected-head { display: flex; justify-content: space-between; align-items: center; margin: 12px 0 6px; }
.detected { border: 1px solid var(--line); border-radius: var(--r); }
.det { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-bottom: 1px solid var(--line); }
.det:last-child { border-bottom: 0; }
.det .num { width: 56px; min-height: 0; }

/* Info */
.prose { font-size: 14px; }
.prose h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-2); margin: 14px 0 4px; }
.prose ul { margin: 0; padding-left: 18px; }
.prose li { margin: 3px 0; }
.prose p { margin: 0 0 8px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--bottom-h) + var(--safe-b) + 12px); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px); padding: 9px 14px; border-radius: var(--r);
  background: var(--navy); color: var(--bg); font-size: 13.5px; font-weight: 500;
  transition: opacity .18s, transform .18s;
}
:root[data-theme="dark"] .toast { background: #e8eef2; color: #0c1720; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Breite Bildschirme ---------- */
@media (min-width: 760px) {
  body { max-width: 980px; margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  .bottomnav { max-width: 980px; margin: 0 auto; }
  .areas { grid-template-columns: 1fr 1fr; align-items: start; }
}

:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }

/* Info-Sheet */
.info-brand { font-family: var(--font-din); font-size: 18px; margin-bottom: 8px; }
.info-brand .b1 { color: var(--brand); }
.info-brand .b2 { color: var(--navy); }
.info-brand .muted { font-family: var(--font); }
.settings { display: flex; gap: 8px; margin-bottom: 12px; }
.seg-inline { margin: 0; }
