/* hatimu – Gestaltung nach Apple-Vorbild (iOS-Einstellungen, Health, Apple Maps):
   hellgraue Leinwand, weiße Gruppen ohne Rahmen, feine Trennlinien, farbige Symbolquadrate, wenige klare Schriftstufen.
   Farbe hat Bedeutung: Grün = geöffnet, Rot = Notruf, Blau = Aktion/Link, Kategorie-Farben nur in Symbolquadraten.
   Regeln: Touchflächen ≥ 44 px, Kontrast WCAG AA, Systemschrift (auf Apple-Geräten SF Pro), ab 320 px, keine Bilder. */
:root {
  /* Flächen */
  --leinwand: #F2F2F7; --karte: #FFFFFF; --karte2: #F2F2F7; --fuellung: #E9E9EE; --linie: rgba(60, 60, 67, .2);
  /* Text */
  --tx: #1C1C1E; --tx2: #6C6C70; --tx3: #8A8A8E;
  /* Aktion und Status (je eine Bedeutung; alle ≥ 4.5:1 auf Weiß) */
  --tint: #0A5CC2; --tint-bg: #E6EFFB; --tint-voll: #0A5CC2;
  --offen: #1B7A35; --offen-bg: #E3F4E7;
  --bald: #985A00; --bald-bg: #FFF2D6;
  --zu: #5C5C61; --zu-bg: #ECECF0;
  --notruf: #D70015;
  --info: #0A5CC2; --info-bg: #E6EFFB;
  /* Marke */
  --hafennacht: #0B2545; --tonnengelb: #FFC93C;
  /* Symbolquadrate (Kategorien, Bereiche) – weiße Glyphe, ≥ 3:1 */
  --s-schlafen: #5E5CE6; --s-essen: #D9650A; --s-hygiene: #1A73E8; --s-wasser: #0B8FA6; --s-arzt: #D93636; --s-beratung: #8A6D4B;
  --s-ueber: #6E6E73; --s-check: #1C8FC9; --s-helfen: #D8336C; --s-notfall: #D70015; --s-gleich: #D9650A;
  /* Form */
  --r-gross: 20px; --radius: 14px; --r-klein: 10px;
  --f-gross: 2.125rem; --f-titel: 1.375rem; --f-text: 1.0625rem; --f-klein: .9375rem; --f-fuss: .8125rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --leinwand: #000000; --karte: #1C1C1E; --karte2: #2C2C2E; --fuellung: #2C2C2E; --linie: rgba(84, 84, 88, .65);
    --tx: #FFFFFF; --tx2: #AEAEB2; --tx3: #8E8E93;
    --tint: #5AA9FF; --tint-bg: #0E2A4D; --tint-voll: #0A63D1;
    --offen: #4CD964; --offen-bg: #0F2E17;
    --bald: #FFD25E; --bald-bg: #3A2A05;
    --zu: #C7C7CC; --zu-bg: #2C2C2E;
    --notruf: #FF5A5F; --info: #5AA9FF; --info-bg: #0E2A4D;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: var(--leinwand); color: var(--tx);
  font: var(--f-text)/1.38 system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; padding-bottom: env(safe-area-inset-bottom);
}
::selection { background: var(--tint-bg); }
a { color: var(--tint); text-underline-offset: 2px; }
h1 { font-size: var(--f-gross); font-weight: 700; line-height: 1.12; letter-spacing: -.022em; margin: .35rem 0 .7rem; text-wrap: pretty; }
h2 { font-size: var(--f-titel); font-weight: 700; line-height: 1.2; letter-spacing: -.015em; margin: 1.6rem 0 .6rem; }
small { color: var(--tx2); font-size: var(--f-fuss); }
main { max-width: 40rem; margin: 0 auto; padding: 0 16px 28px; outline: none; }
main:focus, main:focus-visible { outline: none; }
.i { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.22em; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--tint); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, .name, .kname, .gzeile, .info-raster b, .gleich b, .notruf span { overflow-wrap: break-word; hyphens: auto; }
h1 { overflow-wrap: anywhere; }

/* ---------- Kopf ---------- */
.kopf {
  position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .5rem;
  padding: .4rem 16px; padding-top: max(.4rem, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--leinwand) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: .5px solid transparent;
}
.marke-link { justify-self: start; display: flex; align-items: center; min-height: 44px; color: var(--tx); }
.wortmarke { height: 26px; width: auto; aspect-ratio: 113 / 41; }
.zeit { justify-self: end; display: flex; align-items: center; gap: .5rem; color: var(--tx2); font-size: var(--f-klein); font-weight: 600; font-variant-numeric: tabular-nums; }
.uhr { color: var(--tx); }
/* Sprachwahl: sichtbar Weltkugel + Flagge + Kürzel, darüber das native Auswahlfeld (öffnet die Systemauswahl) */
.sprachwahl { position: relative; display: inline-flex; align-items: center; min-height: 44px; }
.sprache-anzeige { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .6rem; border-radius: 999px; background: var(--fuellung); color: var(--tx); font-weight: 600; white-space: nowrap; }
.sprache-anzeige .i { width: 1.05em; height: 1.05em; }
.sprachwahl select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.sprachwahl:focus-within .sprache-anzeige { outline: 3px solid var(--tint); outline-offset: 2px; }
.wetter { display: inline-flex; align-items: center; gap: .25rem; min-height: 44px; padding: 0 .55rem; margin-right: -.2rem; border-radius: 999px; color: var(--tx); text-decoration: none; font-weight: 600; }
.wetter[hidden] { display: none; }
.wetter .i { width: 1em; height: 1em; }
.wetter.kaelte, .wetter.hitze { background: var(--tint-bg); color: var(--tint); }
.wetter.hitze { background: var(--bald-bg); color: var(--bald); }
.wetter-cta.kaelte { background: var(--tint-bg); color: var(--tx); }
.wetter-cta.hitze { background: var(--bald-bg); color: var(--tx); }
.wetter-cta p { margin: 0; }
.kaeltebus { margin: 0 0 .9rem; padding: .9rem 1rem .4rem; border-radius: var(--radius); background: var(--karte); }
.kaeltebus h2 { display: flex; align-items: center; gap: .4rem; margin: 0 0 .2rem; font-size: var(--f-text); }
.kaeltebus h2 .i { color: var(--tint); }
.kaeltebus p { margin: .3rem 0; line-height: 1.45; }

/* ---------- Grundelemente ---------- */
.knopf, .chip, .link, .seg, .aktion { font: inherit; cursor: pointer; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; padding: .5rem 1.1rem;
  border: 0; border-radius: var(--radius); background: var(--karte); color: var(--tint); text-decoration: none; text-align: center; font-weight: 600;
}
.knopf.klein { min-height: 44px; padding: .3rem .9rem; font-size: var(--f-klein); border-radius: 999px; }
.knopf.haupt { background: var(--tint-voll); color: #fff; }
.knopf.haupt .i { color: #fff; }
.knopf.breit { display: flex; width: 100%; margin: .5rem 0; }
.knopf.warn { color: var(--notruf); background: var(--karte); }
.link { background: none; border: 0; padding: .6rem 0; min-height: 44px; color: var(--tint); font-weight: 600; text-decoration: none; }

/* ---------- Start ---------- */
.frage-start { margin-top: .8rem; }
.ortzeile { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .6rem; margin: -.2rem 0 1rem; color: var(--tx2); font-size: var(--f-klein); }
.ortzeile .knopf.klein { background: none; padding: 0 .2rem; min-height: 44px; color: var(--tint); }
.ortzeile .knopf.klein .i { width: 1.05em; height: 1.05em; }

/* Gleich: das eine laute Element – weiße Karte mit orangem Kopf */
.gleich { margin: 0 0 1rem; padding: .7rem 0 .15rem; border-radius: var(--r-gross); background: var(--karte); }
.gleich h2 { display: flex; align-items: center; gap: .55rem; margin: 0 1rem .2rem; font-size: var(--f-klein); font-weight: 600; color: var(--tx); letter-spacing: 0; }
.gleich h2 .sym { width: 24px; height: 24px; border-radius: 7px; }
.gleich h2 .sym .i { width: 15px; height: 15px; }
.gleich ul { margin: 0; padding: 0; list-style: none; }
.gleich a { position: relative; display: flex; flex-direction: column; justify-content: center; gap: .1rem; min-height: 56px; padding: .55rem 2.6rem .6rem 1rem; color: var(--tx); text-decoration: none; }
.gleich li + li a::before { content: ""; position: absolute; left: 1rem; right: 0; top: 0; border-top: .5px solid var(--linie); }
.gleich a b { font-size: var(--f-text); font-weight: 600; line-height: 1.25; }
.gleich .wann { color: var(--tx2); font-size: var(--f-klein); font-variant-numeric: tabular-nums; }
.gleich a.gefahr b { display: flex; align-items: center; gap: .35rem; }
.gleich a.gefahr b .i { color: var(--tint); }
.gleich .pfeil { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); }

/* Symbolquadrat (iOS-Einstellungen) */
.sym { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; color: #fff; }
.sym .i { width: 20px; height: 20px; }
.sym-schlafen { background: var(--s-schlafen); } .sym-essen { background: var(--s-essen); } .sym-hygiene { background: var(--s-hygiene); }
.sym-wasser { background: var(--s-wasser); } .sym-arzt { background: var(--s-arzt); } .sym-beratung { background: var(--s-beratung); }
.sym-g-ueber { background: var(--s-ueber); } .sym-g-check { background: var(--s-check); }
.sym-g-helfen { background: var(--s-helfen); } .sym-g-notfall { background: var(--s-notfall); } .sym-gleich { background: var(--s-gleich); }

/* Kategorien: weiße Kacheln (Health-Stil) */
.kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 1.5rem; }
.kachel {
  display: flex; flex-direction: column; gap: .15rem; min-height: 118px; padding: .8rem .85rem .75rem;
  border-radius: var(--r-gross); background: var(--karte); color: var(--tx); text-decoration: none;
}
.kkopf { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .3rem; margin-bottom: auto; }
.kname { margin-top: .75rem; font-size: var(--f-text); font-weight: 600; line-height: 1.2; }
.kstatus { display: flex; flex-direction: column; font-size: var(--f-fuss); line-height: 1.35; color: var(--tx2); font-variant-numeric: tabular-nums; }
.kstatus.offen > span:first-child { color: var(--offen); font-weight: 600; }
.kent { color: var(--tx2); }
.kgruppe { color: var(--tx2); }
.nacht { display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .5rem; border-radius: 999px; background: var(--tint-bg); color: var(--tint); font-size: var(--f-fuss); font-weight: 600; line-height: 1.2; max-width: 100%; }
.nacht .i { flex: none; }
.nacht .i { width: 1em; height: 1em; }
.punkt { display: inline-block; width: 7px; height: 7px; margin-right: .35rem; border-radius: 50%; background: currentColor; vertical-align: .08em; }

/* Gruppierte Liste (iOS-Einstellungen) */
.gruppe { margin: 0 0 1.2rem; border-radius: var(--radius); background: var(--karte); overflow: hidden; }
.gzeile { position: relative; display: flex; align-items: center; gap: .85rem; min-height: 52px; padding: .45rem .9rem; color: var(--tx); text-decoration: none; }
.gzeile > span:nth-child(2) { flex: 1; }
.gzeile + .gzeile::before { content: ""; position: absolute; left: 3.6rem; right: 0; top: 0; border-top: .5px solid var(--linie); }
.gzeile .sym { width: 30px; height: 30px; border-radius: 8px; }
.gzeile .sym .i { width: 18px; height: 18px; }
.pfeil { color: var(--tx3); width: 1.05em; height: 1.05em; }

.flagge { font-size: 1.15em; line-height: 1; }
.fuss { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.2rem; margin: 1.4rem 0 .4rem; }
.fuss a { display: inline-flex; align-items: center; min-height: 44px; color: var(--tx2); font-size: var(--f-fuss); text-decoration: none; }

/* ---------- Chips, Segmente ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: .2rem 0 1rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .3rem .95rem; border: 0; border-radius: 999px;
  background: var(--fuellung); color: var(--tx); font-size: var(--f-klein); font-weight: 500;
}
.chip .i { width: 1.05em; height: 1.05em; }
.chip[aria-pressed="true"] { background: var(--tint-voll); color: #fff; }
.segment { display: flex; gap: 2px; padding: 2px; margin: .2rem 0 1rem; border-radius: 10px; background: var(--fuellung); }
.seg { flex: 1; min-height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--tx); font-size: var(--f-klein); font-weight: 500; }
.seg[aria-pressed="true"] { background: var(--karte); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04); }

/* ---------- Listen (Apple-Maps-Stil) ---------- */
.zurueck { display: flex; width: fit-content; align-items: center; gap: .15rem; min-height: 44px; margin: .2rem 0 0 -.3rem; padding: 0 .3rem; color: var(--tint); text-decoration: none; font-size: var(--f-text); }
.zurueck .i { width: 1.3em; height: 1.3em; }
.mit-sym { display: flex; align-items: center; gap: .65rem; }
.mit-sym .sym { width: 38px; height: 38px; border-radius: 10px; }
.abschnitt { margin: 1.3rem 0 .45rem 1rem; font-size: var(--f-fuss); font-weight: 400; letter-spacing: .02em; text-transform: uppercase; color: var(--tx2); }
.liste { list-style: none; margin: 0 0 .8rem; padding: 0; border-radius: var(--radius); background: var(--karte); overflow: hidden; }
.liste > li { position: relative; }
.liste > li + li::before { content: ""; position: absolute; left: 1rem; right: 0; top: 0; border-top: .5px solid var(--linie); z-index: 1; }
.eintrag { display: flex; align-items: center; gap: .8rem; min-height: 64px; padding: .7rem .8rem .7rem 1rem; color: var(--tx); text-decoration: none; }
.e-text { display: flex; flex-direction: column; gap: .1rem; flex: 1; min-width: 0; }
.eintrag .name { font-size: var(--f-text); font-weight: 600; line-height: 1.25; }
.e-status { font-size: var(--f-klein); font-weight: 500; font-variant-numeric: tabular-nums; }
.meta, .e-merkmale { color: var(--tx2); font-size: var(--f-klein); }
.e-merkmale { font-size: var(--f-fuss); }
.thumb { flex: none; width: 64px; height: 64px; }
.thumb .ausschnitt { margin: 0; border-radius: 12px; }
.thumb .ausschnitt .pin { width: 16px; height: 16px; margin: -16px 0 0 -8px; }
.thumb .ausschnitt .pin::after { inset: 5px; }
.s-offen-tx { color: var(--offen); } .s-bald-tx { color: var(--bald); } .s-zu-tx, .s-unbekannt-tx { color: var(--tx2); }
.status { align-self: flex-start; padding: .15rem .6rem; border-radius: 999px; font-weight: 600; font-size: var(--f-fuss); font-variant-numeric: tabular-nums; }
.s-offen { background: var(--offen-bg); color: var(--offen); } .s-bald { background: var(--bald-bg); color: var(--bald); }
.s-zu, .s-unbekannt { background: var(--zu-bg); color: var(--zu); }
.marke { display: inline-block; margin: .1rem 0; padding: 0 .5rem; font-size: var(--f-fuss); font-weight: 600; border-radius: 999px; background: var(--bald-bg); color: var(--bald); align-self: flex-start; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px; background: var(--fuellung); color: var(--tx2); font-size: var(--f-fuss); }
.leer { padding: .9rem 1rem; border-radius: var(--radius); background: var(--karte); color: var(--tx2); }
.plan-hinweis { color: var(--tx2); font-size: var(--f-fuss); margin: .4rem 1rem; }
.plan-hinweis a { display: inline-block; padding: .8rem 0; }
.andrang { display: flex; align-items: flex-start; gap: .4rem; margin-top: .2rem; color: var(--bald); font-size: var(--f-fuss); font-weight: 500; }
.andrang .i { width: 1.1em; height: 1.1em; margin-top: .05em; }

/* ---------- Detail (Apple-Maps-Ortskarte) ---------- */
.ort-kopf { display: flex; align-items: flex-start; gap: .75rem; margin: .3rem 0 .9rem; }
.ort-kopf .sym { width: 44px; height: 44px; border-radius: 12px; margin-top: .25rem; }
.ort-kopf .sym .i { width: 26px; height: 26px; }
.ort-kopf > div { min-width: 0; }
.ort-kopf h1 { font-size: 1.75rem; margin: 0; }
.untertitel { margin: .15rem 0 0; color: var(--tx2); font-size: var(--f-klein); }
.aktionsleiste { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin: 0 0 .9rem; }
.aktion {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; min-height: 62px; padding: .5rem .2rem;
  border: 0; border-radius: 12px; background: var(--karte); color: var(--tint); font-size: var(--f-fuss); font-weight: 600; text-decoration: none; text-align: center; line-height: 1.15;
}
.aktion .i { width: 22px; height: 22px; }
.aktion.primaer { background: var(--tint-voll); color: #fff; }
.aktion[aria-pressed="true"] { background: var(--tint-bg); }
.info-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(5.4rem, 1fr)); margin: 0 0 .9rem; border-radius: var(--radius); background: var(--karte); overflow: hidden; }
.info-raster > div { display: flex; flex-direction: column; gap: .1rem; padding: .65rem .9rem; min-width: 0; }
.info-raster > div + div { border-left: .5px solid var(--linie); }
.info-raster small { font-size: var(--f-fuss); color: var(--tx2); text-transform: uppercase; letter-spacing: .02em; font-size: .72rem; font-weight: 600; }
.info-raster b { font-size: var(--f-klein); font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; }
.hinweis { margin: .9rem 0; padding: .85rem 1rem; border-radius: var(--radius); background: var(--karte); line-height: 1.45; }
.hinweis .maschinell { display: block; margin-top: .4rem; }
.info-liste .info-zeile { display: flex; align-items: flex-start; gap: .75rem; min-height: 50px; padding: .7rem 1rem; }
.info-zeile > .i { color: var(--tx2); margin-top: .1em; }
.info-zeile > span { display: flex; flex-direction: column; min-width: 0; }
.info-zeile a { font-weight: 500; text-decoration: none; }
.info-zeile > span { flex: 1; }
.kopieren { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin: -.6rem -.5rem -.6rem 0; border: 0; border-radius: 10px; background: none; color: var(--tint); cursor: pointer; }
.kopieren .i { width: 20px; height: 20px; }
.loeschen-text { margin: 1.6rem 0 .2rem; color: var(--tx2); font-size: var(--f-klein); }
.zeiten { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: var(--radius); background: var(--karte); overflow: hidden; font-size: var(--f-klein); font-variant-numeric: tabular-nums; }
.zeiten th, .zeiten td { padding: .65rem 1rem; text-align: left; font-weight: 400; }
.zeiten tr + tr th, .zeiten tr + tr td { border-top: .5px solid var(--linie); }
.zeiten th { width: 3.3rem; color: var(--tx2); }
.zeiten tr.heute th, .zeiten tr.heute td { font-weight: 600; color: var(--tx); }
.zeiten tr.heute th { box-shadow: inset 3px 0 var(--tint); }
.geprueft { display: flex; align-items: center; gap: .35rem; margin: 1rem 1rem 0; color: var(--tx2); font-size: var(--f-fuss); }
.geprueft .i { color: var(--offen); width: 1.1em; height: 1.1em; }
.geprueft.fachkraft { color: var(--offen); }
.quelle { margin: .3rem 1rem 0; }
.quelle a { display: inline-block; padding: .75rem 0; }
.melden-knopf { margin-top: 1.2rem; color: var(--tx2); background: transparent; font-weight: 500; }
.fussnote { margin: .5rem 1rem 0; font-size: var(--f-fuss); color: var(--tx2); }

/* Kartenausschnitt (OSM-Kacheln über /api/kachel) */
.ausschnitt { position: relative; display: block; overflow: hidden; margin: 0 0 .9rem; border-radius: var(--radius); background: var(--fuellung); }
.ausschnitt img { position: absolute; width: 256px; height: 256px; max-width: none; user-select: none; }
@media (prefers-color-scheme: dark) { .ausschnitt img { filter: brightness(.75) contrast(1.05) saturate(.8); } }
.ausschnitt .pin {
  position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -24px 0 0 -12px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--s-arzt); box-shadow: 0 0 0 2.5px #fff, 0 3px 8px rgba(0,0,0,.3);
}
.ausschnitt .pin::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
.osm-credit { position: absolute; right: 6px; bottom: 4px; padding: 0 .35rem; border-radius: 6px; background: rgba(255,255,255,.85); color: #3A3A3C; font-size: .68rem; line-height: 1.5; }

/* Auslastung */
.auslastung { margin: 0 0 .9rem; padding: .9rem 1rem 1rem; border-radius: var(--radius); background: var(--karte); }
.auslastung h2 { margin: 0 0 .35rem; font-size: .72rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--tx2); }
.tacho-zeile { display: flex; align-items: flex-end; gap: 1rem; }
.tacho { width: 120px; height: auto; flex: none; }
.tacho path { fill: none; stroke-width: 13; stroke-linecap: round; }
.tacho-hg { stroke: var(--fuellung); }
.tacho-wert { stroke: var(--s-essen); }
.voll-wort { margin: 0 0 .15rem; font-size: 1.5rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.1; }
.balken-text { margin: .5rem 0 0; font-size: var(--f-klein); color: var(--tx2); }
.andrang-kopf { display: flex; align-items: center; gap: .5rem; margin: .1rem 0 .2rem; font-size: var(--f-text); font-weight: 600; color: var(--bald); }
.andrang-kopf.klein { margin-top: .8rem; }
.auslastung ul { margin: .3rem 0; padding-left: 1.2rem; color: var(--tx); font-size: var(--f-klein); }
.auslastung li { margin: .15rem 0; }
.tipp { margin: .6rem 0 .2rem; padding: .6rem .8rem; border-radius: var(--r-klein); background: var(--karte2); font-size: var(--f-klein); font-weight: 600; }

.orientierung { display: none; }

/* ---------- Notfall ---------- */
.notrufe { list-style: none; padding: 0; display: grid; gap: 10px; }
.notruf { flex-direction: column; align-items: flex-start; width: 100%; min-height: 72px; padding: .8rem 1.1rem; border-radius: var(--r-gross); background: var(--karte); color: var(--tx); text-align: left; }
.notrufe li:first-child .notruf { background: var(--notruf); color: #fff; }
.notrufe li:first-child .notruf b { font-size: 2.6rem; color: #fff; }
.notruf b { font-size: 1.5rem; font-weight: 700; color: var(--notruf); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.notruf span { font-size: var(--f-klein); font-weight: 400; }
@media (prefers-color-scheme: dark) { .notrufe li:first-child .notruf { background: #D70015; } }

/* ---------- Formulare: Melden, Check, Ort ---------- */
.orte { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 8px; margin: .8rem 0; }
.orte .knopf { color: var(--tx); font-weight: 500; }
.melden fieldset { display: grid; gap: 0; margin: 0 0 .8rem; padding: 0; border: 0; border-radius: var(--radius); background: var(--karte); overflow: hidden; }
.wahl { position: relative; display: flex; align-items: center; gap: .7rem; min-height: 52px; padding: .4rem 1rem; cursor: pointer; }
.wahl + .wahl::before { content: ""; position: absolute; left: 1rem; right: 0; top: 0; border-top: .5px solid var(--linie); }
.wahl:has(input:checked) { font-weight: 600; }
.wahl input { width: 1.3rem; height: 1.3rem; accent-color: var(--tint); }
.feld { display: grid; gap: .35rem; font-weight: 600; }
.feld textarea { min-height: 6rem; padding: .7rem .9rem; border: 0; border-radius: var(--radius); background: var(--karte); color: var(--tx); font: inherit; }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.frage { font-size: var(--f-titel); font-weight: 700; }
.antworten { display: grid; gap: 8px; }
.ergebnis { margin-bottom: .8rem; padding: .4rem 1rem .9rem; border-radius: var(--radius); background: var(--karte); }
.schritte li { margin-bottom: .8rem; }

/* ---------- Jemandem helfen ---------- */
.qr { display: block; width: 240px; max-width: 100%; height: auto; margin: 1rem auto; padding: 14px; border-radius: var(--r-gross); background: #fff; }
.url { text-align: center; font-weight: 700; font-size: var(--f-titel); word-break: break-all; }

/* ---------- Hinweise, Banner, Installation ---------- */
.banner { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .5rem; margin: .7rem 0; padding: .65rem .9rem; border-radius: var(--radius); font-size: var(--f-klein); font-weight: 500; }
.banner .i { margin-top: .1em; }
.banner.demo { background: var(--bald-bg); color: var(--bald); }
.banner.info { background: var(--zu-bg); color: var(--zu); }
.banner a, .banner .link { color: inherit; font-weight: 600; }
.install { display: grid; gap: .6rem; margin: 1.2rem 0 .4rem; padding: .9rem 1rem; border-radius: var(--radius); background: var(--karte); }
.install p { margin: .2rem 0 0; color: var(--tx2); }
.install-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.install-knoepfe .haupt { flex: 1; }
.notausgang { max-width: 40rem; margin: 1rem auto; padding: 0 16px; }
.toast {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 4; margin: 0 auto; max-width: 30rem; padding: .85rem 1rem;
  border-radius: 999px; background: rgba(28, 28, 30, .92); color: #fff; text-align: center; font-weight: 500;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
/* Behördenweg: Hinweis-Kasten auf Detailseiten und Schrittfolge */
.weg-kasten { display: flex; align-items: center; gap: .8rem; margin: 0 0 .9rem; padding: .8rem .9rem; border-radius: var(--radius); background: var(--karte); color: var(--tx); text-decoration: none; box-shadow: inset 0 0 0 2px var(--tint-bg); }
.weg-kasten > span:not(.sym) { display: flex; flex-direction: column; gap: .15rem; flex: 1; min-width: 0; }
.weg-kasten b { font-size: var(--f-text); line-height: 1.25; }
.weg-kasten span span { color: var(--tx2); font-size: var(--f-klein); }
button.zurueck { border: 0; background: none; font: inherit; cursor: pointer; }
.weg-info { margin: 0 0 1rem; padding: .9rem 1rem .5rem; border-radius: var(--radius); background: var(--karte); }
.weg-info h2 { margin: 0 0 .4rem; font-size: var(--f-text); }
.weg-info ul { margin: 0; padding-left: 1.2rem; }
.weg-info li { margin: .35rem 0; line-height: 1.45; }
.weg-info li::marker { color: var(--tint); }
.weg-info .fussnote { margin: .6rem 0 .3rem; }
.gz-kurz { display: block; margin-top: .1rem; color: var(--tx2); font-size: var(--f-fuss); line-height: 1.3; }
.weg-dok { margin: 0 0 1rem; border-radius: var(--radius); background: var(--karte); overflow: hidden; }
.weg-dok h2 { margin: 0; padding: .8rem 1rem .3rem; font-size: var(--f-klein); color: var(--tx2); text-transform: uppercase; letter-spacing: .02em; font-weight: 600; }
.weg-schritte { list-style: none; margin: 0 0 1rem; padding: 0; }
.weg-schritte > li { position: relative; display: grid; grid-template-columns: 2.4rem 1fr; gap: .7rem; padding-bottom: 1rem; }
.weg-schritte > li:not(:last-child)::before { content: ""; position: absolute; left: 1.2rem; top: 2.4rem; bottom: 0; width: 2px; margin-left: -1px; background: var(--tint-bg); }
.weg-schritte .nr { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--tint-voll); color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.weg-inhalt { min-width: 0; padding: .7rem .9rem .5rem; border-radius: var(--radius); background: var(--karte); }
.weg-inhalt h3 { margin: 0 0 .25rem; font-size: var(--f-text); line-height: 1.25; }
.weg-inhalt p { margin: 0 0 .4rem; line-height: 1.45; }
.weg-ort { margin: .4rem -.9rem -.5rem; border-radius: 0 0 var(--radius) var(--radius); border-top: .5px solid var(--linie); }
.weg-ort-text { color: var(--tx2); font-size: var(--f-klein); }
.weg-siehe { margin: .2rem 0 .5rem; }
.weg-siehe a { display: inline-flex; align-items: center; gap: .2rem; min-height: 44px; font-weight: 600; text-decoration: none; }
.weg-siehe .i { width: 1em; height: 1em; }
.weg-ehrlich { display: flex; align-items: flex-start; gap: .45rem; margin: 0 0 .5rem; padding: .75rem .9rem; border-radius: var(--radius); background: var(--karte2); font-size: var(--f-klein); }
.weg-ehrlich .i { flex: none; margin-top: .1em; color: var(--tint); }
.recht h2 { margin: 1.4rem 0 .4rem; font-size: var(--f-text); font-weight: 600; }
.recht p { margin: .3rem 0; line-height: 1.5; }

/* Notaufnahmen, Überschrift mit Symbol, Knopfreihe */
.karte { position: relative; display: flex; flex-direction: column; gap: .1rem; min-height: 56px; padding: .7rem 1rem; color: var(--tx); text-decoration: none; }
.karte .name { font-size: var(--f-text); font-weight: 600; line-height: 1.25; }
.meta { display: flex; flex-wrap: wrap; gap: .1rem .6rem; }
.meta b { color: var(--tx); font-weight: 500; font-variant-numeric: tabular-nums; }
.tag .i { width: 1.05em; height: 1.05em; }
.mit-ico { display: flex; align-items: center; gap: .55rem; }
.mit-ico .i { width: .95em; height: .95em; color: var(--tint); }
.aktionen { display: flex; flex-wrap: wrap; gap: 8px; margin: .9rem 0; }
.aktionen .knopf { flex: 1 1 9rem; }

/* Windows-Kontrastmodus: Flächen ohne Rahmen bekommen eine sichtbare Kante */
@media (forced-colors: active) {
  .kachel, .liste, .gruppe, .knopf, .chip, .aktion, .hinweis, .auslastung, .info-raster, .zeiten, .gleich, .wetter, .notruf, .leer { border: 1px solid CanvasText; }
  .sym { forced-color-adjust: none; }
  .punkt { forced-color-adjust: none; background: CanvasText; }
  .aktion.primaer, .knopf.haupt, .chip[aria-pressed="true"] { border: 3px solid Highlight; }
  .zeiten tr.heute th { border-left: 3px solid Highlight; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .knopf, .chip, .kachel, .eintrag, .gzeile, .aktion, .seg { transition: background-color .2s ease, transform .16s cubic-bezier(.2, .8, .2, 1); }
  .kachel:active, .aktion:active, .knopf:active { transform: scale(.97); }
  .eintrag:active, .gzeile:active, .gleich a:active { background: var(--fuellung); }
}
