Ein langes Label ("Meine Haltestellen") ist in der 6-spaltigen mobilen
Navigationsleiste auf zwei Zeilen umgebrochen und hat dadurch die ganze
Leiste höher gemacht, als die reservierte body-padding-bottom (84px)
vorgesehen hat - die Leiste hat sich sichtbar über die letzte Abfahrts-
zeile gelegt.
- Labels in der mobilen Navi-Leiste sind jetzt zwangsweise einzeilig
(nowrap + ellipsis) statt umzubrechen, damit alle 6 Items exakt
gleich hoch bleiben
- Sicherheitsabstand unten leicht erhöht (84px -> 92px), inkl. der
abhängigen Toast-/Disclaimer-Offsets
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01De7H8hR1Q9DdgyuS2ukN6y
2502 lines
67 KiB
CSS
2502 lines
67 KiB
CSS
/* ============================================================
|
|
ÖPNV NAVI — Design-Tokens
|
|
Thema: Vintage-Reiseplakat / Bauhaus-Fahrplantafel
|
|
Cremefarbenes Papier, tiefschwarze Konturen, harte Versatz-
|
|
schatten, ein einziger kräftiger Terrakotta-Akzent. Bewusst
|
|
die komplette Abkehr von der vorherigen dunklen Glas-Optik.
|
|
============================================================ */
|
|
|
|
:root {
|
|
--bg-void: #F2ECDC;
|
|
--panel: #FFFDF6;
|
|
--panel-raised: #FBF4E2;
|
|
--panel-overlay: #EFE3C6;
|
|
--line: #17130E;
|
|
--ink: #17130E;
|
|
--ink-muted: #6B6151;
|
|
--signal-amber: #C1440E;
|
|
--signal-amber-soft: rgba(193, 68, 14, 0.12);
|
|
--signal-green: #2B6B4A;
|
|
--signal-red: #A32620;
|
|
--signal-blue: #1E5A78;
|
|
--on-amber: #FBF4E2;
|
|
|
|
--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: 3px;
|
|
--radius-lg: 4px;
|
|
--header-height: 68px;
|
|
--border-w: 2px;
|
|
|
|
--shadow-sm: 3px 3px 0 var(--line);
|
|
--shadow-md: 5px 5px 0 var(--line);
|
|
--shadow-lg: 8px 8px 0 var(--line);
|
|
--shadow-glow-amber: 4px 4px 0 var(--signal-amber);
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
scroll-behavior: smooth;
|
|
/* Dezenter, zum Theme passender Scrollbalken statt der grauen Standard-
|
|
Balken - vor allem auf Desktop mit sichtbarer Maus-Scrollbar spürbar. */
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--panel-overlay) transparent;
|
|
}
|
|
::-webkit-scrollbar { width: 10px; height: 10px; }
|
|
::-webkit-scrollbar-track { background: transparent; }
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--panel-overlay);
|
|
border-radius: var(--radius);
|
|
border: 2px solid var(--bg-void);
|
|
}
|
|
::-webkit-scrollbar-thumb:hover { background: var(--line); }
|
|
|
|
html, body {
|
|
margin: 0;
|
|
padding: 0;
|
|
background: var(--bg-void);
|
|
/* Feines Punktraster statt weicher Farbschein - passt zur bewusst
|
|
flachen, plakativen Papier-Optik (kein Blur/Glow mehr im Theme). */
|
|
background-image:
|
|
radial-gradient(rgba(23, 19, 14, 0.14) 1.5px, transparent 1.5px);
|
|
background-size: 22px 22px;
|
|
background-position: -11px -11px;
|
|
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;
|
|
/* Unterdrückt Doppel-Tipp-Zoom auf Mobilgeräten, den manche Browser auch
|
|
bei user-scalable=no im Viewport-Meta-Tag noch zulassen - normales
|
|
vertikales Scrollen/Wischen bleibt davon unberührt. Die Live-Karte ist
|
|
unten explizit ausgenommen, damit Leaflets eigene Pinch-Geste zum
|
|
Zoomen der Karte selbst weiterhin funktioniert. */
|
|
touch-action: manipulation;
|
|
}
|
|
|
|
/* Ausnahme für die Live-Karte: Leaflet steuert das Zoomen/Verschieben der
|
|
Kartenansicht komplett selbst über eigene Touch-Gesten (unabhängig vom
|
|
deaktivierten Seiten-Zoom oben) - braucht dafür die volle Touch-Kontrolle. */
|
|
#live-map,
|
|
#live-map * {
|
|
touch-action: none;
|
|
}
|
|
|
|
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: var(--on-amber);
|
|
font-weight: 600;
|
|
padding: 10px 16px;
|
|
border-radius: var(--radius);
|
|
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: var(--panel);
|
|
border-bottom: var(--border-w) solid var(--line);
|
|
box-shadow: var(--shadow-sm);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 20;
|
|
}
|
|
|
|
.brand {
|
|
font-family: var(--font-display);
|
|
font-weight: 700;
|
|
font-size: 20px;
|
|
letter-spacing: 0.04em;
|
|
white-space: nowrap;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
/* War vorher erst ab 701px zurückgesetzt - auf dem Handy trug der Button
|
|
dadurch noch den nativen Browser-Rahmen/-Innenabstand und hat oben
|
|
unnötig Platz gefressen. */
|
|
border: 0;
|
|
background: transparent;
|
|
padding: 0;
|
|
}
|
|
|
|
.brand::before {
|
|
content: '🚏';
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 30px;
|
|
height: 30px;
|
|
border-radius: var(--radius);
|
|
flex-shrink: 0;
|
|
font-size: 15px;
|
|
background: linear-gradient(155deg, #E8894F, var(--signal-amber) 65%);
|
|
box-shadow: var(--shadow-glow-amber);
|
|
}
|
|
|
|
.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: var(--border-w) 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: var(--border-w) 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: var(--shadow-md);
|
|
}
|
|
|
|
.search-result {
|
|
padding: 10px 12px;
|
|
border-radius: var(--radius);
|
|
font-size: 14px;
|
|
transition: background .12s ease, transform .12s ease;
|
|
}
|
|
|
|
.search-result:hover,
|
|
.search-result:focus,
|
|
.search-result--active {
|
|
background: var(--panel);
|
|
outline: 2px solid var(--signal-amber);
|
|
outline-offset: -2px;
|
|
transform: translateX(2px);
|
|
}
|
|
|
|
.search-result--empty {
|
|
color: var(--ink-muted);
|
|
cursor: default;
|
|
}
|
|
|
|
/* ============================================================
|
|
Favoriten-Leiste
|
|
============================================================ */
|
|
|
|
.favorites-bar {
|
|
padding: 12px 20px;
|
|
border-bottom: var(--border-w) solid var(--line);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.favorite-chips {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.chip {
|
|
background: var(--panel);
|
|
border: var(--border-w) solid var(--line);
|
|
color: var(--ink);
|
|
border-radius: var(--radius);
|
|
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;
|
|
}
|
|
|
|
/* Der Footer-Hinweis ganz unten unter der App hatte bisher gar kein Styling -
|
|
erschien als unformatierter Fließtext direkt am Seitenende. */
|
|
.global-disclaimer {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
text-align: center;
|
|
color: var(--ink-muted);
|
|
font-size: 11.5px;
|
|
padding: 18px 16px 28px;
|
|
border-top: var(--border-w) solid var(--line);
|
|
margin-top: 8px;
|
|
}
|
|
|
|
/* Neutrales Info-Icon (blau) - eigene Variante neben dem roten Warn-Icon
|
|
(.disclaimer-banner__icon/.notice-item__icon), für Hinweise, die keine
|
|
Warnung sind, sondern reine Sachinformation ("Daten von VBB", etc.). */
|
|
.global-disclaimer__icon,
|
|
.info-icon {
|
|
flex-shrink: 0;
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 50%;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
font-style: normal;
|
|
background: rgba(30, 90, 120, 0.16);
|
|
color: var(--signal-blue);
|
|
}
|
|
|
|
/* 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(193, 68, 14,.08);
|
|
border: 1px solid rgba(193, 68, 14,.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, #E8894F, var(--signal-amber) 60%);
|
|
color: var(--on-amber);
|
|
font-weight: 600;
|
|
border: 0;
|
|
border-radius: var(--radius);
|
|
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(43, 107, 74,.08);
|
|
border-color: rgba(43, 107, 74,.35);
|
|
}
|
|
.notify-callout--active .notify-callout__btn {
|
|
background: var(--signal-green);
|
|
color: var(--on-amber);
|
|
}
|
|
|
|
.notify-callout--blocked {
|
|
background: rgba(163, 38, 32,.08);
|
|
border-color: rgba(163, 38, 32,.35);
|
|
}
|
|
.notify-callout--blocked .notify-callout__btn {
|
|
background: var(--panel-raised);
|
|
color: var(--ink-muted);
|
|
}
|
|
|
|
/* ============================================================
|
|
Tabs
|
|
============================================================ */
|
|
|
|
.tab-nav {
|
|
padding: 0 20px;
|
|
border-bottom: var(--border-w) 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(193, 68, 14, 0.6);
|
|
}
|
|
|
|
.app-main {
|
|
max-width: 720px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
/* Dezentes Einblenden beim Tab-Wechsel, statt dass der Inhalt hart
|
|
"springt" - Animation läuft erneut, sobald [hidden] entfernt wird. */
|
|
.tab-panel:not([hidden]) {
|
|
animation: panel-fade-in .22s ease both;
|
|
}
|
|
@keyframes panel-fade-in {
|
|
from { opacity: 0; transform: translateY(6px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
|
|
/* ============================================================
|
|
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: var(--border-w) solid var(--line);
|
|
color: var(--ink);
|
|
border-radius: var(--radius);
|
|
padding: 8px 14px;
|
|
font-size: 13px;
|
|
transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
|
|
}
|
|
.favorite-toggle:hover { border-color: var(--ink-muted); }
|
|
|
|
.favorite-toggle.is-active {
|
|
color: var(--signal-amber);
|
|
border-color: var(--signal-amber);
|
|
background: var(--signal-amber-soft);
|
|
box-shadow: 0 0 0 1px rgba(193, 68, 14, 0.15);
|
|
}
|
|
|
|
@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: var(--border-w) 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: var(--radius);
|
|
padding: 6px 16px;
|
|
color: var(--signal-red);
|
|
}
|
|
.board-error .text-button:hover { background: rgba(163, 38, 32,.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: var(--panel);
|
|
border: var(--border-w) solid var(--line);
|
|
border-left: 5px 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);
|
|
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);
|
|
transform: translate(-2px, -2px);
|
|
}
|
|
|
|
@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(--on-amber));
|
|
background: var(--line-color, var(--signal-amber));
|
|
padding: 5px 9px;
|
|
border-radius: 2px;
|
|
font-size: 16px;
|
|
box-shadow: 2px 2px 0 var(--line);
|
|
/* 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: var(--radius);
|
|
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(163, 38, 32, 0.55); }
|
|
50% { box-shadow: 0 0 0 6px rgba(163, 38, 32, 0); }
|
|
}
|
|
|
|
.flap-field--line {
|
|
align-items: flex-start;
|
|
padding-right: 18px;
|
|
border-right: var(--border-w) solid var(--line);
|
|
}
|
|
|
|
.flap-field--direction {
|
|
padding-left: 2px;
|
|
}
|
|
|
|
.flap-field--time {
|
|
align-items: flex-end;
|
|
padding-left: 14px;
|
|
border-left: var(--border-w) 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: var(--border-w) 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: var(--radius);
|
|
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, #E8894F, var(--signal-amber) 60%);
|
|
color: var(--on-amber);
|
|
border: none;
|
|
border-radius: var(--radius);
|
|
padding: 10px 18px;
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
.journey-submit:hover { filter: brightness(1.05); }
|
|
|
|
.journey-card {
|
|
background: var(--panel);
|
|
border: var(--border-w) solid var(--line);
|
|
border-radius: var(--radius);
|
|
padding: 14px;
|
|
margin-bottom: 10px;
|
|
box-shadow: var(--shadow-sm);
|
|
transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
|
|
}
|
|
.journey-card:hover {
|
|
border-color: rgba(193, 68, 14, 0.35);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.journey-leg {
|
|
display: grid;
|
|
grid-template-columns: 48px 1fr auto;
|
|
gap: 10px;
|
|
align-items: center;
|
|
padding: 8px 0;
|
|
border-bottom: var(--border-w) 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: var(--radius);
|
|
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: var(--border-w) solid var(--line);
|
|
color: var(--ink-muted);
|
|
border-radius: var(--radius);
|
|
padding: 5px 12px;
|
|
font-size: 12px;
|
|
font-family: var(--font-label);
|
|
font-weight: 600;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
.mode-chip { transition: border-color .15s ease, color .15s ease, background .15s ease; }
|
|
.mode-chip:hover { border-color: var(--ink-muted); color: var(--ink); }
|
|
|
|
.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(193, 68, 14, 0.15);
|
|
}
|
|
.mode-chip.is-active:hover { border-color: var(--signal-amber); color: var(--signal-amber); }
|
|
|
|
/* ============================================================
|
|
Standort-Buttons
|
|
============================================================ */
|
|
|
|
.location-btn {
|
|
background: var(--panel-raised);
|
|
border: var(--border-w) 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: var(--border-w) 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: var(--border-w) solid var(--line);
|
|
border-left: 3px solid var(--signal-red);
|
|
border-radius: var(--radius);
|
|
padding: 14px;
|
|
box-shadow: var(--shadow-sm);
|
|
transition: box-shadow .15s ease, transform .15s ease;
|
|
}
|
|
.remark-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
|
|
|
|
/* 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(163, 38, 32, 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: var(--border-w) solid var(--line);
|
|
border-radius: var(--radius);
|
|
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: var(--border-w) solid var(--line);
|
|
color: var(--signal-amber);
|
|
border-radius: var(--radius);
|
|
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: var(--border-w) solid var(--line);
|
|
color: var(--ink);
|
|
border-radius: var(--radius);
|
|
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: var(--border-w) 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;
|
|
}
|
|
.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: var(--border-w) 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); }
|
|
.header-icon-btn { position: relative; }
|
|
.notifications-badge {
|
|
position: absolute;
|
|
top: 4px;
|
|
right: 5px;
|
|
width: 9px;
|
|
height: 9px;
|
|
border-radius: 50%;
|
|
background: var(--signal-red);
|
|
border: 1.5px solid var(--panel-raised);
|
|
animation: badge-pulse 2s ease-in-out infinite;
|
|
}
|
|
@keyframes badge-pulse {
|
|
0%, 100% { box-shadow: 0 0 0 0 rgba(163, 38, 32, 0.45); }
|
|
50% { box-shadow: 0 0 0 4px rgba(163, 38, 32, 0); }
|
|
}
|
|
|
|
.favorites-bar { display: none; }
|
|
|
|
/* Flache Signage-Leiste statt schwebender Pille - die Reiter sitzen direkt
|
|
und randlos unter dem Header, wie eine Zug-Anzeigetafel mit Reitern statt
|
|
einer separaten "schwebenden Karte". Spart zudem vertikalen Platz. */
|
|
.tab-nav {
|
|
max-width: 1120px;
|
|
margin: 0 auto;
|
|
padding: 0 20px;
|
|
border-bottom: none;
|
|
}
|
|
.tab-nav__list {
|
|
display: flex;
|
|
gap: 0;
|
|
border-bottom: var(--border-w) solid var(--line);
|
|
}
|
|
.tab-button {
|
|
padding: 13px 16px;
|
|
display: inline-flex;
|
|
gap: 7px;
|
|
align-items: center;
|
|
border-radius: 0;
|
|
border-bottom: 3px solid transparent;
|
|
margin-bottom: -2px;
|
|
transition: background .15s ease, color .15s ease, border-color .15s ease;
|
|
}
|
|
.tab-button__icon { filter: grayscale(.35); transition: filter .18s ease; }
|
|
.tab-button:hover:not(.is-active) { color: var(--ink); background: var(--panel-raised); }
|
|
.tab-button.is-active {
|
|
background: var(--signal-amber-soft);
|
|
color: var(--signal-amber);
|
|
border-bottom-color: var(--signal-amber);
|
|
}
|
|
.tab-button.is-active .tab-button__icon { filter: none; }
|
|
|
|
.app-main { max-width: 960px; padding: 30px 20px 50px; }
|
|
|
|
.welcome-panel {
|
|
padding: 28px;
|
|
background: linear-gradient(135deg, var(--panel), var(--panel-raised));
|
|
border: var(--border-w) 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(193, 68, 14, 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: var(--border-w) solid var(--line); border-radius: var(--radius); 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(193, 68, 14, .45);
|
|
background: linear-gradient(155deg, rgba(193, 68, 14,.16), rgba(193, 68, 14,.04) 65%), var(--panel);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
.action-card--primary:hover {
|
|
border-color: var(--signal-amber);
|
|
background: linear-gradient(155deg, rgba(193, 68, 14,.22), rgba(193, 68, 14,.06) 65%), var(--panel-raised);
|
|
}
|
|
.action-card--primary .action-card__icon { color: var(--signal-amber); }
|
|
.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: var(--border-w) solid var(--line); border-radius: var(--radius); 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(163, 38, 32,.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: var(--panel);
|
|
border: var(--border-w) solid var(--line);
|
|
border-left: 4px solid var(--signal-amber);
|
|
color: var(--ink);
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--shadow-sm);
|
|
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(163, 38, 32,.12); }
|
|
.toast--info .toast__icon { color: var(--signal-amber); background: rgba(193, 68, 14,.12); }
|
|
.toast--success .toast__icon { color: var(--signal-green); background: rgba(43, 107, 74,.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: var(--border-w) solid var(--line); border-radius: var(--radius); 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(43, 107, 74,.12);
|
|
}
|
|
.favorite-toggle { padding: 8px 12px; }
|
|
|
|
.flap-row { grid-template-columns: 82px minmax(0,1fr) 82px 118px; padding: 16px 18px 16px 15px; border-left-width: 5px; }
|
|
.flap-cell--time { font-size: 21px; letter-spacing: -.01em; }
|
|
.flap-cell--line { font-size: 17px; padding: 6px 10px; }
|
|
.flap-cell--direction { font-size: 15px; font-weight: 600; }
|
|
.flap-cell--platform { font-size: 14px; }
|
|
.station-disruption { background: rgba(163, 38, 32,.08); border: 1px solid rgba(163, 38, 32,.3); color: var(--ink); border-radius: var(--radius); 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(163, 38, 32,.25); }
|
|
|
|
/* Aufzugsstatus - eigener, ruhigerer Ton (Info, nicht "akute Störung") */
|
|
.elevator-status { background: rgba(30, 90, 120,.08); border: 1px solid rgba(30, 90, 120,.3); color: var(--ink); border-radius: var(--radius); 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(30, 90, 120,.25); }
|
|
.elevator-status .notice-item__icon { background: rgba(30, 90, 120,.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: var(--border-w) solid var(--line); border-radius: var(--radius); 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: var(--border-w) 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: var(--border-w) solid var(--line); border-radius: var(--radius); padding: 7px 11px; font-size: 12px; }
|
|
.when-choice.is-active { color: var(--signal-amber); border-color: var(--signal-amber); background: rgba(193, 68, 14,.08); }
|
|
.journey-options-row { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
|
|
.journey-options-row .mode-filter { margin-bottom: 0; }
|
|
|
|
.journey-vias { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 8px; }
|
|
.journey-via-row {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
}
|
|
.journey-input-marker--via { color: var(--ink-muted); }
|
|
.journey-via-row__fields {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
}
|
|
.journey-via-row__search { position: relative; flex: 1; min-width: 160px; }
|
|
.journey-via-row__search input {
|
|
width: 100%;
|
|
background: var(--panel-raised);
|
|
border: var(--border-w) solid var(--line);
|
|
color: var(--ink);
|
|
font-family: var(--font-body);
|
|
font-size: 14px;
|
|
padding: 8px 12px;
|
|
border-radius: var(--radius);
|
|
}
|
|
.journey-via-wait { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-muted); white-space: nowrap; }
|
|
.journey-via-wait select {
|
|
background: var(--panel);
|
|
color: var(--ink);
|
|
border: var(--border-w) solid var(--line);
|
|
border-radius: var(--radius);
|
|
padding: 6px 8px;
|
|
font-family: inherit;
|
|
font-size: 12px;
|
|
}
|
|
.journey-via-remove {
|
|
background: transparent;
|
|
border: var(--border-w) solid var(--line);
|
|
color: var(--ink-muted);
|
|
border-radius: var(--radius);
|
|
width: 30px;
|
|
height: 30px;
|
|
flex-shrink: 0;
|
|
cursor: pointer;
|
|
}
|
|
.journey-via-remove:hover { color: var(--signal-red); border-color: var(--signal-red); }
|
|
.journey-add-via { margin: 0 0 12px; }
|
|
|
|
.journey-modes-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; }
|
|
.journey-modes-field__label {
|
|
color: var(--ink-muted);
|
|
font: 600 10px var(--font-label);
|
|
letter-spacing: 0.09em;
|
|
text-transform: uppercase;
|
|
}
|
|
.journey-modes-field .mode-filter { margin-bottom: 0; }
|
|
|
|
.journey-load-more-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; }
|
|
.journey-load-more-btn {
|
|
flex: 1;
|
|
background: var(--panel);
|
|
color: var(--ink);
|
|
border: var(--border-w) solid var(--line);
|
|
border-radius: var(--radius);
|
|
padding: 9px 12px;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
}
|
|
.journey-load-more-btn:disabled { opacity: 0.4; cursor: default; }
|
|
.journey-load-more-btn:not(:disabled):hover { border-color: var(--signal-amber); color: var(--signal-amber); }
|
|
|
|
.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: var(--border-w) solid var(--line); border-radius: var(--radius); 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); }
|
|
|
|
/* Breitere Bildschirme sollen die Karten-Raster wirklich nutzen, statt wie
|
|
eine schmale Spalte in der Mitte zu wirken. */
|
|
@media (min-width: 960px) {
|
|
.favorite-cards { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
|
|
.more-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
|
|
.nearby-preview { grid-template-columns: repeat(4, minmax(0,1fr)); }
|
|
.welcome-panel p { max-width: 560px; }
|
|
.journey-card-form { padding: 18px 22px; }
|
|
}
|
|
|
|
.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: var(--border-w) solid var(--line); border-radius: var(--radius);
|
|
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; }
|
|
|
|
.connection-check,
|
|
.settings-section {
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
.connection-check::before,
|
|
.settings-section::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 3px;
|
|
background: linear-gradient(180deg, var(--signal-amber), transparent);
|
|
}
|
|
|
|
.connection-check {
|
|
background: var(--panel); border: var(--border-w) solid var(--line); border-radius: var(--radius);
|
|
padding: 12px 14px 12px 18px; display: flex; flex-direction: column; gap: 8px;
|
|
}
|
|
.connection-check__row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
|
|
.connection-status { color: var(--ink-muted); font-weight: 600; transition: color .15s ease; }
|
|
.connection-status--ok { color: var(--signal-green); }
|
|
.connection-status--error { color: var(--signal-red); }
|
|
|
|
.settings-section {
|
|
background: var(--panel); border: var(--border-w) solid var(--line); border-radius: var(--radius);
|
|
padding: 14px 16px 14px 20px; margin-bottom: 16px;
|
|
}
|
|
.settings-section .section-heading { margin-bottom: 10px; }
|
|
.settings-toggle {
|
|
display: flex; align-items: center; justify-content: space-between; gap: 14px;
|
|
cursor: pointer;
|
|
}
|
|
.settings-toggle__text { display: flex; flex-direction: column; gap: 2px; }
|
|
.settings-toggle__text strong { font-size: 14px; }
|
|
.settings-toggle__text small { color: var(--ink-muted); font-size: 12px; }
|
|
.settings-toggle input[type="checkbox"] {
|
|
appearance: none; -webkit-appearance: none; flex-shrink: 0;
|
|
width: 44px; height: 26px; border-radius: var(--radius);
|
|
background: var(--panel-raised); border: var(--border-w) solid var(--line);
|
|
position: relative; cursor: pointer;
|
|
}
|
|
.settings-toggle input[type="checkbox"]::before {
|
|
content: ''; position: absolute; top: 2px; left: 2px;
|
|
width: 20px; height: 20px; border-radius: 50%;
|
|
background: var(--ink-muted); transition: transform .15s ease, background .15s ease;
|
|
}
|
|
.settings-toggle input[type="checkbox"]:checked { border-color: var(--signal-amber); background: rgba(193, 68, 14,.18); }
|
|
.settings-toggle input[type="checkbox"]:checked::before { background: var(--signal-amber); transform: translateX(18px); }
|
|
|
|
.notifications-list { display: flex; flex-direction: column; gap: 8px; }
|
|
.notification-item {
|
|
display: flex; align-items: flex-start; gap: 10px;
|
|
background: var(--panel); border: var(--border-w) solid var(--line); border-radius: var(--radius);
|
|
padding: 12px 14px;
|
|
box-shadow: var(--shadow-sm);
|
|
transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
|
|
animation: flap-row-in .25s ease both;
|
|
}
|
|
.notification-item:hover { border-color: rgba(193, 68, 14, 0.35); box-shadow: var(--shadow-md); transform: translateY(-1px); }
|
|
.notification-item__icon { font-size: 18px; flex-shrink: 0; }
|
|
.notification-item__body { flex: 1; min-width: 0; }
|
|
.notification-item__body strong { display: block; font-size: 13px; }
|
|
.notification-item__body span { display: block; color: var(--ink-muted); font-size: 12px; margin-top: 2px; }
|
|
.notification-item__time { color: var(--ink-muted); font-size: 11px; flex-shrink: 0; white-space: nowrap; }
|
|
.notification-item--unread { border-color: var(--signal-amber); }
|
|
|
|
/* ============================================================
|
|
Einfacher Modus — moderat größere Schrift, reduzierte Optionen
|
|
(siehe Settings-Toggle in js/app.js, analog zur iOS-App)
|
|
============================================================ */
|
|
html.simple-mode { font-size: 112%; }
|
|
html.simple-mode .journey-modes-field,
|
|
html.simple-mode #journey-bike-row,
|
|
html.simple-mode .journey-add-via {
|
|
display: none;
|
|
}
|
|
html.simple-mode .journey-submit,
|
|
html.simple-mode .location-btn,
|
|
html.simple-mode .when-choice { min-height: 46px; }
|
|
|
|
.lang-switch { display: flex; gap: 8px; }
|
|
.lang-switch__btn {
|
|
background: var(--panel); color: var(--ink-muted); border: var(--border-w) solid var(--line);
|
|
border-radius: var(--radius); 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(193, 68, 14,.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: var(--border-w) solid var(--line);
|
|
border-radius: var(--radius-lg) var(--radius-lg) 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: var(--radius); max-height: 80vh; }
|
|
}
|
|
|
|
.trip-modal__header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 18px 18px 14px;
|
|
border-bottom: var(--border-w) 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: var(--radius);
|
|
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: var(--border-w) 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: var(--border-w) solid var(--line);
|
|
}
|
|
|
|
.trip-modal__map {
|
|
height: 220px;
|
|
border-bottom: var(--border-w) 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(193, 68, 14, 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: var(--border-w) 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: var(--border-w) solid var(--line);
|
|
border-radius: var(--radius);
|
|
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(193, 68, 14,.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: var(--shadow-md);
|
|
}
|
|
|
|
.trip-alarm-banner.is-visible { display: flex; }
|
|
.trip-alarm-banner__text { flex: 1; }
|
|
|
|
.trip-alarm-banner button {
|
|
background: none;
|
|
border: var(--border-w) solid var(--line);
|
|
color: var(--ink);
|
|
border-radius: var(--radius);
|
|
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: var(--radius);
|
|
padding: 36px 28px;
|
|
max-width: 340px;
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
.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: var(--on-amber);
|
|
border: 0;
|
|
border-radius: var(--radius);
|
|
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: var(--border-w) 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: var(--radius);
|
|
}
|
|
|
|
.map-isolation-banner button {
|
|
background: none;
|
|
border: var(--border-w) solid var(--line);
|
|
color: var(--ink);
|
|
border-radius: var(--radius);
|
|
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: var(--border-w) solid var(--line);
|
|
color: var(--ink);
|
|
border-radius: var(--radius);
|
|
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: var(--radius);
|
|
margin-top: 0;
|
|
transition: height 0.2s ease;
|
|
}
|
|
|
|
.journey-mini-map.is-open {
|
|
height: 160px;
|
|
margin-top: 8px;
|
|
border: var(--border-w) solid var(--line);
|
|
}
|
|
|
|
/* ============================================================
|
|
Ladezustände / Fehler allgemein
|
|
============================================================ */
|
|
|
|
.spinner {
|
|
display: inline-block;
|
|
width: 14px;
|
|
height: 14px;
|
|
border: 2px solid rgba(23, 19, 14, 0.18);
|
|
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: var(--border-w) solid var(--line);
|
|
border-radius: var(--radius);
|
|
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(193, 68, 14, 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: var(--radius);
|
|
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 {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 10px;
|
|
background: rgba(163, 38, 32, 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;
|
|
}
|
|
.disclaimer-banner__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: rgba(163, 38, 32, 0.16);
|
|
}
|
|
.disclaimer-banner__text { flex: 1; }
|
|
|
|
.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: var(--border-w) 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: var(--border-w) 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: 92px; }
|
|
/* Header auf dem Handy so schmal wie möglich halten: Wortmarke weg (nur
|
|
das Icon bleibt als Home-Button), Icon-Buttons kleiner und enger, damit
|
|
die Suche echten Platz bekommt statt auf ein paar Pixel zusammengequetscht
|
|
zu werden - vorher war oben praktisch kein Raum mehr für die Eingabe. */
|
|
.app-header { height: auto; min-height: 56px; padding: 8px 10px; gap: 6px; }
|
|
.brand { gap: 0; }
|
|
.brand__mark { display: none; }
|
|
.brand::before { width: 30px; height: 30px; border-radius: var(--radius); font-size: 14px; }
|
|
.search-box--global { min-width: 0; flex: 1; }
|
|
.search-box--global input { font-size: 14px; padding: 9px 34px; }
|
|
.header-icon-btn { width: 32px; height: 32px; font-size: 14px; }
|
|
.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: 60px minmax(0,1fr) 54px 78px; gap: 12px; padding: 12px 12px 12px 10px; border-left-width: 4px; }
|
|
.flap-label { font-size: 9px; }
|
|
.flap-cell--direction { font-size: 12px; }
|
|
.flap-cell--platform { font-size: 12px; }
|
|
.flap-cell--line { font-size: 14px; padding: 4px 8px; }
|
|
.flap-cell--time { font-size: 17px; letter-spacing: -.01em; }
|
|
.journey-options-row { display: block; }
|
|
.journey-options-row .journey-submit { width: 100%; margin-top: 8px; }
|
|
.journey-options-row .mode-filter { margin-bottom: 8px; }
|
|
.journey-via-row__fields { flex-direction: column; align-items: stretch; }
|
|
.journey-via-wait select { width: 100%; }
|
|
/* Fest angedockte, flache Signage-Leiste statt einer schwebenden Glas-
|
|
Pille - opake Papierfläche, dicke Kontur, harter Versatzschatten wie
|
|
der Rest der Oberfläche. Bewusst kein Blur mehr im Theme. */
|
|
.mobile-nav {
|
|
display: block; position: fixed; left: 10px; right: 10px;
|
|
bottom: calc(10px + env(safe-area-inset-bottom));
|
|
/* 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: var(--panel);
|
|
border: var(--border-w) solid var(--line);
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: var(--shadow-md);
|
|
padding: 6px 4px;
|
|
}
|
|
.mobile-nav__list { display: grid; grid-template-columns: repeat(6, 1fr); }
|
|
.mobile-nav__item {
|
|
position: relative;
|
|
border: 0; background: transparent; color: var(--ink-muted);
|
|
padding: 7px 1px; display: flex; flex-direction: column; align-items: center; gap: 2px;
|
|
border-radius: 2px;
|
|
transition: color .15s ease, background .15s ease;
|
|
min-width: 0;
|
|
}
|
|
.mobile-nav__item span { font-size: 16px; line-height: 1.1; }
|
|
/* Feste einzeilige Höhe erzwingen - ein langes Label (z.B. "Meine
|
|
Haltestellen") ist sonst auf zwei Zeilen umgebrochen, hat die ganze
|
|
Leiste aufgebläht und dadurch den unteren Inhalt überlappt, weil die
|
|
reservierte body-padding-bottom nicht mehr ausgereicht hat. */
|
|
.mobile-nav__item small {
|
|
font-size: 8.5px;
|
|
max-width: 100%;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.mobile-nav__item.is-active { color: var(--on-amber); background: var(--signal-amber); }
|
|
.toast-container { bottom: calc(74px + env(safe-area-inset-bottom) + 20px); }
|
|
.global-disclaimer { padding-bottom: calc(28px + 74px + env(safe-area-inset-bottom) + 20px); }
|
|
}
|
|
|
|
@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; }
|