:root {
	--db-red: #ec0016;
	--db-red-dark: #c50014;
	--bg: #f0f3f7;
	--card: #ffffff;
	--ink: #131821;
	--muted: #646973;
	--border: #d7dce1;
	--field: #f0f3f7;
	--bar: #c8ced6;
	--navy: #16244a;
	--go: #1a8754;
	--meh: #b8860b;
	--risky: #e07b00;
	--stay: #ec0016;
}
* { box-sizing: border-box; }
body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background: var(--bg);
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
}
.page { max-width: 1400px; margin: 0 auto; padding: 22px 28px 64px; }

/* Kopfleiste im DB-Stil (weiße Bar, Logo links) */
.appbar { background: #fff; border-bottom: 1px solid var(--border); }
.appbar-inner { max-width: 1400px; margin: 0 auto; padding: 9px 28px; display: flex; align-items: center; }
.brand-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-logo { height: 44px; width: auto; display: block; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -0.4px; margin: 0; }
.brand-z { color: var(--db-red); }
.sub { color: var(--muted); font-size: 13.5px; margin: 0 0 18px; line-height: 1.45; }
code { background: #eef1f5; padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }

/* Anfrage-Leiste auf /fahrplan (graue Bar im DB-Stil, ersetzt die Suchleiste) */
.route-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #71717a; color: #fff; border-radius: 8px; padding: 11px 16px; flex-wrap: wrap; }
.back { color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.back:hover { text-decoration: underline; }
.route { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; font-size: 14.5px; }
.route .rsep { opacity: .8; }

/* Suchkarte */
.searchcard { background: var(--card); border-radius: 14px; padding: 18px 18px 20px; box-shadow: 0 2px 10px rgba(20,30,50,.06); }
.sc-title { font-size: 18px; font-weight: 800; margin: 0 0 4px; }
.sc-underline { width: 46px; height: 4px; background: var(--db-red); border-radius: 2px; margin-bottom: 16px; }
.sc-row { display: grid; grid-template-columns: 1fr 52px 1fr auto; gap: 12px; align-items: stretch; }
.field { position: relative; display: flex; align-items: center; gap: 12px; background: var(--field); border: 1px solid transparent; border-radius: 12px; padding: 14px 18px; }
.field:focus-within { border-color: var(--db-red); background: #fff; }
.field.err { border-color: var(--db-red); background: #fff; box-shadow: 0 0 0 3px rgba(236,0,22,.12); }
.sc-msg { display: none; align-items: center; gap: 9px; margin-top: 14px; padding: 11px 15px; background: rgba(236,0,22,.07); border: 1px solid rgba(236,0,22,.25); border-radius: 10px; color: var(--db-red-dark); font-weight: 600; font-size: 14px; }
.sc-msg:not([hidden]) { display: flex; }
.sc-msg-ic { display: inline-flex; color: var(--db-red); font-size: 18px; flex: 0 0 auto; }
.ficon { color: var(--db-red); font-size: 24px; line-height: 1; flex: 0 0 auto; }
.fbody { flex: 1; min-width: 0; }
.fbody label { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.fbody input { width: 100%; border: 0; background: transparent; outline: none; font-size: 19px; color: var(--ink); padding: 2px 0 0; }
.fclear { flex: 0 0 auto; border: 0; background: #d7dce1; color: #fff; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; font-size: 13px; padding: 0; display: none; }
.field.has-value .fclear { display: block; }
.swap { border: 1px solid var(--border); background: #fff; border-radius: 50%; width: 52px; height: 52px; align-self: center; cursor: pointer; color: var(--ink); font-size: 22px; transition: background .12s; }
.swap:hover { background: #eef1f5; }
.search-btn { border: 0; background: var(--db-red); color: #fff; font-weight: 800; font-size: 18px; padding: 0 32px; border-radius: 12px; cursor: pointer; }
.search-btn:hover { background: var(--db-red-dark); }
.search-btn:disabled { opacity: .6; cursor: default; }
/* Optionszeile: Datum/Uhrzeit + Klasse + Score */
.sc-options { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 14px; }
.sc-when-wrap { position: relative; }
.sc-when { display: inline-flex; align-items: center; gap: 10px; background: var(--field); border: 0; border-radius: 12px; padding: 12px 16px; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); cursor: pointer; }
.sc-when-ic { color: var(--db-red); display: inline-flex; font-size: 20px; }
.sc-when-caret { color: var(--muted); display: inline-flex; font-size: 18px; }
.sc-class { display: inline-flex; background: var(--field); border-radius: 12px; padding: 4px; gap: 2px; }
.cls-btn { border: 0; background: none; padding: 9px 18px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.cls-btn:hover { color: var(--ink); }
.cls-btn.on { background: var(--navy); color: #fff; }
.sc-score { display: inline-flex; align-items: center; gap: 8px; background: var(--field); border-radius: 12px; padding: 8px 14px; }
.sc-score-label { font-weight: 700; font-size: 14px; color: var(--ink); }
.sc-score select, .sc-score input { border: 1px solid var(--border); border-radius: 8px; padding: 7px 8px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: #fff; }
.sc-score input { width: 62px; }
.route-sub { color: var(--muted); font-size: 14px; font-weight: 600; margin: 2px 2px 16px; }

/* Custom Date-Picker (Popover) */
.dp { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; width: 300px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 50px rgba(20,30,50,.18); padding: 14px; }
.dp-quick { display: flex; gap: 8px; margin-bottom: 12px; }
.dp-q { flex: 1; border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 7px 0; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; }
.dp-q:hover { border-color: var(--db-red); color: var(--db-red); }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dp-month { font-weight: 800; font-size: 15px; color: var(--ink); }
.dp-nav { width: 32px; height: 32px; border: 1px solid var(--border); background: #fff; border-radius: 8px; cursor: pointer; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.dp-nav:hover { background: var(--field); }
.dp-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 4px; }
.dp-week span { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-day { aspect-ratio: 1; border: 0; background: none; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; position: relative; }
.dp-day.empty { visibility: hidden; }
.dp-day:hover:not([disabled]):not(.sel) { background: var(--field); }
.dp-day[disabled] { color: #c2c8d0; cursor: default; }
.dp-day.sel { background: var(--db-red); color: #fff; }
.dp-day.today::after { content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--db-red); }
.dp-day.today.sel::after { background: #fff; }
.dp-time-row { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 10px; padding-top: 12px; border-top: 1px solid var(--border); }
.dp-time-label { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; color: var(--ink); }
.dp-time-label svg { color: var(--db-red); width: 18px; height: 18px; }
.dp-time-input { border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; font: inherit; font-weight: 700; font-size: 14px; color: var(--ink); }
.dp-time-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.dp-chip { border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: 7px 0; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; }
.dp-chip:hover { border-color: var(--db-red); }
.dp-chip.sel { background: var(--db-red); border-color: var(--db-red); color: #fff; }
.filter-clear { border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: 6px 12px; font: inherit; font-weight: 700; font-size: 13px; color: var(--db-red); cursor: pointer; margin-left: 6px; }
.filter-clear:hover { border-color: var(--db-red); }
.dp-time-input { width: 70px; text-align: center; }

/* Custom-Dropdown (Score-Operator) */
.cdd { position: relative; }
.cdd-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 8px; background: #fff; padding: 7px 10px 7px 12px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.cdd-caret { color: var(--muted); display: inline-flex; font-size: 16px; }
.cdd-menu { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; min-width: 124px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 30px rgba(20,30,50,.16); padding: 5px; }
.cdd-opt { display: block; width: 100%; text-align: left; border: 0; background: none; border-radius: 7px; padding: 9px 12px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.cdd-opt:hover { background: var(--field); }

.suggestions { position: absolute; z-index: 9; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(20,30,50,.16); }
.suggestions div { padding: 11px 14px; cursor: pointer; font-size: 14.5px; border-bottom: 1px solid #eef1f5; }
.suggestions div:last-child { border-bottom: 0; }
.suggestions div:hover { background: var(--field); }

/* Ergebnisse */
.upd { color: var(--muted); font-size: 13px; margin: 14px 4px 0; display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--go); animation: livePulse 2s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(26,135,84,.45); } 70% { box-shadow: 0 0 0 6px rgba(26,135,84,0); } 100% { box-shadow: 0 0 0 0 rgba(26,135,84,0); } }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin: 6px 4px 16px; }
.rh-title { font-size: 24px; font-weight: 400; }
.rh-title strong { font-weight: 900; }
.rh-title span { color: var(--ink); font-size: 24px; }
.mode-toggle { display: inline-flex; background: #eef1f5; border-radius: 11px; padding: 3px; gap: 2px; }
.mode-btn { border: 0; background: none; padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.mode-btn:hover { color: var(--ink); }
.mode-btn.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20,30,50,.14); }

/* "Habs eilig"-Modus: kompakte Karte, nur Score + knappe Begründung */
.qconn { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(20,30,50,.05); }
.q-score { min-width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; border-radius: 12px; color: #fff; font-weight: 900; font-size: 23px; font-variant-numeric: tabular-nums; }
.q-top { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.q-meta { font-weight: 500; color: var(--muted); font-size: 14px; }
.q-verdict { font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 5px; margin-top: 4px; }
.q-verdict svg.ic { width: 1.2em; height: 1.2em; }
.q-reason { font-size: 13px; color: var(--muted); margin-top: 3px; }
.q-db { color: var(--db-red); display: inline-flex; align-items: center; padding: 9px; border-radius: 9px; }
.q-db:hover { background: #f5f6f8; }
.q-db svg.ic { width: 22px; height: 22px; }
.more-row { margin: 2px 4px 12px; }
.more-link { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; color: var(--ink); font-weight: 700; font-size: 14px; cursor: pointer; padding: 8px 2px; }
.more-link .ar { color: var(--db-red); font-weight: 800; font-size: 15px; }
.more-link:hover { color: var(--db-red-dark); }
.more-link:disabled { opacity: .55; cursor: default; }
.state { background: #fff; border-radius: 12px; padding: 34px 16px; text-align: center; color: var(--muted); margin-top: 16px; }
.state a { color: var(--db-red-dark); font-weight: 700; }

/* Verbindungs-Karte */
.conn { background: var(--card); border-radius: 12px; box-shadow: 0 2px 8px rgba(20,30,50,.06); margin-bottom: 14px; overflow: hidden; }
.conn-top { display: grid; grid-template-columns: 1fr 168px; }
.conn-main { padding: 16px 18px 8px; min-width: 0; }
.conn-side { border-left: 1px solid #eef1f5; padding: 16px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }

.ctimes { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 4px 10px; }
.ct-col { display: flex; flex-direction: column; line-height: 1.15; }
.ct-plan { font-size: 19px; font-weight: 800; }
.ct-real { font-size: 15px; font-weight: 700; }
.ct-real.late { color: #b91c1c; }
.ct-real.ok { color: #4d7c0f; }
.ct-dash { font-size: 19px; font-weight: 800; }
.ct-meta { color: var(--muted); font-size: 13.5px; align-self: flex-start; padding-top: 3px; }
.fast-badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--go); padding: 3px 8px 3px 6px; border-radius: 6px; align-self: flex-start; margin-top: 2px; }
.fast-badge svg.ic { width: 13px; height: 13px; }
.past-badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--navy); padding: 3px 8px; border-radius: 6px; align-self: flex-start; margin-top: 2px; }
.is-past { opacity: .58; }

.pbar { display: flex; gap: 4px; margin: 12px 0 10px; }
.seg { flex: 1; min-width: 56px; background: #9ca3af; color: #111821; font-weight: 700; font-size: 12px; text-align: center; padding: 6px 8px; border: 1px solid #8b919c; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg-fern { background: #1c2536; color: #fff; border-color: #1c2536; }
.seg.walk { flex: 0 0 auto; background: #e7ebf0; color: var(--muted); font-weight: 600; border-color: var(--border); }

.cstops { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.cstops .to { text-align: right; }

.cmeld { display: flex; align-items: center; gap: 7px; color: var(--db-red-dark); font-size: 13px; margin-top: 10px; font-weight: 600; }
.excl { display: inline-flex; width: 16px; height: 16px; border-radius: 50%; background: #1a1a1a; color: #fff; font-size: 11px; font-weight: 800; align-items: center; justify-content: center; flex: 0 0 auto; }

/* Score-Seite */
.gauge { position: relative; width: 72px; height: 72px; }
.gauge svg { transform: rotate(-90deg); }
.gauge .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge .num b { font-size: 22px; line-height: 1; }
.gauge .num span { font-size: 9px; color: var(--muted); }
.verdict { font-size: 13px; font-weight: 800; line-height: 1.25; }

/* Details-Umschalter */
.details-toggle { display: block; width: 100%; text-align: center; background: #fff; border: 0; border-top: 1px solid #eef1f5; color: var(--muted); font-weight: 700; font-size: 14px; padding: 11px; cursor: pointer; }
.details-toggle .chev { color: var(--db-red); margin-left: 4px; }
.conn-details { display: none; padding: 4px 18px 20px; border-top: 1px solid #eef1f5; background: #fafbfc; }
.conn-details.open { display: block; }
.dsec-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 18px 0 8px; }

/* Meldungen (voll lesbar) */
.meld-item { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; padding: 9px 0; border-bottom: 1px solid #eef1f5; }
.meld-item:last-child { border-bottom: 0; }
.meld-item .excl { background: var(--db-red); margin-top: 1px; }
.meld-item a { color: var(--db-red-dark); }

/* Faktoren */
.facs { margin-top: 2px; }
.fac-legend { display: flex; gap: 16px; margin: 0 0 12px; font-size: 11px; color: var(--muted); }
.fac-legend .lg { display: inline-flex; align-items: center; gap: 5px; }
.fac-legend .lg::before { content: ''; width: 8px; height: 8px; border-radius: 50%; }
.fac-legend .lg-low::before { background: #caa53d; }
.fac-legend .lg-mid::before { background: #e07b00; }
.fac-legend .lg-high::before { background: #ec0016; }
.fac { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 3px 12px; padding: 11px 0; }
.fac + .fac { border-top: 1px solid #f0f2f5; }
.fac-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--fc); }
.fac .fl { font-size: 14.5px; font-weight: 600; }
.fac .fl small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 2px; }
.fac .pts { font-weight: 800; font-size: 15px; color: var(--fc); font-variant-numeric: tabular-nums; }
.fbar { grid-column: 2 / -1; height: 6px; background: #eef1f5; border-radius: 4px; overflow: hidden; margin-top: 3px; }
.fbar > i { display: block; height: 100%; border-radius: 4px; background: var(--fc); transition: width .4s ease; }
.no-fac { color: var(--go); font-weight: 600; font-size: 14px; padding: 8px 0; }

/* Reiseplan im DB-Detailstil – großzügig, mit eingewobener Bewertung */
.rp { margin-top: 12px; }
.rp-row { display: grid; grid-template-columns: 74px 30px 1fr auto; gap: 18px; }
.rp-time { font-size: 15px; text-align: right; line-height: 1.35; padding-top: 3px; white-space: nowrap; }
.rp-time b { font-weight: 800; }
.rp-time .rt { display: block; font-weight: 700; font-size: 14px; }
.rp-time .rt.late { color: var(--db-red); }
.rp-time .rt.ok { color: var(--go); }
.rp-dur { color: var(--muted); padding-top: 16px; font-weight: 600; font-size: 14px; }
.rp-seg .rp-dur, .rp-xfer .rp-dur { align-self: center; padding-top: 0; } /* Fahr-/Umstiegszeit mittig zum Strich bzw. zur Box */
.rp-rail { position: relative; align-self: stretch; } /* immer volle Zeilenhöhe -> Verbindungslinie reißt nie ab */
.rp-rail::before { content: ''; position: absolute; left: 13px; top: 0; bottom: 0; width: 2px; background: #9aa3b0; }
.rp-row.first .rp-rail::before { top: 12px; }
.rp-row.last .rp-rail::before { bottom: auto; height: 12px; }
.rp-dot { position: absolute; left: 6px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid #1a1a1a; box-sizing: border-box; }
.rp-stop { min-height: 46px; }
/* Halt vor Umstieg unten ausrichten -> gleicher Abstand ober-/unterhalb der Umstieg-Box */
.rp-stop.pre-xfer { min-height: 0; align-items: end; }
.rp-stop.pre-xfer .rp-dot { top: auto; bottom: 5px; }
.rp-stop.pre-xfer .rp-pf { align-self: end; }
.rp-name { font-weight: 800; font-size: 17px; padding-top: 1px; }
.rp-name .cv { color: var(--db-red); }
.rp-pf { background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 5px; align-self: start; white-space: nowrap; }
.rp-vc { position: relative; padding: 4px 0 20px 21px; }
.rp-vc::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--leg, #cfd6df); }
.veh-chip { background: #eef1f5; border: 1px solid var(--border); font-weight: 700; font-size: 14px; padding: 5px 12px; border-radius: 5px; display: inline-block; }
.veh-chip .train-ico { vertical-align: -2px; margin-right: 2px; }
.veh-dir { display: block; color: var(--muted); font-size: 14px; margin-top: 10px; }
.rp-chips { margin-top: 12px; }
.rp-chip { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin: 0 7px 6px 0; }
.rp-chip.delay { background: rgba(236,0,22,.1); color: var(--db-red-dark); }
.rp-chip.load { background: rgba(224,123,0,.14); color: #b35e00; }
.rp-warn { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; line-height: 1.5; margin-top: 12px; }
.rp-warn .excl { background: var(--db-red); margin-top: 2px; }
.rp-warn a { color: var(--db-red-dark); }
.rp-togglerow { min-height: 0; }
.rp-stops-toggle { justify-self: start; background: none; border: 0; color: var(--db-red-dark); font-weight: 700; font-size: 14px; cursor: pointer; padding: 2px 0 6px; display: inline-flex; align-items: center; gap: 5px; }
/* Zwischenhalte: echte Timeline-Zeilen auf der linken Leiste, sanftes Auf-/Zuklappen */
.rp-stops { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s ease; }
.rp-stops.open { grid-template-rows: 1fr; }
.rp-stops-inner { overflow: hidden; min-height: 0; opacity: 0; transition: opacity .28s ease; }
.rp-stops.open .rp-stops-inner { opacity: 1; }
/* Abstand über die Zeilenhöhe, NICHT über Padding -> Schiene füllt voll, Strich läuft lückenlos durch */
.rp-substop { min-height: 40px; align-items: center; }
.rp-subname { font-size: 16px; font-weight: 400; color: var(--ink); } /* nur ganz wenig kleiner als große Halte (17px), nicht bold */
.rp-time-sm { padding-top: 0; color: var(--muted); font-weight: 400; font-size: 14px; }
.rp-pf-sm { justify-self: start; align-self: center; background: #eef1f5; color: var(--navy); font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 5px; white-space: nowrap; }
.rp-dot.sm { left: 9.5px; top: 50%; transform: translateY(-50%); width: 9px; height: 9px; border-width: 2px; border-color: #9aa3b0; }
.rp-xfer { align-items: stretch; }
.rp-xbox { grid-column: 3 / -1; background: #eef2f7; border-radius: 8px; padding: 13px 16px; margin: 20px 0; }
.rp-xtitle { font-weight: 700; font-size: 15px; }
.rp-xrisk { font-size: 13.5px; font-weight: 700; margin-top: 5px; }
.rp-xrisk.ok { color: var(--go); }
.rp-xrisk.warn { color: #b35e00; }
.rp-xrisk.bad { color: var(--db-red); }
/* "Zeit totschlagen": Gastro-Vorschlaege bei langem Umstieg */
.killtime-toggle { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; color: var(--navy); font-weight: 700; font-size: 13px; cursor: pointer; }
.killtime-toggle:hover { border-color: #c7ccd5; }
.killtime-toggle.open .chev { transform: rotate(180deg); }
.killtime-list { display: none; margin-top: 8px; border-top: 1px solid #e3e7ee; }
.killtime-list.open { display: block; }
.kt-item { display: grid; grid-template-columns: 1fr auto; gap: 1px 12px; padding: 9px 4px; border-bottom: 1px solid #e6eaf0; text-decoration: none; color: inherit; }
.kt-item:last-child { border-bottom: 0; }
.kt-item:hover { background: #fff; }
.kt-name { grid-column: 1; grid-row: 1; font-weight: 700; font-size: 14px; color: var(--ink); }
.kt-sub { grid-column: 1; grid-row: 2; color: var(--muted); font-size: 12.5px; }
.kt-dist { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--navy); font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.kt-msg { color: var(--muted); font-size: 13px; padding: 8px 4px; }

.dblink { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; padding: 11px 18px; background: var(--db-red); color: #fff; font-weight: 800; font-size: 14px; border-radius: 8px; text-decoration: none; }
.dblink:hover { background: var(--db-red-dark); }

footer { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; line-height: 1.6; text-align: center; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 30px; margin-bottom: 16px; }
.foot-links a { color: var(--navy); font-weight: 600; font-size: 14px; text-decoration: none; }
.foot-links a:hover { color: var(--db-red); text-decoration: underline; }
.foot-copy { text-align: right; color: var(--muted); font-size: 13px; margin-top: 16px; }
.foot-note { max-width: 92ch; margin: 0 auto; font-size: 12.5px; line-height: 1.6; }

/* ===== Über-Seite / FAQ ===== */
.about { max-width: 760px; }
.about-kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--db-red); margin: 4px 0 12px; }
.about-title { font-size: 38px; font-weight: 900; letter-spacing: -1px; margin: 0 0 14px; }
.about-lead { font-size: 17px; line-height: 1.6; color: #2b3442; margin: 0 0 6px; max-width: 64ch; }
.about-lead strong { color: var(--ink); font-weight: 700; }
.faq { margin: 30px 0 0; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(20,30,50,.05); transition: box-shadow .18s, border-color .18s; }
.faq-item[open] { box-shadow: 0 8px 26px rgba(20,30,50,.10); border-color: #c7ccd5; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 17px 18px; font-weight: 800; font-size: 16.5px; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--db-red-dark); }
.faq-q { flex: 1; }
.faq-item summary .chev { color: var(--db-red); font-size: 20px; flex: 0 0 auto; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-a { padding: 0 18px 18px; font-size: 15px; line-height: 1.7; color: #2b3442; }
.faq-a p { margin: 0 0 10px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a strong { color: var(--ink); font-weight: 700; }
.faq-a a { color: var(--db-red-dark); }
.about-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin: 34px 0 4px; }
.about-outro { font-size: 16px; color: #2b3442; margin: 0; }
.about-btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 26px; background: var(--db-red); color: #fff; font-weight: 800; font-size: 16px; border-radius: 10px; text-decoration: none; }
.about-btn:hover { background: var(--db-red-dark); }
.about-meta { color: var(--muted); font-size: 13.5px; margin-top: 20px; }
.about-meta a { color: var(--db-red-dark); }
@media (max-width: 560px) {
	.about-title { font-size: 30px; }
	.faq-item summary { font-size: 15.5px; padding: 15px 15px; }
}

/* Rechtstexte (Impressum / Datenschutz) */
.legal { max-width: 760px; }
.legal-title { font-size: 30px; font-weight: 900; letter-spacing: -.5px; margin: 4px 0 18px; }
.legal h2 { font-size: 19px; font-weight: 800; margin: 26px 0 8px; }
.legal p { font-size: 15px; line-height: 1.65; color: #2b3442; margin: 0 0 12px; }
.legal a { color: var(--db-red-dark); }
.legal .muted-note { color: var(--muted); font-size: 13.5px; }

@media (max-width: 680px) {
	.sc-row { grid-template-columns: 1fr; }
	.swap { justify-self: center; }
	.search-btn { padding: 13px; }
	.conn-top { grid-template-columns: 1fr; }
	.conn-side { border-left: 0; border-top: 1px solid #eef1f5; flex-direction: row; gap: 14px; }
}

/* ===== Einheitliches Icon-Set ===== */
svg.ic { width: 1em; height: 1em; vertical-align: -0.15em; flex: none; }
.chev { display: inline-flex; align-items: center; transition: transform .15s ease; }
.details-toggle.open .chev, .rp-stops-toggle.open .chev { transform: rotate(180deg); }
.ic-warn { color: var(--db-red); display: inline-flex; align-items: center; }
.verdict { display: flex; align-items: center; justify-content: center; gap: 5px; }
.verdict svg.ic { width: 1.3em; height: 1.3em; }
.rp-chip svg.ic, .fast-badge svg.ic, .no-fac svg.ic, .rp-xtitle svg.ic { margin-right: 4px; }
.dblink svg.ic { width: 1.15em; height: 1.15em; }
.rp-name .cv svg.ic { width: .9em; height: .9em; }
.more-link .ar svg.ic { width: 1.1em; height: 1.1em; }
.no-fac { display: flex; align-items: center; gap: 6px; }

/* Icons in den Suchfeldern/Buttons mittig */
.ficon { display: inline-flex; align-items: center; }
.fclear { display: none; align-items: center; justify-content: center; }
.field.has-value .fclear { display: inline-flex; }
.swap { display: flex; align-items: center; justify-content: center; }
.search-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

/* ===== Hero (Hauptseite) ===== */
.hero { margin: 16px 2px 32px; }
.hero-title {
	font-size: 56px; line-height: 1.03; font-weight: 900; letter-spacing: -2px; margin: 0 0 20px;
	max-width: 22ch; min-height: 2.08em; text-wrap: balance;
	transition: opacity .4s ease, transform .4s ease;
}
.hero-title.is-out { opacity: 0; transform: translateY(-12px); }
.hero-sub { font-size: 16px; line-height: 1.6; color: #4b5563; max-width: 72ch; margin: 0; }
.hero-sub strong { color: var(--ink); font-weight: 700; }

/* Suchkarte: größer, volle Breite, deutlich hervorgehoben */
.searchcard { padding: 30px 30px 32px; border-radius: 18px; box-shadow: 0 18px 50px rgba(20,30,50,.15), 0 0 0 1px rgba(236,0,22,.10); }
.sc-title { font-size: 23px; }

/* Abschnittstitel (z. B. über den Score-Faktoren) */
.section-title { font-size: 26px; font-weight: 900; letter-spacing: -.6px; margin: 0 2px 6px; }
.section-sub { color: var(--muted); font-size: 15px; margin: 0 2px 0; }

/* Trennlinie zwischen Stats-Block und Faktoren-Abschnitt */
.block-divider { height: 1px; background: var(--border); margin: 46px 0; }

/* Stats-Block im hellen Spalten-Stil */
.stats { margin: 76px 0 0; text-align: center; }
.stats-title { font-size: 22px; font-weight: 800; letter-spacing: .01em; color: var(--ink); margin: 0; }
.stats-rule { width: 54px; height: 2px; background: var(--border); border-radius: 2px; margin: 14px auto 16px; }
.stats-sub { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.stat-card { transition: opacity .38s ease, transform .38s ease; }
.stat-card.is-out { opacity: 0; transform: translateY(8px); }
.stat-eyebrow { display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.stat-lines { display: flex; flex-wrap: wrap; justify-content: center; }
.stat-line { flex: 1 1 0; min-width: 160px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 6px 24px; }
.stat-line + .stat-line { border-left: 1px solid var(--border); }
.stat-ic { width: 46px; height: 46px; color: #5b6675; display: inline-flex; align-items: center; justify-content: center; }
.stat-ic svg { width: 42px; height: 42px; }
.stat-num { font-size: 38px; font-weight: 800; color: var(--ink); letter-spacing: -.5px; line-height: 1; font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.stat-cap { display: flex; align-items: center; justify-content: center; min-height: 2.7em; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); max-width: 20ch; line-height: 1.35; }
.stat-dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.stat-dots i { width: 8px; height: 8px; border-radius: 50%; background: #cfd6e2; cursor: pointer; transition: background .2s; }
.stat-dots i.on { background: var(--navy); }

/* ===== Feature-Liste: links ausgerichtet, über die Breite verteilt ===== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 30px; margin-top: 22px; }
.feature { display: flex; flex-direction: column; align-items: flex-start; text-align: left; background: none; border: 0; padding: 0; }
.feat-ic { flex: none; width: 68px; height: 68px; border-radius: 0; background: none; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-size: 60px; margin-bottom: 16px; }
.feature b { display: block; font-size: 17px; margin-bottom: 8px; }
.feature > div > span { color: #46586f; font-size: 14.5px; line-height: 1.5; }

@media (max-width: 880px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
	.features { grid-template-columns: 1fr; gap: 30px; }
	.hero-title { font-size: 38px; letter-spacing: -1px; }
	.hero-sub { font-size: 15px; }
}

/* ===== 404 ===== */
.nf { text-align: center; padding-top: 30px; padding-bottom: 70px; }
.nf-num { font-size: clamp(110px, 26vw, 196px); font-weight: 900; line-height: .88; letter-spacing: -5px; color: var(--navy); }
.nf-board { display: inline-flex; align-items: center; gap: 12px; background: var(--navy); color: #fff; border-radius: 12px; padding: 11px 14px 11px 18px; margin: 20px 0 28px; font-weight: 700; font-size: 16px; box-shadow: 0 10px 26px rgba(22,36,74,.18); }
.nf-board-ic { display: inline-flex; align-items: center; font-size: 20px; opacity: .85; }
.nf-board-delay { background: var(--db-red); color: #fff; border-radius: 8px; padding: 5px 13px; font-weight: 900; letter-spacing: .3px; font-variant-numeric: tabular-nums; }
.nf-title { font-size: 30px; font-weight: 800; margin: 0 0 14px; color: var(--ink); letter-spacing: -.5px; }
.nf-sub { color: var(--muted); font-size: 16px; max-width: 470px; margin: 0 auto 8px; line-height: 1.6; }
.nf-sub strong { color: var(--ink); }
.nf-home { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; padding: 13px 26px; background: var(--db-red); color: #fff; font-weight: 800; font-size: 16px; border-radius: 10px; text-decoration: none; }
.nf-home:hover { background: var(--db-red-dark); }
@media (max-width: 560px) {
	.nf-title { font-size: 24px; }
	.nf-board { font-size: 14px; gap: 9px; }
}
