/* Indie Assist – 🧭 Unterwegs → 🗺️ Routen. Nutzt die Farben der App (--primary-color, --d-*), dunkel über html.dark. */
.rt {
  --rt-soft: rgba(0, 0, 0, 0.04); --rt-linie: #0b4f9e; --rt-rand: var(--d-line, #c9cec6); --rt-fokus: #1a5fb4;
  --rt-warn-bg: #fff3cd; --rt-warn-text: #4a3500; --rt-warn-rand: #a06a00;
  --rt-fehler-bg: #fdecea; --rt-fehler-text: #7a1212; --rt-fehler-rand: #b71c1c;
  --rt-info-bg: #eaf2fb; --rt-info-text: #12324f; --rt-info-rand: #1a5fb4;
  --rt-text: var(--d-text, #1f2a22); --rt-muted: var(--d-muted, #4f5a52); --rt-karte: var(--d-card, #fff);
}
html.dark .rt {
  --rt-soft: rgba(255, 255, 255, 0.07); --rt-linie: #8ab4ff; --rt-fokus: #8ab4ff;
  --rt-warn-bg: #3a2d00; --rt-warn-text: #ffe08a; --rt-warn-rand: #d9a400;
  --rt-fehler-bg: #3b1613; --rt-fehler-text: #ffc9c2; --rt-fehler-rand: #ff9e96;
  --rt-info-bg: #14283b; --rt-info-text: #cfe3fb; --rt-info-rand: #8ab4ff;
  --rt-text: var(--d-text, #e8ebe6); --rt-muted: var(--d-muted, #c5cec6); --rt-karte: var(--d-card, #1e211e);
}
.rt { color: var(--rt-text); max-width: 100%; }
.rt * { box-sizing: border-box; }
.rt h2 { margin: 0 0 12px; }
.rt h3 { font-size: 19px; margin: 0 0 10px; color: #35600a; }
html.dark .rt h3 { color: #a9d46a; }
.rt h4 { font-size: 16px; margin: 14px 0 6px; }
.rt h5 { font-size: 15px; margin: 12px 0 4px; }
.rt p { line-height: 1.45; margin: 6px 0; }
.rt a { color: inherit; text-decoration: underline; }
.rt [hidden] { display: none !important; }
.rt-klein { color: var(--rt-muted); font-size: 14px; line-height: 1.4; }
.rt-nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rt-fest { font-size: 14px; line-height: 1.4; margin: 0 0 8px 34px; border-left: 4px solid var(--rt-info-rand); padding-left: 8px; }
.rt-msg { min-height: 1.3em; font-size: 15px; margin: 6px 0 0; }
.rt-feldmsg { min-height: 1.2em; font-size: 14px; color: var(--rt-muted); margin: 4px 0 0; }
.rt-fehlertext { color: var(--rt-fehler-text); font-weight: 600; }
.rt-fehlertext::before { content: "⚠ "; }
.rt-msg:empty::before, .rt-feldmsg:empty::before { content: none; }

.rt-karte { background: var(--rt-karte); border: 1px solid var(--rt-rand); border-radius: 14px; padding: 16px; margin: 0 0 16px; }
.rt-kasten { border: 2px solid; border-radius: 10px; padding: 10px 12px; margin: 10px 0; font-size: 15px; line-height: 1.45; }
.rt-warn { background: var(--rt-warn-bg); color: var(--rt-warn-text); border-color: var(--rt-warn-rand); border-style: dashed; }
.rt-zusatz { background: var(--rt-warn-bg); color: var(--rt-warn-text); border-color: var(--rt-warn-rand); }
.rt-fehler { background: var(--rt-fehler-bg); color: var(--rt-fehler-text); border-color: var(--rt-fehler-rand); }
.rt-info { background: var(--rt-info-bg); color: var(--rt-info-text); border-color: var(--rt-info-rand); border-style: dotted; }
.rt-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 6px; background: rgba(73, 129, 0, 0.14); font-size: 13px; font-weight: 700; }
html.dark .rt-badge { background: rgba(143, 214, 148, 0.12); }

/* Knöpfe, Felder: alles mindestens 44 px */
.rt .btn, .rt-pille, .rt-stern, .rt-abbtn, .rt-wahlzeile { min-height: 44px; }
.rt .btn { font-size: 15px; }
.rt-klein-knopf { padding: 0 14px; }
.rt-rot { border: 2px solid var(--rt-fehler-rand); color: var(--rt-fehler-text); font-weight: 700; }
.rt input.rt-eingabe, .rt select, .rt textarea, .rt input[type="number"] { width: 100%; min-height: 44px; padding: 8px 12px; border: 2px solid var(--rt-rand); border-radius: 10px; background: var(--rt-karte); color: inherit; font: inherit; font-size: 16px; }
.rt textarea { min-height: 70px; resize: vertical; }
.rt label { font-weight: 600; display: block; margin: 8px 0 4px; }
.rt-opt { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 400 !important; cursor: pointer; margin: 2px 0 !important; }
.rt-opt input { width: 24px; height: 24px; flex: none; margin: 0; }
.rt button:focus-visible, .rt input:focus-visible, .rt select:focus-visible, .rt textarea:focus-visible, .rt summary:focus-visible, .rt-map:focus-visible, .rt [role="button"]:focus-visible, .rt [role="option"]:focus-visible, .rt-opt:focus-within, .rt h3:focus-visible { outline: 3px solid var(--rt-fokus); outline-offset: 2px; }
.rt-band:focus-visible { outline: none; }
.rt-band:focus-visible rect { stroke: var(--rt-fokus); stroke-width: 4; }
.rt-suchen { width: 100%; margin-top: 12px; font-weight: 700; }
.rt-tausch { margin: 8px 0 0; }
.rt-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; align-items: center; }
.rt-gr { border: 0; padding: 0; margin: 12px 0 0; min-width: 0; }
.rt-gr legend { font-weight: 700; padding: 0; margin-bottom: 6px; }
.rt-pillen { display: flex; flex-wrap: wrap; gap: 8px; }
.rt-pille { padding: 0 16px; border-radius: 22px; border: 2px solid var(--primary-color, #498100); background: var(--rt-karte); color: var(--rt-text); font-weight: 700; cursor: pointer; font: inherit; font-size: 15px; font-weight: 700; }
.rt-pille[aria-pressed="true"] { background: var(--primary-color, #498100); color: #fff; }
.rt-pille[aria-pressed="true"]::before { content: "✓ "; }
html.dark .rt-pille[aria-pressed="true"] { background: #3f7300; }
/* A-112: „Einstellungen“ – farbige Kopfzeile mit Worten, offen ein eigener getönter Kasten mit grünem Rand links, unten Schließen-Knopf */
.rt { --rt-mehr-kopf: #dcebd0; --rt-mehr-kopf-text: #1f3a0a; --rt-mehr-inh: #f1f7ec; --rt-mehr-rand: #3f7300; }
html.dark .rt { --rt-mehr-kopf: #2c4120; --rt-mehr-kopf-text: #e6f2d8; --rt-mehr-inh: #1a2616; --rt-mehr-rand: #8fd694; }
.rt-mehr { margin: 14px 0 0; border: 1px solid var(--rt-rand); border-radius: 10px; overflow: hidden; }
.rt-mehr > summary { list-style: none; min-height: 48px; display: block; padding: 10px 12px; cursor: pointer; background: var(--rt-mehr-kopf); color: var(--rt-mehr-kopf-text); }
.rt-mehr > summary::-webkit-details-marker { display: none; }
.rt-mehr > summary::marker { content: ""; }
.rt-mehr-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05em; }
.rt-mehr-zu, .rt-mehr-auf { font-weight: 600; font-size: .9em; white-space: nowrap; }
.rt-mehr[open] .rt-mehr-zu, .rt-mehr:not([open]) .rt-mehr-auf { display: none; }
.rt-mehr-uebersicht { display: block; margin-top: 4px; font-size: .88em; font-weight: 400; }
.rt-mehr[open] .rt-mehr-uebersicht { display: none; }
.rt-mehr[open] { border-left: 6px solid var(--rt-mehr-rand); }
.rt-mehr-inh { padding: 4px 12px 12px; background: var(--rt-mehr-inh); }
.rt .rt-mehr-inh .btn.rt-mehr-schliessen { width: 100%; min-height: 48px; margin-top: 12px; font-weight: 700; }
.rt-tempo .rt-msg:empty { display: none; }
/* A-112: Zuhause in „Meine Orte“, Teilen, Meine Wege mit ➕ und Formular in der Karte */
.rt-ort-heim { border-left: 6px solid var(--rt-mehr-rand); }
.rt-heim-zust { margin-top: 8px !important; align-items: flex-start; }
.rt-teilen { margin: 8px 0 0 !important; }
.rt-mw-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rt-mw-kopf h3 { margin: 0 0 10px; }
.rt .rt-mw-kopf .btn.rt-mw-plus { min-width: 48px; min-height: 48px; font-size: 1.3em; padding: 0; }
.rt-mw-neu { margin: 8px 0 12px; padding: 12px; border: 1px solid var(--rt-rand); border-radius: 10px; background: var(--rt-soft); }
.rt-mw-neu h4:focus-visible { outline: 3px solid var(--rt-fokus); outline-offset: 2px; }
.rt-mw-neu .rt-eingabe { width: 100%; box-sizing: border-box; }
.rt-mw-vorschau { margin-top: 12px; }
.rt-zeile2 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 6px 0; }
.rt-zeile2 label { flex: 1 1 180px; margin: 0; }
.rt-zeile2 select { flex: 1 1 200px; width: auto; }

/* Vorschläge, Orte */
.rt-feld { margin: 10px 0 0; position: relative; }
.rt-vorschlaege, .rt-ortliste { list-style: none; margin: 4px 0 0; padding: 0; border: 1px solid var(--rt-rand); border-radius: 10px; background: var(--rt-karte); overflow: hidden; }
.rt-ortliste { border: 0; display: flex; flex-direction: column; gap: 6px; background: none; overflow: visible; }
.rt-vs { min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 6px 12px; cursor: pointer; border-bottom: 1px solid var(--rt-rand); border-left: 6px solid transparent; }
.rt-vs:last-child { border-bottom: 0; }
.rt-vs.rt-aktiv, .rt-vs:hover { background: var(--rt-soft); border-left-color: var(--primary-color, #498100); }
.rt-vs.rt-aktiv strong::before { content: "▸ "; }
.rt-wahlzeile { width: 100%; display: block; text-align: left; padding: 8px 12px; border: 1px solid var(--rt-rand); border-radius: 10px; background: var(--rt-soft); color: inherit; font: inherit; font-size: 15px; line-height: 1.4; cursor: pointer; }
.rt-wahlzeile:hover { background: rgba(73, 129, 0, 0.12); }
.rt-orteliste, .rt-frliste { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rt-ort, .rt-fr { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; padding: 10px 12px; border: 1px solid var(--rt-rand); border-radius: 10px; background: var(--rt-soft); }
.rt-ort > div:first-child { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.rt-ortform { margin: 12px 0 0; padding: 12px; border: 2px solid var(--rt-rand); border-radius: 12px; }

/* Ergebnis */
.rt-ergebnis h3:focus { outline: none; }
.rt-routen { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; align-items: start; margin: 8px 0 12px; }
.rt-route { margin: 0; border-width: 2px; }
.rt-route.rt-gewaehlt { border-color: var(--rt-linie); border-style: solid; box-shadow: 0 0 0 2px var(--rt-linie); }
.rt-route-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.rt-route-kopf h4 { margin: 0; font-size: 18px; }
.rt-wahl[aria-pressed="true"] { border: 2px solid var(--rt-linie); font-weight: 700; }
.rt-zahlen { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.rt-zahlen li { display: flex; flex-direction: column; padding: 6px 10px; background: var(--rt-soft); border-radius: 8px; }
.rt-zahlen strong { font-size: 17px; }
.rt-liste { margin: 4px 0; padding-left: 20px; line-height: 1.45; }
.rt-route .rt-liste, .rt-ausg { list-style: none; padding-left: 0; }
.rt-route .rt-liste li, .rt-ausg li { margin: 6px 0; padding-left: 26px; position: relative; }
.rt-wz, .rt-az { position: absolute; left: 0; top: 0; width: 22px; text-align: center; font-weight: 700; }
.rt-ausg li { padding-left: 24px; }
.rt-ausg li > span:first-child { position: absolute; left: 0; width: 20px; text-align: center; }
.rt-bew { margin-top: 12px; border-top: 1px solid var(--rt-rand); padding-top: 8px; }
.rt-sterne { display: flex; gap: 4px; }
.rt-stern { width: 48px; font-size: 28px; line-height: 1; border: 2px solid var(--rt-rand); border-radius: 10px; background: var(--rt-karte); color: var(--rt-text); cursor: pointer; padding: 0; }
.rt-stern[aria-checked="true"] { border-color: var(--rt-linie); box-shadow: inset 0 0 0 1px var(--rt-linie); }
.rt-kartenbox { margin: 8px 0 12px; }
.rt-map { height: 380px; border-radius: 12px; border: 1px solid var(--rt-rand); background: #e8ece6; overflow: hidden; z-index: 0; }
@media (max-width: 600px) { .rt-map { height: 300px; } }
.rt-keinekarte { padding: 14px; border: 2px dashed var(--rt-rand); border-radius: 12px; }
.rt .leaflet-bar a, .rt .leaflet-bar a:hover { width: 44px; height: 44px; line-height: 44px; font-size: 22px; }
html.dark .rt .leaflet-bar a { color: #1f2a22; }
html.dark .rt .leaflet-control-attribution a { color: #0b4f9e; }
.rt-mkwrap { background: none; border: none; display: flex; align-items: center; justify-content: center; }
.rt-mkwrap:focus-visible { outline: 3px solid #1a5fb4; border-radius: 12px; }
.rt-pin { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 8px; border: 3px solid #fff; border-radius: 17px; font-weight: 700; font-size: 14px; color: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.6); white-space: nowrap; }
.rt-pin-start { background: #1b5e20; } .rt-pin-ziel { background: #7a1212; border-style: double; }
.rt-pin-warn { background: #f2c200; color: #3a2d00; border-color: #3a2d00; font-size: 17px; }
.rt-pin-auf { background: #37474f; }

/* Höhenprofil */
.rt-svg { display: block; max-width: 100%; height: auto; }
.rt-flaeche { fill: rgba(11, 79, 158, 0.18); }
html.dark .rt-flaeche { fill: rgba(138, 180, 255, 0.22); }
.rt-linie { fill: none; stroke: var(--rt-linie); stroke-width: 3; stroke-linejoin: round; }
.rt-gitter { stroke: var(--rt-rand); stroke-width: 1; stroke-dasharray: 3 4; }
.rt-achse { fill: var(--rt-text); font-size: 12px; font-family: inherit; }
.rt-schraeg { stroke: var(--rt-warn-rand); stroke-width: 2; }
.rt-band { cursor: pointer; }
.rt-band rect { fill: transparent; stroke: transparent; }
.rt-band:hover rect { fill: rgba(73, 129, 0, 0.14); }
.rt-band-warn rect { stroke: var(--rt-warn-rand); stroke-width: 1; stroke-dasharray: 4 3; }
.rt-band-an rect { stroke: var(--rt-linie); stroke-width: 3; stroke-dasharray: none; fill: rgba(11, 79, 158, 0.12); }
.rt-bandtext { fill: var(--rt-text); font-size: 13px; font-weight: 700; }
.rt-detail { margin: 8px 0; padding: 10px 12px; border: 1px solid var(--rt-rand); border-radius: 10px; background: var(--rt-soft); }
.rt-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 6px 0 0; }
.rt-dl dt { font-weight: 700; } .rt-dl dd { margin: 0; }
.rt-tabellenbox { overflow-x: auto; margin: 10px 0; }
.rt-tab { width: 100%; border-collapse: collapse; font-size: 14px; }
.rt-tab caption { text-align: left; font-weight: 700; padding: 4px 0 8px; }
.rt-tab th, .rt-tab td { text-align: left; vertical-align: top; padding: 6px 8px 6px 0; border-top: 1px solid var(--rt-rand); }
.rt-tab thead th { border-top: 0; }
.rt-zeile-an th, .rt-zeile-an td { background: var(--rt-soft); }
.rt-abbtn { padding: 0 12px; border: 2px solid var(--rt-rand); border-radius: 10px; background: var(--rt-karte); color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.rt-abbtn[aria-pressed="true"] { border-color: var(--rt-linie); }
.rt-abbtn[aria-pressed="true"]::before { content: "✓ "; }
@media (max-width: 700px) {
  .rt-tab, .rt-tab tbody, .rt-tab tr, .rt-tab th, .rt-tab td { display: block; }
  .rt-tab thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rt-tab tr { margin: 8px 0; padding: 6px 0; border-top: 2px solid var(--rt-rand); }
  .rt-tab th, .rt-tab td { border-top: 0; padding: 3px 0; }
  .rt-tab td::before { content: attr(data-l) ": "; font-weight: 700; }
}

/* Admin */
.rt-block { border-top: 1px solid var(--rt-rand); padding-top: 8px; margin-top: 12px; }
.rt-block:first-of-type { border-top: 0; margin-top: 0; }
.rt-grenzen { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 12px; margin: 8px 0; }
.rt .rt-grenzen label { margin: 4px 0; }
.rt-tab-gen th label.rt-opt { font-weight: 700 !important; }
.rt progress { width: 100%; height: 14px; }
.rt-fuss { margin-top: 8px; padding: 0 4px; font-size: 14px; color: var(--rt-muted); }
.rt-fuss h3 { font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .rt * { transition: none !important; animation: none !important; } }

/* Öffis (A-030, Stufe 1) – Entwurf bau/A-oeffi-entwurf Spalte 1–3 */
.rt-sym { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 1.6em; height: 1.6em; border-radius: 6px; background: #3f7306; color: #ffd84a; vertical-align: -0.45em; margin-right: 0.35em; }
.rt-sym svg { width: 1.1em; height: 1.1em; display: block; }
.rt-oe-sw { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; margin: 14px 0 0; padding: 6px 12px; border: 2px solid transparent; border-radius: 12px; background: rgba(73, 129, 0, 0.12); color: var(--rt-text); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; text-align: left; }
html.dark .rt-oe-sw { background: rgba(143, 214, 148, 0.14); }
.rt-oe-sw:hover { border-color: var(--primary-color, #498100); }
.rt-oe-sw-bahn { position: relative; flex: none; width: 56px; height: 32px; border-radius: 16px; background: #6b7280; border: 2px solid #4b5563; transition: background .15s; }
.rt-oe-sw-bahn > span { position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); transition: left .15s; }
.rt-oe-sw[aria-checked="true"] .rt-oe-sw-bahn { background: #3f7306; border-color: #2f5d05; }
.rt-oe-sw[aria-checked="true"] .rt-oe-sw-bahn > span { left: 26px; }
html.dark .rt-oe-sw[aria-checked="true"] .rt-oe-sw-bahn { background: #5c9d0a; border-color: #a9d46a; }
.rt-oe-zeitfelder { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; margin-top: 4px; }
.rt-oe-dshinweis:empty { display: none; }
.rt-oe-wege { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 12px; align-items: start; }
.rt-oe-weg { margin: 0; border-width: 2px; cursor: pointer; padding: 10px 14px 12px; }
.rt-oe-weg:hover { border-color: var(--primary-color, #498100); }
.rt-oe-weg.rt-gewaehlt { border-color: var(--primary-color, #498100); box-shadow: 0 0 0 2px var(--primary-color, #498100); }
.rt h4.rt-oe-wkopf { margin: 0; font-size: 18px; }
.rt-oe-wknopf { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; width: 100%; min-height: 44px; align-items: center; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.rt-oe-kurz { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 2px; color: var(--rt-muted); font-size: 15px; margin: 4px 0; }
.rt-oe-pfeil { padding: 0 3px; }
.rt-oe-linie { display: inline-block; padding: 1px 8px; border-radius: 6px; font-weight: 700; font-size: 15px; line-height: 1.5; color: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); max-width: 100%; overflow-wrap: anywhere; }
.rt-oe-zeile { color: var(--rt-muted); font-size: 15px; margin: 4px 0; }
.rt-oe-zeile strong { color: var(--rt-text); }
.rt-oe-auf { display: flex; align-items: center; gap: 2px; margin: 8px 0 0; font-weight: 700; color: #35600a; }
html.dark .rt-oe-auf { color: #a9d46a; }
.rt-oe-auf-gest { color: var(--rt-fehler-text); }
html.dark .rt-oe-auf-gest { color: var(--rt-fehler-text); }
.rt-oe-warn, .rt-oe-ersatz { margin: 8px 0 0; }
.rt-oe-ansage:empty { display: block; border: 0; padding: 0; margin: 0; min-height: 0; }
.rt-oe-umg { margin: 0; padding-left: 20px; }
.rt-oe-hinweise { padding-left: 18px; }
.rt-oe-detail { border-width: 2px; border-color: var(--primary-color, #498100); }
.rt-oe-detail h4 { margin-top: 0; font-size: 19px; color: #35600a; }
html.dark .rt-oe-detail h4 { color: #a9d46a; }
.rt-oe-detail h4:focus { outline: none; }
.rt-oe-detail h4:focus-visible { outline: 3px solid var(--rt-fokus); outline-offset: 2px; }
.rt-oe-abs { list-style: none; margin: 8px 0; padding: 0; }
.rt-oe-ab { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--rt-rand); }
.rt-oe-ab:first-child { border-top: 0; }
.rt-oe-zeit { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.rt-oe-zeit strong { font-size: 16px; }
.rt-oe-txt { min-width: 0; overflow-wrap: anywhere; }
.rt-oe-txt p { margin: 0 0 4px; }
.rt-oe-anl, .rt-oe-klein { list-style: none; margin: 4px 0 0; padding: 0; font-size: 14px; }
.rt-oe-anl li { display: flex; align-items: flex-start; gap: 2px; margin: 4px 0; line-height: 1.4; }
.rt-oe-anl .rt-sym { margin-top: 1px; }
.rt-oe-st-gestoert .rt-oe-stt { color: var(--rt-fehler-text); font-weight: 700; }
.rt-oe-klein li { color: var(--rt-muted); margin: 2px 0; }
.rt-oe-pin { font-size: 13px; }
@media (max-width: 420px) { .rt-oe-ab { grid-template-columns: 3.9em minmax(0, 1fr); gap: 8px; } }

/* 🏠 Zuhause und Fahrt-Erinnerung (A-032) */
.rt-fahrt h3:focus { outline: none; }
.rt-fahrt h3:focus-visible { outline: 3px solid var(--rt-fokus); outline-offset: 2px; }
.rt-fahrt-zuhause { margin: 8px 0; overflow-wrap: anywhere; }
.rt-fahrt-zust { align-items: flex-start !important; margin-top: 12px !important; }
.rt-fahrt-zust input { margin-top: 2px; }
.rt-fahrt-form .rt-knoepfe { margin-top: 4px; }

/* ⭐ Meine Wege (A-044): Ampel immer mit Text, Farbe nur zusätzlich (linker Rand + Zeichen) */
.rt-mw-name { margin: 0 0 2px; font-size: 17px; overflow-wrap: anywhere; }
.rt-mw .rt-klein { margin: 2px 0; }
.rt-mw-ampel { margin: 8px 0 4px; padding: 6px 10px; border-left: 5px solid var(--rt-rand); border-radius: 6px; background: var(--rt-soft); line-height: 1.4; }
.rt-mw-ok { border-left-color: #2e7d32; }
.rt-mw-stoer { border-left-color: var(--rt-fehler-rand); background: var(--rt-fehler-bg); color: var(--rt-fehler-text); }
.rt-mw-unb { border-left-color: var(--rt-warn-rand); background: var(--rt-warn-bg); color: var(--rt-warn-text); }
.rt-mw-aus { border-left-style: dashed; }
html.dark .rt-mw-ok { border-left-color: #7fd18a; }
.rt-mw-probleme { margin: 4px 0 6px; padding-left: 22px; font-size: 15px; }
.rt-mw .rt-knoepfe { align-self: flex-start; }
.rt-mw-merken { margin: 12px 0 8px; }
.rt-mw-dialog { max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; }
.rt-mw-form label[for] { display: block; font-weight: 600; margin: 10px 0 4px; }
.rt-mw-form .rt-eingabe { width: 100%; box-sizing: border-box; }
.rt-mw-zeit { max-width: 10em; }
.rt-mw-tage { margin: 12px 0 4px; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5em, 1fr)); gap: 0 12px; }
.rt-mw-tage legend { font-weight: 600; padding: 0; margin-bottom: 2px; }
.rt-mw-form .app-confirm-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.rt-mw-overlay .rt-mw-dialog button:focus-visible, .rt-mw-overlay .rt-mw-dialog input:focus-visible { outline: 3px solid var(--rt-fokus); outline-offset: 2px; }

/* A-060 Zwischenstopps: Eingabe (grüne Linie links wie im Entwurf), Knöpfe 44 px, Übersicht, Teilstrecken */
.rt-stopp { border-left: 4px solid var(--primary-color, #498100); padding: 4px 0 6px 12px; margin: 10px 0 0 6px; }
.rt-stopp-kopf { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.rt-stopp-kopf > .rt-feld { flex: 1 1 220px; min-width: 0; }
.rt-stopp-knoepfe { display: flex; gap: 6px; margin: 0 0 6px; }
@media (min-width: 560px) { .rt-stopp-knoepfe { margin-top: 34px; } }
.rt-sk { min-width: 44px; width: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.rt-sk[disabled] { opacity: 0.45; cursor: not-allowed; }
.rt-aufenthalt { margin-top: 6px; }
.rt-aufenthalt legend { font-weight: 600; font-size: 15px; }
.rt-aufenthalt-eigen label { margin-top: 6px; }
.rt-zahl-einheit { display: inline-flex; align-items: center; gap: 8px; }
.rt .rt-zahl-einheit input[type="number"] { width: 7em; }
.rt-stopp-neu [aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.rt-stopp-hinweis { margin-top: 10px; }
.rt-plan { margin: 10px 0 12px; }
.rt-plan h4 { margin-top: 0; }
.rt-plan-liste { list-style: none; margin: 0; padding: 0; }
.rt-plan-liste li { padding: 6px 0; border-bottom: 1px solid var(--rt-rand); line-height: 1.4; }
.rt-plan-liste li:last-child { border-bottom: 0; }
.rt-plan-zeit { display: inline-block; min-width: 5.5em; font-weight: 700; font-variant-numeric: tabular-nums; }
.rt-tag { font-weight: 700; color: var(--rt-warn-text); }
.rt-teile { list-style: none; margin: 0 0 12px; padding: 0; }
.rt-teile > li { margin: 0 0 10px; }
.rt-teil h5 { margin-top: 0; }
.rt-teil-stoerung { margin: 6px 0; }
.rt-teil-laeuft, .rt-teil-wartet, .rt-teil-fehler { cursor: default; }
.rt-oe-fortschritt { font-weight: 700; min-height: 1.3em; }
.rt-ok { background: #e8f5e1; color: #1d4d06; border-color: #3f7306; }
html.dark .rt-ok { background: #1c3312; color: #cfeebd; border-color: #8fd694; }
.rt-pin-stopp { background: #3f7306; color: #ffd84a; }

/* A-067b S8: Quellen-Links (z. B. openrouteservice.org) mit ausreichend großer Tippfläche (mind. 44 Punkt hoch) */
.rt-quellen a, .uw-quelle a { display: inline-flex; align-items: center; min-height: 44px; }

/* A-135: Route nach Hause, Auswahl der Verbindung */
.btn.rt-heim { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 19px; margin: 0 0 16px; white-space: normal; }
.rt-haus { width: 24px; height: 24px; flex: none; }
.rt-wegwahl { display: flex !important; gap: 12px; align-items: flex-start; margin: 0 0 10px !important; cursor: pointer; font-weight: 400 !important; }
.rt-wegwahl input { width: 24px; height: 24px; flex: none; margin: 2px 0 0; accent-color: #3f7306; }
.rt-wegwahl > span { min-width: 0; overflow-wrap: anywhere; }
.rt-wegwahl:has(input:checked) { outline: 3px solid #3f7306; }
.rt-wegwahl-z { display: block; }
.appt-aufzug { display: block; font-weight: 600; margin: 6px 0 2px; }
.appt-zusatz:has(> [data-appt-aufzug]:only-child:empty) { display: none; }
.rt-wunsch { margin: 10px 0; }

/* A-139: neue Oberfläche – Favoriten-Kacheln, Von/Nach-Karte, Chips, große Ergebniskarten, Wege mit Einstellungen darunter */
.rt .rt-wohin { font-size: 24px; margin: 0 0 12px; }
.rt-fav { margin: 0 0 8px; border: 1px solid var(--rt-rand); border-radius: 14px; background: var(--rt-karte); padding: 0 14px; }
.rt-fav > summary { list-style: none; min-height: 56px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; font-size: 18px; }
.rt-fav > summary::-webkit-details-marker { display: none; }
.rt-fav-pf { margin-left: auto; font-size: 20px; }
.rt-fav[open] .rt-fav-pf { transform: rotate(180deg); }
.rt-fav-msg { margin: 0 0 12px; }
.rt-kacheln { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)); gap: 10px; }
.rt-kacheln li { display: flex; }
.rt-kachel { flex: 1; min-height: 104px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 12px; border: 2px solid var(--rt-rand); border-radius: 14px; background: var(--rt-soft); color: inherit; font: inherit; font-size: 18px; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.rt-kachel:hover { border-color: var(--primary-color, #498100); }
.rt-kachel .rt-sym, .rt-fav > summary .rt-sym, .rt-vn-feld > .rt-sym, .rt-mw-kopfknopf .rt-sym { width: 36px; height: 36px; flex: none; margin: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: #3f7306; color: #ffd84a; }
.rt-kachel .rt-sym svg, .rt-fav > summary .rt-sym svg, .rt-vn-feld > .rt-sym svg, .rt-mw-kopfknopf .rt-sym svg { width: 24px; height: 24px; }
.rt .rt-form { margin: 0 0 16px; }
.rt-vonnach { position: relative; padding: 12px 14px; margin: 0 0 12px; }
.rt-vn-feld { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; }
.rt-vn-feld > .rt-sym { margin-top: 36px; }
.rt-vn-feld .rt-feld { margin: 0; }
.rt .rt-vn-feld label { margin: 0 0 4px; }
.rt .rt-vn-feld .btn.rt-feld-wahl { min-height: 44px; padding: 0 4px; border: 0; background: none; color: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; box-shadow: none; }
.rt-vn-feld .rt-feldmsg:empty { display: none; }
/* R6 (A-148): Tausch-Knopf mittig zwischen den beiden Feldern */
.rt .btn.rt-tausch { display: flex; width: 48px; min-width: 48px; height: 48px; padding: 0; margin: 8px auto; align-items: center; justify-content: center; position: relative; }
.rt-tausch .rt-sym { margin: 0; background: none; color: #ffd84a; }
.rt-tausch .rt-sym svg { width: 26px; height: 26px; }
.rt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; }
.rt .btn.rt-chip, .rt .btn.rt-umriss { min-height: 46px; padding: 0 14px; border-radius: 23px; border: 2px solid var(--primary-color, #498100); background: var(--rt-karte); color: var(--rt-text); font-weight: 700; box-shadow: none; }
html.dark .rt .btn.rt-chip, html.dark .rt .btn.rt-umriss { border-color: #8fd694; }
.rt .btn.rt-chip[aria-expanded="true"] { background: var(--rt-mehr-kopf); color: var(--rt-mehr-kopf-text); }
.rt-form > .rt-msg[data-m="stopps"]:empty { display: none; }
.rt-chip-panel { border: 2px solid var(--rt-mehr-rand); border-radius: 14px; background: var(--rt-karte); padding: 4px 14px 12px; margin: 8px 0; }
.rt .btn.rt-suchen { min-height: 58px; font-size: 19px; }
.rt-vonnach .rt-stopp { margin: 10px 0; }
.rt-oe-neu { cursor: default; padding: 14px 16px; }
.rt h4.rt-oe-gross { margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; font-size: 26px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.rt-oe-dauer { font-size: 19px; }
.rt-oe-linien { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 10px 0 !important; font-size: 17px; font-weight: 700; }
.rt-oe-linien .rt-oe-linie { font-size: 17px; padding: 4px 12px; border-radius: 8px; }
.rt-oe-linien .rt-oe-pfeil { font-size: 20px; }
.rt-oe-neu .rt-oe-auf { font-size: 17px; gap: 8px; align-items: baseline; }
.rt .rt-oe-auf-unb { color: #7a4a00; } html.dark .rt .rt-oe-auf-unb { color: #ffe08a; }
.rt-oe-tun { margin-top: 12px; }
.rt-oe .rt-oe-aendern { float: right; margin: -6px 0 6px 12px; }
.rt-oe-wege { clear: both; }
.rt-oe-schritt { justify-content: center; margin: 4px 0 12px; }
.rt .rt-mw-neuw { display: block; }
.rt-mw-neuw h4 { margin: 0; }
.rt-mw-kopfknopf { width: 100%; min-height: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border: 0; background: none; color: inherit; font: inherit; font-size: 18px; font-weight: 700; text-align: left; padding: 0; cursor: pointer; overflow-wrap: anywhere; }
.rt-mw-pf { margin-left: auto; font-size: 20px; }
.rt-tagwahl { position: relative; display: inline-flex !important; margin: 0 !important; }
.rt-tagwahl input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.rt-tagwahl span { min-width: 46px; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--primary-color, #498100); border-radius: 23px; font-weight: 700; }
html.dark .rt-tagwahl span { border-color: #8fd694; }
.rt-tagwahl input:checked + span { background: #3f7306; color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.rt-tagwahl input:focus-visible + span { outline: 3px solid var(--rt-fokus); outline-offset: 2px; }
.rt-block-klein { display: block; }
.rt-mw-rest { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rt-rand); }
.rt-mw-neu { background: var(--rt-karte); }
.rt label.rt-opt { display: flex; }
.rt [data-m="heim"]:empty, .rt-fav-msg:empty, .rt-form > .rt-msg:empty, .rt-mw-karte .rt-msg:empty { display: none; }
.rt .btn.rt-heim { margin-bottom: 12px; }
.rt-oe-weg:has([data-wfplatz] form) { grid-column: 1 / -1; }
html.dark .rt .btn.rt-chip.rt-chip, html.dark .rt .btn.rt-umriss.rt-umriss { border-color: #8fd694 !important; }
.rt-oe > h3 { margin-right: 110px; }
.rt-oe .rt-oe-aendern { margin-top: -38px; }
.rt-oe .rt-oe-linie { line-height: 1.4; }
@media (max-width: 430px) { .rt .btn.rt-chip { padding: 0 9px; font-size: 15px; } .rt-chips { gap: 6px; } }

/* A-140 Wetter in der Route */
.rt-wetter { display: flex; gap: 8px; align-items: flex-start; }
.rt-wetter .rt-sym { flex: none; }
/* A-140 N1: Wetter je Verbindung */
.rt-wetter-weg { display: flex; gap: 6px; align-items: flex-start; font-weight: 600; }
.rt-wetter-weg .rt-sym { flex: none; }

/* A-148 R5: Zustimmung als Fenster + deutliche Meldung, wenn nicht zugestimmt */
.rt-dialog { background: var(--rt-karte); color: var(--rt-text); border: 2px solid var(--rt-info-rand); border-radius: 14px; padding: 18px; width: min(540px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; }
.rt-dialog::backdrop { background: rgba(0, 0, 0, 0.55); }
.rt-dialog h2 { font-size: 20px; margin: 0 0 10px; }
.rt-dialog h2:focus { outline: none; }
.rt-dialog .rt-knoepfe { margin-top: 14px; }
.rt-zustfehler { background: var(--rt-fehler-bg); color: var(--rt-fehler-text); border: 3px solid var(--rt-fehler-rand); border-radius: 10px; padding: 12px 14px; margin: 10px 0; font-size: 16px; line-height: 1.45; }
.rt-zustfehler:focus { outline: 3px solid var(--rt-fokus); outline-offset: 2px; }
.rt-zustfehler p { margin: 0 0 10px; }
.rt-zf-symbol { font-size: 22px; vertical-align: -2px; }

/* A-148 R2: Einstellungen als eigener, deutlich abgegrenzter Bereich unter der Route */
.rt-einst-bereich { border: 2px solid var(--rt-mehr-rand); margin-top: 20px; }
.rt-einst-bereich > h3 { margin-bottom: 4px; }
.rt-einst-bereich .rt-mehr { margin-top: 8px; }
.rt-dialog { margin: auto; }
.rt-dialog h2:focus { outline: none; box-shadow: none; }
.rt-dialog h2:focus-visible { outline: 3px solid var(--rt-fokus); outline-offset: 3px; }   /* Codex gelb: Tastatur sieht den Fokus */
