Files
Live_Navi/styles.css
T
2026-09-01 13:12:08 +02:00

2132 lines
53 KiB
CSS

/* ============================================================
ÖPNV NAVI — Design-Tokens
Thema: Bahnsteig nach Sonnenuntergang, Solari-Anzeigetafel
============================================================ */
:root {
--bg-void: #0C1116;
--panel: #171E26;
--panel-raised: #212A34;
--panel-overlay: #26303C;
--line: #2A323D;
--ink: #EDEFEC;
--ink-muted: #8E99A6;
--signal-amber: #F5A623;
--signal-amber-soft: rgba(245, 166, 35, 0.14);
--signal-green: #3DDC84;
--signal-red: #FF5D6C;
--signal-blue: #4FA8E8;
--font-display: 'IBM Plex Mono', 'SFMono-Regular', monospace;
--font-body: 'IBM Plex Sans', -apple-system, sans-serif;
--font-label: 'IBM Plex Sans Condensed', sans-serif;
--radius: 10px;
--radius-lg: 18px;
--header-height: 64px;
--shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.22);
--shadow-md: 0 10px 26px rgba(0, 0, 0, 0.32);
--shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
--shadow-glow-amber: 0 0 0 1px rgba(245, 166, 35, 0.25), 0 8px 24px rgba(245, 166, 35, 0.12);
}
* {
box-sizing: border-box;
}
html, body {
margin: 0;
padding: 0;
background: var(--bg-void);
background-image:
radial-gradient(ellipse 1000px 500px at 20% -8%, rgba(245, 166, 35, 0.05), transparent 60%),
radial-gradient(ellipse 800px 500px at 100% 0%, rgba(79, 168, 232, 0.04), transparent 55%);
background-attachment: fixed;
color: var(--ink);
font-family: var(--font-body);
min-height: 100vh;
/* Verhindert eine horizontale Scrollbar durch den Full-Bleed-Trick der
Live-Karte (100vw kann inkl. Scrollbar-Breite minimal über die
tatsächliche Fensterbreite hinausschießen). */
overflow-x: hidden;
}
button {
font-family: inherit;
cursor: pointer;
}
:focus-visible {
outline: 2px solid var(--signal-amber);
outline-offset: 2px;
}
/* Visuell versteckt, aber für Screenreader normal vorlesbar - Standardmuster
für z.B. die Klartext-Alternative zur Flip-Animation der Abfahrtstafel. */
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
/* "Zum Inhalt springen" - für Tastatur-/Screenreader-Nutzer, die sonst bei
jedem Seitenaufruf erst durch Header+Suche+Navigation tabben müssten, bevor
sie beim eigentlichen Inhalt sind. Unsichtbar, bis es per Tab fokussiert wird. */
.skip-link {
position: absolute;
top: -60px;
left: 12px;
z-index: 2000;
background: var(--signal-amber);
color: #17110a;
font-weight: 600;
padding: 10px 16px;
border-radius: 8px;
transition: top 0.15s ease;
}
.skip-link:focus {
top: 12px;
}
@media (prefers-reduced-motion: reduce) {
* {
animation-duration: 0.01ms !important;
transition-duration: 0.01ms !important;
}
}
/* ============================================================
Header & Suche
============================================================ */
.app-header {
height: var(--header-height);
display: flex;
align-items: center;
gap: 20px;
padding: 0 20px;
background: rgba(23, 30, 38, 0.85);
backdrop-filter: blur(14px) saturate(1.4);
-webkit-backdrop-filter: blur(14px) saturate(1.4);
border-bottom: 1px solid var(--line);
box-shadow: var(--shadow-sm), 0 1px 0 rgba(245, 166, 35, 0.15);
position: sticky;
top: 0;
z-index: 20;
}
.brand {
font-family: var(--font-display);
font-weight: 700;
font-size: 18px;
letter-spacing: 0.06em;
white-space: nowrap;
}
.brand__mark {
color: var(--ink);
}
.brand__mark--accent {
color: var(--signal-amber);
}
.search-box {
position: relative;
flex: 1;
max-width: 420px;
}
.search-box input {
width: 100%;
background: var(--panel-raised);
border: 1px solid var(--line);
color: var(--ink);
font-family: var(--font-body);
font-size: 15px;
padding: 10px 14px;
border-radius: var(--radius);
}
.search-box input::placeholder {
color: var(--ink-muted);
}
.search-results {
position: absolute;
top: calc(100% + 6px);
left: 0;
right: 0;
background: var(--panel-raised);
border: 1px solid var(--line);
border-radius: var(--radius);
list-style: none;
margin: 0;
padding: 4px;
max-height: 260px;
overflow-y: auto;
z-index: 30;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.search-result {
padding: 10px 12px;
border-radius: 6px;
font-size: 14px;
}
.search-result:hover,
.search-result:focus,
.search-result--active {
background: var(--panel);
outline: 2px solid var(--signal-amber);
outline-offset: -2px;
}
.search-result--empty {
color: var(--ink-muted);
cursor: default;
}
/* ============================================================
Favoriten-Leiste
============================================================ */
.favorites-bar {
padding: 12px 20px;
border-bottom: 1px solid var(--line);
display: flex;
align-items: center;
gap: 12px;
overflow-x: auto;
}
.favorite-chips {
display: flex;
gap: 8px;
}
.chip {
background: var(--panel);
border: 1px solid var(--line);
color: var(--ink);
border-radius: 999px;
padding: 6px 14px;
font-size: 13px;
white-space: nowrap;
}
.chip:hover {
border-color: var(--signal-amber);
}
.favorites-empty-hint {
color: var(--ink-muted);
font-size: 13px;
margin: 0;
}
/* Störungsbenachrichtigungen-Karte auf dem Favoriten-Tab - bewusst als
eigenständige, einladende Karte statt eines unauffälligen Text-Links,
da das eine der nützlichsten Funktionen der App ist. */
.notify-callout {
display: flex;
align-items: center;
gap: 14px;
background: rgba(245,166,35,.08);
border: 1px solid rgba(245,166,35,.35);
border-radius: var(--radius);
padding: 14px 16px;
margin-bottom: 18px;
}
.notify-callout__icon { font-size: 26px; flex-shrink: 0; }
.notify-callout__text { flex: 1; min-width: 0; }
.notify-callout__text strong { display: block; font-size: 14px; }
.notify-callout__text small { display: block; color: var(--ink-muted); font-size: 12px; margin-top: 2px; }
.notify-callout__btn {
flex-shrink: 0;
background: linear-gradient(155deg, #ffc158, var(--signal-amber) 60%);
color: #1a1206;
font-weight: 600;
border: 0;
border-radius: 999px;
padding: 10px 18px;
font-size: 13px;
}
.notify-callout__btn:hover { filter: brightness(1.08); }
.notify-callout__btn:disabled { cursor: default; }
.notify-callout--active {
background: rgba(61,220,132,.08);
border-color: rgba(61,220,132,.35);
}
.notify-callout--active .notify-callout__btn {
background: var(--signal-green);
color: #06301b;
}
.notify-callout--blocked {
background: rgba(255,93,108,.08);
border-color: rgba(255,93,108,.35);
}
.notify-callout--blocked .notify-callout__btn {
background: var(--panel-raised);
color: var(--ink-muted);
}
/* ============================================================
Tabs
============================================================ */
.tab-nav {
padding: 0 20px;
border-bottom: 1px solid var(--line);
}
.tab-nav__list {
display: flex;
gap: 4px;
}
.tab-button {
background: none;
border: none;
color: var(--ink-muted);
font-family: var(--font-label);
font-size: 14px;
font-weight: 600;
letter-spacing: 0.04em;
text-transform: uppercase;
padding: 14px 16px;
border-bottom: 2px solid transparent;
}
.tab-button.is-active {
color: var(--signal-amber);
border-bottom-color: var(--signal-amber);
box-shadow: 0 2px 12px -2px rgba(245, 166, 35, 0.6);
}
.app-main {
max-width: 720px;
margin: 0 auto;
padding: 20px;
}
/* ============================================================
Abfahrtstafel (Signature-Element)
============================================================ */
.board-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 16px;
}
.board-station-name {
font-size: 18px;
font-weight: 600;
margin: 0;
}
.favorite-toggle {
background: var(--panel);
border: 1px solid var(--line);
color: var(--ink);
border-radius: var(--radius);
padding: 8px 14px;
font-size: 13px;
}
.favorite-toggle.is-active {
color: var(--signal-amber);
border-color: var(--signal-amber);
}
@keyframes favorite-pop {
0% { transform: scale(1); }
40% { transform: scale(1.25); }
100% { transform: scale(1); }
}
.favorite-toggle.is-active {
animation: favorite-pop .3s ease;
}
.board-empty-state,
.board-empty,
.board-error {
color: var(--ink-muted);
padding: 32px 16px;
text-align: center;
background: var(--panel);
border-radius: var(--radius);
border: 1px solid var(--line);
}
.board-error {
color: var(--signal-red);
}
.board-loading {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
}
.board-error {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
}
.board-error .text-button {
border: 1px solid var(--signal-red);
border-radius: 999px;
padding: 6px 16px;
color: var(--signal-red);
}
.board-error .text-button:hover { background: rgba(255,93,108,.1); }
.departure-board {
display: flex;
flex-direction: column;
gap: 6px;
}
.flap-row {
display: grid;
grid-template-columns: 82px minmax(0, 1fr) 82px 112px;
gap: 18px;
align-items: center;
background: linear-gradient(180deg, var(--panel-overlay), var(--panel) 60%);
border: 1px solid var(--line);
border-left: 4px solid var(--line-color, var(--line));
border-radius: var(--radius);
padding: 14px 16px 14px 13px;
font-family: var(--font-display);
box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.03);
animation: flap-row-in .25s ease both;
animation-delay: calc(var(--row-index, 0) * 25ms);
transition: box-shadow .15s ease, transform .15s ease;
}
.flap-row--clickable:hover,
.flap-row--clickable:focus-visible {
box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.05);
transform: translateY(-1px);
}
@keyframes flap-row-in {
from { opacity: 0; transform: translateY(4px); }
to { opacity: 1; transform: translateY(0); }
}
/* Gleicher dezenter Eintritts-Effekt für andere Karten-Listen (Favoriten,
Routenergebnisse) - per nth-child gestaffelt, da diese keine --row-index
Variable aus JS mitbekommen. */
.favorite-card,
.journey-card {
animation: flap-row-in .25s ease both;
}
.favorite-cards > :nth-child(1), .journey-results > :nth-child(1) { animation-delay: 0ms; }
.favorite-cards > :nth-child(2), .journey-results > :nth-child(2) { animation-delay: 40ms; }
.favorite-cards > :nth-child(3), .journey-results > :nth-child(3) { animation-delay: 80ms; }
.favorite-cards > :nth-child(4), .journey-results > :nth-child(4) { animation-delay: 120ms; }
.favorite-cards > :nth-child(5), .journey-results > :nth-child(5) { animation-delay: 160ms; }
.flap-row--delayed .flap-cell--time {
color: var(--signal-red);
}
.flap-row--cancelled .flap-field--line,
.flap-row--cancelled .flap-field--direction,
.flap-row--cancelled .flap-field--platform {
opacity: 0.5;
}
.flap-field {
min-width: 0;
display: flex;
flex-direction: column;
gap: 5px;
}
.flap-label {
display: block;
color: var(--ink-muted);
font-family: var(--font-label);
font-size: 10px;
font-weight: 600;
letter-spacing: 0.09em;
text-transform: uppercase;
line-height: 1;
}
.flap-cell {
min-width: 0;
overflow: hidden;
white-space: nowrap;
}
.flap-cell--line {
display: block;
max-width: 100%;
min-width: 38px;
font-weight: 700;
color: var(--line-text-color, var(--signal-amber));
background: var(--line-color, transparent);
padding: 5px 9px;
border-radius: 4px;
font-size: 16px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
/* Lange Zugbezeichnungen (z.B. "ICE 940") sprengen die feste Spaltenbreite
nicht mehr - stattdessen läuft der Text von selbst wie ein Ticker durch
(siehe .flap-cell--line--scrollable unten), kein manuelles Scrollen nötig. */
overflow: hidden;
}
/* Kein Ausblende-Verlauf mehr an den Rändern - der hat genau den Teil des
Textes verschluckt, den man eigentlich lesen wollte (das Ende des Namens),
sobald der Ticker dort ankam. Die Box schneidet über overflow:hidden
trotzdem sauber ab, ganz ohne Fade. */
/* Der eigentliche Ticker-Effekt: läuft sofort los (keine Wartezeit am
Anfang), hält kurz am Ende an - genau dort, wo der abgeschnittene Teil des
Namens sichtbar wird und man ihn lesen will - und schiebt sich nahtlos
zurück in die nächste Runde. Distanz/Geschwindigkeit kommen als
CSS-Variablen aus app.js, abhängig davon wie weit der Text übersteht. */
.flap-cell--line--scrollable .flap-cell__visual {
display: inline-block;
animation: flap-line-marquee var(--marquee-duration, 4s) ease-in-out infinite;
}
@keyframes flap-line-marquee {
0% { transform: translateX(0); }
35% { transform: translateX(var(--marquee-distance, 0px)); }
70% { transform: translateX(var(--marquee-distance, 0px)); }
100% { transform: translateX(0); }
}
.flap-cell--direction {
font-family: var(--font-body);
color: var(--ink);
font-size: 15px;
font-weight: 600;
text-overflow: ellipsis;
overflow: hidden;
}
.flap-cell--platform {
color: var(--ink);
font-size: 14px;
font-weight: 600;
}
.flap-cell--time {
color: var(--signal-green);
font-weight: 700;
font-size: 17px;
text-align: right;
}
.flap-cell--time-cancelled {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 2px;
white-space: normal;
}
.cancelled-flag {
color: var(--signal-red);
font-weight: 700;
font-size: 15px;
letter-spacing: 0.02em;
}
.cancelled-original {
color: var(--signal-red);
font-size: 11px;
opacity: 0.85;
text-decoration: line-through;
font-family: var(--font-display);
}
/* Gleiswechsel-Hinweis */
.flap-cell--platform-changed {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 2px;
white-space: normal;
}
.platform-changed-flag {
display: inline-block;
background: var(--signal-red);
color: #fff;
font-weight: 700;
font-size: 12px;
letter-spacing: 0.02em;
padding: 3px 7px;
border-radius: 4px;
width: fit-content;
animation: platform-changed-pulse 1s ease-out 2;
}
.platform-changed-original {
color: var(--signal-red);
font-size: 10px;
opacity: 0.85;
text-decoration: line-through;
font-family: var(--font-display);
}
@keyframes platform-changed-pulse {
0%, 100% { box-shadow: 0 0 0 0 rgba(255, 93, 108, 0.55); }
50% { box-shadow: 0 0 0 6px rgba(255, 93, 108, 0); }
}
.flap-field--line {
align-items: flex-start;
padding-right: 18px;
border-right: 1px solid var(--line);
}
.flap-field--direction {
padding-left: 2px;
}
.flap-field--time {
align-items: flex-end;
padding-left: 14px;
border-left: 1px solid var(--line);
}
.flap-char {
display: inline-block;
white-space: pre;
}
.flap-char--flipping {
transform: translateY(-1px);
}
/* ============================================================
Live-Karte
============================================================ */
/* Mobile-First-Basis: sinnvoller Startwert für kleine Displays, bevor
livemap.js die Höhe zur Laufzeit anhand des tatsächlich verfügbaren
Platzes exakt nachjustiert (siehe resizeToViewport() in livemap.js).
dvh (dynamische Viewport-Höhe) berücksichtigt ein-/ausblendende mobile
Adressleisten korrekt; vh davor dient als Fallback für ältere Browser.
Die Karte selbst durchbricht bewusst die Innenabstände/Maximalbreite von
.app-main ("Full-Bleed"-Technik: left:50% + negativer Margin von -50vw
zieht sie auf volle Viewport-Breite) - Bedienelemente (map-controls,
Isolations-Banner) bleiben normal eingerückt, nur die Kartenfläche selbst
nutzt den kompletten Displayplatz. Funktioniert identisch auf jeder
Bildschirmgröße, ohne pro Breakpoint unterschiedliche Werte nachpflegen zu
müssen. */
.live-map {
height: min(70vh, 560px);
height: min(70dvh, 560px);
min-height: 320px;
overflow: hidden;
border: 1px solid var(--line);
border-left: 0;
border-right: 0;
position: relative;
left: 50%;
width: 100vw;
margin-left: -50vw;
box-shadow: inset 0 12px 24px -12px rgba(0,0,0,.6), inset 0 -12px 24px -12px rgba(0,0,0,.6);
}
.vehicle-marker span {
display: inline-flex;
align-items: center;
justify-content: center;
background: var(--signal-amber);
color: var(--bg-void);
font-family: var(--font-display);
font-weight: 700;
font-size: 10px;
padding: 2px 6px;
border-radius: 4px;
white-space: nowrap;
box-shadow: 0 0 0 2px var(--bg-void);
}
/* ============================================================
Routenplaner
============================================================ */
.journey-form {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 20px;
flex-wrap: wrap;
}
.journey-form .search-box {
max-width: none;
flex: 1;
min-width: 160px;
}
.journey-form__arrow {
color: var(--ink-muted);
font-size: 18px;
}
.journey-submit {
background: linear-gradient(155deg, #ffc158, var(--signal-amber) 60%);
color: #1a1206;
border: none;
border-radius: var(--radius);
padding: 10px 18px;
font-weight: 600;
font-size: 14px;
box-shadow: var(--shadow-glow-amber);
}
.journey-submit:hover { filter: brightness(1.05); }
.journey-card {
background: var(--panel);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 14px;
margin-bottom: 10px;
}
.journey-leg {
display: grid;
grid-template-columns: 48px 1fr auto;
gap: 10px;
align-items: center;
padding: 8px 0;
border-bottom: 1px solid var(--line);
font-size: 13px;
}
.journey-leg:last-child {
border-bottom: none;
}
.journey-leg__line {
font-family: var(--font-display);
font-weight: 700;
padding: 2px 8px;
border-radius: 4px;
display: inline-block;
}
.journey-leg--walk .journey-leg__line {
color: var(--ink-muted);
font-family: var(--font-body);
font-size: 12px;
}
.journey-leg__route {
color: var(--ink);
}
.journey-leg__time {
font-family: var(--font-display);
color: var(--ink-muted);
font-size: 12px;
white-space: nowrap;
}
/* ============================================================
Verkehrsmittel-Filter (Mode Filter)
============================================================ */
.mode-filter {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 14px;
}
.mode-chip {
background: var(--panel);
border: 1px solid var(--line);
color: var(--ink-muted);
border-radius: 999px;
padding: 5px 12px;
font-size: 12px;
font-family: var(--font-label);
font-weight: 600;
letter-spacing: 0.02em;
}
.mode-chip.is-active {
color: var(--signal-amber);
border-color: var(--signal-amber);
background: var(--signal-amber-soft);
box-shadow: 0 0 0 1px rgba(245, 166, 35, 0.15);
}
/* ============================================================
Standort-Buttons
============================================================ */
.location-btn {
background: var(--panel-raised);
border: 1px solid var(--line);
color: var(--ink);
border-radius: var(--radius);
padding: 10px 14px;
font-size: 16px;
flex-shrink: 0;
}
.location-btn:hover {
border-color: var(--signal-amber);
}
.location-btn--wide {
width: 100%;
font-size: 14px;
margin-bottom: 16px;
font-family: var(--font-body);
}
/* ============================================================
In der Nähe
============================================================ */
.nearby-list {
display: flex;
flex-direction: column;
gap: 6px;
}
.nearby-item {
display: flex;
justify-content: space-between;
align-items: center;
background: var(--panel);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 12px 14px;
color: var(--ink);
font-size: 14px;
text-align: left;
width: 100%;
}
.nearby-item:hover {
border-color: var(--signal-amber);
}
.nearby-item__distance {
color: var(--signal-amber);
font-family: var(--font-display);
font-size: 13px;
white-space: nowrap;
}
/* ============================================================
Störungen
============================================================ */
.remarks-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.remark-card {
background: var(--panel);
border: 1px solid var(--line);
border-left: 3px solid var(--signal-red);
border-radius: var(--radius);
padding: 14px;
}
/* Einheitliche "Meldungs"-Optik: Icon-Kreis + Textblock, dieselbe
Formsprache wie die Toast-Benachrichtigungen. Wird für Störungen
(rot), Aufzugsstatus (blau) und die Störungslisten genutzt - die
jeweilige Icon-Farbe kommt vom umgebenden Container (.station-disruption,
.elevator-status, .remark-card). */
.notice-item {
display: flex;
align-items: flex-start;
gap: 10px;
}
.notice-item__icon {
flex-shrink: 0;
width: 22px;
height: 22px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
font-weight: 700;
margin-top: 1px;
background: rgba(255, 93, 108, 0.14);
color: var(--signal-red);
}
.notice-item__body {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 4px;
}
.notice-item__body strong {
font-size: 13px;
color: var(--ink);
}
.notice-item__text {
display: block;
color: var(--ink-muted);
font-size: 12.5px;
line-height: 1.5;
}
.notice-item__meta {
display: block;
color: var(--ink-muted);
font-size: 11.5px;
opacity: .8;
}
.notice-item__meta:empty { display: none; }
.station-disruption .notice-item__text a,
.elevator-status .notice-item__text a,
.remark-card .notice-item__text a {
color: var(--signal-amber);
text-decoration: underline;
}
/* ============================================================
Suchergebnis-Icons (Haltestelle/Adresse/POI)
============================================================ */
.search-result__icon {
display: inline-block;
width: 20px;
}
.search-result__badge {
float: right;
font-size: 10px;
color: var(--ink-muted);
background: var(--panel-raised);
border: 1px solid var(--line);
border-radius: 999px;
padding: 2px 8px;
font-family: var(--font-label);
letter-spacing: 0.02em;
}
.flap-row--clickable {
cursor: pointer;
}
.flap-row--clickable:hover,
.flap-row--clickable:focus-visible {
border-color: var(--signal-amber);
}
/* ============================================================
Live-Verfolgen-Button in Journey-Legs
============================================================ */
.leg-track-btn {
grid-column: 1 / -1;
justify-self: start;
margin-top: 4px;
background: none;
border: 1px solid var(--line);
color: var(--signal-amber);
border-radius: 6px;
padding: 4px 10px;
font-size: 11px;
font-family: var(--font-label);
}
.leg-track-btn:hover {
border-color: var(--signal-amber);
}
.journey-map-btn {
width: 100%;
margin-top: 8px;
background: var(--panel-raised);
border: 1px solid var(--line);
color: var(--ink);
border-radius: 8px;
padding: 8px;
font-size: 12px;
font-family: var(--font-label);
}
.journey-map-btn:hover {
border-color: var(--signal-amber);
color: var(--signal-amber);
}
/* ============================================================
Routenplaner-Erweiterungen (Standort-Button, Ankunft/Abfahrt)
============================================================ */
.journey-form__row {
display: flex;
gap: 8px;
flex: 1;
min-width: 160px;
}
.journey-options {
display: flex;
gap: 8px;
margin-bottom: 14px;
flex-wrap: wrap;
}
.journey-select,
.journey-datetime {
background: var(--panel-raised);
border: 1px solid var(--line);
color: var(--ink);
border-radius: var(--radius);
padding: 8px 10px;
font-size: 13px;
font-family: var(--font-body);
}
.journey-datetime {
flex: 1;
min-width: 160px;
}
@media (max-width: 560px) {
.app-header {
gap: 12px;
padding: 0 12px;
}
.brand__mark {
font-size: 15px;
}
.app-main {
padding: 14px;
}
.flap-row {
grid-template-columns: 44px 1fr 52px 76px;
gap: 8px;
padding: 10px;
}
.flap-cell--direction {
font-size: 12px;
}
}
/* ============================================================
UX REDESIGN — clearer hierarchy, fewer competing choices
============================================================ */
body { padding-bottom: 0; }
button { transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease; }
button:active { transform: translateY(1px); }
.app-header {
height: 72px;
padding: 0 max(20px, calc((100vw - 1120px) / 2));
gap: 28px;
}
.brand {
border: 0;
background: transparent;
padding: 0;
font: inherit;
}
.search-box--global { max-width: 620px; }
.search-box--global input { padding: 12px 42px 12px 42px; font-size: 15px; }
.search-box__icon {
position: absolute;
left: 14px;
top: 50%;
transform: translateY(-52%);
color: var(--ink-muted);
font-size: 22px;
line-height: 1;
z-index: 1;
}
.search-clear {
position: absolute;
right: 8px;
top: 50%;
transform: translateY(-50%);
border: 0;
background: transparent;
color: var(--ink-muted);
font-size: 22px;
width: 32px;
height: 32px;
border-radius: 50%;
}
.search-clear:hover { background: var(--panel); color: var(--ink); }
.header-icon-btn {
flex-shrink: 0;
border: 1px solid var(--line);
background: var(--panel-raised);
color: var(--signal-amber);
font-size: 18px;
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}
.header-icon-btn:hover { border-color: var(--signal-amber); }
.favorites-bar { display: none; }
.tab-nav {
max-width: 1120px;
margin: 0 auto;
padding: 0 20px;
border-bottom: 1px solid var(--line);
}
.tab-button { padding: 14px 18px; display: inline-flex; gap: 8px; align-items: center; }
.tab-button__icon { filter: grayscale(.35); }
.app-main { max-width: 920px; padding: 30px 20px 50px; }
.welcome-panel {
padding: 28px;
background: linear-gradient(135deg, var(--panel), var(--panel-raised));
border: 1px solid var(--line);
border-radius: var(--radius-lg);
margin-bottom: 24px;
box-shadow: var(--shadow-md);
position: relative;
overflow: hidden;
}
.welcome-panel::after {
content: '';
position: absolute;
top: -60%;
right: -20%;
width: 320px;
height: 320px;
background: radial-gradient(circle, rgba(245, 166, 35, 0.12), transparent 70%);
pointer-events: none;
}
.welcome-panel > * { position: relative; }
.welcome-panel__eyebrow,
.section-heading__eyebrow {
display: block;
color: var(--signal-amber);
font: 600 11px/1 var(--font-label);
letter-spacing: .12em;
text-transform: uppercase;
margin-bottom: 8px;
}
.welcome-panel h1 { font-size: clamp(26px, 5vw, 38px); margin: 0 0 8px; letter-spacing: -.02em; }
.welcome-panel p { margin: 0; max-width: 650px; color: var(--ink-muted); line-height: 1.55; }
.welcome-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 24px; }
.action-card {
display: flex; align-items: center; gap: 14px; text-align: left;
background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 16px;
}
.action-card:hover { border-color: var(--signal-amber); background: var(--panel-raised); }
/* Dezenter "Lift"-Effekt beim Hover für Karten-Buttons - macht sie klickbarer
greifbar, ohne das Layout zu beeinflussen (nur Transform+Schatten). */
.action-card,
.more-card,
.favorite-card {
transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
box-shadow: var(--shadow-sm);
}
.action-card:hover,
.more-card:hover,
.favorite-card:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-md);
}.action-card--primary { border-color: rgba(245,166,35,.45); }
.action-card__icon { font-size: 23px; }
.action-card strong, .action-card small { display: block; }
.action-card small { color: var(--ink-muted); margin-top: 3px; font-size: 12px; }
.home-section { margin: 0 0 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 10px; }
.section-heading h2, .panel-heading h1 { margin: 0; }
.section-heading h2 { font-size: 17px; }
.text-button { background: none; border: 0; color: var(--signal-amber); padding: 5px 0; font-size: 12px; }
.text-button:hover { text-decoration: underline; }
.favorite-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.favorite-card {
display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; text-align: left;
background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 14px;
}
.favorite-card:hover { border-color: var(--signal-amber); }
.favorite-card__star { color: var(--signal-amber); font-size: 18px; }
.favorite-card strong, .favorite-card small { display: block; }
.favorite-card small { color: var(--ink-muted); font-size: 11px; margin-top: 3px; }
.favorite-card__cancelled { color: var(--signal-red); font-weight: 600; }
.favorite-card__arrow { color: var(--ink-muted); font-size: 18px; }
/* Störungs-Hinweis auf Favoriten-Karten ("Störungs-Push") */
.favorite-card--disrupted { border-color: rgba(255,93,108,.5); }
.favorite-card__disruption {
color: var(--signal-red) !important;
font-weight: 600;
margin-top: 4px;
}
.notify-toggle, #notify-toggle.is-active { color: var(--signal-green); }
#notify-toggle:disabled { cursor: default; opacity: .8; }
/* ============================================================
Toast-Benachrichtigungen (z.B. für neue Störungen bei Favoriten)
============================================================ */
.toast-container {
position: fixed;
left: 50%;
bottom: 24px;
transform: translateX(-50%);
z-index: 200;
display: flex;
flex-direction: column;
gap: 8px;
align-items: center;
width: min(420px, calc(100vw - 32px));
pointer-events: none;
}
.toast {
background: rgba(33, 42, 52, 0.88);
backdrop-filter: blur(12px) saturate(1.3);
-webkit-backdrop-filter: blur(12px) saturate(1.3);
border: 1px solid var(--line);
border-left: 3px solid var(--signal-amber);
color: var(--ink);
border-radius: var(--radius);
padding: 12px 14px;
font-size: 13px;
line-height: 1.4;
box-shadow: var(--shadow-lg);
width: 100%;
opacity: 0;
transform: translateY(12px);
transition: opacity .25s ease, transform .25s ease;
position: relative;
overflow: hidden;
display: flex;
align-items: flex-start;
gap: 10px;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast--warning { border-left-color: var(--signal-red); }
.toast--info { border-left-color: var(--signal-amber); }
.toast--success { border-left-color: var(--signal-green); }
.toast__icon {
flex-shrink: 0;
width: 20px;
height: 20px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
font-weight: 700;
margin-top: 1px;
background: var(--panel-raised);
color: var(--signal-amber);
}
.toast--warning .toast__icon { color: var(--signal-red); background: rgba(255,93,108,.12); }
.toast--info .toast__icon { color: var(--signal-amber); background: rgba(245,166,35,.12); }
.toast--success .toast__icon { color: var(--signal-green); background: rgba(61,220,132,.12); }
.toast__message {
flex: 1;
padding-top: 1px;
}
.toast__close {
flex-shrink: 0;
background: none;
border: 0;
color: var(--ink-muted);
font-size: 18px;
line-height: 1;
width: 20px;
height: 20px;
border-radius: 50%;
margin: -2px -4px 0 0;
}
.toast__close:hover { background: var(--panel-raised); color: var(--ink); }
.toast__progress {
position: absolute;
left: 0;
bottom: 0;
height: 2px;
width: 100%;
background: currentColor;
color: var(--signal-amber);
opacity: .35;
transform-origin: left;
transform: scaleX(1);
transition: transform linear;
}
.toast--warning .toast__progress { color: var(--signal-red); }
.toast--success .toast__progress { color: var(--signal-green); }
.nearby-preview { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.nearby-preview__item {
display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left;
background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 12px;
}
.nearby-preview__item:hover { border-color: var(--signal-amber); }
.nearby-preview__item strong, .nearby-preview__item small { display: block; }
.nearby-preview__item small { color: var(--ink-muted); font-size: 11px; margin-top: 3px; }
.nearby-preview__item b { color: var(--signal-amber); font: 700 12px var(--font-display); white-space: nowrap; }
.board-header { margin-bottom: 8px; }
.board-station-name { font-size: 24px; margin-top: 2px; }
.board-status { color: var(--ink-muted); font-size: 11px; margin-bottom: 14px; display: flex; align-items: center; gap: 7px; }
.status-dot {
display: inline-block;
width: 7px; height: 7px; border-radius: 50%; background: var(--signal-green);
box-shadow: 0 0 0 3px rgba(61,220,132,.12);
}
.favorite-toggle { padding: 8px 12px; }
.flap-row { grid-template-columns: 82px minmax(0,1fr) 82px 112px; padding: 14px 16px 14px 13px; }
.flap-cell--time { font-size: 17px; }
.flap-cell--direction { font-size: 15px; font-weight: 600; }
.flap-cell--platform { font-size: 14px; }
.station-disruption { background: rgba(255,93,108,.08); border: 1px solid rgba(255,93,108,.3); color: var(--ink); border-radius: 9px; padding: 12px; margin-top: 14px; font-size: 12px; }
.station-disruption .notice-item + .notice-item { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,93,108,.25); }
/* Aufzugsstatus - eigener, ruhigerer Ton (Info, nicht "akute Störung") */
.elevator-status { background: rgba(79,168,232,.08); border: 1px solid rgba(79,168,232,.3); color: var(--ink); border-radius: 9px; padding: 12px; margin-top: 14px; font-size: 12px; }
.elevator-status .notice-item + .notice-item { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(79,168,232,.25); }
.elevator-status .notice-item__icon { background: rgba(79,168,232,.16); color: var(--signal-blue); }
.elevator-status .notice-item__body strong { color: var(--signal-blue); }
.panel-heading { margin-bottom: 22px; position: relative; padding-left: 14px; }
.panel-heading::before {
content: '';
position: absolute;
left: 0;
top: 4px;
bottom: 4px;
width: 3px;
border-radius: 3px;
background: linear-gradient(180deg, var(--signal-amber), transparent);
}
.panel-heading h1 { font-size: 26px; margin-bottom: 6px; }
.panel-heading p { margin: 0; color: var(--ink-muted); font-size: 13px; }
.live-map { height: min(680px, calc(100vh - 220px)); min-height: 460px; }
.journey-card-form {
background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
}
.journey-input-row { display: flex; align-items: center; gap: 10px; }
.journey-input-row .search-box { flex: 1; max-width: none; }
.journey-input-row input { background: var(--panel-raised); }
.journey-input-marker { width: 22px; text-align: center; font-size: 12px; }
.journey-input-marker--start { color: var(--signal-green); }
.journey-input-marker--end { color: var(--signal-red); }
.journey-connector { height: 13px; border-left: 1px solid var(--line); margin-left: 10px; }
.journey-when { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.wheelchair-toggle {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
color: var(--ink);
margin: 0 0 12px;
cursor: pointer;
width: fit-content;
}
.wheelchair-toggle input { accent-color: var(--signal-amber); width: 16px; height: 16px; }
.when-choice { background: var(--panel); color: var(--ink-muted); border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; font-size: 12px; }
.when-choice.is-active { color: var(--signal-amber); border-color: var(--signal-amber); background: rgba(245,166,35,.08); }
.journey-options-row { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.journey-options-row .mode-filter { margin-bottom: 0; }
.transfer-slack-field { display: flex; flex-direction: column; gap: 5px; }
.transfer-slack-field label {
color: var(--ink-muted);
font: 600 10px var(--font-label);
letter-spacing: 0.09em;
text-transform: uppercase;
}
.transfer-slack-field select {
background: var(--panel);
color: var(--ink);
border: 1px solid var(--line);
border-radius: 8px;
padding: 8px 10px;
font-family: inherit;
font-size: 13px;
}
.journey-submit { min-height: 38px; padding: 9px 15px; }
.journey-submit span { margin-left: 6px; }
.journey-card { padding: 16px; }
.journey-leg { grid-template-columns: 52px minmax(0,1fr) auto; }
.location-btn--wide { min-height: 46px; }
.more-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.more-card { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; text-align: left; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 11px; padding: 16px; }
.more-card > span { grid-row: span 2; font-size: 23px; }
.more-card small { color: var(--ink-muted); font-size: 12px; }
.more-card:hover { border-color: var(--signal-amber); }
.recent-section { margin-top: 28px; }
.recent-searches { display: flex; flex-wrap: wrap; gap: 8px; }
.recent-item {
display: inline-flex; align-items: center; gap: 2px;
background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
padding: 2px 4px 2px 2px; font-size: 12px;
}
.recent-item:hover { border-color: var(--signal-amber); }
.recent-item__select { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; color: var(--ink); padding: 6px 4px 6px 10px; font-size: 12px; font-family: inherit; }
.recent-item__select span { color: var(--ink-muted); }
.recent-item__remove {
background: none; border: 0; color: var(--ink-muted); width: 22px; height: 22px;
border-radius: 50%; font-size: 15px; line-height: 1; flex-shrink: 0;
}
.recent-item__remove:hover { background: var(--panel-raised); color: var(--signal-red); }
.recent-empty { color: var(--ink-muted); font-size: 12px; padding: 8px 0; }
.lang-switch { display: flex; gap: 8px; }
.lang-switch__btn {
background: var(--panel); color: var(--ink-muted); border: 1px solid var(--line);
border-radius: 999px; padding: 8px 16px; font-size: 13px;
}
.lang-switch__btn:hover { border-color: var(--signal-amber); }
.lang-switch__btn.is-active { color: var(--signal-amber); border-color: var(--signal-amber); background: rgba(245,166,35,.08); }
.search-result-heading {
padding: 8px 12px 4px;
color: var(--ink-muted);
font: 600 10px var(--font-label);
letter-spacing: .08em;
text-transform: uppercase;
}
.mobile-nav { display: none; }
/* ============================================================
Trip-Detail-Modal (Klick auf eine Abfahrt/Verbindung)
============================================================ */
.trip-modal-backdrop {
position: fixed;
inset: 0;
background: rgba(6, 9, 12, 0.72);
display: flex;
align-items: flex-end;
justify-content: center;
z-index: 200;
animation: trip-modal-fade 0.15s ease;
}
.trip-modal-backdrop[hidden] {
display: none;
}
@keyframes trip-modal-fade {
from { opacity: 0; }
to { opacity: 1; }
}
.trip-modal {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 16px 16px 0 0;
width: 100%;
max-width: 560px;
max-height: 88vh;
overflow-y: auto;
padding: 0 0 20px;
}
@media (min-width: 701px) {
.trip-modal-backdrop { align-items: center; }
.trip-modal { border-radius: 16px; max-height: 80vh; }
}
.trip-modal__header {
display: flex;
align-items: center;
gap: 12px;
padding: 18px 18px 14px;
border-bottom: 1px solid var(--line);
position: sticky;
top: 0;
background: var(--panel);
z-index: 1;
}
.trip-modal__line {
font-family: var(--font-display);
font-weight: 700;
font-size: 16px;
padding: 5px 10px;
border-radius: 6px;
flex-shrink: 0;
}
.trip-modal__title {
flex: 1;
min-width: 0;
}
.trip-modal__title strong {
display: block;
font-size: 15px;
}
.trip-modal__title small {
color: var(--ink-muted);
font-size: 12px;
}
.trip-modal__close {
background: var(--panel-raised);
border: 1px solid var(--line);
color: var(--ink);
width: 32px;
height: 32px;
border-radius: 50%;
font-size: 18px;
line-height: 1;
flex-shrink: 0;
}
.trip-modal__close:hover {
border-color: var(--signal-amber);
}
.trip-modal__stats {
padding: 8px 18px;
font-size: 12px;
color: var(--ink-muted);
background: var(--panel-raised);
border-bottom: 1px solid var(--line);
}
.trip-modal__map {
height: 220px;
border-bottom: 1px solid var(--line);
}
.trip-modal__body {
padding: 14px 18px 0;
}
.trip-modal__loading,
.trip-modal__error {
padding: 40px 18px;
text-align: center;
color: var(--ink-muted);
}
.trip-modal__error {
color: var(--signal-red);
}
.trip-stopovers {
position: relative;
padding-left: 18px;
}
.trip-stopover {
position: relative;
padding: 9px 0;
border-left: 2px solid var(--line);
padding-left: 16px;
margin-left: -1px;
}
.trip-stopover::before {
content: '';
position: absolute;
left: -6px;
top: 14px;
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--panel);
border: 2px solid var(--ink-muted);
}
.trip-stopover--current::before {
background: var(--signal-amber);
border-color: var(--signal-amber);
box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.2);
}
.trip-stopover--cancelled {
opacity: 0.55;
}
.trip-stopover__row {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 10px;
}
.trip-stopover__name {
font-size: 13px;
color: var(--ink);
}
.trip-stopover__time {
font-family: var(--font-display);
font-size: 12px;
color: var(--ink-muted);
white-space: nowrap;
}
.trip-stopover__time--delayed {
color: var(--signal-red);
}
.trip-stopover__time--cancelled {
color: var(--signal-red);
text-decoration: line-through;
}
/* ============================================================
Fahrtalarm: Offset-Auswahl, Glocken-Buttons an den Zwischenhalten,
Hinweis-Banner und Vollbild-Overlay bei Auslösung
============================================================ */
.trip-alarm-offset-row {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
background: var(--panel-raised);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 10px 12px;
margin-bottom: 12px;
font-size: 13px;
}
.trip-alarm-offset-row select {
background: var(--panel);
color: var(--ink);
border: 1px solid var(--line);
border-radius: 6px;
padding: 4px 8px;
font-family: inherit;
font-size: 12px;
}
.trip-alarm-offset-row small {
color: var(--ink-muted);
width: 100%;
}
.trip-stopover__alarm-btn {
background: none;
border: 0;
font-size: 16px;
padding: 2px 4px;
line-height: 1;
opacity: .6;
}
.trip-stopover__alarm-btn:hover { opacity: 1; }
.trip-stopover__alarm-btn.is-active { opacity: 1; filter: drop-shadow(0 0 4px rgba(245,166,35,.6)); }
.trip-alarm-banner {
display: none;
align-items: center;
gap: 10px;
position: fixed;
top: 12px; /* Fallback, bevor JS die reale Header-Höhe gemessen hat */
left: 50%;
transform: translateX(-50%);
z-index: 1200; /* über Leaflets eigenen Steuerelementen (z.B. Zoom-Buttons ~1000) */
background: var(--panel-raised);
border: 1px solid var(--signal-amber);
border-radius: var(--radius);
padding: 10px 14px;
font-size: 13px;
width: min(480px, calc(100vw - 32px));
box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.trip-alarm-banner.is-visible { display: flex; }
.trip-alarm-banner__text { flex: 1; }
.trip-alarm-banner button {
background: none;
border: 1px solid var(--line);
color: var(--ink);
border-radius: 6px;
padding: 5px 10px;
font-size: 12px;
white-space: nowrap;
}
.trip-alarm-banner button:hover { border-color: var(--signal-amber); }
.trip-alarm-overlay {
position: fixed;
inset: 0;
z-index: 1300;
display: flex;
align-items: center;
justify-content: center;
background: rgba(12, 17, 22, .92);
animation: trip-modal-fade 0.2s ease;
}
.trip-alarm-overlay[hidden] { display: none; }
.trip-alarm-overlay__card {
text-align: center;
background: var(--panel);
border: 1px solid var(--signal-amber);
border-radius: 16px;
padding: 36px 28px;
max-width: 340px;
box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.trip-alarm-overlay__icon {
font-size: 46px;
margin-bottom: 8px;
animation: trip-alarm-ring 0.6s ease-in-out infinite;
}
@keyframes trip-alarm-ring {
0%, 100% { transform: rotate(0deg); }
25% { transform: rotate(-12deg); }
75% { transform: rotate(12deg); }
}
.trip-alarm-overlay__card h2 {
margin: 0 0 10px;
font-size: 22px;
}
.trip-alarm-overlay__card p {
margin: 0 0 20px;
color: var(--ink-muted);
font-size: 14px;
}
.trip-alarm-overlay__card button {
background: var(--signal-amber);
color: #17110a;
border: 0;
border-radius: 8px;
padding: 12px 24px;
font-weight: 600;
font-size: 14px;
}
/* ============================================================
Live-Karten-Steuerung (Filter, Standort, Isolation)
============================================================ */
.map-controls {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
margin-bottom: 12px;
}
.map-controls .mode-filter {
margin-bottom: 0;
flex: 1;
}
.map-locate-btn {
background: var(--panel-raised);
border: 1px solid var(--line);
color: var(--ink);
border-radius: var(--radius);
padding: 8px 14px;
font-size: 13px;
white-space: nowrap;
}
.map-locate-btn:hover {
border-color: var(--signal-amber);
}
.map-isolation-banner {
display: none;
align-items: center;
justify-content: space-between;
gap: 10px;
background: var(--panel-raised);
border: 1px solid var(--signal-amber);
border-radius: var(--radius);
padding: 10px 14px;
margin-bottom: 10px;
font-size: 13px;
}
.map-isolation-banner.is-visible {
display: flex;
}
.map-isolation-banner__line {
font-family: var(--font-display);
font-weight: 700;
padding: 3px 8px;
border-radius: 4px;
}
.map-isolation-banner button {
background: none;
border: 1px solid var(--line);
color: var(--ink);
border-radius: 6px;
padding: 5px 10px;
font-size: 12px;
}
.map-isolation-banner button:hover {
border-color: var(--signal-amber);
}
.user-location-marker {
width: 16px;
height: 16px;
border-radius: 50%;
background: #4A9EFF;
border: 3px solid #fff;
box-shadow: 0 0 0 4px rgba(74, 158, 255, 0.35);
}
/* ============================================================
Journey-Mini-Karte (Streckenverlauf inline im Kartenergebnis)
============================================================ */
.journey-map-toggle {
width: 100%;
margin-top: 8px;
background: var(--panel-raised);
border: 1px solid var(--line);
color: var(--ink);
border-radius: 8px;
padding: 8px;
font-size: 12px;
font-family: var(--font-label);
}
.journey-map-toggle:hover {
border-color: var(--signal-amber);
color: var(--signal-amber);
}
.journey-mini-map {
height: 0;
overflow: hidden;
border-radius: 8px;
margin-top: 0;
transition: height 0.2s ease;
}
.journey-mini-map.is-open {
height: 160px;
margin-top: 8px;
border: 1px solid var(--line);
}
/* ============================================================
Ladezustände / Fehler allgemein
============================================================ */
.spinner {
display: inline-block;
width: 14px;
height: 14px;
border: 2px solid rgba(255, 255, 255, 0.25);
border-top-color: var(--signal-amber);
border-radius: 50%;
animation: spin 0.7s linear infinite;
vertical-align: -2px;
margin-right: 8px;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.board-error-detail {
color: var(--ink-muted);
font-size: 12px;
margin-top: 6px;
}
/* ============================================================
Barrierefrei/Fahrrad-Toggles (Routenplaner)
============================================================ */
.journey-extra-toggles {
display: flex;
gap: 10px;
margin-bottom: 14px;
flex-wrap: wrap;
}
.toggle-chip {
display: flex;
align-items: center;
gap: 6px;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 999px;
padding: 6px 14px;
font-size: 13px;
color: var(--ink);
cursor: pointer;
user-select: none;
}
.toggle-chip:has(input:checked) {
border-color: var(--signal-amber);
color: var(--signal-amber);
background: rgba(245, 166, 35, 0.1);
}
.toggle-chip input {
accent-color: var(--signal-amber);
}
/* ============================================================
Preisschätzung in Journey-Karten
============================================================ */
.journey-fare {
margin-top: 10px;
padding: 8px 10px;
background: var(--panel-raised);
border-radius: 8px;
font-size: 13px;
font-weight: 600;
color: var(--ink);
}
.journey-fare--exact {
border: 1px solid var(--signal-green);
}
.journey-fare small {
display: block;
margin-top: 2px;
font-size: 11px;
font-weight: 400;
color: var(--ink-muted);
}
/* ============================================================
Störungen: ortsbezogen + netzweit als getrennte Sektionen
============================================================ */
.disruption-section {
margin-bottom: 24px;
}
.disruption-section .section-heading {
margin-bottom: 10px;
}
/* ============================================================
Tickets-Tab
============================================================ */
.disclaimer-banner {
background: rgba(255, 93, 108, 0.1);
border: 1px solid var(--signal-red);
color: var(--signal-red);
border-radius: var(--radius);
padding: 10px 14px;
font-size: 13px;
margin-bottom: 18px;
line-height: 1.4;
}
.fare-group {
margin-bottom: 20px;
}
.fare-group h3 {
font-size: 13px;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--ink-muted);
font-family: var(--font-label);
margin: 0 0 8px;
}
.fare-rows {
display: flex;
flex-direction: column;
gap: 6px;
}
.fare-row {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
background: var(--panel);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 10px 14px;
}
.fare-row strong {
display: block;
font-size: 14px;
color: var(--ink);
}
.fare-row small {
display: block;
font-size: 11px;
color: var(--ink-muted);
margin-top: 2px;
}
.fare-row__price {
font-family: var(--font-display);
font-weight: 700;
font-size: 15px;
color: var(--signal-amber);
white-space: nowrap;
}
.company-links {
display: flex;
flex-direction: column;
gap: 8px;
margin-top: 10px;
}
.company-link {
display: flex;
justify-content: space-between;
align-items: center;
background: var(--panel);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 12px 14px;
color: var(--ink);
text-decoration: none;
}
.company-link:hover {
border-color: var(--signal-amber);
}
.company-link strong {
display: block;
font-size: 14px;
}
.company-link small {
display: block;
font-size: 12px;
color: var(--ink-muted);
margin-top: 2px;
}
.company-link__arrow {
color: var(--signal-amber);
font-size: 16px;
flex-shrink: 0;
}
@media (max-width: 700px) {
body { padding-bottom: 66px; }
.app-header { height: auto; min-height: 64px; padding: 10px 12px; gap: 12px; }
.brand { font-size: 15px; }
.search-box--global { min-width: 0; }
.search-box--global input { font-size: 14px; padding: 10px 38px; }
.tab-nav { display: none; }
.app-main { padding: 16px 12px 28px; }
.welcome-panel { padding: 20px 16px; }
.welcome-actions { grid-template-columns: 1fr; }
.favorite-cards, .nearby-preview, .more-grid { grid-template-columns: 1fr; }
.board-header { align-items: flex-start; }
.board-station-name { font-size: 20px; }
.flap-row { grid-template-columns: 64px minmax(0,1fr) 58px 82px; gap: 14px; padding: 11px 10px; }
.flap-label { font-size: 9px; }
.flap-cell--direction { font-size: 12px; }
.flap-cell--platform { font-size: 12px; }
.flap-cell--time { font-size: 14px; }
.journey-options-row { display: block; }
.journey-options-row .journey-submit { width: 100%; margin-top: 8px; }
.journey-options-row .mode-filter { margin-bottom: 8px; }
.transfer-slack-field select { width: 100%; }
.mobile-nav {
display: block; position: fixed; bottom: 0; left: 0; right: 0;
/* Muss über der (jetzt display-breiten) Live-Karte liegen - Leaflet nutzt
für seine eigenen Steuerelemente (Zoom-Buttons etc.) intern z-index-
Werte bis ~1000, das HUD/die Navigation soll aber immer sichtbar und
bedienbar bleiben, unabhängig von der Karte. */
z-index: 1100; background: rgba(23,30,38,.97); border-top: 1px solid var(--line); padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
}
.mobile-nav__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.mobile-nav__item { border: 0; background: transparent; color: var(--ink-muted); padding: 5px 2px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mobile-nav__item span { font-size: 18px; line-height: 1.1; }
.mobile-nav__item small { font-size: 10px; }
.mobile-nav__item.is-active { color: var(--signal-amber); }
.toast-container { bottom: calc(64px + env(safe-area-inset-bottom) + 12px); }
}
@media (max-width: 430px) {
.flap-row { grid-template-columns: 74px minmax(0,1fr) 72px; gap: 12px; }
.flap-field--platform { display: none; }
.flap-field--time { grid-column: 3; }
.notify-callout { flex-wrap: wrap; }
.notify-callout__btn { width: 100%; }
}
.journey-source-note {
font-size: 12px;
color: var(--ink-muted);
text-align: center;
margin: 4px 0 14px;
}
.journey-share-row { display: flex; justify-content: flex-end; margin-bottom: 8px; }