Files

74 lines
4.5 KiB
CSS
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
:root {
--bg: #fff; --fg: #1f2937; --muted: #6b7280; --line: #e5e7eb; --accent: #b91c1c;
--ok: #16a34a; --d1: #eab308; --d2: #f97316; --d3: #dc2626; --na: #94a3b8;
font: 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
color: var(--fg);
}
@media (prefers-color-scheme: dark) {
:root { --bg: #111827; --fg: #e5e7eb; --muted: #9ca3af; --line: #374151; }
}
html, body { margin: 0; height: 100%; }
#map { position: absolute; inset: 0; }
.card {
position: absolute; z-index: 2; background: var(--bg); border-radius: 10px;
box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
#bar { top: 12px; left: 12px; padding: 10px 12px; max-width: min(380px, calc(100vw - 24px)); box-sizing: border-box; }
h1 { margin: 0 0 8px; font-size: 16px; letter-spacing: .02em; }
h1::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-right: 7px; }
.seg + .seg { margin-top: 6px; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: transparent; color: var(--fg); padding: 6px 8px; font: inherit; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.legend { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--muted); }
/* Skala 0–50 Minuten, gleiche Stützpunkte wie DELAY_STOPS in app.js */
.legend .scale { flex: 1 1 160px; }
.legend .bar { display: block; height: 7px; border-radius: 4px;
background: linear-gradient(90deg, #16a34a 5%, #eab308 20%, #f97316 40%, #dc2626 60%, #9333ea 80%, #9333ea); }
.legend .ticks { display: flex; justify-content: space-between; font-size: 11px; }
.legend .ticks b { font-weight: normal; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 4px; }
#search { margin-top: 8px; }
#q { width: 100%; box-sizing: border-box; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px;
background: var(--bg); color: var(--fg); font: inherit; }
#results { list-style: none; margin: 4px 0 0; padding: 0; max-height: 45vh; overflow: auto; }
#results[hidden] { display: none; }
#results li { padding: 6px 4px; border-top: 1px solid var(--line); cursor: pointer; }
#results li:hover, #results li.sel { background: var(--line); }
#results .r1 { display: flex; justify-content: space-between; gap: 8px; }
#results .r2 { font-size: 12px; color: var(--muted); }
#status { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
#status.warn { color: var(--d2); }
#hint { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
#panel { top: 12px; right: 12px; width: 340px; max-height: calc(100% - 24px); overflow: auto; padding: 14px 16px; box-sizing: border-box; }
#close { position: sticky; top: 0; float: right; border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
#detail h2 { margin: 0; font-size: 18px; }
#detail .sub { color: var(--muted); margin: 2px 0 10px; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 99px; color: #fff; font-size: 12px; font-weight: 600; vertical-align: 2px; }
.stops { list-style: none; margin: 0; padding: 0; }
.stops li { display: grid; grid-template-columns: 46px 1fr auto; gap: 0 8px; padding: 5px 0; border-top: 1px solid var(--line); }
.stops li.passed { opacity: .45; }
.stops li.skipped > span:nth-child(-n+2) { text-decoration: line-through; }
.stops .t { font-variant-numeric: tabular-nums; }
.stops .d { font-size: 12px; font-weight: 600; }
.stops .pl { color: var(--muted); font-size: 12px; }
@media (max-width: 640px) {
#panel { top: auto; bottom: 0; right: 0; left: 0; width: auto; max-height: 55%; border-radius: 12px 12px 0 0; }
.legend { display: none; }
}
.hover .maplibregl-popup-content { background: var(--bg); color: var(--fg); padding: 6px 10px; border-radius: 8px; font-size: 13px; }
.hover .maplibregl-popup-tip { display: none; }
#loading { left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 14px 20px; font-size: 15px;
max-width: calc(100vw - 48px); text-align: center; z-index: 3; }
#loading[hidden] { display: none; }
#loading::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 10px; vertical-align: -2px;
border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }