/* ============================================================
   StateofParks — Visuelles System (styles.css)  (Rebrand von „SHRED")
   Fundament für alle Screens. Quelle: visuelles_system_shred.md
   Etappe 0 des Design-Umbaus.
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* Hintergründe */
  --bg-0: #060607;   /* tiefstes Schwarz (App-Grund)        */
  --bg-1: #0e0e11;   /* Kartenfläche solide                 */
  --bg-2: #16171b;   /* leicht erhöht (Chips, Badges)       */
  --line: #1c1c22;   /* Hairline-Rahmen                     */

  /* Karten-Tokens (1.0.20, Kontrast-Härtung für Draußen/gedimmtes Display): „Kanten statt Flächen" —
     der Hairline-BORDER trägt die Zonierung helligkeitsstabil, das Flächen-Delta allein kippt bei Dimmung.
     EINE Quelle für die Detail-Zonen-Träger (Cockpit 2×2 + Andrang). Beide Werte kalibrierbar; Deep-Black
     bleibt. --card-border ist NEUTRAL-grau, NIE lime (lime bleibt Signal). */
  --card-bg: #141419;                 /* leicht heller als --bg-1 (#0e0e11), ~+4 % */
  --card-border: 1px solid #2a2a2e;   /* Hairline, deutlich heller als --line (#1c1c22) → trägt bei ~25 % Helligkeit */

  /* Akzente */
  --lime: #c4ff00;   /* Signalfarbe — das Wichtige          */
  --lime-2: #a8e000; /* Lime gedämpft (Verlauf/Stufe)       */
  --blue: #5b9bd5;   /* Untergrund/Boden-Thema              */
  --blue-lt: #9aceff;/* heller blau (Text auf dunkel)       */
  --warn: #ff5a00;   /* Warnung / Einschränkung             */
  --danger: #ff3b30; /* Gefahr / Sperrung                   */
  --lime-dim:   #8aa600; /* mildes Lime (Tendenz +1, abgedunkelt) */
  --danger-dim: #c75d52; /* mildes Rot (Tendenz −1, abgedunkelt)  */
  --gelb: #ffd23a;   /* mittlere Stufe (Andrang/Score)      */
  --andrang-orange: #e8a33d;  /* NUR Andrang-Block (Punkte/Kürzel) — getrennt von Wetter-Gold/Regen */

  /* Text */
  --tx-1: #ffffff;   /* primär                              */
  --tx-2: #c8c8d0;   /* sekundär                            */
  --tx-3: #9a9aa2;   /* tertiär / Labels                    */
  --tx-4: #6a6a72;   /* gedämpft / inaktiv                  */
  --zu:   #7a7a82;   /* "geschlossen"-Grau                  */

  /* Andrang-Stufen (5) */
  --load-1: var(--lime);   /* sehr ruhig / ruhig */
  --load-2: #a8e000;
  --load-3: var(--gelb);   /* normal */
  --load-4: #ff9a3a;
  --load-5: var(--warn);   /* voll */

  /* Typo */
  --font-display: 'Anton', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radius */
  --r-card: 9px;
  --r-tile: 8px;
  --r-pill: 3px;
  --r-phone: 22px;

  /* Glas */
  --glass-bg: linear-gradient(135deg, rgba(196,255,0,.06), rgba(16,18,24,.5));
  --glass-bg-plain: rgba(16,18,24,.5);
  --glass-border: rgba(196,255,0,.18);
  --glass-blur: blur(12px);

  /* Hintergrund-Scrim über dem App-Bild */
  --scrim: linear-gradient(180deg, rgba(6,7,9,.55), rgba(6,7,9,.82));

  /* Spacing-Skala */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px;
  --sp-4: 16px; --sp-5: 20px; --sp-6: 24px;

  /* Kalender-Sticky: EINE Wahrheit für den Gitter-Offset UND die Deckungshöhe der appbar--solid
     (Events-Tab). Ändert sich der Wert, wandern Gitter UND Deckung gemeinsam → kein Durchschein-Streifen
     (genau diese Drift erzeugte den Streifen in 1.0.15). = Appbar-Höhe: padding-top max(sp-3+env, 28px)
     + ~40px Logo-Block. Am Gerät kalibrierbar. */
  --kal-sticky-top: calc(max(var(--sp-3) + env(safe-area-inset-top, 0px), 28px) + 40px);

  /* Detail-Header (1.0.18, flach/ohne Bild): Freiraum oben, damit Name/Meta IMMER unter der absoluten
     Topbar (Back/Logo) sitzen (auch zweizeiliger Name). = Topbar-Höhe: padding-top max(sp-3+env, 28px)
     + 36px Logo-Block. Named Constant → Feinjustierung am Gerät ohne Struktur-Änderung. */
  --detail-head-top: calc(max(var(--sp-3) + env(safe-area-inset-top, 0px), 28px) + 36px);

  /* Detail-Sektions-Rhythmus (1.0.19, Variante A „Raum & Rhythmus"): EIN Abstand VOR jeder Sektion
     (Cockpit · // Andrang · Menüband · Listen-Content) → gleichmäßiger Takt statt Einzelwerte. Wert =
     Header→Cockpit-Abstand aus Mockup A (~1.5× des alten sp-3). Named Constant → am Gerät kalibrierbar;
     Kopf-Abstand hat Vorrang, falls das Cockpit-im-Viewport knapp wird. */
  --section-gap: 26px;

  /* Bottom-Nav-Höhe (für Safe-Area-Berechnungen) */
  --nav-h: 58px;
}

/* ============================================================
   2. RESET / BASIS
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  background: var(--bg-0);
  color: var(--tx-1);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* black-translucent (v1.0.3+) schiebt das Dokument um env(safe-area-inset-top) hinter die Statusbar →
   die 100%-Höhenkette wird genau so viel zu kurz, `position:fixed; bottom:0` (Tab-Bar, Versions-Stempel)
   verankert dann am zu kurzen Layout-Viewport und schwebt über dem Rand. Standard-Gegenmittel: die
   Wurzelhöhe um den Top-Inset verlängern → Bar sitzt wieder am echten Viewport-Boden. */
html { min-height: calc(100% + env(safe-area-inset-top, 0px)); }
/* Eigenes Pull-to-Refresh → natives Chrome-Android-PtR unterdrücken (keine Doppel-Geste). */
body { overscroll-behavior-y: contain; }

/* Pull-to-Refresh-Indikator: lime Spinner, oben mittig, folgt dem Finger (transform via JS). */
.ptr {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%) translateY(-40px);
  z-index: 55;                 /* über appbar (20)/navbar (30), unter Sheets (60) */
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(13,13,15,.92); border: 1px solid #1c1c22;
  opacity: 0; pointer-events: none;
}
.ptr--anim { transition: transform .26s ease, opacity .26s ease; }
.ptr__spin {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(196,255,0,.25); border-top-color: var(--lime);
}
.ptr--ready .ptr__spin { border-color: rgba(196,255,0,.5); border-top-color: var(--lime); }
.ptr--spin .ptr__spin { animation: ptr-spin .6s linear infinite; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

/* Reduced motion respektieren */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ============================================================
   3. APP-LAYOUT (Bild-Hintergrund PRO SCREEN, Glas darüber)
   Default: solide --bg-0 (body). Bild + Scrim nur, wenn .app--has-bg gesetzt ist
   (Start/Favs). render() schaltet die Klasse je aktivem Screen.
   ============================================================ */
.app {
  position: relative;
  min-height: 100%;
  isolation: isolate;
}
/* fixes Hintergrundbild — standardmäßig AUS (kein Bild) */
.app__bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
  display: none;
}
.app__scrim {
  position: fixed;
  inset: 0;
  background: var(--scrim);
  z-index: -1;
  display: none;
}
/* Bild-Screens (Start/Favs): Bild näher gezoomt, oben verankert (dunkler Bereich
   bleibt hinter den Karten), Scrim für Lesbarkeit. */
.app--has-bg .app__bg {
  display: block;
  background-image: var(--app-img, none);
  transform: scale(1.28);
  transform-origin: top center;
}
.app--has-bg .app__scrim { display: block; }
/* Safe-Area-DECKEL: garantiert deckend schwarzer Streifen in der Notch/Dynamic-Island-Zone auf ALLEN
   Screens AUSSER Start (dort soll das Hero-Bild bis ganz oben reichen). Verhindert, dass auf Alerts/
   Events/Profil oben in der Safe-Area etwas durchscheint (Content ODER iOS-Paint-Ghost). Der Deckel ist
   SELBST schwarz → selbst wenn iOS ihn „ghostet", bleibt er unsichtbar-schwarz. Sitzt über der Appbar
   (z 20), unter Sheets (z 60). Auf Geräten ohne Notch ist die Höhe 0 → wirkungslos. */
/* Safe-Area-Scrim: EIN Verhalten auf ALLEN Screens (auch Start) — weicher Gradient (native-App-Muster)
   statt hartem Balken → keine sichtbare Kante beim Scrollen, Statusbar-Schrift lesbar, kein Lime-/
   Content-Durchschein oben (Problem A bleibt gelöst).
   KALIBRIER-STELLEN (am Gerät justierbar, ohne Struktur-Änderung):
     - Deckkraft-Stops:  0.92 (oben)  →  0.72 (bei 55 %)  →  0 (unten)
     - Auslauf-Höhe:     +24px unter der Inset-Kante (Gradient braucht Auslauf, sonst entsteht eine Kante)
   FALLBACK: Klasse `safe-cap--solid` ans #safe-cap-Element (index.html) → deckend schwarz (altes
   Verhalten). Reiner Klassen-Toggle, kein Rebuild. */
#safe-cap {
  position: fixed; top: 0; left: 0; right: 0;
  height: calc(env(safe-area-inset-top, 0px) + 24px);
  z-index: 40; pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.72) 55%,
    rgba(0,0,0,0)    100%);
}
.safe-cap--solid {   /* Fallback: deckend schwarz + kompakt (altes Verhalten) */
  background: var(--bg-0);
  height: calc(env(safe-area-inset-top, 0px) + 2px);
}
/* Versions-Stempel: reines Verifikations-Werkzeug (welche Code-Version läuft), auf JEDEM Screen.
   Dezent unten links, gedämpftes Grau, Mono — KEIN Lime, keine Aufmerksamkeit; blockt keine Taps. */
#version-stamp {
  position: fixed; left: 8px; z-index: 45; pointer-events: none;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 2px);
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .04em;
  color: #555; opacity: .8;
}
#version-stamp:empty { display: none; }   /* falls app.js (noch) nicht geladen hat */
/* Start-HERO-BAND (Neuaufbau): ein Bild-BAND OBEN, das NORMAL mitscrollt (kein Parallax, kein
   background-attachment:fixed → iOS-sicher). KEIN Vollflächen-Layer mehr → die Liste darunter läuft auf
   solidem Schwarz (kein Durchscheinen). Das Band wird per negativem margin-top UNTER die sticky Appbar
   gezogen (env(safe-area) berücksichtigt) → Bild liegt hinter dem Logo; ab Band-Unterkante solides --bg-0.
   KALIBRIER-STELLEN: --hero-h (Band-Höhe) + die Gradient-Stops (oben Vignette fürs Logo, Mitte klar,
   unten weicher Ausblend ins Schwarz). */
/* STRIKT: Das Hero-Band erscheint NUR auf der Startseite (via .app--start, in render() gesetzt).
   Default display:none → auf Events/Alerts/Favs/Profil garantiert KEIN Band/Bild oben. */
.hero-start { display: none; }
.app--start .hero-start {
  display: block;
  --hero-h: 44vh;                     /* Hero-Höhe — kalibrierbar (höher → mehr Bild) */
  height: var(--hero-h);
  /* Kein negativer Margin mehr: die Start-Appbar ist absolut (aus dem Flow), das Band ist erstes
     Flow-Element → sitzt deterministisch bei y=0 (Bild bis zur Oberkante, kein iOS-Erst-Paint-Rand,
     keine env-Abhängigkeit). Das Logo (absolute Appbar) liegt darüber. */
  margin-top: 0;
  background-image:
    linear-gradient(180deg,
      rgba(6,7,9,.48) 0%,       /* Top-Vignette: Logo lesbar (nur oben) */
      rgba(6,7,9,.06) 15%,      /* schnell aufhellen → Bild klar sichtbar */
      rgba(6,7,9,0)   56%,      /* Bild länger PUR → Bike/Unterkörper sichtbar (war 42%) */
      rgba(6,7,9,.5)  84%,      /* Ausblend beginnt später (war .55/78%) */
      var(--bg-0)     100%),    /* Band-Unterkante = solides Schwarz → Übergang zur Liste */
    var(--hero-img, none);
  background-size: cover;
  background-position: center 38%;   /* Ausschnitt TIEFER → Bike unter dem Fahrer kommt ins Bild (war 22%) */
  background-repeat: no-repeat;
}

/* scrollbarer Inhaltsbereich, lässt Platz für die Bottom-Nav */
.app__view {
  min-height: 100%;
  /* R3: zusätzliche Luft (sp-5) über der fixen Bottom-Nav — Andrang-Leiste/Inhalt kleben nicht an der Nav. */
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + var(--sp-5));
}

/* Hochformat erzwingen (Querformat-Drehung unterbinden). manifest.json orientation:portrait greift nur
   bei installierter Android-PWA → dieser CSS-Fallback fängt Browser + iOS ab. Ziel NUR Mobile-Querformat
   (orientation:landscape UND geringe Höhe) → Desktop-Breitbild (hohe Viewports) bleibt voll nutzbar.
   Dezenter, marken-konformer Dreh-Hinweis deckt die App, bis zurückgedreht wird. */
#rotate-hint { display: none; }
@media (orientation: landscape) and (max-height: 500px) {
  #rotate-hint {
    display: flex; position: fixed; inset: 0; z-index: 9999;   /* über Bottom-Nav (30) und Sheets (60) */
    flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    background: var(--bg-0); color: var(--tx-1); text-align: center; padding: 24px;
    padding-top: calc(24px + env(safe-area-inset-top, 0px));
  }
  .rotate-hint__ic { width: 46px; height: 46px; fill: none; stroke: var(--lime); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .rotate-hint__txt { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; color: var(--tx-2); }
}

/* ============================================================
   4. KOPFBEREICH
   ============================================================ */
.appbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-3) var(--sp-2);
  /* max(…, 28px): in Safari (env=0) hält es das Logo/„STATE OF" UNTER dem Scrim-Auslauf; in der PWA
     (env≥28) greift weiter der env-Wert → Logo-Position dort UNVERÄNDERT. Geteilte Regel → Start +
     Detail. Named Constant: 28px = Scrim-Auslauf 24px + 4px Luft (kalibrierbar, s. #safe-cap). */
  padding-top: max(calc(var(--sp-3) + env(safe-area-inset-top, 0px)), 28px);
  background: var(--bg-0);   /* DECKEND als Default → deckt in der Safe-Area jeden iOS-Paint-Ghost (Start-Hero) auf Alerts/Profil/Legal ab. Bild-Screens setzen transparent (s. u.). */
}
/* 1.0.16: appbar--solid deckt LÜCKENLOS bis zur Gitter-Sticky-Kante (--kal-sticky-top) → kein Durchschein-
   Streifen zwischen Balken und Gitter. min-height = derselbe Wert wie der Gitter-Offset (EINE Wahrheit).
   align-items:flex-start hält das Logo oben (der Balken ist minimal höher; Extra-Luft geht nach unten). */
.appbar--solid { background: var(--bg-0); min-height: var(--kal-sticky-top); align-items: flex-start; }
/* Transparente Appbar NUR wo ein Bild DAHINTER liegen soll: Start-Hero-Band, Detail-Hero, Favs-Vollbild. */
.appbar--start, .appbar--overlay, .appbar--onbg { background: transparent; }
/* Top-Bar ABSOLUT (aus dem Flow) ÜBER dem Hero-Bild — Detail UND Start. Dadurch ist das Hero-Band das
   erste Flow-Element und sitzt bei y=0, OHNE negativen Margin/`env`-Kompensation (behebt den iOS-Erst-
   Paint-Rand). Safe-Area-Padding (Notch) erbt .appbar via padding-top → Logo sitzt unter der Island. */
.appbar--overlay, .appbar--start { position: absolute; top: 0; left: 0; right: 0; }

/* Logo „StateofParks" V2 (Rebrand): zweizeilig rechtsbündig — Eyebrow „STATE OF" (Mono, grau)
   über „PARKS" (Anton, lime). .appbar ist flex/align-items:center ohne feste Höhe → wächst sauber
   mit der Zweizeiligkeit, kein Sprung/Überlauf (auch in der Detail-Overlay-Topbar). */
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: .95;
}
.brand__eyebrow {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8a8a8a;
}
.brand__main {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--lime);
  line-height: .95;
}

/* Collapsing-Logo (NUR Start, .appbar--start): Logo bei GROSSER Größe als Basis (konstante
   Layout-Höhe der appbar!) und beim Scrollen per transform: scale() verkleinert — compositor-only,
   KEIN Reflow → die appbar-Höhe ändert sich NICHT → kein scrollY-Clamp → kein Zittern. JS setzt
   --brand-scale (1 → ~0.525 ≈ 40→21px). transform-origin: top right, weil das Logo rechtsbündig/oben
   sitzt → kein Versatz beim Skalieren. Andere Screens: kein .appbar--start → normales 21px-Logo. */
/* Logo rechts oben (wie Detailseite) — der Start-Appbar hat nur das Logo als einziges Kind, mit dem
   Basis-`space-between` säße es links. flex-end schiebt es nach rechts, konsistent mit dem oben schon
   auf top-right ausgelegten Collapsing-transform-origin. Nur horizontale Position; Größe unverändert. */
.appbar--start { justify-content: flex-end; }
.appbar--start .brand__main { font-size: 40px; }
.appbar--start .brand__eyebrow { font-size: 12px; }
.appbar--start .brand {
  transform: scale(var(--brand-scale, 1));
  transform-origin: top left;   /* Logo sitzt linksbündig (appbar space-between, einziges Kind links) → zur linken Ecke schrumpfen */
  will-change: transform;
}

.backlink {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--tx-2);
  display: flex;
  align-items: center;
  gap: 5px;
}
.backlink svg { width: 15px; height: 15px; stroke: var(--tx-2); fill: none; stroke-width: 2; }

/* Eyebrow-Label (// Wo heute?) */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lime);
  padding: 0 var(--sp-4) var(--sp-3);
}

/* Detail-Hero (Ebene 2) — Park-Name groß.
   (Zentral ergänzt: styles.css hatte noch keine Hero-Komponente.) */
.hero { padding: var(--sp-4) var(--sp-3) var(--sp-2); }
/* Detail-Header FLACH (1.0.18): KEIN Bild mehr — die Detailseite ist Werkzeug, nicht Schaufenster.
   Solides bg-0, content-hoch (kein min-height) → kompakt, damit das 2×2-Cockpit ohne Scroll im ersten
   Viewport steht. Topbar (Back/Logo) ist absolut → padding-top hält Name/Meta/Pills darunter.
   (Der Bildstreifen .hero--image + --hero-detail-img ist entfernt; hero-detail2.jpg bleibt als Archiv liegen.
   Für sehr dezente Tiefe optional als background ein linear-gradient(180deg,#0b0b0d,var(--bg-0)) — bewusst
   NICHT gesetzt, damit auf Schwarz keine sichtbare Kante entsteht.) */
.hero--flat {
  position: relative;            /* Anker für die absolute Top-Bar */
  padding-top: var(--detail-head-top);
  background: var(--bg-0);
}
.hero__name {
  font-family: var(--font-display);
  /* Lange Namen (SAALBACH HINTERGLEMM = einziger 2-Zeiler) skalieren runter statt zu kollidieren.
     Named Constants (kalibrierbar): min 20px · viewport 6.8vw · max 34px. 1.0.19/Mockup A: eine Stufe
     größer (war 20/5.6vw/28) = dominanter Anker; Clamp-Mechanik für Langnamen unverändert. */
  font-size: clamp(24px, 6.8vw, 34px);
  text-transform: uppercase;
  letter-spacing: .5px;
  line-height: .95;                /* sauberer Zeilenabstand auch bei zweizeiligem Namen (war .9) */
  overflow-wrap: break-word;       /* Umbruch an Wortgrenze, kein Überlauf über den Stern rechts */
}
.hero__meta {
  font-family: var(--font-mono);
  font-size: 8px;          /* 1.0.19/Mockup A: kleiner + gedämpfter (war 9px) — tritt hinter den Namen zurück */
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tx-3);
  opacity: .6;
  margin-top: 4px;
}

/* ============================================================
   5. GLAS-KARTE (Kern-Komponente)
   ============================================================ */
.gcard {
  display: block;        /* wichtig für <a class="gcard"> — sonst kollabiert die Fläche */
  position: relative;    /* für den ::before-Akzentbalken (offene Karte) */
  width: 100%;
  border-radius: 14px;   /* Stufe 2: wertiger, konsistenter Radius (war var(--r-card)=9px) */
  padding: var(--sp-4);  /* mehr Innenluft/Weißraum (war sp-3) */
  margin-bottom: var(--sp-3);   /* mehr Rhythmus zwischen Karten (war 9px) */
  background: var(--glass-bg-plain);          /* neutral als Default; offene Karte bekommt Tiefe + Lime */
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255,255,255,.07);    /* neutraler Hairline — KEIN voller Lime-Rahmen */
  border-left: 3px solid transparent;         /* Akzent NUR bei offener Karte (::before-Verlauf) */
  color: inherit;        /* Link-Karte neutral (kein Link-Blau/Unterstrich) */
}
/* Offener Park = volle Wertigkeit: dezenter Tiefe-Verlauf (oben minimal heller → unten dunkler,
   simuliert Lichteinfall) + Lime-Tint + weicher Schwebe-Schatten. Linker Akzent = feiner Lime-Verlauf
   (::before). §11: Verlauf dunkel/dezent, KEIN bunter/Neon-Effekt; Lime bleibt Signal. */
.gcard--open {
  border-left-color: transparent;
  background:
    linear-gradient(180deg, rgba(255,255,255,.045) 0%, rgba(255,255,255,0) 34%, rgba(0,0,0,.10) 100%),
    var(--glass-bg);
  box-shadow: 0 8px 22px rgba(0,0,0,.42), 0 1px 0 rgba(255,255,255,.04) inset;
}
.gcard--open::before {
  content: ''; position: absolute; left: -3px; top: -1px; bottom: -1px; width: 3px;   /* bündig am äußeren Rand (Border kompensiert) */
  background: linear-gradient(180deg, var(--lime), var(--lime-2));
  border-top-left-radius: 14px; border-bottom-left-radius: 14px;
}
/* Geschlossen/inaktiv = bewusst zurückgenommen (Hierarchie): FLACH — keine Tiefe, kein Schwebe-Schatten,
   stärker gedämpft → offene Karten stechen hervor. Kein Rot, kein Lime. */
.gcard--zu {
  border-left-color: rgba(255,255,255,.10);
  background: var(--glass-bg-plain);
  box-shadow: none;
  opacity: .82;
}
.gcard__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
/* R11: Delta direkt rechts neben dem Namen (Name+Delta als linke Gruppe), Stern rechts außen.
   Variante B: Delta im unteren Drittel der Versalhöhe (flex-end + kleiner Lift), „eingebettet". */
.hero__title { flex: 1; min-width: 0; display: flex; align-items: flex-end; gap: 14px; }
.hero__name { min-width: 0; }
.hero__hm {
  flex: none; margin-bottom: 4px;   /* unteres Drittel der Versalhöhe (leicht angehoben) */
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  color: var(--tx-2); white-space: nowrap;
}
.hero__hm-ic { font-size: 10px; line-height: 1; color: var(--tx-3); }
.gcard__name {
  font-family: var(--font-display);
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.gcard__name--zu { color: var(--tx-3); }
.gcard__row {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-end;
  margin-top: 9px;
}
.gcard__zeit { font-family: var(--font-mono); font-size: 9px; color: var(--tx-4); margin-top: 6px; }   /* Favoriten: schließt/öffnet-Zeile */

/* Linke Kopfgruppe (Name + Status) — darf neben dem Wetter-Block schrumpfen. */
.gcard__id { min-width: 0; flex: 1; }
/* Ruhiges Status-Signal unter dem Namen (Start) bzw. in der Zeile (Favs). Kein rotes Chip mehr. */
.gcard__status { display: flex; align-items: center; gap: 6px; margin-top: 5px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; }
.gcard__statusword { text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
/* Offen-Status als wertige Pille (dezenter Lime-Tint) statt nacktem Text. Nur offen bekommt die Pille;
   geschlossen/unklar bleiben bewusst schlichter Text (zurückgenommen). */
.gcard__status--open { display: inline-flex; background: rgba(196,255,0,.10);
  border: 1px solid rgba(196,255,0,.20); border-radius: 999px; padding: 3px 9px; }
.gcard__status--open .gcard__statusword { color: var(--lime); }
.gcard__status--zu .gcard__statusword,
.gcard__status--unk .gcard__statusword { color: var(--tx-3); }   /* geschlossen/unklar: gedämpft, neutral */
/* §11: verlässlicher Öffnungshinweis als EIGENE Zeile unter „GESCHLOSSEN" (Variante A) — kein Inline-
   „·"-Quetschen/Umbruch. Gedämpft, nicht versal. */
.gcard__opens { display: block; margin-top: 3px; font-family: var(--font-mono); font-size: 11px;
  color: var(--tx-3); text-transform: none; letter-spacing: 0; }
.gcard__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime);
  flex: none; box-shadow: 0 0 6px var(--lime); }
/* Weicher Verlauf-Trenner zwischen Kopf (Name/Wetter) und Kennzahlen — fadet an den Rändern, keine harte Linie. */
.gcard__sep { height: 1px; margin: var(--sp-3) 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.11), transparent); }
.gcard__foot { display: flex; justify-content: space-between; align-items: flex-end; }
.gcard__foot--min { margin-top: 9px; }   /* geschlossen/unbekannt: nur HM-Zeile, keine Trennlinie */
/* Selbstbewusste Lines-Zahl (Anton) für offene Parks. */
.gcard__lines { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.gcard__lines-num { font-family: var(--font-display); font-size: 32px; line-height: .9;
  color: var(--lime); letter-spacing: .5px; }
/* Hierarchie: „/N" gedämpft + kleiner neben der prominenten Offen-Zahl. */
.gcard__lines-den { font-size: .5em; color: var(--lime-dim); letter-spacing: 0; }
.gcard__lines-lbl { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--tx-3); }
/* Favoriten-Mehrwert: Andrang als SCHÄTZUNG (§11). amber NUR bei viel/sehr voll (sparsam). */
.gcard__andrang { display: flex; align-items: baseline; gap: 6px; margin-top: 8px;
  font-family: var(--font-mono); font-size: 10px; }
.gcard__andrang-l { letter-spacing: .12em; text-transform: uppercase; color: var(--tx-4); }
.gcard__andrang-v { text-transform: uppercase; letter-spacing: .04em; font-weight: 700; color: var(--tx-2); }
.gcard__andrang--warn .gcard__andrang-v { color: var(--andrang-orange); }
.gcard__andrang-est { color: var(--tx-4); }

/* Solide Karte (Detail-Tabs, ruhiger Kontext) */
.scard {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--sp-4);          /* mehr Innenluft (war sp-3) — wie Entwurf */
  margin-bottom: var(--sp-3);    /* mehr Abstand zwischen Blöcken (war 9px) */
}

/* ============================================================
   6. STATUS-PILL
   ============================================================ */
.pill {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: var(--r-pill);
  display: inline-block;
}
.pill--open { background: rgba(196,255,0,.18); color: var(--lime); }
.pill--zu   { background: rgba(255,59,48,.16); color: #ff6a60; }   /* geschlossen → rot */

/* ============================================================
   7. DATEN-WERTE (Mono-Telemetrie)
   ============================================================ */
.data__v {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}
.data__v--lime { color: var(--lime); }
.data__v--zu { color: var(--tx-3); }   /* gedämpfter Lines-Wert bei geschlossenem Park */
.data__l {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tx-3);
  margin-top: 1px;
}

/* ============================================================
   8. WETTER (Icon + Temp + Text) — Icons: reine Outlines
   ============================================================ */
.wx { display: flex; align-items: center; gap: 8px; }
/* P6: Wetter-Icon einheitlich klar-grau (nicht zu hell, NICHT lime) — EINE Quelle für alle drei
   Kontexte: Wetter-Reiter (.wx__icon), Cockpit-Kachel (.wx-tile__ic), Temp-Kurve (.wxcol__ic). */
.wx__icon, .wx-tile__ic, .wxcol__ic {
  fill: none; stroke: var(--tx-2); stroke-width: 2.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.wx__icon { width: 32px; height: 32px; }
.wx__icon .accent, .wx-tile__ic .accent, .wxcol__ic .accent { stroke: var(--lime); }   /* charakteristisches Element */
.wx__temp { font-family: var(--font-mono); font-weight: 700; font-size: 15px; }
.wx__desc {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tx-3);
  margin-top: 1px;
}
/* Start/Favs-Karten: Icon+Temp als feste, rechtsbündige Zeile, Beschreibung darunter
   → über alle Karten eine saubere vertikale Spalte (unabhängig von der Textlänge).
   display:block + text-align:right ist überlauf-sicher (kein Flex-Basis-Weirdness). */
.wx--stack { display: block; flex: none; text-align: right; }
.wx--stack .wx__line { display: inline-flex; align-items: center; gap: 8px; }
.wx--stack .wx__temp { min-width: 2.2em; text-align: right; }
.wx--stack .wx__desc { white-space: nowrap; margin-top: 1px; }
/* R15: Höhen-Info (Delta + Peak) am UNTEREN Kartenrand rechts (margin-left:auto schiebt sie neben
   Status/Lines auf die gemeinsame Grundlinie). Dezent, Mono, neutral. (.wx__hm aus R14 entfernt —
   Höhe ist nicht mehr in der Wetter-Spalte.) */
.card-hoehe {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 9px; color: var(--tx-3);
  white-space: nowrap; align-self: flex-end;
}
/* R17: Regen-Ausblick (heute erwartet + morgen) auf Karten/Cockpit. Trocken neutral; Regen dezent
   warn-amber (NICHT lime — „Farbe nur für Warnung", konsistent mit B3c-Einschränkung). */
.wx-regen { font-family: var(--font-mono); font-size: 9px; color: var(--tx-3); margin-top: 2px; white-space: nowrap; }
.wx-regen--nass { color: #f0b656; }
/* R18: Tropfen vor mm-Werten — monochrom, erbt die Textfarbe (currentColor) → bei Regen warn-amber. */
.wx-drop { width: .82em; height: .82em; vertical-align: -.1em; fill: currentColor; margin-right: 2px; }
/* (P0: .wx-pair/.wcol* entfernt — seit Cockpit-Shrink S3 + Wetter-Umbau S4 ungenutzt.) */

/* ============================================================
   8b. WETTER-REITER (Stufe 4): Berg/Tal-Toggle · Temp-Kurve · Webcam
   „Farbe nur für Warnung": Toggle/Kurve/Icons neutral; Regen>0 dezent blau (Signal).
   ============================================================ */
/* P7+P8: Wetterkarte umschließt Toggle (oben) + Ist-Wetter; Karte beginnt etwas tiefer (Abstand
   zur Reiterleiste), Toggle durch Trennlinie vom Ist-Wetter abgesetzt. */
.wxcard { margin-top: var(--sp-3); }
.wxcard__sep { height: 1px; background: var(--line); margin: 11px 0 13px; }
/* Berg/Tal-Umschalter — zwei Pills, aktive Zone dezent hervorgehoben (neutral, kein lime) */
.wxtoggle { display: flex; gap: 6px; }
.wxtoggle__btn {
  flex: 1;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--tx-3);
  background: var(--bg-1); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 10px; -webkit-tap-highlight-color: transparent;
}
.wxtoggle__btn--on { color: var(--tx-1); background: var(--bg-2); border-color: rgba(255,255,255,.22); }
.wxtoggle__btn:active { background: var(--bg-2); }
@media (hover: hover) { .wxtoggle__btn:hover { color: var(--tx-1); } }

/* Temperatur-Kurve: SVG-Band über gemeinsamem Spalten-Grid (Stufe 5 erbt dieses Raster).
   .wxchart__plot ist position:relative → späteres absolutes Y-Achsen-Overlay (kein Rasterspalte). */
.wxchart { margin-top: 4px; }
.wxchart__plot { position: relative; height: 64px; margin-bottom: 2px; }
.wxchart__svg { display: block; width: 100%; height: 100%; }
.wxchart__band { fill: rgba(255,255,255,.07); stroke: none; }
.wxchart__line { fill: none; }
.wxchart__line--max { stroke: var(--tx-1); stroke-width: 1.6; }
.wxchart__line--min { stroke: var(--tx-4); stroke-width: 1.3; stroke-dasharray: 3 3; }
/* R6: gefüllte Tagespunkte auf der max-Linie — HTML-Overlay (rund, nicht von der SVG-none-Skalierung
   verzerrt). Position per inline left/top %; Farbe wie die max-Linie (neutral/hell). */
.wxchart__dot {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: var(--tx-1); transform: translate(-50%, -50%); pointer-events: none;
}
.wxchart__cols { display: grid; }
/* R7 (Korrektur): GEMISCHT je Spalte — Tag/Icon/Punkt/„—" zentriert (Spaltenmitte), nur die
   Zahlenwerte (Temp/mm/h) linksbündig. R6-Punkte (left%-Overlay) sitzen an der Spaltenmitte und
   fluchten so wieder mit Tag/Icon. min/max bleiben einzeilig (.wxcol__t inline). */
.wxcol { text-align: center; padding: 0 2px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.wxcol__wd { font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em; color: var(--tx-3); }
.wxcol__ic { width: 22px; height: 22px; }
/* Werte-Zeilen linksbündig (align-self: flex-start), an der linken Spaltenkante */
.wxcol__t { align-self: flex-start; text-align: left; font-family: var(--font-mono); line-height: 1.15; }
.wxcol__tmax { font-weight: 700; font-size: 12px; color: var(--tx-1); }
.wxcol__tmin { font-size: 10px; color: var(--tx-4); margin-left: 3px; }
.wxcol__rain { font-family: var(--font-mono); font-size: 9px; color: var(--tx-4); }   /* „—" bleibt zentriert (Default) */
.wxcol__rain--on { align-self: flex-start; text-align: left; color: var(--blue-lt); }   /* Regen>0: Wert links, dezent blau */
.wxcol__sun { align-self: flex-start; text-align: left; font-family: var(--font-mono); font-size: 9px; color: var(--gelb); }   /* P17: gelblich; Wert links */

/* Wetter-Prognose als TABELLE — FESTES Spalten-Grid über Kopf + alle Zeilen (gleiche Breiten →
   fluchten). Einheiten im Spaltenkopf (zweizeilig), Zellen zeigen nur die nackte Zahl (einzeilig).
   Tag/Max-Min links · Wind/Regen/Sonne zentriert. „Farbe nur für Warnung": Regen blau, Sonne gold. */
.wxtab__head, .wxtab__row {
  display: grid;
  grid-template-columns: 36px 24px 1fr 64px 52px 46px;
  align-items: center; column-gap: 6px;
}
.wxtab__head {
  padding: 8px 0 6px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-4);
}
.wxtab__row { padding: 9px 0; border-bottom: 1px solid #141418; }
.wxtab__row:last-child { border-bottom: none; }
.wxtab__tag  { text-align: left; }
.wxtab__temp { text-align: left; }
.wxtab__wind, .wxtab__regen, .wxtab__sonne { text-align: center; }   /* Werte UND Kopf zentriert (einheitlich) */
.wxtab__hu   { display: block; font-size: 8px; color: var(--tx-4); margin-top: 2px; letter-spacing: .04em; text-transform: none; }
.wxtab__wd   { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--tx-1); text-transform: uppercase; }
.wxtab__wd2  { font-family: var(--font-mono); font-size: 9px; color: var(--tx-4); }   /* Windrichtung klein neben dem Wert */
.wxtab__date { font-family: var(--font-mono); font-size: 8px; color: var(--tx-4); }
.wxtab__tmax { font-family: var(--font-display); font-size: 14px; color: var(--tx-1); }
.wxtab__tmin { font-family: var(--font-mono); font-size: 10px; color: var(--tx-3); }
.wxtab__wind { font-family: var(--font-mono); font-size: 11px; color: var(--tx-2); }
.wxtab__rain, .wxtab__rain--hot, .wxtab__sun, .wxtab__dim { font-family: var(--font-mono); font-size: 11px; }
.wxtab__rain     { color: #6a7a8a; }            /* leichter Regen — gedämpftes Blau */
.wxtab__rain--hot{ color: var(--blue-lt); }     /* relevanter Regen (≥WX_REGEN_MM_REL) — helles Blau */
.wxtab__sun  { color: var(--gelb); }            /* Sonne gold */
.wxtab__dim  { color: var(--tx-4); }            /* „—" / kein Wert — grau */

/* P1: Ist-Wetter-Karte (Heute) — Apple-Wetter-Stil: Icon → großer Jetzt-Wert + H/T daneben →
   Beschreibung → 4 Readouts (Wind/Regen/Feuchte/Sonne) → Tal/Berg-Toggle unten.
   „Farbe nur für Warnung": nur Sonne gold, Rest neutral. Kein Lime. */
.wxnow { text-align: center; }
/* Variante A: Icon · Temp · H/T in EINER zentrierten Zeile, vertikal mittig (align-items:center). */
.wxnow__main { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 44px; }   /* P2: deutlich Luft zwischen Zonen-Toggle und Icon/grosser Zahl */
.wxnow__ic { width: 40px; height: 40px; flex: none; }   /* Ist-Icon links neben der Temp (überschreibt 32px) */
.wxnow__temp { font-family: var(--font-display); font-size: 48px; line-height: .85; color: var(--tx-1); }
.wxnow__ht { text-align: left; }
.wxnow__h { font-family: var(--font-mono); font-size: 11px; color: var(--tx-2); }
.wxnow__t { font-family: var(--font-mono); font-size: 11px; color: var(--tx-4); margin-top: 2px; }
.wxnow__desc {
  font-family: var(--font-mono); font-size: 10px; color: var(--tx-3);
  text-transform: uppercase; letter-spacing: .12em; margin: 8px 0 0;
}
.wxnow__reads {
  display: flex; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 12px 0; margin-bottom: 14px;
}
.wxnow__rd { flex: 1; }
.wxnow__rd + .wxnow__rd { border-left: 1px solid var(--line); }
.wxnow__rl { font-family: var(--font-mono); font-size: 7px; color: var(--tx-4); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 5px; }
/* Tap-Hinweis: dezentes graues Chevron rechts neben dem Label (WIND › / REGEN › / SONNE ›). Kein lime,
   proportional zum 7px-Label (~9px) → sichtbar, aber nicht dominant. Zentrierung bleibt (inline im Label). */
.wxnow__rchev { margin-left: 3px; color: var(--tx-3); font-size: 9px; font-weight: 700; letter-spacing: 0; }
.wxnow__rv { font-family: var(--font-mono); font-size: 12px; color: var(--tx-2); }
.wxnow__rv--sun { color: var(--gelb); }   /* Sonne gold */

/* Build 2/2: Zeitstrahl — Kachel-Tabs, Temp-Kurve (dauerhaft), Stunden-Heatmap. */
/* P1: Padding gibt der Umrandung Abstand zum Text; transparenter Outline schon im Default
   reserviert den Platz (2px) → beim Aktivieren wechselt nur die Farbe, kein Layout-Sprung. */
.wxnow__reads--tabs .wxtile {
  appearance: none; background: none; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
  padding: 6px 8px; border: 0; border-radius: 6px;
  outline: 2px solid transparent; outline-offset: -2px;
}
/* P4: aktive Kachel klar umrandet in ihrer Akzentfarbe (--wxc je Kachel inline gesetzt).
   Gleiche Spezifitaet wie die Default-Regel (2 Klassen), damit outline-color greift. */
.wxnow__reads--tabs .wxtile--on { background: rgba(255,255,255,.05); outline-color: var(--wxc, var(--lime)); }
.wxtile--on .wxnow__rl { color: var(--tx-2); }
.wxtile--on .wxnow__rv { color: var(--tx-1); }
/* P1/P3: Kurve atmet — mehr Abstand oben (Temp→Kurve) und unten (Datenpunkte→Kacheln). */
.wxtc { margin: var(--sp-5) 0 var(--sp-5); }
.wxtc__plot { position: relative; height: 56px; }
.wxtc__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.wxtc__past { fill: none; stroke: var(--tx-1); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.wxtc__fut  { fill: none; stroke: var(--tx-4); stroke-width: 1.4; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.wxtc__now  { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); transform: translate(-50%, -50%); }
.wxtc__axis { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 8px; color: var(--tx-4); margin-top: 3px; }
/* Item 2: Datenpunkte als 3-Spalten-Grid (repeat(3,1fr)) → fluchten exakt über die 3 Kacheln. */
.wxtc__pts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: var(--sp-3); }
.wxtc__pts > div { text-align: center; }
.wxtc__pl { font-family: var(--font-mono); font-size: 8px; color: var(--tx-4); text-transform: uppercase; letter-spacing: .08em; }
.wxtc__pv { font-family: var(--font-mono); font-size: 14px; color: var(--tx-1); margin-top: 2px; }
.wxtc__sub { font-family: var(--font-mono); font-size: 10px; color: var(--tx-4); }   /* UV-Stufe (gedämpft, kleiner als die Zahl) */
.wxheat { margin: 6px 0 14px; }
.wxheat__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.wxheat__auslese { font-family: var(--font-mono); font-size: 12px; color: var(--tx-1); text-align: left; }
.wxheat__scale { font-family: var(--font-mono); font-size: 9px; color: var(--tx-4); white-space: nowrap; }
.wxheat__cols { display: flex; align-items: flex-end; gap: 2px; height: 46px; }
.wxheat__col { flex: 1 1 0; min-width: 0; border: 0; padding: 0; border-radius: 2px 2px 0 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.wxheat__col--now { outline: 1.5px solid var(--lime); outline-offset: 1px; }
.wxheat__col--sel { outline: 2px solid var(--tx-1); outline-offset: 1px; }   /* P4: angetippte Stunde klar umrandet (weiss = ausgewaehlt, ggü. Lime = jetzt) */
.wxheat__axis { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 8px; color: var(--tx-4); margin-top: 3px; }

/* Webcam-Bereich (Aufklappen): Platzhalter → Tap lädt das Bild. §11: Frische-Zeile je Cam.
   „Farbe nur für Warnung": Veraltet/unbekannt-Frische amber, sonst neutral. */
.webcam + .webcam { margin-top: var(--sp-3); }
.webcam__ph {                              /* Platzhalter (Tap-Ziel), kein Auto-Load */
  width: 100%; aspect-ratio: 16 / 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: var(--bg-1); border: 1px dashed var(--line); border-radius: var(--r-tile);
  color: var(--tx-3); -webkit-tap-highlight-color: transparent;
}
.webcam__ph:active { background: var(--bg-2); }
.webcam__cam-ic { width: 26px; height: 26px; color: var(--tx-4); }
.webcam__lbl, .webcam__lbl2 {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--tx-2);
}
.webcam__hint { font-family: var(--font-mono); font-size: 9px; color: var(--tx-4); }
.webcam__frame {
  position: relative; min-height: 120px; border-radius: var(--r-tile); overflow: hidden;
  background: var(--bg-1);
}
.webcam__img { display: none; width: 100%; height: auto; }
.webcam__frame.is-loaded .webcam__img { display: block; }
.webcam__frame.is-loaded .webcam__spin { display: none; }
.webcam__spin {
  position: absolute; inset: 0; margin: auto; width: 22px; height: 22px;
  border: 3px solid rgba(255,255,255,.15); border-top-color: var(--lime); border-radius: 50%;
  animation: wcspin .8s linear infinite;
}
@keyframes wcspin { to { transform: rotate(360deg); } }
.webcam__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 5px; }
.webcam__reload {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--tx-2); background: rgba(255,255,255,.07); border-radius: 999px; padding: 5px 11px;
  -webkit-tap-highlight-color: transparent;
}
.webcam__reload:active { background: rgba(255,255,255,.13); }
.webcam__age { font-family: var(--font-mono); font-size: 9px; color: var(--tx-4); margin-top: 3px; }
.webcam__age--warn { color: #f0b656; }   /* Frische unbekannt/veraltet → amber (R17-Warnfarbe) */
.webcam__quelle { font-family: var(--font-mono); font-size: 8px; color: var(--tx-4); margin-top: 2px; }
.webcam__err { display: none; font-family: var(--font-mono); font-size: 10px; color: #f0b656; margin-top: 6px; align-items: center; gap: 10px; }
.webcam--error .webcam__frame, .webcam--error .webcam__bar, .webcam--error .webcam__age { display: none; }
.webcam--error .webcam__err { display: flex; }
/* Leogang: dezentes Play-Overlay über dem geladenen Standbild (NICHT lime/grell — „Farbe nur für Warnung"). */
.webcam__play {
  position: absolute; inset: 0; display: none; z-index: 1;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  color: #fff; background: rgba(0,0,0,.16); -webkit-tap-highlight-color: transparent;
}
.webcam__frame.is-loaded .webcam__play { display: flex; }
.webcam--video .webcam__play, .webcam--error .webcam__play { display: none; }
.webcam__play-ic {
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.42); border: 1.5px solid rgba(255,255,255,.7); font-size: 17px; padding-left: 3px;
}
.webcam__play-lbl { font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
/* Zeitraffer-Video über dem Standbild; poster zeigt das Standbild bis canplay, Spinner überbrückt. */
.webcam__vidwrap { position: absolute; inset: 0; z-index: 2; }
.webcam__vid { display: none; width: 100%; height: 100%; object-fit: cover; background: #000; }
.webcam__vidwrap.is-ready .webcam__vid { display: block; }
.webcam__vidwrap.is-ready .webcam__spin { display: none; }
/* Geisskopf: breites Panorama als schwenkbares 16:9-Fenster (kein schwarzer Leerraum mehr). */
.webcam__frame--pano { aspect-ratio: 16 / 9; min-height: 0; cursor: grab; touch-action: pan-y; }
.webcam__frame--pano.is-grabbing { cursor: grabbing; }
.webcam__frame--pano .webcam__img {   /* füllt die Höhe, ragt horizontal hinaus → translateX schwenkt */
  position: absolute; top: 0; left: 0; height: 100%; width: auto; max-width: none;
  will-change: transform; user-select: none; -webkit-user-drag: none; pointer-events: none;
}
.webcam__panhint {   /* dezenter Wisch-Hinweis, blendet nach ~4 s aus (kein lime/grell) */
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 1;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: rgba(0,0,0,.4); padding: 4px 10px; border-radius: 999px;
  pointer-events: none; animation: wcpanhint 4s ease forwards;
}
@keyframes wcpanhint { 0%, 70% { opacity: .9; } 100% { opacity: 0; } }
.webcam--panned .webcam__panhint { display: none; }

/* ============================================================
   9. COCKPIT-KACHELN (Detail-Seite)
   ============================================================ */
.dash { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); padding: var(--sp-3) var(--sp-3) 10px; }
.tile {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  padding: 11px;
}
/* Stufe 3: randloses 2×2-Raster — EIN Block mit dünnen Innen-Trennlinien (kein Gap, kein
   Einzel-Rand/Radius je Zelle). Reihenfolge: Status·Andrang / Wetter·Untergrund. Scrollt
   normal mit (KEIN sticky). */
.dash--2x2 {
  gap: 0;
  padding: 0;
  margin: var(--section-gap) var(--sp-3) 0;   /* 1.0.19: Header→Cockpit = Sektions-Takt; unten 0 (nächste Sektion bringt ihren eigenen Top-Gap) */
  border: var(--card-border);                 /* 1.0.20: härterer Hairline (Token-Swap, kein Layout) */
  border-radius: var(--r-tile);
  overflow: hidden;
  background: var(--card-bg);                  /* 1.0.20 */
}
.dash--2x2 .tile { border: none; border-radius: 0; background: transparent; padding: 12px 13px; }
.dash--2x2 .tile:nth-child(-n+2) { border-bottom: 1px solid var(--line); }   /* Trennlinie zwischen Zeile 1 & 2 */
.dash--2x2 .tile:nth-child(odd)  { border-right: 1px solid var(--line); }    /* Trennlinie zwischen Spalte 1 & 2 */
/* Stufe 1b/3 „Farbe nur für Warnung": Zellen neutral; Rot NUR bei geschlossen — dezenter
   Inset-Balken links an der Status-Zelle (stört das randlose Raster nicht). */
.dash--2x2 .tile--zu { box-shadow: inset 3px 0 0 var(--danger); }
/* Kompakte Wetter-Zelle (Stufe 3): Icon + Temp in einer Zeile (ersetzt das wide heute/morgen-Paar) */
.wx-tile__v { display: flex; align-items: center; gap: 6px; }
.wx-tile__ic { width: 22px; height: 22px; flex: none; }
.tile__l {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tx-3);
}
.tile__v { font-family: var(--font-mono); font-weight: 700; font-size: 16px; margin-top: 5px; }
.tile__v--lime { color: var(--lime); }
.tile__v--blue { color: var(--blue-lt); font-size: 14px; }
.tile__v--danger { color: var(--danger); }   /* GESCHLOSSEN-Kopf rot */
.tile__v--open   { color: var(--lime); }      /* OFFEN-Kopf lime (gespiegelt zu rot) */
/* Block C: Bodenstatus-Semantik. Pfeil = REINE Trendrichtung, neutral-grau, KEIN Werturteil.
   Als AUSBLICK gekennzeichnet (--prog: gedämpft + gepunktete Unterlinie). §11: Tendenz aus Prognose. */
.ug-arrow { font-weight: 400; }
.ug-t--dir { color: var(--tx-3); }                                  /* Richtung neutral */
.ug-arrow--prog { opacity: .5; }   /* Ausblick: schlicht blasser als der (belegte) Zustand — keine Linie */
/* Zustands-Farbe nach Distanz zum Optimum (griffig). Rot bleibt Sperre vorbehalten. */
.ug-z--opt   { color: var(--lime); }       /* griffig = optimal */
.ug-z--ok    { color: var(--tx-2); }       /* feucht/staubig (dist 1) = neutral, fahrbar */
.ug-z--warn  { color: #c8923a; }           /* nass (dist 2) = amber */
.ug-z--warn2 { color: #b87420; }           /* matschig (dist 3) = amber-dunkel */
.ug-z--schnee{ color: var(--tx-2); }       /* schnee = eigener Zustand, neutral (nicht lime/amber) */
.ug-z--unk   { color: var(--tx-4); }       /* unbekannt = klar abgesetztes Grau (≠ ok-Grau) */
/* Untergrund-Datenblock (Wetter-Tab): 2 Zonen-Spalten + Readout-Zeilen */
.ug-zonen { display: grid; grid-template-columns: 1fr 1fr; margin-top: 8px; }
.ug-zone { padding: 0 12px; }
.ug-zone:first-child { padding-left: 0; }
.ug-zone + .ug-zone { border-left: 1px solid var(--line); }
.ug-zone__l { font-family: var(--font-mono); font-size: 8px; letter-spacing: .14em; color: var(--tx-3); }
.ug-zone__v { font-family: var(--font-mono); font-weight: 700; font-size: 15px; margin: 4px 0 2px; }
.ug-zone__v--lime { color: var(--lime); }
.ug-zone__v--leer { color: var(--tx-4); }
.ug-zone__t { font-family: var(--font-mono); font-size: 9px; color: var(--tx-3); }
/* BD2: Regen-Bilanz (24h/72h) + Drainage als eigene untere Gruppe klar vom Zonen-Zustand trennen. */
.ug-readouts { margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--tx-4); }
.ug-readout { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 0; }
.ug-readout__l { font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; color: var(--tx-3); }
.ug-readout__v { font-family: var(--font-mono); font-size: 11px; color: var(--tx-1); }
.tile__sub {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--tx-3);
  margin-top: 4px;
  line-height: 1.4;
}
.tile__sub .lime { color: var(--lime); }
/* Kontext-Zeitzeile der Status-Kachel ("schließt heute um 18:00 Uhr") */
.tile__zeit {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--tx-2);
  margin-top: 3px;
}
/* Quellzeile, wenn der Status durch einen Ad-hoc-Override bestimmt wird ("lt. Story vom 11.06.") */
.status-quelle {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .06em;
  color: var(--tx-4);
  margin-top: 3px;
}
/* R17 Teil 3 (§11): Regen-/Gewitter-Risiko-Hinweis an Untergrund-Kachel + -Block. Dezenter
   Warn-Akzent (amber, NICHT lime) — entschärft die „stabil/trocken"-Sicherheit, behauptet keinen Regen. */
.ug-risiko { font-family: var(--font-mono); font-size: 9px; letter-spacing: .04em; color: #f0b656; margin-top: 3px; }
/* Status-Kachel als Sprung zur Öffnungszeiten-Sektion (Info-Tab) — dezente Affordance */
.tile--tap { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tile--tap:active { background: var(--bg-2); }
.tile__go {
  position: absolute; top: 9px; right: 10px;
  font-family: var(--font-mono); font-size: 13px; line-height: 1; color: var(--tx-4);
}

/* Öffnungszeiten-Wochenübersicht (Info-Tab) — effektiver Status, konsistent zur Status-Kachel */
.oz { display: flex; flex-direction: column; }
.oz__row {
  display: flex; align-items: baseline; gap: var(--sp-2);
  padding: 7px var(--sp-2);
  border-radius: var(--r-tile);
  font-family: var(--font-mono); font-size: 11px; color: var(--tx-2);
}
.oz__wd { width: 26px; color: var(--tx-3); letter-spacing: .08em; }
.oz__date { width: 46px; color: var(--tx-3); }
.oz__time { flex: 1; text-align: right; }
.oz__src { color: var(--lime-dim); margin-left: 6px; font-size: 9px; }
.oz__row--today { background: rgba(196, 255, 0, .08); color: var(--lime); }
.oz__row--today .oz__wd, .oz__row--today .oz__date { color: var(--lime-2); }
.oz__row--zu, .oz__row--unk { color: var(--tx-4); }
.oz__row--zu .oz__wd, .oz__row--zu .oz__date,
.oz__row--unk .oz__wd, .oz__row--unk .oz__date { color: var(--tx-4); }
.oz__row--unk { font-style: italic; }

/* ============================================================
   10. TABS (Detail-Seite)
   ============================================================ */
.tabs {
  display: flex;
  margin: var(--section-gap) var(--sp-3) 0;   /* 1.0.19: Andrang→Menüband = Sektions-Takt (war 2px) */
  border-bottom: 1px solid var(--line);
}
.tab {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-align: center;
  padding: 8px 0 9px;
  font-family: var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tx-4);
  border-bottom: 2px solid transparent;
}
.tab__main { font-size: 11px; }                       /* dominantes Hauptwort */
.tab__sub  { font-size: 8px; color: var(--tx-4); opacity: .8; letter-spacing: .06em; }   /* Ergänzung gedämpft */
.tab--on { color: var(--lime); border-bottom-color: var(--lime); }
.tab--on .tab__sub { color: var(--lime); opacity: .7; }   /* aktiver Tab: Ergänzung leicht lime-getönt */

/* ============================================================
   11. HINWEISE / ALERTS
   ============================================================ */
.sectit {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tx-4);
  margin: var(--sp-5) 0 var(--sp-2);   /* mehr Luft nach oben (war 0) */
}
/* Card-interner Titel klebt nicht künstlich nach unten */
.scard > .sectit:first-child { margin-top: 0; }

/* Vor-Ort-Ausstattung: 2-spaltige Icon-Reihe (Card-Stil wie .sheet-card). lime bewusst NICHT auf
   die Icons (kein Lichtermeer) — Kontrast über hell (vorhanden) vs. gedämpft+durchgestrichen (fehlt). */
.vo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.vo__cell { display: flex; align-items: center; gap: 10px; background: #0d0d0f; border: 1px solid #1c1c22; border-radius: 10px; padding: 10px 12px; }
.vo__ic { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--tx-1); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vo__txt { display: flex; flex-direction: column; min-width: 0; }
.vo__lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--tx-1); }
.vo__det { font-family: var(--font-mono); font-size: 9px; color: var(--tx-3); margin-top: 2px; }
.vo__cell--no .vo__ic { stroke: var(--tx-4); opacity: .6; }   /* §11: ehrlich „nicht vorhanden" */
.vo__cell--no .vo__lbl { color: var(--tx-4); text-decoration: line-through; }
.vo__cell--no .vo__det { color: var(--tx-4); }
.note {
  border-radius: 6px;
  padding: 9px 11px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-left: 3px solid var(--lime);
  margin-bottom: var(--sp-2);
}
.note--blue { border-left-color: var(--blue); }
.note--crit { background: rgba(255,59,48,.08); border-color: rgba(255,59,48,.3); border-left-color: var(--danger); }
.note--warn { background: rgba(255,90,0,.07); border-color: rgba(255,90,0,.25); border-left-color: var(--warn); }
.note__cat {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: var(--tx-3);
}
.note__cat--crit { color: #ff6a60; }
.note__cat--warn { color: #ff8a44; }
.note__text { font-size: 11px; line-height: 1.4; color: var(--tx-2); }
.note__time { font-family: var(--font-mono); font-size: 8px; color: var(--tx-4); margin-top: 4px; }
/* Clamp + Tap-to-expand (nur bei echtem Überlauf, JS setzt .note--clampable).
   max-height-basiert (normales Block-Element) → scrollHeight-Messung ist überall zuverlässig
   (anders als display:-webkit-box, dessen scrollHeight in WebKit/iOS unzuverlässig ist). */
.note__text--clamp { max-height: 4.2em; overflow: hidden; }   /* ~3 Zeilen (line-height 1.4) */
.note--expanded .note__text--clamp { max-height: none; }
.note--clampable { cursor: pointer; }
.note__more { display: none; font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em; color: var(--tx-3); margin-top: 5px; }
.note--clampable .note__more { display: block; }
.note--clampable .note__more::after { content: '… mehr'; }
.note--expanded .note__more::after { content: 'weniger'; }
/* Layout A (News-Feed): Typ-Label links + Datum-Textzeile rechts; Farbbalken via .note-Variante. */
.note--info { border-left-color: var(--tx-4); }          /* INFO: grauer Balken */
.note__cat--event { color: var(--lime); }                /* EVENT: lime Label (Balken = .note-Default lime) */
.note__cat--info { color: var(--tx-3); }                 /* INFO: graues Label */
.news__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.news__head .note__cat { margin-bottom: 0; }             /* im Kopf kein Extra-Abstand (Datum steht daneben) */
.news__date { font-family: var(--font-mono); font-size: 9px; color: var(--tx-2); white-space: nowrap; }
.news__meta { font-family: var(--font-mono); font-size: 9px; color: var(--tx-3); margin-top: 4px; }
.news__serie { color: var(--tx-4); }
.news__badge { font-family: var(--font-mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--danger); border: 1px solid rgba(229,72,77,.5); border-radius: var(--r-pill); padding: 1px 5px; margin-left: 4px; }
.news__link { margin-top: 6px; }
.news__erfasst { font-family: var(--font-mono); font-size: 8px; color: var(--tx-4); margin-top: 5px; }   /* §11: Aktualität, dezent */

/* ============================================================
   12. TRAIL-ZEILE
   ============================================================ */
.trail-wrap { border-bottom: 1px solid rgba(255,255,255,.06); }
/* Variante 1: Name links eigenständig (flexibel, umbruchfähig) — Badge·km·Chevron als rechter
   Block. align-items:flex-start → bei Namens-Umbruch bleibt der rechte Block auf Höhe Zeile 1. */
/* P10: Zeilen luftiger (mehr vertikaler Abstand zwischen Trails). */
.trail {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 0;
}
/* P10: Bereichs-Abstand zwischen Lift-Block (oben, P9) und Trail-Liste. */
.lines-trails { margin-top: var(--sp-5); }
.trail__dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.trail__dot--open { background: var(--lime); }
.trail__dot--zu   { background: var(--danger); }
.trail__dot--unbekannt { background: var(--tx-4); }   /* §11: unbekannt neutral-grau, NICHT rot */
.trail__name { font-size: 13px; flex: 1; min-width: 0; font-weight: 600; line-height: 1.3; }
.trail__name--zu { color: #ff6a60; }
.trail__cmt { display: block; font-weight: 400; font-size: 10px; color: var(--tx-4); margin-top: 1px; }
/* Rechter Block als Einheit, vertikal zentriert in sich → sitzt oben auf Höhe der ersten Namenszeile */
.trail__right { flex: none; display: flex; align-items: center; gap: 9px; }
/* Schwierigkeits-Label rechts (entfärbt, Mono/gedämpft) — ersetzt die frühere Längen-Anzeige. */
.trail__sw { flex: none; text-align: right; font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--tx-4); white-space: nowrap; }
/* Chevron-Slot feste Breite, IMMER vorhanden → km-Position über alle Zeilen identisch */
.trail__chev { flex: none; width: 10px; text-align: center; color: var(--tx-4); font-size: 14px; line-height: 1; }

/* --- Trail-Umbau-Verlauf (Etappe 3): Inline-Badge + aufklappbare Zeitleiste --- */
.trail-wrap--has-verlauf .trail { cursor: pointer; }
.trail[role="button"]:focus-visible { outline: 1px solid var(--lime); outline-offset: 2px; border-radius: 4px; }
/* Badge: Lime-Akzent für die art-Zustände, NEUTRAL für „Umbau läuft" (nicht rot/lime) */
.trail__badge {
  flex: none; font-family: var(--font-mono); font-size: 8px; letter-spacing: .06em;
  text-transform: uppercase; padding: 2px 6px; border-radius: var(--r-pill); white-space: nowrap;
}
.trail__badge--baulich { background: rgba(196,255,0,.16); color: var(--lime); }   /* langlebig */
.trail__badge--shape   { background: rgba(196,255,0,.10); color: var(--lime-2); }  /* kurzlebig, dezenter */
.trail__badge--laufend { background: var(--bg-2); color: var(--tx-2); }            /* neutral */
.trail__badge--neutral { background: var(--bg-2); color: var(--tx-3); }            /* nur Verlauf, kein State */
/* B3c: Kategorie-Badge nach Schwere (Farbe nur für Warnungen; Umbau bleibt neutral). */
.trail__badge--sperre  { background: rgba(255,59,48,.16);  color: #ff6a60; border: 1px solid rgba(255,59,48,.45); }  /* Voll-/Teilsperre */
.trail__badge--einschr { background: rgba(245,166,35,.15); color: #f0b656; border: 1px solid rgba(245,166,35,.40); }  /* Einschränkung */
.trail__badge--hinweis { background: rgba(255,255,255,.07); color: #9a9a9a; border: 1px solid rgba(255,255,255,.18); } /* Hinweis */
.vl__ot--note { opacity: .92; }                                                     /* O-Ton der Notiz im Aufklappbereich */
.trail__vl-chev { display: inline-block; transition: transform .15s; }
.trail-wrap--open .trail__vl-chev { transform: rotate(90deg); }
/* Verlauf: vertikale Zeitleiste, neueste Einträge oben */
.trail__verlauf { display: none; margin: 0 0 var(--sp-2) 16px; border-left: 1px solid var(--line); padding: 2px 0 2px 14px; }
.trail-wrap--open .trail__verlauf { display: block; }
.vl__item { position: relative; padding: 5px 0; }
.vl__item--alt { opacity: .55; }   /* ältester Eintrag gedämpft → deutet Lebensdauer an */
.vl__dot {
  position: absolute; left: -18px; top: 7px; width: 7px; height: 7px; border-radius: 50%;
  border: 2px solid var(--bg-0);
}
.vl__dot--baulich { background: var(--lime); }
.vl__dot--shape   { background: var(--lime-2); }
.vl__dot--laufend { background: var(--tx-3); }
.vl__head { font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; color: var(--tx-2); }
.vl__ot { font-size: 11px; color: var(--tx-3); margin-top: 2px; line-height: 1.35; }   /* O-Ton immer sichtbar */
/* B4: ⓘ direkt rechts neben dem Namen (Status/Umbau-Widerspruch). Dezent, ~15px, orange umrandet.
   Trefferzone ~44px über unsichtbares ::before (absolut) — vergrößert NUR die Hit-Area, nicht das Layout. */
.trail__info {
  display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
  box-sizing: border-box; width: 15px; height: 15px; margin-left: 7px;
  border: 1px solid #f0a020; border-radius: 50%; color: #f0a020;
  font-family: var(--font-mono); font-size: 9px; font-weight: 700; font-style: italic; line-height: 1;
  cursor: pointer; position: relative; z-index: 1;
}
.trail__info::before { content: ''; position: absolute; inset: -14px; }   /* ~43px Trefferzone, layoutneutral */
.trail__info:focus-visible { outline: 1px solid #f0a020; outline-offset: 2px; }
/* Info-Bubble (B4) — Positionier-/Schließ-Logik wie .abub (an body, position:fixed). */
.ibub {
  position: fixed; z-index: 50; max-width: 240px;
  background: #1a1a1d; border: 1px solid rgba(240,160,32,.35); border-radius: 10px;
  padding: 10px 12px; box-shadow: 0 8px 26px rgba(0,0,0,.55); animation: abub-in .12s ease-out;
}
.ibub__txt { font-size: 11px; line-height: 1.4; color: var(--tx-2); }
.ibub__open { color: var(--lime); font-weight: 600; }
.ibub__arrow {
  position: absolute; bottom: -6px; width: 11px; height: 11px;
  background: #1a1a1d; border-right: 1px solid rgba(240,160,32,.35); border-bottom: 1px solid rgba(240,160,32,.35);
  transform: translateX(-50%) rotate(45deg);
}
.group-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lime);
  margin: var(--sp-5) 0 4px;   /* mehr Luft nach oben (war 13px) */
}
.group-label--prog { margin-top: 32px; }   /* P2: klarer Abstand Ist-Block ↔ // Prognose-Tabelle */
/* N2b/Block C: Lines-Kopf-Zähler — lime nur bei Park offen & N>0; „0 offen" rot; sonst grau. */
.lines-head__open { color: var(--lime); }
.lines-head__unk  { color: var(--tx-4); }
.lines-head__zu   { color: var(--danger); }
/* Zentrale Lift/HM-Zeile bei „ohne Details"-Parks (Osternohe) — dezent, HM lime sparsam. */
.trails-lift { font-family: var(--font-mono); font-size: 10px; color: var(--tx-3); letter-spacing: .03em; margin: 2px 0 8px; }
.trails-lift__hm { color: var(--lime); font-weight: 700; }

/* ============================================================
   13. ANDRANG-WOCHENLEISTE
   ============================================================ */
/* R1: Andrang-Block (Eyebrow + Leiste) auf dieselbe linke Flucht wie der 2×2-Kachelblock
   (.dash--2x2 hat margin var(--sp-3)).
   R12: feine Trennlinie + Abstand UNTER dem Andrang-Block (Ende des fixen Kopfs, vor der
   Reiterleiste) — gleiche dezente Linien-Sprache wie 2×2-Innenlinien/Toggle-Trennlinie. */
.dash-week {
  margin: var(--section-gap) var(--sp-3) 0;   /* 1.0.19: Cockpit→Andrang = Sektions-Takt */
  /* 1.0.20: Andrang wird eine subtile KARTE (statt nur Abstand + einzelner Bottom-Linie) — sonst bei
     gedimmtem Display nicht vom Grund unterscheidbar (Prinzip „Kanten tragen Zonierung"). Volle Umrandung
     ersetzt die frühere border-bottom; padding gibt dem Inhalt Luft innerhalb der Kante. */
  padding: var(--sp-3);
  border: var(--card-border);
  border-radius: var(--r-tile);
  background: var(--card-bg);
}
.week {
  display: flex;
  gap: 5px;
  align-items: flex-end;
  background: #0c0d0f;
  border: 1px solid #16171b;
  border-radius: var(--r-card);
  padding: 11px 9px 9px;
}
.week__day { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; }
.week__barwrap { height: 46px; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
/* Andrang-Punkte: 0–4, von unten gefüllt; orange ab Stufe ≥3 (Warnsignal), sonst gedämpft-grau. */
.week__dots { display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: flex-end; height: 46px; }
.week__dot { width: 7px; height: 7px; border-radius: 50%; border: 1px solid #1d1d23; box-sizing: border-box; }
.week__dot--on { background: #7a7a82; border-color: #7a7a82; }
.week__dots--warn .week__dot--on { background: var(--andrang-orange); border-color: var(--andrang-orange); }
.week__n { font-family: var(--font-mono); font-size: 8px; color: var(--tx-3); text-transform: uppercase; }
.week__num { font-family: var(--font-mono); font-size: 7px; color: var(--tx-4); }
.week__day--sel .week__n { color: var(--lime); }
.week__day--sel .week__dots { outline: 1.5px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
/* Geschlossener Tag: keine Stufe, ehrlicher Leerzustand „—"; „·" = noch keine Prognose. */
.week__zu { font-family: var(--font-mono); font-size: 15px; line-height: 1; color: var(--zu); padding-bottom: 2px; }
.week__leer { font-family: var(--font-mono); font-size: 14px; line-height: 1; color: var(--tx-4); padding-bottom: 4px; }
/* Pro-Land-Kürzel je Tag: orange = Feiertag/Ferien, grau = Brückentag (weniger sicher). */
.week__lands { display: flex; flex-direction: column; align-items: center; gap: 1px; min-height: 10px; margin-top: 1px; }
.week__land { font-family: var(--font-mono); font-size: 7px; letter-spacing: .04em; line-height: 1.2; }
.week__land--warn { color: var(--andrang-orange); }
.week__land--bridge { color: #6a6a72; }
.week__legende { font-family: var(--font-mono); font-size: 7px; color: var(--tx-4); margin-top: 7px; text-align: center; letter-spacing: .03em; }
.week__legende .week__lg-bridge { color: #6a6a72; }
/* „Prognose"-Hinweis neben dem Sektionstitel (kein Live-/Mess-Anspruch) */
.sectit__sub { color: var(--tx-3); margin-left: 6px; }
/* Tap-Slot: großzügige Daumenfläche, kein iOS-Tap-Flash */
.week__day { -webkit-tap-highlight-color: transparent; }

/* Andrang-Detail-Bubble (Popover an der Säule) — Position/Pfeil-Offset per JS */
.abub {
  position: fixed; z-index: 50;
  min-width: 132px; max-width: 230px;
  background: #14151a; border: 1px solid #2a2b33; border-radius: 10px;
  padding: 9px 11px; box-shadow: 0 8px 26px rgba(0,0,0,.55);
  font-family: var(--font-mono); animation: abub-in .12s ease-out;
}
@keyframes abub-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.abub__head {
  font-size: 10px; letter-spacing: .12em; color: var(--tx-1);
  padding-bottom: 6px; margin-bottom: 5px; border-bottom: 1px solid #23242b;
}
.abub__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 3px 0; }
.abub__lbl { font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--tx-2); }
.abub__sym { font-size: 10px; line-height: 1; letter-spacing: -1px; }
.abub__sym--pos { color: var(--lime); }
.abub__sym--neg { color: var(--danger); }
.abub__row--note .abub__lbl { color: var(--tx-3); }
.abub__zu { font-size: 11px; letter-spacing: .08em; color: var(--danger); font-weight: 600; }
.abub__sub { font-size: 9px; color: var(--tx-3); margin-top: 3px; }
.abub__empty { font-size: 9px; color: var(--tx-3); }
.abub__arrow {
  position: absolute; bottom: -6px; width: 11px; height: 11px;
  background: #14151a; border-right: 1px solid #2a2b33; border-bottom: 1px solid #2a2b33;
  transform: translateX(-50%) rotate(45deg);
}

/* Lift-Betriebszeiten (Info-Tab): Status-Punkt heute + Saisonzeile je Lift */
.lift-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.lift-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--zu); flex: none; }
.lift-dot--on { background: var(--lime); box-shadow: 0 0 6px var(--lime); }
.lift-name { font-family: var(--font-display); font-size: 15px; color: var(--tx-1); }   /* Anton — wie ppcard__name (gemeinsame Sprache) */
.lift-art { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; color: var(--tx-3); margin-left: 7px; }
.lift-state { margin-left: auto; font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; color: var(--tx-3); }
.lift-state--on { color: var(--lime); }   /* „läuft" lime; „aktuell geschlossen"/„Status unklar" bleiben neutral-grau (kein Rot) */
.lift-sub { font-family: var(--font-mono); font-size: 10px; color: var(--tx-3); margin: 2px 0 0 16px; }
.lift-sub__typ { text-transform: uppercase; letter-spacing: .06em; color: var(--tx-2); }   /* normalisierter Bahntyp führt die Zeile */
.lift-detail { font-family: var(--font-mono); font-size: 10px; color: var(--tx-4); margin: 3px 0 0 16px; }   /* dezent: Länge · Fahrzeit · P/h */
.lift-hoehe { font-family: var(--font-mono); font-size: 10px; color: var(--tx-3); margin-top: 11px; padding-top: 9px; border-top: 1px solid #1c1d22; }

/* ============================================================
   13b. HEADER-AKTIONEN (Stufe 2) — Route/Tickets-Pills unter dem Parknamen
   Neutral (Farbe nur für Warnung); eigene Klasse, getrennt von .trail__info (B4).
   ============================================================ */
.park-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }   /* R2: 3 Pills; wrap als Sicherheit (1.0.19/Mockup A: 12px) */
/* P5: randlos, dezent grau gefüllt (kein harter Rand, kein lime). Mono-Label + Icon, ~44px Tap. */
.park-act {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--tx-2);
  background: rgba(255,255,255,.07);
  border: none;
  border-radius: 999px;
  padding: 7px 13px;
  -webkit-tap-highlight-color: transparent;
}
.park-act__ic { font-size: 12px; line-height: 1; color: var(--tx-3); }
.park-act:active { background: rgba(255,255,255,.13); }
.park-act::before { content: ''; position: absolute; inset: -7px; }   /* ~44px Tap-Zone */
@media (hover: hover) {
  .park-act:hover { color: var(--tx-1); background: rgba(255,255,255,.11); }
}

/* ============================================================
   13c. BOTTOM-SHEET (Stufe 2) — Öffnungszeiten / Tickets (von unten)
   ============================================================ */
.sheet-back {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0,0,0,.55);
  display: flex; align-items: flex-end;
  animation: sheet-back-in .15s ease-out;
}
@keyframes sheet-back-in { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  width: 100%; max-height: 82vh; min-height: 42vh;   /* R8: höher, kurze Sheets nicht gequetscht */
  display: flex; flex-direction: column;
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,.6);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  animation: sheet-up .2s cubic-bezier(.2,.8,.2,1);
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
/* P3: weiches Schließen — Backdrop fade-out + Sheet slide-down (GPU: opacity/transform).
   reduced-motion: globale Regel killt Animationen; JS nimmt das Sheet dann sofort aus dem DOM. */
.sheet-back--closing { animation: sheet-back-out .2s ease-in forwards; }
.sheet-back--closing .sheet { animation: sheet-down .22s cubic-bezier(.4,0,.7,.2) forwards; }
@keyframes sheet-back-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes sheet-down { from { transform: none; } to { transform: translateY(100%); } }
.sheet::before {   /* Drag-Indikator */
  content: ''; display: block; width: 36px; height: 4px; border-radius: 2px;
  background: var(--line); margin: 8px auto 0; flex: none;
}
.sheet__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px var(--sp-3) 10px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.sheet__title {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--tx-1);
}
.sheet__x {
  font-size: 22px; line-height: 1; color: var(--tx-3); padding: 2px 8px;
  -webkit-tap-highlight-color: transparent;
}
.sheet__x:active { color: var(--tx-1); }
.sheet__body {
  padding: var(--sp-3) var(--sp-3) var(--sp-6);   /* R8: mehr Raum unten (gilt für alle Sheets) */
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.sheet__shop { margin-top: 12px; }
.sheet__sectit2 { margin-top: 16px; }
body.sheet-open { overflow: hidden; }

/* Block D: Trail-Detail-Sheet (Status + Meldung + Stammdaten-Kachelgrid) */
.tsheet__st { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.tsheet__st .trail__dot { margin-top: 0; width: 8px; height: 8px; }
.tsheet__st--open { color: var(--lime); }
.tsheet__st--zu   { color: var(--danger); }
.tsheet__st--unk  { color: var(--tx-4); }
.tsheet__meld { margin-bottom: 16px; }
.tsheet__meld-badge { margin-bottom: 8px; }
/* V3: schlanke Label·Wert-Zeilen (Schwierigkeit/Länge/Down/Up) — entfärbt, dünne Trenner. */
.tsrows { margin-bottom: 10px; }
.tsrow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.tsrow:last-child { border-bottom: none; }
.tsrow__l { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-4); }
.tsrow__v { font-family: var(--font-mono); font-size: 14px; color: var(--tx-1); text-align: right; }
/* Lift bleibt Kachel (interaktiv, lime Chips). */
.tsk { background: var(--bg-1); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.tsk--lift { margin-top: 4px; }
.tsk__l { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-4); margin-bottom: 5px; }
.tsk__v { font-family: var(--font-mono); font-size: 15px; color: var(--tx-1); display: flex; align-items: center; gap: 7px; }
.tsk__go { color: var(--tx-4); }
.tsk__lift { cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* Block D Schritt 3: Lift-Karte (CARTO Dark, Tap-to-load). Vorschau + Canvas gleiche Höhe → kein Sprung. */
/* Layout-Shift-Fix: WRAPPER hat die feste Höhe; Vorschau UND Canvas füllen sie (100%) →
   Vorschau→Karte ändert die Höhe NICHT → kein Reflow/Scroll-Sprung (v. a. mobil). */
.liftmap { margin-top: 4px; height: 240px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.liftmap__preview {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  background: radial-gradient(circle at 50% 42%, #1b2128, #0f1318); border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.liftmap__pin { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 6px rgba(196,255,0,.12); }
.liftmap__hint { font-family: var(--font-mono); font-size: 12px; color: var(--tx-2); }
.liftmap__sub { font-family: var(--font-mono); font-size: 10px; color: var(--tx-4); letter-spacing: .08em; text-transform: uppercase; }
.liftmap__canvas { height: 100%; width: 100%; background: #0f1318; }
/* Stations-Symbole: Tal = lime ↑-Punkt (Route-Ziel), heraussstechend. Mittel=Ring, Berg=gefüllt
   kommen direkt aus den circleMarker-Optionen (kein eigenes CSS nötig). */
.liftpin-wrap { width: 0 !important; height: 0 !important; overflow: visible; }
.liftpin--tal { position: absolute; transform: translate(-50%, -50%); width: 20px; height: 20px; border-radius: 50%;
  background: var(--lime); border: 2px solid #0a0a0b; color: #0a0a0b; font-weight: 900; font-size: 13px;
  display: flex; align-items: center; justify-content: center; line-height: 1; }
.liftpin__a { display: inline-block; line-height: 1; }   /* ↑ wird per inline rotate in Fahrtrichtung gedreht */
/* OpenTopoMap ist HELL → Labels: dunkler Text auf hellem Pill. .leaflet-tooltip.liftmap__lbl
   (2 Klassen) schlägt Leaflets eigenes .leaflet-tooltip (dynamisch nachgeladen). */
.leaflet-tooltip.liftmap__lbl { background: rgba(255,255,255,.92); color: #15181c; border: 1px solid rgba(0,0,0,.25); font-family: var(--font-mono); font-size: 10px; font-weight: 700; padding: 1px 5px; box-shadow: none; }
.leaflet-tooltip.liftmap__lbl::before { display: none; }   /* Tooltip-Pfeil weg */
/* Lift-Name an der Linienmitte (divIcon, iconSize 0 → per transform auf den Punkt zentriert). */
.liftmap__name-wrap { width: 0 !important; height: 0 !important; overflow: visible; }
/* Lift-Name ENTLANG der Linie (rotiert via inline transform). Kein deckendes Pill — Text mit
   dunklem Umriss (text-shadow) bleibt auf hellem Topo lesbar; Lime bindet ihn an die lime Linie. */
.liftmap__name { position: absolute; transform: translate(-50%, -50%); transform-origin: center; white-space: nowrap;
  color: var(--lime); font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .03em;
  text-shadow: 0 0 2px #0a0a0b, 0 0 3px #0a0a0b, 0 1px 2px #0a0a0b; }
/* Talstation-Popup auf DUNKLES App-Design (Leaflet default ist weiß → lime Button unlesbar).
   Kompakt (Breite begrenzt), heller Text, lime Button auf Dunkel. */
/* .leaflet-popup … (2 Klassen) schlägt Leaflets eigenes 1-Klassen-CSS (dynamisch nachgeladen → sonst weiß). */
.leaflet-popup .leaflet-popup-content-wrapper { background: #0d0d0f; color: var(--tx-1); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.5); }
.leaflet-popup .leaflet-popup-content { margin: 12px 14px; max-width: 220px; }
.leaflet-popup .leaflet-popup-tip { background: #0d0d0f; border: 1px solid var(--line); }
.leaflet-popup .leaflet-popup-close-button { color: var(--tx-3); }
.liftpop__t { font-family: var(--font-display); font-size: 14px; color: var(--tx-1); margin-bottom: 3px; }
.liftpop__sub { font-family: var(--font-mono); font-size: 10px; color: var(--tx-3); margin-bottom: 10px; line-height: 1.35; }
.liftpop .btn-link { margin: 0; display: block; text-align: center; background: var(--lime); color: #0a0a0b; border: 0; border-radius: 8px; padding: 8px 10px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; cursor: pointer; }
/* Lift-&-Höhenmeter-Sheet: Karte pro Lift (Teil B) + HM-Zeile (aus Höhen abgeleitet). */
/* Gemeinsame Sheet-Card (Lift + Parkplatz): EINE Design-Sprache. Rahmen grau #1c1c22 (Default);
   lime-Rahmen NUR als echte Hervorhebung (Hauptparkplatz via .ppcard--main), NICHT als Zustand. */
.sheet-card { background: #0d0d0f; border: 1px solid #1c1c22; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.lift-box__head { display: flex; align-items: center; gap: 8px; }
.lift-hm { font-family: var(--font-mono); font-size: 11px; color: var(--tx-3); margin: 7px 0 0 16px; }   /* fluchtet mit Bahntyp/Detail-Zeile unter dem Namen */
.lift-hm__v { color: var(--lime); font-weight: 700; }
/* Trail-Sheet: Lift-Chips + „ab Mitte"-Hinweis (Teil C2) */
.tsk__liftwrap { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; width: 100%; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tsk__lifts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lift-chip { border: 1px solid var(--lime); color: var(--lime); border-radius: 999px; padding: 2px 9px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; }
/* §11: Lift außer Betrieb (z.B. Schönleitenbahn „ab 2027") → Chip entfärbt/gedämpft, NICHT lime (= verfügbar). */
.lift-chip--off { border-color: var(--tx-4); color: var(--tx-4); opacity: .8; }
.tsk__mitte { font-family: var(--font-mono); font-size: 10px; color: var(--tx-4); border-top: 1px solid var(--line); padding-top: 6px; width: 100%; line-height: 1.35; }
/* Navi-Wahl-Sheet (Apple/Google) */
.navi__ziel { font-family: var(--font-mono); font-size: 11px; color: var(--tx-3); margin-bottom: 10px; letter-spacing: .04em; }
.navi__btns { display: flex; flex-direction: column; gap: 10px; }
/* Parkplatz-Auswahl (mehrere Parkplätze): Karte je Parkplatz, Hauptparkplatz hervorgehoben. */
/* .ppcard nutzt jetzt .sheet-card (gemeinsame Box); hier nur die Parkplatz-Spezifika. */
.ppcard--main { border-color: var(--lime); }   /* einzige lime-Card: Hauptparkplatz (echte Hervorhebung) */
.ppcard__badge { display: inline-block; font-family: var(--font-mono); font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #0a0a0b; background: var(--lime); border-radius: 5px; padding: 2px 6px; margin-bottom: 6px; }
.ppcard__name { font-family: var(--font-display); font-size: 15px; color: var(--tx-1); margin-bottom: 2px; }
.ppcard__adr { font-family: var(--font-mono); font-size: 10px; color: var(--tx-3); margin-bottom: 10px; line-height: 1.35; }
.ppcard__btns { display: flex; gap: 8px; }
.ppcard__btns .btn-link { flex: 1; text-align: center; }
/* Lift-Sheet-Zeile als Sprung zur Karte */
.lift-row--tap { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lift-chev { margin-left: 6px; color: var(--tx-4); }

/* ============================================================
   14. BOTTOM-NAVIGATION
   ============================================================ */
.bottomnav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex;
  align-items: center;
  justify-content: space-around;
  /* DIAG_tabbar_float ① (2026-07-07): KEIN backdrop-filter — als einziges fixes Element hatte die Bar
     Blur; iOS-WebKit verzögert die Reposition blur-gefilterter fixer Elemente bis Scroll-Ende → sie
     „schwebte" sporadisch mit. Ersetzt durch fast-opakes Solid. NICHT ohne Kenntnis dieser Historie den
     Blur „aus Designgründen" zurückholen. (Alpha .96 kalibrierbar, Named-Constant-Prinzip.) */
  background: rgba(8,9,11,.96);
  border-top: 1px solid rgba(255,255,255,.08);
  transition: transform .22s ease;   /* Fix B: sanftes Ein-/Ausfahren bei offener Tastatur */
}
/* Fix B: bei offener iOS-Tastatur (Klasse app--keyboard, via focusin-Delegation) die fixen Bottom-Ebenen
   ausblenden — sonst kleben sie am Layout-Viewport „mitten im Bild". Einfahren statt display:none (kein
   Layout-Sprung); der Snap beim Schließen passiert unsichtbar hinter der Ausblendung.
   1.0.15: NUR auf Touch-Geräten (pointer: coarse). Am Desktop (Maus, keine Tastatur-Überlagerung) würde die
   Leiste sonst beim Feld-Fokus grundlos verschwinden (Regression aus 1.0.14). Die JS-Klasse bleibt global —
   eine Wahrheit, zwei Darstellungen (ohne CSS-Wirkung am Desktop schadet die Klasse nicht). */
@media (pointer: coarse) {
  .app--keyboard .bottomnav { transform: translateY(110%); }
  .app--keyboard #version-stamp { opacity: 0; }
  .app--keyboard #install-hint { transform: translateX(-50%) translateY(260%); }
}
.navitem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
  position: relative;
  height: var(--nav-h);
  justify-content: center;
}
.navitem svg {
  width: 21px; height: 21px;
  stroke: var(--tx-4); fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.navitem__lbl {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tx-4);
}
.navitem--on svg { stroke: var(--lime); }
.navitem--on .navitem__lbl { color: var(--lime); }
.navitem--on::before {
  content: '';
  position: absolute;
  top: 0;
  width: 24px; height: 2px;
  background: var(--lime);
  border-radius: 0 0 2px 2px;
}

/* Tastatur-Fokus sichtbar (Accessibility-Boden) */
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

/* ============================================================
   15. BUTTONS
   ============================================================ */
.btn-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(196,255,0,.4);
  color: var(--lime);
  font-weight: 600;
  font-size: 12px;
  padding: 11px;
  border-radius: var(--r-tile);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--lime);
  color: #000;
  font-weight: 700;
  font-size: 13px;
  padding: 12px;
  border-radius: var(--r-tile);
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* ============================================================
   15b. FAVORITEN / ALERTS (Etappe 4 — zentral ergänzt, fehlte in styles.css)
   ============================================================ */

/* Favoriten-Stern (Detail-Hero): Outline (nicht Favorit) / gefüllt-lime (Favorit) */
.favbtn { padding: 2px; line-height: 0; }
.favbtn svg {
  width: 24px; height: 24px;
  fill: none; stroke: var(--tx-3);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.favbtn--on svg { fill: var(--lime); stroke: var(--lime); }

/* Stat-Zeile auf Favoriten-Karten (mehrere Werte nebeneinander, mit Trennern) */
.fstats {
  display: flex;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.fstat { flex: 1; text-align: center; min-width: 0; }
.fstat__boden { font-size: 11px; white-space: nowrap; }   /* Bodenzustand-Wort passt in die schmale Zelle */
.fstat + .fstat { border-left: 1px solid rgba(255,255,255,.08); }

/* Segment-Umschalter (Alerts: Favoriten / Alle) */
.seg {
  display: flex;
  margin: 0 var(--sp-3) var(--sp-3);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.seg__btn {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tx-4);
  background: none;
}
.seg__btn--on { background: var(--lime); color: #000; font-weight: 700; }

/* Alert-Gruppen-Kopf (Park-Name + Anzahl, parkübergreifende Alerts-Liste) */
.agroup { margin-bottom: var(--sp-4); }
.agroup__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: var(--sp-2);
}
.agroup__name {
  font-family: var(--font-display);
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.agroup__count { font-family: var(--font-mono); font-size: 9px; color: var(--tx-4); }

/* ============================================================
   15c. PROFIL — Coming-Soon (Trailbau-Motiv). Zentral ergänzt.
   ============================================================ */
.coming { text-align: center; padding: 44px var(--sp-4) var(--sp-6); }
.coming__icon {
  width: 84px; height: 84px; margin: 0 auto var(--sp-4);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(196,255,0,.30);
  background: rgba(196,255,0,.05);
}
.coming__icon svg { width: 40px; height: 40px; }
.shovel { fill: none; stroke: var(--lime); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.coming__title {
  font-family: var(--font-display);
  font-size: 30px; line-height: .95;
  text-transform: uppercase;
}
.coming__title span { color: var(--lime); }
.coming__sub {
  font-size: 13px; line-height: 1.5; color: var(--tx-2);
  margin: var(--sp-3) auto 0; max-width: 280px;
}
.coming__tag {
  display: inline-block; margin-top: var(--sp-4);
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--lime);
  border: 1px solid rgba(196,255,0,.3); background: rgba(196,255,0,.05);
  padding: 8px 14px; border-radius: 5px;
}
.hintlist { margin: var(--sp-6) auto 0; max-width: 300px; text-align: left; }
.hint {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.hint svg {
  width: 20px; height: 20px;
  fill: none; stroke: var(--tx-3); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.hint span { font-size: 12px; color: var(--tx-3); }

/* ============================================================
   15d. INFO-TAB: Adresse (mehrzeilig) + Ticketpreise. Zentral ergänzt.
   ============================================================ */
.addr {
  font-size: 13px; line-height: 1.55; color: var(--tx-2);
  margin-bottom: var(--sp-3);          /* Abstand zur "In Karten öffnen"-Schaltfläche */
}
.price-list { margin-top: var(--sp-3); }  /* Abstand: Ticket-Shop-Button → Preise darunter */
/* Hinweis bei Parks ohne Online-Ticketkauf (z. B. Osternohe) — dezent, vor dem Website-Button */
.ticket-note {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--tx-3);
  line-height: 1.4;
  margin-bottom: var(--sp-2);
}
.price-group {
  font-family: var(--font-mono); font-size: 8px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--lime);
  margin: var(--sp-3) 0 4px;
}
.price-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 5px 0; border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.price-row span { color: var(--tx-2); }
.price-row__v { font-family: var(--font-mono); color: var(--tx-1); white-space: nowrap; }

/* ============================================================
   16. UTILITIES
   ============================================================ */
.view-body { padding: 0 var(--sp-3) var(--sp-4); }
/* R10 (Final): konstante scrollbare Gesamthöhe über ALLE Detail-Reiter → kein Scroll-Sprung beim
   Tab-Wechsel. Kurze Tabs werden mit Seiten-Hintergrund (transparent → --bg-0) aufgefüllt; KEIN
   sichtbarer Kasten. Kopf (Hero/Kacheln/Andrang/Reiter) scrollt mit → svh füllt unter den Reitern
   stets eine volle (sichtbare) Viewport-Höhe.
   D3-Fix: 100svh statt 100vh — svh = KLEINER Viewport (Toolbar sichtbar), schießt auf iOS NICHT
   über den sichtbaren Bereich hinaus → die fixe Bottom-Nav „schwebt" nicht mehr an Toolbar-
   Übergängen. Fallback 100vh für Browser ohne svh-Support. R10-Scrollverhalten bleibt gleich. */
#tabcontent { min-height: 100vh; min-height: 100svh; padding-top: var(--section-gap); }   /* 1.0.19: Menüband→Listen-Content = Sektions-Takt (nur Detail-Tab, NICHT global .view-body) */
/* Eyebrow beschriftet die LISTE, nicht das Logo → großer Abstand zum Logo OBEN, kleiner zur Liste
   UNTEN. Sitzt im nicht-sticky Flow (scrollt weg) → sticky .appbar verliert beim Scrollen KEINEN
   Platz. Safe-Area oben trägt weiterhin die .appbar (env safe-area-inset-top). */
.eyebrow--start { margin-top: var(--sp-4); padding-bottom: var(--sp-2); }   /* 16px: der Hero (Tagline) gibt jetzt die obere Luft; Eyebrow rückt näher an die Liste */
.view-body--airy { padding-top: 0; }   /* Abstand kommt jetzt von .eyebrow--start (näher an der Liste) */

/* ---------- Profil: „Rechtliches"-Liste (dezent, unter dem Coming-Soon-Block) ---------- */
.legal-links { margin: var(--sp-5) var(--sp-3) 0; border-top: 1px solid var(--line); }
.legal-links__tit { font-family: var(--font-mono); font-size: 9px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--tx-4); margin: var(--sp-4) 0 var(--sp-2); }
.legal-links__row { display: flex; align-items: center; justify-content: space-between;
  padding: 13px 2px; border-bottom: 1px solid var(--line); color: var(--tx-2);
  text-decoration: none; font-size: 14px; }
.legal-links__row:last-child { border-bottom: 0; }
.legal-links__row:active { color: var(--lime); }
.legal-links__chev { color: var(--tx-4); font-size: 18px; line-height: 1; }

/* ---------- Rechtsseiten (Impressum/Datenschutz): LESETEXT, nicht Dashboard ---------- */
.legal { max-width: 640px; }
.legal__h1 { font-family: var(--font-display); font-size: 26px; font-weight: 400; letter-spacing: .5px;
  text-transform: uppercase; color: var(--tx-1); margin: var(--sp-3) 0 var(--sp-4); }
.legal__h2 { font-size: 15px; font-weight: 700; color: var(--tx-1); margin: var(--sp-5) 0 var(--sp-2); }
.legal p { font-family: var(--font-body); font-size: 15px; line-height: 1.7; color: var(--tx-2);
  margin: 0 0 var(--sp-3); }
.legal a { color: var(--lime); text-decoration: none; }
/* Adressblock (Impressum): kompakter + hervorgehoben. .legal .legal__addr schlägt .legal p. */
.legal .legal__addr { color: var(--tx-1); line-height: 1.55; margin-bottom: var(--sp-4); }
/* Dezenter Testphasen-Hinweis (Datenschutz) — neutral, NICHT alarmierend (kein Rot). */
.legal-note { font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; color: var(--tx-3);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-tile);
  padding: 8px 10px; margin: var(--sp-3) 0 var(--sp-5); }

.hidden { display: none !important; }
.mono { font-family: var(--font-mono); }

/* ============================================================
   KALENDER-TAB (#/kalender)
   ============================================================ */
/* Sticky-Monatsgitter: klebt unter der appbar (sticky top:0, 48px) → springt beim Monatswechsel
   nicht mehr weg. Solider --bg-0-Grund, damit die durchscrollende Agenda nicht durchscheint. */
/* top 46px = unter der appbar (48px) mit 2px Überlappung gegen Subpixel-Nähte (appbar & Gitter beide
   --bg-0 → unsichtbar, robust auch bei abweichender Font-Metrik/Mac). Kein JS-Mess-/Kompensations-
   Apparat mehr: der Monatswechsel tauscht den Listeninhalt statt zu scrollen → keine Scroll-Konkurrenz. */
/* 1.0.16: Sticky-Offset = gemeinsame Variable --kal-sticky-top (identisch zur appbar--solid-Deckungshöhe →
   kein Durchschein-Streifen, driftfrei). z 15 unter der appbar--solid (z 20), die bis exakt hierher deckt. */
.kalgridwrap { position: sticky; z-index: 15; background: var(--bg-0); padding-bottom: 6px;
  top: var(--kal-sticky-top); }
.kalhead { display: flex; align-items: center; justify-content: space-between; margin: 0 var(--sp-3) 4px; }
.kalhead__title { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--tx-1); }
.kalnav {
  width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 7px;
  background: var(--bg-1); color: var(--tx-2); font-size: 15px; line-height: 1; cursor: pointer;
}
.kalgrid__wd { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin: 0 var(--sp-3) 2px; }
.kalgrid__wd span {
  text-align: center; font-family: var(--font-mono); font-size: 8px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--tx-4);
}
.kalgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin: 0 var(--sp-3) 0; }
/* kompakt: feste Zellhöhe statt quadratisch (Breite ~47px bleibt → gut antippbar). */
.kalgrid__day {
  position: relative; height: 28px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; border-radius: 7px; cursor: pointer;
}
.kalgrid__day--empty { cursor: default; }
.kalgrid__num { font-family: var(--font-mono); font-size: 11px; color: var(--tx-2); line-height: 1; }
.kalgrid__day--today { border: 1px solid var(--lime); }              /* heute = Umrandung */
.kalgrid__day--today .kalgrid__num { color: var(--lime); }
.kalgrid__day--sel { background: var(--lime); }                      /* Auswahl = Füllung */
.kalgrid__day--sel .kalgrid__num { color: #000; font-weight: 700; }
.kalgrid__dot { position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--lime); }
.kalgrid__day--sel .kalgrid__dot { background: #000; }               /* auf lime-Füllung sichtbar */

/* Events-Agenda (V2): chronologische Liste, nach Monat gruppiert, unter dem Monatsgitter. */
.kalmonth { margin: 18px 0 6px; }
.kalmonth__n { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; color: var(--tx-4); margin-left: 6px; }   /* Event-Zähler des Monats, dezent */
.kalrow { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.kalrow__date { flex: none; width: 42px; text-align: center; font-family: var(--font-mono); }
.kalrow__d { display: block; font-size: 16px; color: var(--tx-1); line-height: 1; }
.kalrow__wd { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; color: var(--tx-4); margin-top: 2px; }
.kalrow__bis { display: block; font-size: 8px; color: var(--tx-4); margin-top: 3px; }
.kalrow__body { flex: 1; min-width: 0; }
.kalrow__top { display: flex; align-items: flex-start; gap: 8px; }
.kalrow__name { flex: 1; min-width: 0; color: var(--tx-1); font-size: 14px; font-weight: 600; }
.kalrow__park { flex: none; font-family: var(--font-mono); font-size: 8px; letter-spacing: .08em; color: var(--lime); border: 1px solid rgba(196,255,0,.4); border-radius: var(--r-pill); padding: 3px 6px; text-decoration: none; white-space: nowrap; }
.kalrow__meta { font-family: var(--font-mono); font-size: 10px; color: var(--tx-3); margin-top: 4px; }
.kalrow__more { display: none; margin-top: 10px; }
.kalrow--open .kalrow__more { display: block; }
/* Park-Detail-Variante: kein Aufklapp-Toggle → „more" immer sichtbar, kein Pointer. */
.kalrow--static { cursor: default; }
.kalrow--static .kalrow__more { display: block; }
.kalrow__badge { font-family: var(--font-mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; color: var(--danger); border: 1px solid rgba(229,72,77,.5); border-radius: var(--r-pill); padding: 2px 5px; margin-left: 4px; }
.kalrow--zu .kalrow__name { color: var(--tx-4); text-decoration: line-through; }
.kalrow--today { background: rgba(196,255,0,.04); }
.kalrow--today .kalrow__d { color: var(--lime); }
/* Vergangene Events (nur im „auch vergangene"-Modus sichtbar): gedämpft signalisiert „vorbei"
   (kein Badge — die Dämpfung + die Position vor „Heute" trägt die Info, §11). */
.kalrow--past { opacity: .5; }
.kalrow--past .kalrow__d { color: var(--tx-4); }
/* Tag-Tap-Hervorhebung: die zum gewählten Tag gehörenden Event-Zeilen. Dezenter lime Links-Akzent
   (inset box-shadow → kein Layout-Shift) + leicht erhöhter Hintergrund — klar, aber nicht flutend
   (lime sparsam). Nach --today, damit es bei Überschneidung beim Hintergrund gewinnt. */
.kalrow--sel { background: rgba(196,255,0,.07); box-shadow: inset 2px 0 0 var(--lime); }

/* Steuerleiste (Events-Tab): EINE schlanke Zeile UNTER dem Scope-Segment, gleiche Breite (gleiches
   horizontales Margin wie .seg) → Außenkanten fluchten. Heute links / Vergangene rechts. */
.kal-ctl { display: flex; justify-content: space-between; align-items: center; margin: 0 var(--sp-3) var(--sp-3); }
.kal-today, .kal-past {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 7px;   /* wie .seg / .kalnav-Pfeile */
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
  background: none; color: var(--tx-3); border: 1px solid var(--line);   /* BEIDE dezent (lime sparsam) */
}
.kal-past--on { border-color: var(--lime); color: var(--lime); }                                /* nur der aktive Vergangene-Zustand lime */
.kal-ctl__ic { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.kal-ctl__ic--glyph { font-size: 13px; line-height: 1; stroke: none; }                                   /* Unicode-History-Glyph ↺ */
/* dezenter „Heute"-Trenner in der Agenda (lime Linie), markiert die Gegenwart bei eingeblendeten Vergangenen. */
.kal-today-sep { display: flex; align-items: center; gap: 8px; margin: 14px 0 4px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
.kal-today-sep::before, .kal-today-sep::after { content: ""; flex: 1; height: 1px; background: rgba(196,255,0,.35); }

/* Lift-Zustand „eingeschränkt" (Story-Override) — neutral/gedämpft (NICHT rot, NICHT lime) */
.lift-dot--limited { background: var(--tx-2); }
.lift-state--limited { color: var(--tx-2); }
/* „lt. Story"-Hinweis am Lift (Datum + O-Ton) — dezent wie die übrigen Lift-Subzeilen */
.lift-sub--story { color: var(--tx-3); }
/* §11: Bahn außer Betrieb (z.B. Neubau) — ganze Box ausgegraut, NICHT versteckt; Hinweis amber-neutral. */
.lift-box--off { opacity: .55; }
.lift-sub--off { color: var(--tx-2); }
/* „2026 geschlossen"-Marker am Trail (Liste rechts + Sheet) — gedämpft, kein grelles Rot. */
.trail__zu2026 { font-family: var(--font-mono); font-size: 8px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--tx-3); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 2px 5px; white-space: nowrap; }
.tsheet__hint2026 { font-family: var(--font-mono); font-size: 11px; color: var(--tx-2); margin: 6px 0 2px; }
/* „Mehr Infos"-Link im Trail-Sheet (extern) — etwas Luft nach oben, sonst Bestands-btn-link-Stil. */
.tsheet__more { margin-top: var(--sp-3); }
/* §11: Lift-Hinweis im Trail-Sheet — reine INFO (Bahn fährt 2026 nicht), dezent/neutral, NICHT rot,
   KEINE Sperre. Leichter Links-Akzent in Neutralgrau zur Abgrenzung vom Status. */
.tsheet__lifthint { font-family: var(--font-mono); font-size: 11px; line-height: 1.45; color: var(--tx-3);
  border-left: 2px solid var(--line); padding-left: 8px; margin-top: var(--sp-3); }

/* ============================================================
   Admin-Tool (#/admin) — Werkzeug für Thomas, DNA-konform (dark/Mono/lime sparsam).
   ============================================================ */
.admin-logout { margin-left: auto; background: none; border: 1px solid var(--line); color: var(--tx-3); border-radius: 6px; padding: 5px 12px; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.admform { display: flex; flex-direction: column; gap: 12px; }
.admform__l { display: flex; flex-direction: column; gap: 5px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-4); }
.admform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-input { width: 100%; box-sizing: border-box; background: #0d0d0f; border: 1px solid #1c1c22; border-radius: 8px; padding: 9px 11px; color: var(--tx-1); font-family: var(--font-body); font-size: 14px; }
.admin-input:focus { outline: none; border-color: var(--lime); }
textarea.admin-input { resize: vertical; }
.admform__chips { display: flex; flex-wrap: wrap; gap: 7px; }
.admchip { display: inline-flex; align-items: center; gap: 5px; background: #0d0d0f; border: 1px solid #1c1c22; border-radius: 999px; padding: 5px 10px; font-family: var(--font-mono); font-size: 11px; color: var(--tx-2); text-transform: none; letter-spacing: 0; cursor: pointer; }
.admchip input { accent-color: var(--lime); margin: 0; }
.admform__actions { display: flex; gap: 10px; margin-top: 6px; }
.admin-submit, .admin-neu, .admin-geo { display: inline-block; width: auto; padding: 9px 16px; }
.admin-geo { font-size: 10px; padding: 7px 11px; }
.admin-err { color: var(--danger); font-family: var(--font-mono); font-size: 11px; }
.admin-msg { background: #0d0d0f; border: 1px solid #1c1c22; border-left: 2px solid var(--lime); border-radius: 6px; padding: 8px 11px; font-family: var(--font-mono); font-size: 11px; color: var(--tx-2); margin-bottom: 12px; }
.admin-geo-res { display: flex; flex-direction: column; gap: 5px; margin-top: 7px; }
.admin-geo-hit { text-align: left; background: #0d0d0f; border: 1px solid #1c1c22; border-radius: 7px; padding: 7px 10px; color: var(--tx-2); font-family: var(--font-mono); font-size: 11px; cursor: pointer; }
.admin-geo-hit:hover { border-color: var(--lime); }
.adminrow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.adminrow__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.adminrow__name { color: var(--tx-1); font-size: 14px; }
.adminrow__meta { font-family: var(--font-mono); font-size: 9px; letter-spacing: .04em; color: var(--tx-4); text-transform: uppercase; }
.adminrow--zu .adminrow__name { color: var(--tx-4); text-decoration: line-through; }
.adminrow--draft .adminrow__name { color: var(--tx-3); }
.adminrow__act { flex: none; display: flex; gap: 6px; }
.admin-mini { background: none; border: 1px solid var(--line); color: var(--tx-3); border-radius: 6px; padding: 5px 9px; font-family: var(--font-mono); font-size: 10px; cursor: pointer; }
.admin-mini--del { color: var(--danger); border-color: rgba(229,72,77,.5); }

/* Sonderzeiten-Tag (Override-Kennzeichnung): Amber = Abweichungs-Semantik (wie Warn-Label .note__cat--warn),
   NICHT lime — markiert Abweichung, nicht Richtung (auch bei Verkürzung). Generisch für jedes Override. */
.sz-tag {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  font-family: var(--font-mono); font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #ff8a44; background: rgba(255,90,0,.10); border: 1px solid rgba(255,90,0,.28);
  border-radius: 4px; padding: 1px 5px; line-height: 1.5; white-space: nowrap;
}
.sz-tag--tap { cursor: pointer; }   /* nur Detail-Statuskachel → Sprung zu „Infos & News" */
.lift-sondernote { font-size: 12px; color: var(--tx-2); margin: 0 0 10px; line-height: 1.4; }
/* Per-Bahn-Sonderzeiten-Block im Lift-Sheet (1.0.22): unter der Regelzeit, Amber-Tag + Datumszeilen. */
.lift-sonder { margin-top: 5px; font-family: var(--font-mono); font-size: 10.5px; line-height: 1.5;
  color: #ff8a44; letter-spacing: .01em; }
/* Amber-Signalpunkt an der Lift-Pill (Sonderzeiten im Vorschaufenster). */
.park-act__dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-left: 5px;
  vertical-align: middle; background: #ff8a44; }

/* Fix A (Tastatur-Zoom): iOS zoomt automatisch in Felder mit font-size < 16px. Generische Baseline auf
   16px (Element-Selektoren = niedrige Spezifität → bestehende styled Inputs bleiben unberührt). KEIN
   maximum-scale im Viewport (Barrierefreiheit). Gilt automatisch für jedes künftige Eingabefeld. */
input, textarea, select { font-size: 16px; }

/* Beta: Profil-Karten (Install/Feedback) + dezenter Install-Hinweis-Balken */
.prof-card { background: var(--bg-1); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin: 0 var(--sp-3) 10px; }
.prof-card__tit { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-3); margin-bottom: 6px; }
.prof-card__txt { font-size: 13px; line-height: 1.45; color: var(--tx-2); }
.prof-card__txt b { color: var(--tx-1); font-weight: 600; }
.prof-card__ok { font-size: 14px; color: var(--lime); font-weight: 600; }
.fb-text { width: 100%; box-sizing: border-box; margin-top: 10px; resize: vertical; min-height: 76px;
  background: var(--bg-0); border: 1px solid var(--line); border-radius: 8px; padding: 10px;
  color: var(--tx-1); font-family: var(--font-body); font-size: 16px;   /* Fix A: ≥16px → kein iOS-Zoom */
  scroll-margin-bottom: 120px; }
  /* Fokus-Sprung ABGESCHLOSSEN (1.0.16, 2026-07-07): iOS scrollt fokussierte Felder nativ über die Tastatur —
     der Rest-Ruck ist iOS-nativ und AKZEPTIERT. Einzige (passive) Mitigation bleibt das scroll-margin-bottom
     oben (1.0.15). KEIN weiterer Versuch (kein scrollIntoView-Gegensteuern, kein visualViewport). */
.fb-text:focus { outline: none; border-color: var(--lime); }
.fb-send { margin-top: 10px; background: var(--lime); color: #0a0a0b; border: none; border-radius: 8px;
  padding: 9px 18px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .04em; cursor: pointer; }
.fb-send:disabled { opacity: .5; }
.fb-msg { margin-top: 8px; font-size: 12px; min-height: 1em; }
.fb-msg--ok { color: var(--lime); }
.fb-msg--err { color: var(--tx-2); }
#install-hint { position: fixed; z-index: 50; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 10px);
  width: min(440px, calc(100% - 24px)); display: flex; align-items: stretch;
  background: rgba(20,22,26,.96); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.ihint__go { flex: 1; text-align: left; background: none; border: none; color: var(--tx-1);
  font-family: var(--font-body); font-size: 12.5px; line-height: 1.35; padding: 11px 12px; cursor: pointer; }
.ihint__x { flex: none; background: none; border: none; color: var(--tx-3); font-size: 14px; padding: 0 13px; cursor: pointer; }

/* ============================================================
   DESKTOP — zentrierte „Handy-Spalte" (mobile-first; KEIN Desktop-Layout).
   Ab 700px läuft die App als 480px-Spalte auf schwarzem Grund. Unter dem Breakpoint: MOBILE UNVERÄNDERT.
   ============================================================ */
@media (min-width: 700px) {
  body { background: #000; }                    /* Grund außerhalb der Spalte, auch beim Scrollen */
  .app {
    max-width: 480px; margin: 0 auto; min-height: 100vh;
    background: var(--bg-0);
    box-shadow: 0 0 0 1px #1a1a1a;              /* dezente Trennung — ändert die Breite NICHT (kein Border) */
  }
  /* Fixe Vollbreiten-Layer (Kinder von .app) an die zentrierte 480px-Spalte binden — sonst kleben sie
     über die volle Viewport-Breite unter/über der schmalen Spalte. */
  #safe-cap, .bottomnav, .app__bg, .app__scrim {
    left: 50%; right: auto; width: 480px; max-width: 480px; transform: translateX(-50%);
  }
  /* (1.0.15: kein .app--keyboard-Ausblenden am Desktop mehr — Regression-Fix; siehe pointer:coarse oben.) */
  /* Favs-Vollbild an die Spalte: KEIN scale(1.28) am Desktop — der Zoom würde die 480px auf ~614px
     aufblähen und links/rechts über die Spaltenkanten bluten. Ohne Zoom = cover, endet exakt an 480px. */
  .app--has-bg .app__bg { transform: translateX(-50%); }
  #version-stamp { left: calc(50% - 240px + 8px); right: auto; }        /* an der linken Spaltenkante */
}
