/* Fahrtlage: Karte bzw. schematisches Lagebild einer einzelnen Fahrt.
   Farben aus der Markenschale (--lxs-*), keine eigene Palette. */

.fl { isolation: isolate; }
.fl-flaeche, .fl-google, .fl-zeichnung { position: absolute; inset: 0; }
.fl[data-karte="google"] .fl-flaeche { display: none; }
.fl[data-karte="liste"] .fl-google { display: none; }
/* Das Lagebild steht im Ersatzkasten der Schale - dessen Polster und
   Zeilenregeln gelten hier nicht. */
.fl .fl-flaeche.lxs-karte__ersatz { padding: 0; overflow: hidden; white-space: normal; font-size: inherit; max-height: none; }

.fl-flaeche {
  background:
    radial-gradient(120% 90% at 70% 10%, color-mix(in srgb, var(--lxs-akzent) 7%, transparent), transparent 60%),
    var(--lxs-grund);
}
.fl-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.fl-raster line { stroke: var(--lxs-rahmen); stroke-width: .18; opacity: .55; }
.fl-weg-schatten { fill: none; stroke: #000; stroke-opacity: .45; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.fl-weg { fill: none; stroke: var(--lxs-leise); stroke-width: .9; stroke-dasharray: .1 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.fl-weg-aktiv { fill: none; stroke: var(--lxs-akzent); stroke-width: 1.3;
  stroke-linecap: round; stroke-linejoin: round; }
.fl-punkt circle { stroke: var(--lxs-grund); }
.fl-punkt--start circle { fill: var(--lxs-akzent); }
.fl-punkt--ziel circle { fill: var(--lxs-text); }
.fl-punkt--stopp circle { fill: var(--lxs-leise); }
.fl-punkt text { font-family: var(--lx-schrift-text, system-ui, sans-serif); font-weight: 700; fill: var(--lxs-akzent-text); }
.fl-punkt--ziel text { fill: var(--lxs-grund); }

.fl-wagen__ring { fill: var(--lxs-grund); stroke: var(--lxs-akzent); }
.fl-wagen__kern { fill: var(--lxs-akzent); }
.fl-wagen__name { font-family: var(--lx-schrift-text, system-ui, sans-serif); font-weight: 600; fill: var(--lxs-text);
  paint-order: stroke; stroke: var(--lxs-grund); }
.fl-wagen__puls { fill: var(--lxs-akzent); opacity: .22; transform-box: fill-box; transform-origin: center;
  animation: fl-puls 2.4s ease-out infinite; }
.fl-wagen--veraltet .fl-wagen__kern { fill: var(--lxs-leise); }
.fl-wagen--veraltet .fl-wagen__ring { stroke: var(--lxs-leise); stroke-dasharray: 1.2 1; }
.fl-wagen--veraltet .fl-wagen__puls { display: none; }
@keyframes fl-puls { from { transform: scale(.5); opacity: .45; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fl-wagen__puls { animation: none; } }

/* Das Schild: Zustand der Position. Immer lesbar, nie nur Farbe. */
.fl-schild {
  position: absolute; z-index: 3;
  top: calc(12px + var(--lxs-sicher-oben, 0px)); left: 12px; right: auto;
  display: flex; align-items: center; gap: 8px;
  max-width: calc(100% - 24px);
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--lxs-grund) 88%, transparent);
  border: 1px solid var(--lxs-rahmen);
  color: var(--lxs-text);
  font-size: .82rem; line-height: 1.25;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.fl-schild[hidden] { display: none; }
.fl-schild__text { display: flex; flex-direction: column; }
.fl-schild__text strong { font-weight: 600; }
.fl-schild__text span { color: var(--lxs-leise); font-size: .78rem; }
.fl-schild__punkt { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; background: var(--lxs-leise); }
.fl-schild[data-art="gut"] .fl-schild__punkt { background: var(--lx-erfolg, #23A455);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--lx-erfolg, #23A455) 30%, transparent); }
.fl-schild[data-art="warn"] .fl-schild__punkt { background: var(--lx-warnung, #E0A800); }
.fl-schild[data-art="warn"] { border-color: color-mix(in srgb, var(--lx-warnung, #E0A800) 60%, var(--lxs-rahmen)); }

.fl-art {
  position: absolute; z-index: 2; left: 12px; bottom: 10px; margin: 0;
  max-width: calc(100% - 210px);
  font-size: .78rem; letter-spacing: .02em; color: var(--lxs-leise);
}

/* Ablaufleiter (Agentur, Fahrer) - Farbe UND Form tragen die Aussage */
.fl-leiter { list-style: none; margin: 12px 0 4px; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; max-width: none; }
.fl-leiter__schritt { display: flex; flex-direction: column; gap: 6px; min-width: 0; max-width: none; }
.fl-leiter__punkt { height: 5px; border-radius: 3px; background: var(--lxs-rahmen, #3a3a3a); }
.fl-leiter__name { font-size: .76rem; line-height: 1.2; color: var(--lxs-leise, #bbb); hyphens: manual; }
.fl-leiter__schritt[data-art="erledigt"] .fl-leiter__punkt { background: var(--lxs-akzent, #FDC300); opacity: .65; }
.fl-leiter__schritt[data-art="aktuell"] .fl-leiter__punkt { background: var(--lxs-akzent, #FDC300); }
.fl-leiter__schritt[data-art="aktuell"] .fl-leiter__name { color: var(--lxs-text, #fff); font-weight: 600; }

/* Strecke, Paarliste, Weitere Angaben - gemeinsam fuer Fahrgast, Agentur, Fahrer */
.fv-weg { list-style: none; margin: 0; padding: 0; position: relative; }
.fv-weg__punkt { position: relative; padding: 0 0 14px 26px; display: grid; }
.fv-weg__punkt::before { content: ""; position: absolute; left: 4px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--lxs-leise); box-sizing: border-box; }
.fv-weg__punkt::after { content: ""; position: absolute; left: 9px; top: 22px; bottom: 0; width: 2px;
  background: var(--lxs-rahmen); }
.fv-weg__punkt:last-child::after { display: none; }
.fv-weg__punkt--start::before { background: var(--lxs-akzent); }
.fv-weg__punkt--ziel::before { background: var(--lxs-text); border-radius: 3px; }
.fv-weg__punkt--stopp::before { width: 8px; height: 8px; left: 6px; top: 8px; }
.fv-weg__marke { font-size: .76rem; color: var(--lxs-leise); }
.fv-weg__adresse { font-size: 1rem; }
.fv-weg__zeit { font-size: .8rem; color: var(--lxs-leise); }

.fv-liste { display: grid; grid-template-columns: 8.5rem 1fr; gap: 6px 12px; margin: 0; }
.fv-liste dt { color: var(--lxs-leise); font-size: .9rem; }
.fv-liste dd { margin: 0; }

.fv-mehr { border-top: 1px solid var(--lxs-rahmen); padding: 4px 0 10px; }
.fv-mehr summary { min-height: 48px; display: flex; align-items: center; cursor: pointer;
  font-weight: 600; list-style: none; }
.fv-mehr summary::-webkit-details-marker { display: none; }
.fv-mehr summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; color: var(--lxs-leise); }
.fv-mehr[open] summary::after { content: "–"; }
.fv-mehr summary:focus-visible { outline: 3px solid var(--lxs-akzent); outline-offset: 2px; border-radius: 6px; }
.fv-mehr__hinweis, .fv-mehr__vorschau { color: var(--lxs-leise); font-size: .85rem; margin: 10px 0 0; }
.fv-mehr__vorschau { color: var(--lx-warnung, #E0A800); }


/* Fahrer: die Ziele als Reihe von Navigationsknoepfen unten auf der Karte.
   Das naechste Ziel ist hervorgehoben - ein Tippen startet die Navigation. */
.fl-zusatz { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; }
.fl-ziele.lxs-strecke { list-style: none; margin: 0; padding: 0 12px 12px; display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none; }
.fl-ziele::-webkit-scrollbar { display: none; }
.fl-ziele .lxs-strecke__punkt { flex: 0 0 auto; max-width: 78%; padding: 0; margin: 0; border: 0; background: none; }
.fl-ziele .lxs-strecke__punkt::before, .fl-ziele .lxs-strecke__punkt::after { display: none; }
.fl-ziele .lxs-strecke__nav { display: flex; flex-direction: column; justify-content: center; min-height: 52px;
  padding: 6px 16px; border-radius: 16px; text-decoration: none; color: var(--lxs-text);
  background: color-mix(in srgb, var(--lxs-grund) 90%, transparent); border: 1px solid var(--lxs-rahmen);
  box-shadow: 0 6px 18px rgba(0,0,0,.4); margin: 0; }
.fl-ziele .lxs-strecke__marke { font-size: .78rem; color: var(--lxs-leise); }
.fl-ziele .lxs-strecke__adresse { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-ziele [data-naechstes="ja"] .lxs-strecke__nav { background: var(--lxs-akzent); border-color: var(--lxs-akzent); color: var(--lxs-akzent-text); }
.fl-ziele [data-naechstes="ja"] .lxs-strecke__marke { color: var(--lxs-akzent-text); }
/* Die Adresse traegt sonst die Textfarbe der Flaeche - auf der Markenfarbe
   ergab das weiss auf gelb (1,6:1). Sie folgt hier der Akzentschrift. */
.fl-ziele [data-naechstes="ja"] .lxs-strecke__adresse { color: var(--lxs-akzent-text); }
.fl-ziele .lxs-strecke__nav:focus-visible { outline: 3px solid var(--lxs-text); outline-offset: 2px; }

/* Ohne Positionsschild (Fahrer) steht die Bildart oben - unten liegt der Navigationsknopf. */
.fl-schild[hidden] + .fl-art { top: calc(12px + var(--lxs-sicher-oben, 0px)); bottom: auto; max-width: calc(100% - 24px); }

.fl--mitzielen .fl-zeichnung { bottom: 72px; }
/* Der Knopf bleibt in seinem Platz: ohne diese Grenze lief eine lange Adresse
   ueber den Rand in den naechsten Knopf (Probe: Ueberschneidung bei 820 px,
   Abstand 1 px am Telefon). */
.fl-ziele .lxs-strecke__nav { max-width: 100%; box-sizing: border-box; overflow: hidden; }
.fl-ziele .lxs-strecke__adresse { display: block; max-width: 100%; }
