:root {
  --bg: #0b1220;
  --surface: rgba(18, 27, 46, 0.92);
  --surface-solid: #121b2e;
  --line: rgba(255,255,255,0.10);
  --ink: #eef2f9;
  --ink-soft: #9fb0c9;
  --brand: #4a90d9;
  --brand-strong: #6fb0ef;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
}

#map { position: absolute; inset: 0; }
.maplibregl-ctrl-attrib { font-size: 10px; }

/* ---------- Panel-Grundoptik (wiederverwendet fuer Topbar-Elemente, Seitenpanel-Sektionen, Graph-Dock) ---------- */
.surface {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  backdrop-filter: blur(8px);
}

/* ---------- Kopfzeile ---------- */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 6;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start;
  gap: 10px;
  /* 06.09.2026, User-Fund (Android-App auf einem konkreten Geraet): die
     Kopfzeile ueberlappte die System-Statusleiste (WLAN/Akku-Anzeige) -
     dasselbe viewport-fit=cover-Verhalten, das schon fuer .graph-dock/
     .standort-alarm-zeile den unteren safe-area-inset braucht (siehe dort),
     fehlte hier oben komplett. env() faellt auf 0px zurueck, wo kein Inset
     noetig ist (z.B. Desktop-Browser). */
  padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 0;
  pointer-events: none;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 16px 8px 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}
.brand-icon { width: 26px; height: 26px; display: block; filter: drop-shadow(0 1px 3px rgba(0,0,0,.35)); }
.brand-text h1 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .01em; }

.topbar-left {
  display: flex; align-items: center; gap: 8px;
  pointer-events: none;
}

/* 06.09.2026, User-Wunsch: alle vier Icon-Buttons (Play, Hell/Dunkel, GPS,
   Einstellungen) als EIN zusammenhaengender 2x2-Block mit gleichem
   Abstand horizontal wie vertikal (vorher: Play/Theme in einer Reihe neben
   der Marke, GPS/Einstellungen lose eine Zeile tiefer - wirkte
   auseinandergerissen). grid-Reihenfolge folgt der HTML-Reihenfolge in
   index.html (Play, Theme, GPS, Einstellungen). */
.topbar-right {
  display: grid; grid-template-columns: repeat(2, auto);
  gap: 8px;
  margin-left: auto;
  pointer-events: none;
}

.account-icon-btn {
  align-self: flex-start;
  width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  backdrop-filter: blur(8px);
  cursor: pointer;
  background: var(--surface); color: var(--ink);
  font-size: 17px;
  pointer-events: auto;
  padding: 0; display: flex; align-items: center; justify-content: center;
}
.account-icon-btn:hover { background: rgba(255,255,255,.12); }
/* 24.08.2026: Play/Pause-Button ist von der graph-dock-Leiste hierher
   umgezogen (User-Wunsch: Platz unten fuer den Graph freimachen) - braucht
   denselben "aktiv waehrend Wiedergabe"-Zustand wie vorher .icon-btn.active. */
.account-icon-btn.active { background: var(--brand); color: #fff; }

/* ---------- Konto: eigene Vollbild-Ansicht ---------- */
.account-page {
  position: fixed; inset: 0; z-index: 30;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.account-page-inner {
  position: relative; width: 100%; max-width: 380px;
  max-height: calc(100vh - 48px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 28px 20px 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.account-page-inner h2 { margin: 0 0 18px; font-size: 18px; }
.account-page-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border: none; border-radius: 8px;
  background: rgba(255,255,255,.08); color: var(--ink);
  font-size: 15px; cursor: pointer;
}
.account-page-close:hover { background: rgba(255,255,255,.16); }

.settings-block {
  padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line);
}
.settings-block:first-of-type { padding-top: 0; margin-top: 0; border-top: none; }
.settings-block h3 {
  margin: 0 0 10px; font-size: 12px; font-weight: 700;
  color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em;
}

/* ---------- Login/Konto ---------- */
.auth-tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.auth-tab {
  flex: 1; border: none; border-radius: 7px; cursor: pointer;
  background: rgba(255,255,255,.06); color: var(--ink-soft);
  font-size: 12px; font-weight: 600; padding: 6px 0;
}
.auth-tab.active { background: var(--brand); color: #fff; }
#authForm { display: flex; flex-direction: column; gap: 6px; }
#authForm input {
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  border-radius: 7px; color: var(--ink); font-size: 12.5px;
  padding: 7px 9px;
}
#authForm input::placeholder { color: var(--ink-soft); }
#authSubmit {
  border: none; border-radius: 7px; cursor: pointer;
  background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 600;
  padding: 7px 0; margin-top: 2px;
}
#authSubmit:hover { background: var(--brand-strong); }
.auth-msg {
  font-size: 11.5px; margin-top: 6px; padding: 6px 8px;
  border-radius: 6px; background: rgba(224,75,63,.16); color: #ff9d94;
}
.auth-msg.ok { background: rgba(80,190,120,.16); color: #7be0a0; }
.account-loggedin {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px;
  font-size: 13px;
}
.account-loggedin #accountEmail { margin-right: auto; }
.link-btn {
  border: none; background: none; color: var(--brand-strong);
  font-size: 12px; cursor: pointer; padding: 2px 0; text-decoration: underline;
}
.link-btn-danger { color: #ff8a8f; }

.standort-suchzeile {
  display: flex; align-items: center; gap: 4px;
}
.standort-suchzeile input {
  flex: 1; min-width: 0;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  border-radius: 7px; color: var(--ink); font-size: 12.5px;
  padding: 6px 8px;
}
.standort-suchzeile input::placeholder { color: var(--ink-soft); }
.standort-vorschlaege {
  list-style: none; margin: 4px 0 0; padding: 0;
  max-height: 160px; overflow-y: auto;
  border-top: 1px solid var(--line);
}
.standort-vorschlaege li {
  padding: 6px 4px; font-size: 12px; cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.standort-vorschlaege li:hover { background: rgba(255,255,255,.08); }

.settings-locked {
  font-size: 12.5px; line-height: 1.5; color: var(--ink-soft);
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px;
}

.standort-liste {
  list-style: none; margin: 8px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.standort-liste li {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 9px; font-size: 12.5px; cursor: pointer;
  background: rgba(255,255,255,.05); border-radius: 7px;
}
.standort-liste li:hover { background: rgba(255,255,255,.09); }
.standort-liste li.active { background: var(--brand); color: #fff; }
.standort-liste .standort-liste-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.standort-liste .standort-liste-loeschen {
  border: none; background: none; color: inherit; opacity: .6;
  cursor: pointer; font-size: 12px; padding: 2px 4px; flex-shrink: 0;
}
.standort-liste .standort-liste-loeschen:hover { opacity: 1; }
.standort-limit-hinweis { font-size: 11px; color: var(--ink-soft); margin-top: 6px; }

/* ---------- Kartenmitte-Fadenkreuz ---------- */
.karten-fadenkreuz {
  position: absolute; z-index: 4; top: 50%; left: 50%;
  width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border: 2px solid #fff; border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 0 6px rgba(0,0,0,.6);
  pointer-events: none;
}

.icon-btn {
  width: 30px; height: 30px; flex-shrink: 0;
  border: none; border-radius: 7px;
  background: transparent; color: var(--ink);
  font-size: 13px; cursor: pointer;
}
.icon-btn:hover { background: rgba(255,255,255,.08); }
.icon-btn.active { background: var(--brand); color: #fff; }
.icon-btn:disabled { opacity: .35; cursor: default; }

/* ---------- Ebenen ---------- */
.ctrl-layers {
  display: flex; flex-direction: column; gap: 6px;
}
.layer-btn {
  border: 1px solid transparent; border-radius: 8px;
  background: rgba(255,255,255,.06); color: var(--ink);
  font-size: 12.5px; padding: 7px 12px; cursor: pointer;
  text-align: left; white-space: nowrap;
}
.layer-btn:hover { background: rgba(255,255,255,.12); }
.layer-btn.active { background: var(--brand); color: #fff; }
.drizzle-toggle {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--ink-soft);
  padding: 2px 4px; cursor: pointer;
}
.drizzle-toggle input { accent-color: var(--brand); }
.drizzle-toggle select {
  background: rgba(255,255,255,.08); color: var(--ink);
  border: 1px solid var(--line); border-radius: 5px;
  font-size: 11px; padding: 2px 4px; cursor: pointer;
}

/* ---------- Legende ---------- */
.legend { font-size: 11.5px; }
.legend-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 11px; font-weight: 700; color: var(--ink-soft); cursor: pointer;
}
.legend-toggle {
  border: none; background: none; cursor: pointer; color: var(--ink-soft);
  font-size: 11px; padding: 2px 4px; line-height: 1;
}
.legend-body { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.legend.collapsed .legend-body { display: none; }
.legend.collapsed .legend-head { margin: 0; }
.legend-row { color: var(--ink); line-height: 1.4; }
.legend-row.muted { color: var(--ink-soft); }
.legend-row[hidden] { display: none; }
.legend-row .scale { display: inline-flex; gap: 1px; vertical-align: middle; margin-right: 6px; }
.legend-row .scale i { width: 14px; height: 9px; display: inline-block; }
.legend-row .scale i:first-child { border-radius: 3px 0 0 3px; }
.legend-row .scale i:last-child { border-radius: 0 3px 3px 0; }
.legend-row .sw {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  margin: 0 2px 0 6px; vertical-align: middle;
}
.legend-row .sw:first-child { margin-left: 0; }

/* Kleiner "kein Nebel/Blitzrisiko erkannt"-Hinweis direkt neben dem
   jeweiligen Kartenebenen-Schalter (25.08.2026) - macht klar, dass eine
   komplett transparente, aber aktive Ebene korrekt ist, kein Fehler. */
.layer-empty-hint { color: var(--ink-soft); font-size: 0.85em; font-style: italic; margin-left: 4px; }
.layer-empty-hint[hidden] { display: none; }

/* ---------- Graph-Dock (immer sichtbar, unten) ---------- */
.graph-dock {
  position: absolute; z-index: 5;
  left: 16px; right: 16px;
  /* viewport-fit=cover (index.html) laesst die Seite bewusst bis unter
     System-Balken zeichnen (fuers Kartenbild gewollt) - ohne den
     safe-area-Zuschlag verschwindet dieser fest positionierte Bereich
     dann aber hinter der Android-Navigationsleiste (User-Fund 22.08.2026,
     Screenshot: "leicht" unten abgeschnitten). env() faellt auf 0px
     zurueck, wo kein Inset noetig ist (z.B. Desktop). */
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 640px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  backdrop-filter: blur(8px);
  padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
}
.graph-dock .icon-btn { flex-shrink: 0; }
.graph-placeholder {
  font-size: 12.5px; color: var(--ink-soft); line-height: 1.4;
}
.standort-graph-wrap {
  flex: 1; min-width: 0;
  /* Der mitwandernde Zeit-Marker (.standort-zeit-marker) ist absolut
     positioniert (top:100% der svgwrap) und beansprucht dadurch KEINEN
     Platz in der Boxhoehe - seit die Zeit-Zeile in die Kopfzeile
     gewandert ist (User-Wunsch), gab es nichts mehr, das diesen Platz
     unten offenhielt, der Marker ragte ueber die Box hinaus (User-Fund
     22.08.2026, Handy-Screenshot: Uhrzeit unten mittig abgeschnitten).
     Padding reserviert die volle Marker-Hoehe (~18px) + Luft. */
  padding-bottom: 22px;
}
/* 30.08.2026, User-Fund: der Standortname war im Kopf zwischen Uhrzeit-Wert,
   Wetterinfo und Grillwetter-Badge auf EINER Zeile eingequetscht (die drei
   anderen sind flex-shrink:0, nahmen sich zuerst ihren Platz) - dadurch auf
   dem Handy praktisch nicht lesbar/uebersehbar. Jetzt zwei Zeilen: der Name
   allein, gross+fett, mit voller Breite fuer sich; Uhrzeit/Wetter/Grillwetter
   als sekundaere Detailzeile darunter. */
.standort-graph-kopf {
  display: flex; flex-direction: column; gap: 3px; margin-bottom: 4px;
}
.standort-graph-kopf-zeile1 {
  /* 06.09.2026, User-Wunsch: Grillwetter-Badge stand bisher allein in
     zeile2 darunter und kostete eine ganze Zeile Hoehe - jetzt hier rechts
     neben dem Standortnamen, VOR dem Schliessen-Kreuz. justify-content:
     space-between passte nur fuer zwei Elemente; #standortLabel nimmt den
     verfuegbaren Platz jetzt per flex:1 selbst, Badge+Kreuz bleiben in
     ihrer natuerlichen Groesse direkt dahinter (kein space-between mehr
     noetig). */
  display: flex; align-items: center; gap: 8px;
  min-width: 0;
}
.standort-graph-kopf-zeile1 #standortLabel {
  font-size: 14px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
  flex: 1 1 auto;
}
.standort-graph-kopf-zeile2 {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px;
  font-size: 11px; font-weight: 400; color: var(--ink-soft);
}
.standort-schliessen {
  flex-shrink: 0;
  border: none; background: none; color: var(--ink-soft);
  cursor: pointer; font-size: 13px; padding: 2px 4px;
}
.standort-graph-svgwrap { position: relative; }
.standort-graph {
  /* Muss zur viewBox-Hoehe (0 0 640 90) in zeichneGraph() passen - bei
     Abweichung streckt/staucht preserveAspectRatio="none" den Inhalt
     vertikal und verzerrt die Zonen-Labels zusaetzlich (Fund 22.08.2026,
     war vorher 70px bei viewBox-Hoehe 90 -> 22% Stauchung). */
  width: 100%; height: 90px; display: block;
  cursor: pointer; touch-action: none;
}
.standort-zeit-marker {
  position: absolute; top: 100%; transform: translateX(-50%);
  background: var(--surface-solid); border: 1px solid var(--line);
  border-radius: 5px; padding: 1px 5px; margin-top: 2px;
  font-size: 10.5px; font-weight: 600; white-space: nowrap;
  font-variant-numeric: tabular-nums; pointer-events: none;
  z-index: 2;
}
.standort-graph-zeit {
  /* 24.08.2026, User-Fund: zeigte bisher zusaetzlich zur Uhrzeit-mit-
     Marker unten NOCHMAL eine laufende Uhrzeit in der Kopfzeile ("doppelt
     gemoppelt"). Zeigt jetzt nur noch den aktuellen mm/h-Wert (siehe
     updateStandortZeitLabel() in radar.js) - die Uhrzeit selbst steht
     ausschliesslich noch im mitwandernden Marker unter dem Graph
     (.standort-zeit-marker). 30.08.2026: aus der Kopfzeile in die neue,
     eigene Detailzeile (.standort-graph-kopf-zeile2) verschoben, seit der
     Standortname eine eigene Zeile bekam - margin-left:auto/flex-shrink:0
     nicht mehr noetig, die Zeile darf jetzt frei umbrechen. */
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.standort-wetter-info {
  white-space: nowrap;
}
.grillwetter-badge {
  flex-shrink: 0; font-size: 11px; font-weight: 600; white-space: nowrap;
  padding: 1px 8px; border-radius: 999px;
}
.grillwetter-badge.gruen { background: rgba(63, 174, 92, 0.20); color: #6fcf8e; }
.grillwetter-badge.gelb  { background: rgba(232, 135, 30, 0.20); color: #f0ad4e; }
.grillwetter-badge.rot   { background: rgba(217, 38, 38, 0.22); color: #ef6a6a; }

/* ---------- Vorhersage-Sidebar (30.08.2026) ----------
   User-Wunsch: Mehrtages-Trend + Pollen standen bisher unten im Graph-Dock,
   ohne echten Bezug zur Regen-Zeitleiste dort ("sinnfrei"). Jetzt rechts
   unter dem Einstellungen-Zahnrad, gestapelt (Trend, dann Pollen) - eigene
   Karten im selben Panel-Stil wie Topbar/Graph-Dock (siehe .surface). */
.forecast-sidebar {
  /* top wird per JS (positioniereForecastSidebar() in radar.js) auf die
     tatsaechliche Unterkante der Topbar gesetzt - die Topbar kann auf
     schmalen Handys in zwei Zeilen umbrechen, ein fester px-Wert hier war
     der Grund fuer die vom User gemeldete Ueberlappung mit Zahnrad/GPS.
     Dieser Wert ist nur der Platzhalter bis das JS beim Laden greift. */
  position: absolute; z-index: 5; top: 100px; right: 16px;
  /* Breite schmiegt sich an den breitesten Zeileninhalt an, statt einer
     festen, meist zu breiten Spalte (User-Fund: grosse Luecke zwischen
     Wochentag und Wetter-Icon) - max-width faengt nur unerwartet lange
     Werte ab. */
  width: max-content; max-width: min(165px, 44vw);
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.forecast-sidebar-card {
  pointer-events: auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.3);
  backdrop-filter: blur(8px);
  padding: 8px 10px;
  /* 06.09.2026, User-Wunsch: per Klick einklappbar, um mehr Kartenflaeche
     freizugeben - Zustand/Umschalten siehe initSidebarKarteEinklappbar()
     in radar.js, dieselbe .collapsed-Klasse wie die bestehende Legende. */
  cursor: pointer;
}

/* Langfrist-Trend (Phase 4, 25.08.2026; 30.08.2026 von einer horizontalen
   Kachelreihe im Graph-Dock zu einer vertikalen Tagesliste in der schmalen
   Sidebar umgebaut - eine Reihe aus 4+ Kacheln haette dort entweder
   winzige Schrift oder eine zu breite Sidebar gebraucht). Jede Zeile:
   Wochentag links, Icon+Temperatur+Regen rechts, wie eine Mini-Vorhersageliste. */
.langfrist-trend {
  display: flex; flex-direction: column; gap: 5px;
}
.trend-tag {
  /* 06.09.2026, User-Fund: justify-content:space-between + flex:1 auf
     .trend-tag-wt zog die Zeile stur auf die volle Sidebar-Breite
     auseinander - bei einem kurzen Wochentag wie "Mo" entstand dadurch die
     grosse Luecke vor dem Wetter-Icon. Jetzt packen alle Elemente mit
     festem Abstand von links, die Zeilenbreite ergibt sich aus dem Inhalt
     (siehe .forecast-sidebar width:max-content). */
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--ink-soft);
}
.trend-tag:not(:last-child) {
  padding-bottom: 5px; border-bottom: 1px solid var(--line);
}
.trend-tag-wt { font-weight: 600; color: var(--ink); font-size: 11px; flex: 0 0 auto; min-width: 30px; }
.trend-tag-icon { font-size: 15px; line-height: 1.1; flex-shrink: 0; }
.trend-tag-temp { font-variant-numeric: tabular-nums; white-space: nowrap; flex-shrink: 0; }
.trend-tag-regen { color: var(--brand-strong); white-space: nowrap; flex-shrink: 0; }
/* Eingeklappt (Klick auf die Karte, siehe initSidebarKarteEinklappbar() in
   radar.js): nur noch Wochentag+Icon je Zeile, Temperatur/Regen-Prozent
   ausgeblendet - macht die Karte spuerbar schmaler. */
.langfrist-trend.collapsed .trend-tag-temp,
.langfrist-trend.collapsed .trend-tag-regen { display: none; }

/* Pollenflug-Info (Phase 4, 25.08.2026) - eigene Karte unter dem Trend,
   ueber die Einstellungen abschaltbar (siehe #showPollenToggle/radar.js).
   06.09.2026, User-Wunsch: bisher lief "🌾 Pollen: Ambrosia (0-1), Gräser
   (0-1)" als ein Fliesstext - je nach Umbruch trotzdem breit. Jetzt eine
   Kopfzeile ("Pollen") plus eine Zeile je Pollenart darunter, siehe
   renderPollenInfo() in radar.js. */
.pollen-info {
  font-size: 11px; color: var(--ink-soft); line-height: 1.4;
}
.pollen-titel { font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.pollen-zeile { display: flex; align-items: baseline; gap: 6px; }
.pollen-zeile:not(:last-child) { margin-bottom: 1px; }
.pollen-art { white-space: nowrap; }
.pollen-level { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--brand-strong); }
/* Eingeklappt (Klick auf die Karte): nur noch die Kopfzeile "🌾 Pollen"
   sichtbar, alle Pollenart-Zeilen ausgeblendet - macht die Karte auf ein
   Minimum schmal/kurz. */
.pollen-info.collapsed .pollen-zeile { display: none; }
.pollen-info.collapsed .pollen-titel { margin-bottom: 0; }

@media (max-width: 900px) {
  /* Auf dem Handy (Hauptzielplattform dieser App) bleibt die Sidebar bewusst
     an derselben Stelle (User-Wunsch: rechts unter dem Zahnrad) - nur etwas
     schmaler/kompakter, damit genug Kartenflaeche uebrig bleibt. top bleibt
     dem JS ueberlassen (positioniereForecastSidebar() in radar.js). */
  .forecast-sidebar { max-width: min(155px, 44vw); right: 10px; gap: 6px; }
  .forecast-sidebar-card { padding: 7px 8px; }
  .trend-tag, .pollen-info { font-size: 10px; }
  .trend-tag-wt { font-size: 10px; }
}
.standort-alarm-zeile {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px 14px; margin-top: 8px; padding-top: 8px;
  border-top: 1px solid var(--line);
}
.standort-alarm-toggle {
  display: flex; align-items: center; gap: 5px;
  font-size: 12.5px; cursor: pointer;
}
.standort-alarm-toggle input { accent-color: var(--brand); }
.standort-alarm-zeile select {
  background: rgba(255,255,255,.08); color: var(--ink);
  border: 1px solid var(--line); border-radius: 5px;
  font-size: 11px; padding: 3px 5px; cursor: pointer;
}
.standort-alarm-status { font-size: 11px; color: var(--ink-soft); width: 100%; margin-top: 2px; }
.standort-alarm-zeitfenster {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--ink-soft);
}
.standort-alarm-zeitfenster input[type="time"] {
  background: rgba(255,255,255,.08); color: var(--ink);
  border: 1px solid var(--line); border-radius: 5px;
  font-size: 11px; padding: 2px 4px; font-variant-numeric: tabular-nums;
  color-scheme: dark;
}

/* ---------- Toast ---------- */
.toast {
  position: absolute; z-index: 20; left: 50%; bottom: 22px;
  transform: translateX(-50%) translateY(8px);
  background: var(--surface-solid); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 16px; font-size: 13px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Rechtliche Pflichtlinks (22.08.2026) ---------- */
.legal-links {
  position: fixed; z-index: 3; left: 10px; bottom: 6px;
  font-size: 11px; color: rgba(255,255,255,.45);
}
.legal-links a { color: inherit; text-decoration: none; }
.legal-links a:hover { color: rgba(255,255,255,.75); }

/* ---------- Beta-Feedback (22.08.2026, nur in der nativen App sichtbar) ----------
   06.09.2026, User-Fund: als fixe Bloase (bottom:100px) schwebte der Button
   ueber der Karte, sichtbar oberhalb des Graph-Docks - ohne erkennbaren
   Bezug zu irgendetwas. Jetzt regulaeres letztes Element in der
   Vorhersage-Sidebar (siehe initBetaFeedback() in radar.js, haengt ihn dort
   statt an document.body an) - sitzt damit fest unter Trend/Pollen, rutscht
   mit denen zusammen. */
#betaFeedbackBtn {
  align-self: flex-end;
  pointer-events: auto;
  cursor: pointer;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface-solid); border: 1px solid var(--line);
  color: var(--ink); font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.4);
}
#betaFeedbackModal {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(0,0,0,.55);
  display: flex; align-items: flex-end; justify-content: center;
}
.beta-feedback-sheet {
  width: 100%; max-width: 480px;
  background: var(--surface-solid); border: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 8px;
}
.beta-feedback-sheet h3 { margin: 0 0 6px; color: var(--ink); font-size: 15px; }
.beta-feedback-option, .beta-feedback-cancel {
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  color: var(--ink); border-radius: 10px; padding: 12px 14px;
  font-size: 14px; text-align: left;
}
.beta-feedback-cancel { text-align: center; color: rgba(255,255,255,.6); margin-top: 4px; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  /* User-Wunsch 21.08.2026: Hauptseite wirklich nur Karte+Graph - Suche,
     Ebenen, Alarm, Konto und Legende leben jetzt ausschliesslich in der
     Einstellungen-Seite (.account-page), nicht mehr auf der Karte. Hier
     bleibt nur noch Topbar-Umbruch + Graph-Dock-Groesse zu regeln. */
  .graph-dock {
    left: 10px; right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    /* War height:16vh/min-height:110px - reichte fuer den Kopf+SVG(90px,
       seit dem Zonen-Label-Fix korrekt unverzerrt statt 70px)+eigene
       Zeit-Zeile (~150px insgesamt) nicht mehr, Inhalt wurde am unteren
       Rand weggeschnitten statt zu scrollen (User-Fund 22.08.2026:
       "leicht" abgeschnitten, eine der beiden Zonen-Grenzlinien fehlte
       im sichtbaren Ausschnitt). height:auto passt sich dem echten
       Inhalt an, max-height bleibt als Notbremse fuer sehr kleine
       Screens oder ausgeklappte Alarm-Zeile, dann greift overflow-y:auto.
       min-height nach dem Umzug der Zeit-Zeile in die Kopfzeile (User-
       Wunsch, gleicher Fund) von 165 auf 130 gesenkt - eine ganze Zeile
       weniger noetig (Kopf+SVG ~120px + Dock-Padding). */
    height: auto; max-height: min(45vh, 320px); min-height: 130px;
    overflow-y: auto; align-items: flex-start;
  }
  .account-page { padding: 16px; }
  .drizzle-toggle { flex-wrap: wrap; }
  .drizzle-toggle select { max-width: 100%; }
}

@media (max-width: 480px) {
  .standort-alarm-zeitfenster { width: 100%; }

  /* 06.09.2026, User-Fund (Oppo-Handy mit 21:9-Display, schmaler in der
     Breite als uebliche Handys): "Regenradar Deutschland" brach in der
     Kopfzeile in zwei Zeilen um. white-space:nowrap allein wuerde die Box
     einfach ueber den Rand hinausschieben - erst die kleinere Schrift
     schafft genug Platz, nowrap sichert das dauerhaft ab (auch bei noch
     schmaleren Geraeten in Zukunft), statt nur "meistens" zu passen. */
  .brand-text h1 { font-size: 12.5px; white-space: nowrap; }

  /* Gleicher Fund: die zwei 40x40px-Buttons oben rechts (🎯/⚙️) sind mit
     ihrer Luecke breiter als die eingeklappte Vorhersage-Sidebar darunter
     (die schmiegt sich per width:max-content an ihren - im eingeklappten
     Zustand sehr kurzen - Inhalt an, siehe .forecast-sidebar) - wirkt
     dadurch breiter/unruhiger als die schmale Spalte darunter. Kleiner und
     dichter zusammengeschoben, noch klar tippbar, kommt der Sidebar-Breite
     spuerbar naeher. */
  .topbar-left, .topbar-right { gap: 5px; }
  .account-icon-btn { width: 34px; height: 34px; font-size: 15px; }
}
