/* Indie Assist – 🧭 Unterwegs → Aufzüge. Nutzt die Farben der App (--primary-color, --d-*), dunkel über html.dark. */
.uw {
  --uw-ok: #2e7d32; --uw-aus: #b71c1c; --uw-geplant: #8a5200; --uw-unbekannt: #5f5f5f; --uw-gold: #f2c200;
  --uw-t-ok: #1b5e20; --uw-t-aus: #9c1818; --uw-t-geplant: #7a4800; --uw-t-unbekannt: #4d4d4d;
  --uw-soft: rgba(0, 0, 0, 0.04);
}
html.dark .uw {
  --uw-t-ok: #8fd694; --uw-t-aus: #ff9e96; --uw-t-geplant: #ffc266; --uw-t-unbekannt: #c8c8c8;
  --uw-soft: rgba(255, 255, 255, 0.06);
}
.uw h2 { margin: 0 0 12px; }
.uw-kopf { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.uw-kopf h2 { margin: 0; }
.uw-stand { color: var(--d-muted, #5b655e); font-size: 14px; }
.uw-hinweis { color: var(--d-muted, #5b655e); margin: 4px 0; }
.uw-klein-text { color: var(--d-muted, #5b655e); font-size: 14px; line-height: 1.4; }
.uw-quelle { font-size: 13px; color: var(--d-muted, #5b655e); margin: 8px 0 0; }
.uw-quelle a, .uw a { color: inherit; text-decoration: underline; }
.uw-nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.uw-warn, .uw-veraltet { border: 2px solid var(--uw-aus); border-radius: 10px; padding: 10px 12px; margin: 10px 0; font-size: 15px; line-height: 1.45; }
.uw-veraltet { border-color: var(--uw-geplant); border-style: dashed; }

/* Ebenen-Knöpfe und Filter: Umschalter mit Haken, nicht nur Farbe */
.uw-ebenen, .uw-werkzeug { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; align-items: center; }
.uw-ebene { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 2px solid var(--primary-color, #498100);
  background: var(--d-card, #fff); color: var(--d-text, #1f2a22); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.uw-ebene[aria-pressed="true"] { background: var(--primary-color, #498100); color: #fff; }
.uw-ebene[aria-pressed="true"]::before { content: "✓"; font-weight: 700; }
html.dark .uw-ebene[aria-pressed="true"] { background: #3f7300; }
.uw-ebene:focus-visible, .uw-zeile:focus-visible, .uw-suche:focus-visible, .uw-map:focus-visible, .uw-stern:focus-visible, .uw-unv-knopf:focus-visible, .uw-zurliste:focus-visible { outline: 3px solid #1a5fb4; outline-offset: 2px; }
html.dark .uw-ebene:focus-visible, html.dark .uw-zeile:focus-visible, html.dark .uw-suche:focus-visible, html.dark .uw-map:focus-visible { outline-color: #8ab4ff; }

/* Zeichen (Statuskreis) – immer mit Symbol */
.uw-zeichen { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 15px; line-height: 1; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.uw-zeichen.uw-klein { width: 24px; height: 24px; font-size: 13px; vertical-align: middle; }
.uw-s-ok { background: var(--uw-ok); } .uw-s-aus { background: var(--uw-aus); } .uw-s-geplant { background: var(--uw-geplant); }
.uw-s-unklar { background: var(--uw-aus); border-style: dashed; } .uw-s-unbekannt { background: var(--uw-unbekannt); }
.uw-sym { background: #37474f; }
.uw-st { font-weight: 700; } .uw-t-ok { color: var(--uw-t-ok); } .uw-t-aus, .uw-t-unklar { color: var(--uw-t-aus); } .uw-t-geplant { color: var(--uw-t-geplant); } .uw-t-unbekannt { color: var(--uw-t-unbekannt); }
.uw-zeit { color: var(--d-text, #1f2a22); font-size: 14px; }
.uw-ungef-text { display: inline-block; font-size: 13px; font-style: italic; color: var(--d-muted, #5b655e); }
.uw-unv-text { font-size: 13px; font-weight: 700; }
.uw-meinmk { color: #7a5b00; font-weight: 700; }
html.dark .uw-meinmk { color: var(--uw-gold); }
.uw-linie { display: inline-block; padding: 1px 8px; border-radius: 6px; background: rgba(73, 129, 0, 0.14); font-size: 13px; font-weight: 700; margin-right: 4px; }
html.dark .uw-linie { background: rgba(143, 214, 148, 0.18); }

/* Legende */
.uw-legende { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 10px; padding: 0; font-size: 14px; }
.uw-legende li { display: inline-flex; align-items: center; gap: 6px; }

/* Karte */
.uw-kartenbox { position: relative; isolation: isolate; }   /* Knöpfe auf der Karte bleiben unter Fenstern und Menüs der App */
.uw-map { height: 420px; border-radius: 12px; border: 1px solid var(--d-line, #e3e5e0); background: #e8ece6; overflow: hidden; z-index: 0; }
@media (max-width: 600px) { .uw-map { height: 290px; } }
.uw-zurliste { display: inline-flex; align-items: center; margin: 0 0 8px; min-height: 44px; }
.uw-keinekarte { padding: 16px; border: 2px dashed var(--d-line, #c9cec6); border-radius: 12px; }
.leaflet-container { font: inherit; }
.uw .leaflet-bar a, .uw .leaflet-bar a:hover { width: 44px; height: 44px; line-height: 44px; font-size: 22px; }
.uw-mkwrap { background: none; border: none; }
.uw-mkwrap:focus-visible { outline: 3px solid #1a5fb4; border-radius: 50%; }
.uw-mkwrap { display: flex; align-items: center; justify-content: center; }
.uw-mk { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 17px; line-height: 1; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.6); box-sizing: border-box; }
.uw-mk.uw-roll { border-radius: 9px; min-width: 52px; font-size: 15px; background-clip: padding-box; }
.uw-mk.uw-ungef { border-style: dotted; }
.uw-mk.uw-s-unklar { border-style: dashed; }
.uw-mk.uw-unv { box-shadow: 0 0 0 3px #1a237e, 0 1px 4px rgba(0,0,0,.6); }
.uw-zahl { position: absolute; right: -9px; top: -9px; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 10px; background: #fff; color: #1f2a22; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 1px rgba(0,0,0,.45); box-sizing: border-box; }
.uw-meinmk-ecke { position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #fff3b0; color: #5c4400; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 1px rgba(0,0,0,.5); }
/* A-013: Karte folgt Station und Aufzug */
.uw-mkwrap.uw-blass > :not(.uw-schild) { opacity: .45; }   /* nur der Kreis wird blasser, das Schild bleibt gut lesbar */
.uw-mkwrap.uw-hervor .uw-mk { transform: scale(1.35); box-shadow: 0 0 0 4px #fff, 0 0 0 8px #1a5fb4, 0 2px 8px rgba(0,0,0,.6); }
html.dark .uw-mkwrap.uw-hervor .uw-mk { box-shadow: 0 0 0 4px #1e211e, 0 0 0 8px #8ab4ff, 0 2px 8px rgba(0,0,0,.6); }
.uw-schild { position: absolute; top: 50%; transform: translateY(-50%); white-space: nowrap; padding: 2px 7px; border-radius: 12px; background: #fff; color: #1f2a22; font-size: 13px; font-weight: 700; line-height: 18px; box-shadow: 0 0 0 1px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.35); }
.uw-schild-r { left: 40px; }
.uw-schild-l { right: 40px; }
.uw-schild-u { top: 40px; left: 50%; transform: translateX(-50%); }
.uw-schild-kurz { top: -10px; left: auto; right: -10px; transform: none; min-width: 22px; height: 22px; padding: 0; line-height: 22px; text-align: center; border-radius: 50%; }
.uw-schild-kurz-ol, .uw-schild-kurz-ur, .uw-schild-kurz-ul { left: auto; right: auto; transform: none; min-width: 22px; height: 22px; padding: 0; line-height: 22px; text-align: center; border-radius: 50%; }
.uw-schild-kurz-ol { top: -10px; left: -10px; }
.uw-schild-kurz-ur { top: auto; bottom: -10px; right: -10px; }
.uw-schild-kurz-ul { top: auto; bottom: -10px; left: -10px; }
.uw-mkwrap.uw-hervor .uw-schild { background: #1a5fb4; color: #fff; }
.uw-kartenknoepfe { position: absolute; top: 10px; right: 10px; z-index: 1000; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: calc(100% - 90px); }
.uw-mit-leiste .uw-kartenknoepfe { right: 402px; }   /* in der Kartenspalte bleiben (Leiste 380 + Abstand 12 + 10) */
.uw-kartenknoepfe .btn { min-height: 44px; border: 2px solid var(--primary-color, #498100); background: var(--d-card, #fff); color: var(--d-text, #1f2a22); font-weight: 700; box-shadow: 0 1px 5px rgba(0,0,0,.35); }
html.dark .uw-kartenknoepfe .btn { background: var(--d-card, #1e211e); }
.uw-kartenknoepfe .btn:focus-visible { outline: 3px solid #1a5fb4; outline-offset: 2px; }
html.dark .uw-kartenknoepfe .btn:focus-visible { outline-color: #8ab4ff; }
.uw-kartenknoepfe[hidden], .uw-kartenknoepfe [hidden] { display: none !important; }
.uw-anlage-titel:focus { outline: none; }
.uw-anlage-titel:focus-visible { outline: 3px solid #1a5fb4; outline-offset: 2px; }

/* Listen */
.uw-liste, .uw-meine { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.uw-meine { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.uw-zeile { display: flex; gap: 12px; align-items: flex-start; width: 100%; min-height: 48px; text-align: left; padding: 10px 12px; border: 1px solid var(--d-line, #e3e5e0); border-left-width: 6px; border-radius: 10px;
  background: var(--uw-soft); color: inherit; font: inherit; font-size: 15px; line-height: 1.45; cursor: pointer; }
.uw-zeile:hover { background: rgba(73, 129, 0, 0.1); }
.uw-zeile .uw-zeichen { margin-top: 2px; }
.uw-zt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.uw-r-aus { border-left-color: var(--uw-aus); } .uw-r-unklar { border-left-color: var(--uw-aus); border-left-style: dashed; }
.uw-r-geplant { border-left-color: var(--uw-geplant); border-left-style: dashed; }
.uw-r-unbekannt { border-left-color: var(--uw-unbekannt); border-left-style: dotted; } .uw-r-ok { border-left-color: var(--uw-ok); }
.uw-zeile-meine { border-left-width: 1px; }
.uw-gruppen { display: flex; flex-direction: column; gap: 16px; }
.uw-gruppen-titel { font-size: 17px; margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.uw-such { flex: 1 1 240px; }
.uw-suche { width: 100%; box-sizing: border-box; min-height: 44px; padding: 0 14px; border: 2px solid var(--d-line, #bbb); border-radius: 22px; background: var(--d-card, #fff); color: inherit; font: inherit; font-size: 16px; }
.uw-treffer { min-height: 1.3em; margin: 0 0 6px; font-size: 14px; color: var(--d-muted, #5b655e); }
.uw-treffer:empty { min-height: 0; margin: 0; }   /* A-012: keine Lücke unter der Suche ganz oben */
.uw-zeichen-neutral { color: var(--d-muted, #5b655e); }   /* ohne ★: kein Stationsstand, damit es nicht wie eine Ampel wirkt */

/* Detailfenster */
.uw-overlay { z-index: 10070; }
.uw-dialog { max-width: 520px; max-height: 88vh; overflow-y: auto; }
html.dark .uw-dialog { background: var(--d-card, #1e211e); color: var(--d-text, #e8ebe6); }
.uw-dialog-titel { margin: 0 0 12px; font-size: 20px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.uw-dialog .btn { min-height: 44px; }
.uw-stern { margin: 0 0 10px; }
.uw-anlage { border-top: 1px solid var(--d-line, #e3e5e0); padding: 12px 0; }
.uw-anlage h4 { margin: 0 0 6px; font-size: 16px; }
.uw-anlage p { margin: 6px 0; line-height: 1.45; }
.uw-gewaehlt { background: var(--uw-soft); border-radius: 10px; padding-left: 10px; padding-right: 10px; outline: 2px solid var(--primary-color, #498100); }
.uw-meldung { background: var(--uw-soft); border-radius: 8px; padding: 2px 10px; margin: 8px 0; }
.uw-unv-knopf { margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .uw * { transition: none !important; animation: none !important; } }
.uw-mkwrap .uw-mk { transition: transform .2s; }
@media (prefers-reduced-motion: reduce) { .uw-mkwrap .uw-mk { transition: none; } }
.uw-dialog .uw-stern, .uw-dialog .uw-unv-knopf { border: 2px solid var(--primary-color, #498100); background: var(--d-card, #fff); color: var(--d-text, #1f2a22); font-weight: 700; }
.uw-dialog [aria-pressed="true"] { background: rgba(73, 129, 0, 0.16); }
.uw-overlay.uw { --uw-soft: rgba(0, 0, 0, 0.05); }

/* Beschriftung statt Symbol-Emoji in Listen */
.uw-art { font-size: 13px; font-weight: 700; color: var(--d-muted, #4f5a52); }
.uw-kernsatz { font-size: 16px; font-weight: 700; color: var(--d-text, #1f2a22); margin: 4px 0 10px; line-height: 1.4; }
.uw-weitere { margin: 14px 0 0; font-size: 16px; }
.uw-legende-box { margin: 0 0 10px; }
.uw-legende-box summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 15px; font-weight: 700; }
.uw-legende-box summary:focus-visible { outline: 3px solid #1a5fb4; outline-offset: 2px; }
.uw-alle { margin-top: 12px; }
.uw-alleknopf, .uw-zurliste { border: 2px solid var(--primary-color, #498100); background: var(--d-card, #fff); color: var(--d-text, #1f2a22); font-weight: 700; }
.uw-alleknopf { min-height: 44px; }
.uw-alleknopf:focus-visible { outline: 3px solid #1a5fb4; outline-offset: 2px; }

/* Dunkel: Kontrast mindestens 4,5:1 */
html.dark .uw .leaflet-bar a { color: #1f2a22; }
html.dark .uw .leaflet-control-attribution a { color: #0b4f9e; }
html.dark .uw .uw-meinmk-ecke { color: #5c4400; }
html.dark .uw-suche::placeholder { color: #a9b0a8; }
html.dark .uw-r-aus, html.dark .uw-r-unklar { border-left-color: #ff9e96; }
html.dark .uw-r-geplant { border-left-color: #ffc266; }
html.dark .uw-r-unbekannt { border-left-color: #c8c8c8; }
html.dark .uw-r-ok { border-left-color: #8fd694; }
html.dark .uw-alleknopf, html.dark .uw-zurliste { background: var(--d-card, #1e211e); }

/* kompakte Listenzeilen */
.uw-zeile-stoerung { padding: 6px 10px; gap: 10px; min-height: 44px; }
.uw-zeile-stoerung .uw-zeichen { width: 24px; height: 24px; font-size: 13px; margin-top: 0; }
.uw-liste { gap: 6px; }
.uw-meine { gap: 6px; }
.uw-leiste { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 16px; margin: 0 0 8px; }
.uw-leiste .uw-zurliste { margin: 0; }
.uw-leiste .uw-legende-box { flex: 1 1 120px; margin: 0; }
.uw [hidden] { display: none !important; }

/* 🔔 Benachrichtigungen (benachrichtigung-ui.js) */
.bn-klein { color: var(--d-muted, #4d5a50); font-size: 14px; line-height: 1.45; margin: 6px 0; }
html.dark .bn-klein { color: #c5cec6; }
.bn-intro { margin-top: 0; }
.bn-block { margin: 18px 0 0; padding: 0; border: 0; }
.bn-block h3, .bn-fs legend { font-size: 17px; margin: 0 0 8px; padding: 0; font-weight: 700; color: var(--primary-color, #498100); }
html.dark .bn-block h3, html.dark .bn-fs legend { color: #a9d46a; }
.bn-weg { display: flex; flex-wrap: wrap; gap: 8px; }
.bn-opt { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 2px solid var(--primary-color, #498100); border-radius: 12px; font-weight: 600; cursor: pointer; background: var(--d-card, #fff); color: var(--d-text, #1f2a22); }
.bn-opt input { width: 22px; height: 22px; flex: none; margin: 0; }
.bn-opt:has(input:checked) { background: rgba(73, 129, 0, .14); }
.bn-opt:has(input:checked)::after { content: "✓"; font-weight: 700; }
.bn-opt:focus-within { outline: 3px solid #1a5fb4; outline-offset: 2px; }
html.dark .bn-opt:focus-within { outline-color: #8ab4ff; }
.bn-aus { opacity: .6; }
.bn-dateien { margin-top: 12px; }
.bn-zeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; min-height: 44px; margin: 6px 0; font-weight: 400; }
.bn-zeile select, .bn-zeiten select, .bn-zeiten input[type=time] { min-height: 44px; padding: 6px 10px; font-size: 16px; border-radius: 8px; max-width: 100%; }
.bn-zeiten { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin: 10px 0; }
.bn-zeiten label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.bn-zeiten .btn, .bn-knoepfe .btn, .bn-block > .btn { min-height: 44px; }
.bn-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.bn-det { margin: 12px 0 0; }
.bn-det > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
.bn-det > summary:focus-visible { outline: 3px solid #1a5fb4; outline-offset: 2px; }
.bn-ausn { padding: 4px 0 0; }
.bn-hinweis { background: #fff6cc; color: #222; border: 1px solid #b8960a; border-radius: 8px; padding: 10px 12px; font-size: 15px; line-height: 1.4; }
.bn-ok { color: #1e7e34; font-weight: 700; margin: 0 0 8px; }
html.dark .bn-ok { color: #7fd38f; }
.bn-geraete { list-style: none; margin: 4px 0 0; padding: 0; }
.bn-geraete li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 44px; }
.bn-x { min-height: 44px; min-width: 44px; }
.bn-msg { min-height: 1.2em; margin: 4px 0; font-size: 15px; }
.bn-msg.bn-sr { position: absolute; width: 1px; height: 1px; min-height: 0; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bn-nah { margin: 8px 0 0; font-weight: 600; }
.bn-vl { list-style: none; margin: 8px 0 0; padding: 0; }
.bn-vl-eintrag { border-top: 1px solid rgba(0,0,0,.15); padding: 10px 0; }
html.dark .bn-vl-eintrag { border-top-color: rgba(255,255,255,.2); }
.bn-vl-kopf { font-size: 13px; color: var(--d-muted, #4d5a50); margin-bottom: 4px; }
html.dark .bn-vl-kopf { color: #c5cec6; }
.bn-vl-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.bn-vl-text a { color: inherit; text-decoration: underline; }
.bn-person { margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,.04); }
html.dark .bn-person { background: rgba(255,255,255,.06); }

/* ⚙️ Einstellungen Aufzüge */
.uw-ei-kopf { margin: 0 !important; }
.uw-ei-knopf { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 4px 0; background: none; border: 0; font: inherit; font-weight: 700; color: inherit; text-align: left; cursor: pointer; }
.uw-ei-knopf:focus-visible, .uw-ei-opt:focus-within { outline: 3px solid #1a5fb4; outline-offset: 2px; }
html.dark .uw-ei-knopf:focus-visible, html.dark .uw-ei-opt:focus-within { outline-color: #8ab4ff; }
.uw-ei-kopf + div h3 { font-size: 17px; margin: 18px 0 8px; color: var(--primary-color, #498100); }
html.dark .uw-ei-kopf + div h3 { color: #a9d46a; }
.uw-ei-liste { list-style: none; margin: 0 0 8px; padding: 0; }
.uw-ei-liste li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; border-bottom: 1px solid rgba(0,0,0,.12); }
html.dark .uw-ei-liste li { border-bottom-color: rgba(255,255,255,.2); }
.uw-ei-x, .uw-ei-kopf + div .btn { min-height: 44px; }
.uw-ei-opt { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 400; cursor: pointer; }
.uw-ei-opt input { width: 24px; height: 24px; flex: none; margin: 0; }
.uw-ei-tab { width: 100%; border-collapse: collapse; margin: 8px 0; }
.uw-ei-tab th, .uw-ei-tab td { text-align: left; vertical-align: top; padding: 4px 8px 4px 0; font-size: 14px; }
.uw-ei-tab thead th { font-weight: 700; }
/* Spaltentitel steht nur in der Kopfzeile; in den Zellen bleibt der Text für Bildschirmleser (Name des Hakens), am schmalen Handy sichtbar */
.uw-ei-tab .uw-tab-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.uw-ei-tab .uw-ei-opt { min-width: 44px; justify-content: center; }
.uw-ei-ok { margin: 2px 0 6px; font-size: 14px; font-weight: 600; color: #1f5f1f; }
html.dark .uw-ei-ok { color: #a9d46a; }
.uw-ei-ok.meldung-fehler { color: #8a1f1f; }
html.dark .uw-ei-ok.meldung-fehler { color: #ffb4a8; }
.uw-ei-zeit { margin: 6px 0 10px 34px; }
.uw-ei-zeit input, .uw-ei-zeit select { min-height: 44px; padding: 6px 10px; font-size: 16px; border-radius: 8px; }
.uw-ei-msg { margin: 10px 0 0; font-size: 15px; }
@media (max-width: 560px) {
  .uw-ei-tab, .uw-ei-tab tbody, .uw-ei-tab tr, .uw-ei-tab th, .uw-ei-tab td { display: block; }
  .uw-ei-tab thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .uw-ei-tab tr { margin: 8px 0; padding: 6px 0; border-top: 1px solid rgba(0,0,0,.2); }
  .uw-ei-tab .uw-tab-txt { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .uw-ei-tab .uw-ei-opt { justify-content: flex-start; }
}
.bn-zeile > span { flex: 1 1 130px; }
.bn-zeile select { flex: 1 1 190px; max-width: 280px; }

/* 📍 In meiner Nähe */
.uw-naehe { margin: 4px 0 10px; padding: 10px 12px; }
.uw-naehe:empty { display: none; }
.uw-naehe:focus { outline: 2px solid var(--primary-color, #498100); outline-offset: 2px; border-radius: 8px; }
.uw-naehe h3 { margin: 4px 0; }
.uw-naehe .uw-liste { margin: 6px 0; }
.uw-naehe-knopf { min-height: 44px; }

/* ★ Mein Aufzug · ↔ Ausweich · – brauche ich nicht (A-003). Gewählt = Farbe + ✓ (Farbe nie allein) */
.uw-stufen { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.uw-dialog .uw-stufe { flex: 1 1 128px; min-height: 48px; padding: 8px 10px; white-space: normal; overflow-wrap: anywhere; line-height: 1.25; text-align: center;
  border: 2px solid #8a948b; background: #eef0ed; color: #1f2a22; font-weight: 700; font-size: 15px; border-radius: 10px; transition: none; }
.uw-dialog .uw-stufe:hover { filter: brightness(0.96); transform: none; box-shadow: none; }
.uw-dialog .uw-stufe[aria-pressed="true"]::before { content: "✓ "; }
.uw-dialog .uw-stufe-mein[aria-pressed="true"] { background: var(--primary-color, #498100); border-color: var(--primary-color, #498100); color: #fff; }
.uw-dialog .uw-stufe-ausweich[aria-pressed="true"] { background: #1565c0; border-color: #1565c0; color: #fff; }
.uw-dialog .uw-stufe-keine[aria-pressed="true"] { background: #dfe3de; border-color: #3d463f; color: #1f2a22; }
.uw-dialog .uw-stufe:disabled { opacity: .7; cursor: wait; }
.uw-dialog .uw-stufe:focus-visible, .uw-vs-knopf:focus-visible { outline: 3px solid #1a5fb4; outline-offset: 2px; }
.uw-dialog .uw-stufe-ausweich[aria-pressed="true"]:focus-visible { outline-color: #0b2e5c; }
html.dark .uw-dialog .uw-stufe { background: #2b302c; border-color: #8f9a90; color: #e8ebe6; }
/* theme.css setzt im Dunkelmodus alle .btn mit !important grau – gewählte Stufe muss das übersteuern */
html.dark .uw-dialog .uw-stufe { border-width: 2px; border-style: solid; }
html.dark .uw-overlay .uw-dialog .btn.uw-stufe.uw-stufe-mein[aria-pressed="true"] { background: #3f7300 !important; border-color: #a9d46a !important; color: #fff !important; }
html.dark .uw-overlay .uw-dialog .btn.uw-stufe.uw-stufe-ausweich[aria-pressed="true"] { background: #1558a8 !important; border-color: #8ab4ff !important; color: #fff !important; }
html.dark .uw-overlay .uw-dialog .btn.uw-stufe.uw-stufe-keine[aria-pressed="true"] { background: #454c46 !important; border-color: #e8ebe6 !important; color: #fff !important; }
html.dark .uw-dialog .uw-stufe:focus-visible, html.dark .uw-vs-knopf:focus-visible { outline-color: #8ab4ff; }
.uw-zumein { margin: 4px 0 0 !important; }

/* 💡 Vorschlag der App */
.uw-vorschlag { margin: 10px 0 4px; padding: 10px 12px; border: 2px dashed #b8960a; border-radius: 10px; background: #fff8dc; color: #222; }
.uw-vs-ansehen { margin: 0 0 10px; }
.uw-vorschlag-titel { margin: 0 0 6px !important; font-weight: 700; }
.uw-vorschlag ul { margin: 0 0 8px; padding-left: 18px; line-height: 1.45; }
.uw-vs-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.uw-dialog .uw-vs-knopf { min-height: 44px; font-size: 15px; white-space: normal; transition: none; }
.uw-dialog .uw-vs-knopf:hover { transform: none; }
.uw-dialog .uw-vs-selbst { background: #fff; border: 2px solid #8a948b; color: #1f2a22; }
html.dark .uw-vorschlag { background: #3a3216; border-color: #e0b83a; color: #f4ecd0; }
html.dark .uw-dialog .uw-vs-selbst { background: #2b302c; border-color: #8f9a90; color: #e8ebe6; }
html.dark .uw-dialog .uw-vs-knopf.btn-primary { background: #3f7300; color: #fff; }

/* ⚠️ App ist hier unsicher */
.uw-unsicher { margin: 8px 0 10px; padding: 8px 12px; border: 2px solid var(--uw-geplant); border-left-width: 6px; border-radius: 10px; background: #fff4e0; color: #2a1d00; }
.uw-unsicher p { margin: 4px 0; }
.uw-unsicher ul { margin: 4px 0; padding-left: 18px; color: inherit; }
html.dark .uw-unsicher { background: #3a2a10; border-color: #ffc266; color: #ffe9c7; }

/* Ampel in „Meine Stationen“ – immer mit Text */
.uw-ampel { flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.45); }
.uw-ampel-gruen { background: #2e7d32; } .uw-ampel-gelb { background: #f2c200; } .uw-ampel-rot { background: #c62828; }
.uw-ampel-text { font-weight: 700; }
.uw-zeile-meine.uw-a-gelb { border-left: 6px solid #b8960a; }
.uw-zeile-meine.uw-a-rot { border-left: 6px solid #c62828; }
.uw-zeile-meine.uw-a-gruen { border-left: 6px solid #2e7d32; }
html.dark .uw-zeile-meine.uw-a-gelb { border-left-color: #f2c200; }
html.dark .uw-zeile-meine.uw-a-rot { border-left-color: #ff9e96; }
html.dark .uw-zeile-meine.uw-a-gruen { border-left-color: #8fd694; }
.uw-ampel-legende { margin: 8px 0 0; }
html.high-contrast .uw-overlay .uw-dialog .btn.uw-stufe.uw-stufe-mein[aria-pressed="true"], html.high-contrast .uw-overlay .uw-dialog .btn.uw-vs-knopf.btn-primary { background: #ffe600 !important; border-color: #ffe600 !important; color: #000 !important; }
html.high-contrast .uw-vorschlag, html.high-contrast .uw-unsicher { background: #000; color: #fff; border-color: #ffe600; }

/* A-012: „Welche Aufzüge nutzt du hier?“ – gemerkte Station ohne eigenen Aufzug */
.uw-keine-text { font-weight: 600; color: #6b4e00; }
html.dark .uw-keine-text { color: #ffd77a; }
.uw-zeile-meine.uw-zeile-keine { border-left: 6px dashed #8a7a3c; }
html.dark .uw-zeile-meine.uw-zeile-keine { border-left-color: #d8c27a; }
.uw-auswahl { margin: 10px 0; padding: 10px 12px; border: 2px solid #b8960a; border-radius: 10px; background: #fffbea; color: #222; }
.uw-auswahl > summary { cursor: pointer; min-height: 32px; padding: 4px 0; }
.uw-auswahl > summary:focus-visible { outline: 3px solid #1a5fb4; outline-offset: 2px; }
.uw-auswahl p { margin: 6px 0; }
.uw-auswahl-liste { list-style: none; margin: 8px 0 0; padding: 0; }
.uw-auswahl-liste li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid #e6dcb4; }
.uw-auswahl-text { flex: 1 1 220px; overflow-wrap: anywhere; line-height: 1.4; }
.uw-dialog .uw-auswahl-liste .uw-stufe { flex: 0 1 180px; }
html.dark .uw-auswahl { background: #2f2a14; border-color: #e0b83a; color: #f4ecd0; }
html.dark .uw-auswahl-liste li { border-top-color: #5a4f26; }
html.dark .uw-auswahl > summary:focus-visible { outline-color: #8ab4ff; }
html.high-contrast .uw-auswahl { background: #000; color: #fff; border-color: #ffe600; }

/* A-013 Punkt 2: Stationsfenster neben der Karte (Leiste rechts) bzw. als Blatt von unten (Handy) */
.uw-kartenbox.uw-mit-blatt { isolation: auto; }   /* das Blatt liegt über der Handy-Menüleiste */
.uw-mit-leiste { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 12px; align-items: start; }
.uw-mit-leiste > .uw-map { grid-column: 1; grid-row: 1; height: clamp(320px, 70vh, 640px); }
.uw-panel-leiste { grid-column: 2; grid-row: 1; height: clamp(320px, 70vh, 640px); min-width: 0; }
.uw-panel .uw-dialog { display: flex; flex-direction: column; max-width: none; max-height: none; width: 100%; height: 100%; box-sizing: border-box; overflow: hidden; padding: 0; }
.uw-panel-leiste .uw-dialog { border: 1px solid var(--d-line, #e3e5e0); border-radius: 12px; box-shadow: none; }
.uw-panel-kopf { display: flex; align-items: flex-start; gap: 8px; padding: 12px 12px 8px 16px; border-bottom: 1px solid var(--d-line, #e3e5e0); }
.uw-panel-kopf .uw-dialog-titel { flex: 1; margin: 0; padding-top: 8px; font-size: 19px; }
.uw-panel .uw-x { flex: none; min-width: 44px; min-height: 44px; padding: 0; font-size: 20px; border: 2px solid var(--d-line, #c9cec6); background: var(--d-card, #fff); color: var(--d-text, #1f2a22); }
.uw-panel .uw-x:focus-visible, .uw-griff:focus-visible { outline: 3px solid #1a5fb4; outline-offset: 2px; }
html.dark .uw-panel .uw-x:focus-visible, html.dark .uw-griff:focus-visible { outline-color: #8ab4ff; }
.uw-panel .uw-dialog-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 10px 16px 16px; overscroll-behavior: contain; }
.uw-griff { display: none; }
.uw-panel-blatt { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10070; height: 50vh; height: 50dvh; min-height: min(200px, 70vh); max-height: calc(100vh - 56px); max-height: calc(100dvh - 56px); }
.uw-panel-blatt.uw-voll { height: calc(100vh - 72px); height: calc(100dvh - 72px); }
.uw-panel-blatt .uw-dialog { border-radius: 16px 16px 0 0; box-shadow: 0 -6px 24px rgba(0, 0, 0, .3); padding-bottom: env(safe-area-inset-bottom, 0px); }
.uw-panel-blatt .uw-griff { display: flex; align-items: center; justify-content: center; flex: none; width: 100%; min-height: 44px; border: none; background: transparent; cursor: grab; touch-action: none; padding: 0; }
.uw-griff-strich { display: block; width: 52px; height: 6px; border-radius: 3px; background: #6b746c; }
html.dark .uw-griff-strich { background: #a9b0a8; }
.uw-panel-blatt .uw-panel-kopf { padding-top: 0; }

/* ===== 🌤️ Wetter (W2, A-018): Reiter „Wetter“ + Startseitenkarte (wetter.js) ===== */
.wt { --wt-soft: rgba(0,0,0,.04); }
html.dark .wt { --wt-soft: rgba(255,255,255,.06); }
.wt h2 { margin: 0 0 10px; color: var(--primary-color); }
.wt-karten { display: grid; gap: 16px; }
.wt-karten > * { min-width: 0; margin: 0; }
.wt-ersatz { border: 2px dashed #8a5200; border-radius: 10px; padding: 10px 12px; margin: 0 0 14px; line-height: 1.45; font-size: 15px; }
html.dark .wt-ersatz { border-color: #ffc266; }
.wt-ersatz.wt-klein { font-size: 14px; margin: 10px 0; }
.wt-temp { font-size: 56px; font-weight: 700; line-height: 1; margin: 0; color: var(--d-text, #1f2a22); }
.wt-temp small { font-size: 28px; font-weight: 700; }
.wt-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 12px 0 0; font-size: 14px; color: var(--d-muted, #5b655e); }
.wt-alt { color: #8a5200; font-weight: 700; }
html.dark .wt-alt { color: #ffc266; }
.wt-leiste-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.wt-leiste-kopf h2 { margin: 0; }
.wt-hint { font-size: 13px; color: var(--d-muted, #5b655e); }
.wt-fuss { font-size: 13px; color: var(--d-muted, #5b655e); margin: 8px 0 0; }
.wt-minmax { margin: 0 0 8px; font-size: 15px; line-height: 1.45; }
.wt-svg { width: 100%; height: auto; display: block; }
.wt-svg text { font-family: inherit; font-size: 11px; fill: var(--d-muted, #5b655e); }
.wt-svg text.mm { fill: var(--d-text, #1f2a22); font-weight: 700; }
.wt-svg .lin { fill: none; stroke: var(--primary-color); stroke-width: 2.4; stroke-linejoin: round; }
html.dark .wt-svg .lin { stroke: #8fd694; }
.wt-svg .gitter { stroke: var(--d-line, #e3e5e0); stroke-width: 1; }
.wt-svg .nul { stroke: #1a5fb4; stroke-dasharray: 4 3; stroke-width: 1.2; }
html.dark .wt-svg .nul { stroke: #8ab4ff; }
.wt-svg circle { fill: var(--primary-color); }
html.dark .wt-svg circle { fill: #8fd694; }
details.wt-tab { margin-top: 10px; }
details.wt-tab summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; }
.wt-tab-rahmen { max-height: 420px; overflow: auto; }
.wt-tab table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wt-tab th, .wt-tab td { text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--d-line, #e3e5e0); font-weight: 400; }
.wt-tab thead th { font-weight: 700; position: sticky; top: 0; background: var(--d-card, #fff); }
.wt-tab th:first-child, .wt-tab td:first-child { text-align: left; white-space: nowrap; }
.wt-karte-start .wt-temp { font-size: 44px; }
/* Verlauf am Handy: Variante a = Linie höher (wetter.js zeichnet sie dort 360×260) + größere Schrift */
@media (max-width: 500px) {
  .wt-svg text { font-size: 13px; }
  .wt-temp { font-size: 48px; }
  /* Variante b (VERLAUF_HANDY = 'b' in wetter.js): am Handy nur die Tabelle */
  .wt-handy-tabelle .wt-linie { display: none; }
}

/* ===== 🌤️ Wetter W3 (A-021): „🏠 Meine Station“, „📅 Tagesverlauf“ in 8 Karten, Fenster, Startseitenkarte =====
   Nur Überschriften gelb-grün (symbole.js); in .wt-bunt bleiben Herkunft 🏠/📡, Werte und Wettersymbole bunt.
   Herkunft immer als Symbol + Wort; Farbe/Rand nur zusätzlich. */
.wt { --wt-st: #e4efd5; --wt-wd: #e1ebf8; --wt-rand: #6f9a3c; --wt-gelb: #e6b800; }
html.dark .wt { --wt-st: #22351b; --wt-wd: #1c2a3c; --wt-rand: #8fd694; --wt-gelb: #ffd84a; }
.wt-sym { font-size: 1.15em; }
.wt-werte2 { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 18px; font-size: 16px; }
.wt-werte2 li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; min-width: 0; overflow-wrap: break-word; }
.wt-wname { color: var(--d-muted, #5b655e); flex-shrink: 0; white-space: nowrap; }
.wt-tag + .wt-tag { margin-top: 16px; }
.wt-tag-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; margin: 4px 0 8px; }
.wt-tag-kopf h3 { margin: 0; font-size: 17px; color: var(--d-text, #1f2a22); }
.wt-tagesverlauf { container-type: inline-size; }
.wt-raster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@container (min-width: 760px) { .wt-raster { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.wt-k { min-width: 0; border-radius: 12px; border: 2px solid transparent; background: var(--d-card, #fff); }
.wt-k-station { background: var(--wt-st); border-color: var(--wt-st); }
.wt-k-wetterdienst { background: var(--wt-wd); border-color: var(--wt-wd); }
.wt-k-vorhersage { border: 2px dashed var(--wt-rand); }
.wt-k-luecke, .wt-k-fehlt { border: 2px dotted #8a948b; }
.wt-k-zuletzt { border: 4px solid var(--wt-gelb); }
.wt .wt-k-in { all: unset; box-sizing: border-box; width: 100%; height: 100%; min-height: 44px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 2px; text-align: center; color: var(--d-text, #1f2a22); border-radius: 10px; cursor: default; }
.wt button.wt-k-in { cursor: pointer; }
.wt button.wt-k-in:hover { background: rgba(0, 0, 0, .05); }
html.dark .wt button.wt-k-in:hover { background: rgba(255, 255, 255, .07); }
.wt button.wt-k-in:focus-visible { outline: 3px solid #1a5fb4; outline-offset: 2px; }
html.dark .wt button.wt-k-in:focus-visible { outline-color: #8ab4ff; }
.wt-k .z { font-weight: 700; font-size: 14px; }
.wt-k .s { font-size: 28px; line-height: 1.15; }
.wt-k .s-leer { color: var(--d-muted, #5b655e); }
.wt-k .t { font-size: 19px; font-weight: 700; }
.wt-k .r { font-size: 13px; min-height: 1.2em; }
.wt-k .q { font-size: 12px; line-height: 1.25; overflow-wrap: anywhere; hyphens: manual; padding: 0 2px; }
.wt-legende { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.wt-legende li { display: flex; align-items: center; gap: 6px; }
.wt-lf { display: inline-block; width: 22px; height: 18px; border-radius: 5px; border: 2px solid transparent; background: var(--d-card, #fff); }
.wt-lf.wt-k-station { background: var(--wt-st); border-color: #a9c48a; }
.wt-lf.wt-k-wetterdienst { background: var(--wt-wd); border-color: #9db6d8; }
.wt-lf.wt-k-vorhersage { border: 2px dashed var(--wt-rand); }
.wt-lf.wt-k-zuletzt { border: 3px solid var(--wt-gelb); }
html.dark .wt-lf.wt-k-station, html.dark .wt-lf.wt-k-wetterdienst { border-color: #6b746c; }
.wt-dialog { max-width: 560px; }
.wt-dialog .app-confirm-actions { margin-top: 16px; }   /* Knopf hebt sich beim Fokus 2 px an (+ Fokusrahmen) – Abstand, damit die Notiz frei bleibt */
.wt-detail { width: 100%; border-collapse: collapse; font-size: 15px; }
.wt-detail th, .wt-detail td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--d-line, #e3e5e0); vertical-align: top; }
.wt-detail thead th { font-weight: 700; }
.wt-detail tbody th { font-weight: 400; color: var(--d-muted, #5b655e); }
html.dark .wt-detail tbody th { color: #c3cbc4; }
.wt-zeile { display: flex; gap: 8px; align-items: baseline; margin: 6px 0 0; line-height: 1.45; font-size: 16px; }
@media (max-width: 400px) { .wt-k .s { font-size: 24px; } .wt-k .t { font-size: 17px; } .wt-k .q { font-size: 11.5px; } }
