.route-builder { margin-top: 18px; padding: 14px; border: 1px solid var(--color-line); border-radius: var(--radius-medium); background: var(--color-panel-muted); }
.route-ab { display: grid; grid-template-columns: 30px 1fr 48px; gap: 10px; align-items: start; }
.route-markers { display: grid; justify-items: center; grid-template-rows: 26px 1fr 26px; align-self: stretch; padding: 25px 0 5px; }
.route-markers span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--color-blue); font-weight: 900; font-size: .8rem; }
.route-markers span:last-child { background: var(--color-green); }
.route-markers i { width: 2px; background: var(--color-line); min-height: 76px; }
.route-fields { display: grid; gap: 14px; min-width: 0; }
.station-field { min-width: 0; }
.station-field > label { display: block; color: var(--color-muted); font-size: .76rem; font-weight: 800; margin-bottom: 4px; }
.station-field__input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.station-search-button { min-width: 86px; padding-inline: 11px; }
.station-selected { margin: 7px 0 0; border-left: 3px solid var(--color-green); border-radius: 7px; background: #173a21; color: #d9f3df; padding: 8px 10px; font-size: .74rem; overflow-wrap: anywhere; }
.station-suggestions { display: grid; gap: 7px; margin-top: 8px; }
.station-suggestion-title, .station-empty { margin: 0; color: var(--color-muted); font-size: .75rem; }
.station-suggestion { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; min-height: var(--touch-min); border: 1px solid var(--color-line); border-radius: 11px; background: var(--color-panel-raised); color: var(--color-text); padding: 10px 12px; text-align: left; font-weight: 800; }
.station-suggestion:hover, .station-suggestion:focus-visible { border-color: #5f8ce8; background: #273449; }
.station-suggestion small { color: var(--color-muted); font-weight: 500; overflow-wrap: anywhere; }
.swap-button { width: 48px; height: 48px; margin-top: 22px; border: 1px solid var(--color-line); border-radius: 14px; background: var(--color-panel-raised); font-size: 1.25rem; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 14px; padding: 4px; border-radius: 12px; background: #111720; }
.segmented button { min-height: 44px; border: 0; border-radius: 9px; background: transparent; font-weight: 800; }
.segmented button.is-selected { background: var(--color-panel-raised); }
.date-input { display: grid; gap: 4px; margin-top: 10px; color: var(--color-muted); font-size: .76rem; font-weight: 800; }
.date-input input { color-scheme: dark; }
.route-status { margin: 10px 0 0; border-radius: 10px; padding: 10px 11px; background: #111720; color: var(--color-muted); font-size: .78rem; }
.route-status[data-kind="ok"] { background: var(--color-green-soft); color: #d9f3df; }
.route-status[data-kind="warn"] { background: #302a18; color: #f6e4ad; }
.route-status[data-kind="error"] { background: #3a1d20; color: #ffced1; }
.route-results { display: grid; gap: 12px; margin-top: 16px; }
.route-result-summary { border: 1px solid var(--color-line); border-radius: 12px; background: #161c25; padding: 12px; color: var(--color-muted); font-size: .8rem; }
.route-empty { border: 1px dashed var(--color-line); border-radius: 12px; background: #161c25; padding: 16px; color: var(--color-muted); }
.route-empty--error { border-color: #743d44; background: #321d20; color: #ffced1; }
.journey-card { border: 1px solid var(--color-line); border-radius: 15px; background: linear-gradient(180deg, #252d3a, #1c222c); overflow: hidden; }
.journey-card.is-cancelled { border-color: #88434a; }
.journey-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 13px 14px; }
.journey-summary__time { margin-right: auto; font-size: 1.1rem; }
.journey-card details { border-top: 1px solid var(--color-line); }
.journey-card summary { min-height: var(--touch-min); display: flex; align-items: center; cursor: pointer; padding: 10px 14px; color: #cbd5e3; font-weight: 800; }
.journey-legs { display: grid; gap: 0; margin: 0; padding: 0 14px 14px 34px; list-style: none; }
.journey-leg { position: relative; padding: 10px 0 10px 12px; border-left: 2px solid #526074; }
.journey-leg::before { content: ''; position: absolute; left: -6px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--color-blue); }
.journey-leg--non-transit::before { background: var(--color-yellow); }
.journey-leg__top { display: flex; justify-content: space-between; gap: 10px; }
.journey-leg p { margin: 4px 0 0; color: var(--color-muted); font-size: .78rem; }
.journey-leg__meta { color: var(--color-soft) !important; }
.technical-test { margin-top: 18px; border: 1px dashed #566274; border-radius: 14px; background: #171d26; padding: 0 14px 14px; }
.technical-test > summary { min-height: var(--touch-min); display: flex; align-items: center; cursor: pointer; color: #b9d0ff; font-weight: 800; }
.technical-test > p { color: var(--color-muted); font-size: .78rem; }
.test-results { display: grid; gap: 7px; margin-top: 9px; }
.test-summary { margin: 0; border-radius: 9px; padding: 9px; font-weight: 800; }
.test-summary--pass { background: var(--color-green-soft); color: #d9f3df; }
.test-summary--fail { background: #3a1d20; color: #ffced1; }
.test-case { display: grid; gap: 2px; border: 1px solid var(--color-line); border-radius: 9px; padding: 9px; }
.test-case span { color: var(--color-muted); font-size: .74rem; }
.test-case.is-pass { border-color: #356642; }
.test-case.is-fail { border-color: #743d44; }
@media (max-width: 520px) {
  .route-ab { grid-template-columns: 28px 1fr; }
  .swap-button { grid-column: 2; width: 100%; margin-top: 0; }
  .station-field__input-row { grid-template-columns: 1fr; }
  .station-search-button { width: 100%; }
}
.station-suggestion[data-label-status="conflicting-provider-labels"] { border-color: #8b6b28; background: #302a18; }
.station-suggestion__evidence { color: #f6e4ad !important; font-weight: 700 !important; line-height: 1.35; }
.station-selected { display: grid; gap: 4px; }
.station-selected strong { font-size: .78rem; }
.station-selected span, .station-selected small { display: block; }
.station-selected__evidence { color: #f6e4ad; line-height: 1.35; }
.station-selected small { color: #b9c7d8; overflow-wrap: anywhere; }

/* AB3_R4: strukturierte Stationsbelege */
.station-suggestion { gap: 6px; }
.station-suggestion__name { font-size: .88rem; line-height: 1.25; }
.station-suggestion__chips { display: flex; flex-wrap: wrap; gap: 5px; }
.station-chip { display: inline-flex; align-items: center; min-height: 25px; border: 1px solid var(--color-line); border-radius: 999px; padding: 3px 8px; background: #171d26; color: #cad5e5; font-size: .68rem; font-weight: 800; }
.station-chip--place { border-color: #3d5b87; background: #1c2a3f; color: #c9dbff; }
.station-chip--mode { border-color: #386247; background: #193223; color: #d6f1dd; }
.station-chip--match { border-color: #4d5870; color: #d6deea; }
.station-chip--warning { border-color: #8b6b28; background: #302a18; color: #f6e4ad; }
.station-suggestion__modes { line-height: 1.35; }
.station-suggestion__id { opacity: .82; }
.station-suggestion[data-match-strength="weak"] { border-style: dashed; }
.station-suggestion[data-mobility-scope="parking-or-sharing"] { border-color: #8b6b28; }
.station-selected__profile { color: #c8e4ce; font-weight: 700; }
.segmented { border: 0; }
.segmented label { min-height: 44px; position: relative; }
.segmented label input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label span { display: grid; place-items: center; min-height: 44px; border-radius: 9px; color: var(--color-muted); font-weight: 800; cursor: pointer; }
.segmented label input:checked + span { background: var(--color-panel-raised); color: var(--color-text); }
.station-chip--country { border-color: #315f77; background: #142c39; color: #d3efff; }

/* UI-Referenzabgleich Debug-Build 16 */
.route-builder { margin-top: 16px; padding: 0; border: 0; background: transparent; display: grid; gap: 12px; }
.route-ab { grid-template-columns: 52px minmax(0, 1fr) 48px; gap: 10px; align-items: center; }
.route-markers { grid-template-rows: 40px 24px 40px; padding: 0; align-items: center; }
.route-markers span { width: 40px; height: 40px; font-size: 18px; box-shadow: 0 8px 18px rgb(0 0 0 / 24%); }
.route-markers span:first-child { background: linear-gradient(135deg, #4c73ff, #2848d8); }
.route-markers span:last-child { background: linear-gradient(135deg, #915cff, #6b35d9); }
.route-markers i { min-height: 24px; height: 24px; background: #475263; }
.route-fields { gap: 10px; }
.station-field > label { margin-bottom: 5px; }
.station-field__input-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.station-field__input-row input { min-height: 54px; border-radius: 18px; background: #151b24; padding: 0 14px; font-size: 16px; font-weight: 850; }
.station-search-button { min-width: 82px; min-height: 54px; border-radius: 18px; }
.swap-button { width: 46px; height: 46px; margin-top: 21px; border-radius: 50%; background: #151b24; color: #2f6df6; font-size: 27px; }
.segmented { margin-top: 12px; border: 1px solid #3b4656; border-radius: 18px; background: #151b24; padding: 4px; }
.segmented label span { min-height: 48px; border-radius: 14px; font-size: 15px; }
.segmented label input:checked + span { background: #2f6df6; color: #fff; }
.date-input, .compact-input { color: #aab3bf; }
.date-input input, .compact-input input, .compact-input select { min-height: 54px; border-radius: 18px; background: #151b24; padding: 0 14px; font-weight: 850; }
.check-row, .check-card { border-radius: 18px; background: #202632; }
.via-panel { border-radius: 18px; background: #172536; }
.route-results { gap: 9px; margin-top: 15px; }
.route-result-summary { border-color: #405064; background: #1c2530; color: #c6d0dc; padding: 11px; }
.journey-card {
  border-radius: 14px;
  border-color: #3a4655;
  background: #111820;
  box-shadow: 0 7px 20px rgb(0 0 0 / 18%);
}
.journey-card.is-cancelled { border-color: #7d3434; }
.journey-card.is-monitor-selected { border-color: #78a8ff; box-shadow: 0 0 0 2px rgb(45 109 246 / 16%), 0 12px 28px rgb(45 109 246 / 10%); }
.journey-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid #303b49;
  background: #151e28;
  padding: 11px 12px 9px;
}
.journey-summary__time { margin: 0; font-size: 19px; color: #f2f5f8; }
.journey-summary__route { grid-column: 1 / -1; display: grid; gap: 2px; min-width: 0; }
.journey-summary__route strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.journey-summary__route span { color: #aeb7c4; font-size: 12px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.journey-card details { border-top: 0; }
.journey-card summary { min-height: 44px; background: #17202a; padding: 9px 12px; }
.journey-legs { padding: 0 12px 12px 30px; }
.journey-leg { border-left-color: #526074; }
.journey-leg__top strong { font-size: 15px; }
.journey-monitor-button { border-radius: 13px; }
.board-results { gap: 0; }
.board-event {
  grid-template-columns: 76px minmax(0, 1fr) 76px;
  gap: 10px;
  align-items: center;
  margin-bottom: 9px;
  border-radius: 20px;
  border-color: #38414e;
  background: linear-gradient(135deg, #060a11, #0b1018);
  padding: 11px 14px;
}
.board-event.is-delayed { border-color: #78613b; background: linear-gradient(135deg, #090805, #1a1005 58%, #251805); }
.board-event.is-cancelled { border-color: #7d3434; background: linear-gradient(135deg, #11070a, #241014 62%, #2b171b); }
.board-event__time { font-size: 22px; font-weight: 900; letter-spacing: -.4px; }
.board-event__content { min-width: 0; text-align: center; }
.board-event__content > strong { display: block; font-size: 20px; font-weight: 950; }
.board-event__content p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-event__status { text-align: right; }
.board-event__status strong { display: block; font-size: 18px; }
.board-event__status span { display: block; margin-top: 2px; color: #aeb7c4; font-size: 11px; font-weight: 800; }
.disruption-search-panel { border-radius: 22px; background: #151b24; }
.favorite-row { border-radius: 16px; background: #242b36; }
@media (max-width: 520px) {
  .route-ab { grid-template-columns: 44px minmax(0, 1fr) 42px; gap: 8px; }
  .route-markers span { width: 36px; height: 36px; font-size: 17px; }
  .route-markers { grid-template-rows: 36px 20px 36px; }
  .route-markers i { height: 20px; min-height: 20px; }
  .swap-button { grid-column: auto; width: 42px; height: 42px; margin-top: 21px; }
  .station-field__input-row { grid-template-columns: minmax(0, 1fr) auto; }
  .station-search-button { width: auto; min-width: 72px; padding-inline: 10px; }
  .board-event { grid-template-columns: 60px minmax(0, 1fr) 58px; gap: 6px; padding: 10px 9px; }
  .board-event__time { font-size: 18px; }
  .board-event__content > strong { font-size: 17px; }
  .board-event__status strong { font-size: 16px; }
}
.journey-summary__badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
@media (max-width: 430px) {
  .journey-summary { grid-template-columns: 1fr; align-items: start; }
  .journey-summary__badges { justify-content: flex-start; }
}

/* RC4: automatische Vorschläge, vollständige Routentimeline und providergetrennte DB-Live-Tafel */
.speech-review {
  margin-top: 14px;
  border: 1px solid #4a5667;
  border-radius: 22px;
  background: #151b24;
  padding: 14px;
  box-shadow: 0 18px 42px rgb(0 0 0 / 28%);
}
.speech-review__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.speech-review__head h2 { margin: 0; }
.speech-review__close, .trip-dialog__close {
  flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid #526074; border-radius: 13px;
  background: #303946; color: #f2f6fb; font-size: 24px; line-height: 1; font-weight: 850;
}
.review-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
.review-checks { display: grid; gap: 8px; }
.review-checks .check-row { margin-top: 0; }
.speech-review__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.speech-review__safety { margin: 10px 0 0; color: #9fa9b7; font-size: 12px; line-height: 1.4; }
@media (min-width: 560px) { .review-grid { grid-template-columns: 1fr 1fr; } }

.board-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; padding: 2px 0 8px; }
.board-filter-chip {
  flex: 0 0 auto; min-height: 38px; border: 1px solid #545d6b; border-radius: 999px;
  background: #202632; color: #dfe5ee; padding: 8px 13px; font: inherit; font-size: 13px; font-weight: 900;
}
.board-filter-chip.is-active { border-color: #f2f4f7; background: #f2f4f7; color: #1c222b; }
.trip-finder { margin-top: 10px; border: 1px solid #354252; border-radius: 17px; background: #171f2a; padding: 11px; }
.trip-finder__head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.trip-finder__head strong { font-size: 14px; }
.trip-finder__head span { color: #9fa9b7; font-size: 12px; font-weight: 800; }
.trip-finder__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.trip-finder__row input { min-height: 46px; border: 1px solid #4b5563; border-radius: 14px; background: #121821; padding: 11px 12px; }
.trip-finder .field-note { margin-bottom: 0; }

.board-event {
  width: 100%; color: var(--color-text); font: inherit; text-align: inherit; cursor: pointer;
  appearance: none; -webkit-appearance: none;
}
.board-event:hover, .board-event:focus-visible { outline: none; border-color: #78a8ff; box-shadow: 0 0 0 2px rgb(45 109 246 / 18%), 0 12px 28px rgb(45 109 246 / 10%); }
.board-event[aria-disabled="true"] { cursor: default; }
.board-event.is-match { border-color: #78a8ff; box-shadow: 0 0 0 2px rgb(45 109 246 / 25%), 0 12px 30px rgb(45 109 246 / 15%); }

.trip-dialog { width: min(620px, calc(100vw - 18px)); max-height: 94vh; border: 0; border-radius: 26px 26px 20px 20px; background: transparent; color: var(--color-text); padding: 0; overflow: visible; }
.trip-dialog::backdrop { background: rgb(5 8 12 / 78%); backdrop-filter: blur(8px); }
.trip-dialog__sheet { max-height: 94vh; overflow: auto; border: 1px solid #4c596b; border-radius: inherit; background: #151b23; box-shadow: 0 28px 80px rgb(0 0 0 / 62%); }
.trip-dialog__head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; border-bottom: 1px solid #465366; background: linear-gradient(180deg, #26303d, #202833); padding: 15px 16px 13px; }
.trip-dialog__head h2 { margin: 0; font-size: 26px; }
.trip-dialog__body { padding: 13px 14px 16px; }
.trip-loading { border: 1px solid #435268; border-radius: 16px; background: #1c2632; padding: 12px; color: #dce6f2; }
.trip-summary { border: 1px solid #435268; border-radius: 17px; background: #1c2632; padding: 12px; }
.trip-summary > strong { display: block; font-size: 21px; }
.trip-summary > p { margin: 4px 0 0; color: #aeb9c8; }
.trip-summary__pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.trip-pill { border: 1px solid #465466; border-radius: 999px; background: #202934; color: #dbe4ef; padding: 5px 8px; font-size: 11px; font-weight: 900; }
.trip-pill--ok { border-color: #36724e; background: #13271b; color: #d8ffe0; }
.trip-pill--bad { border-color: #814141; background: #2c181a; color: #ffd0d0; }
.trip-leg { margin-top: 11px; border: 1px solid #3a4655; border-radius: 16px; background: #111820; padding: 11px; }
.trip-leg.is-cancelled { border-color: #7d3434; background: #241014; }
.trip-leg__head { display: flex; justify-content: space-between; gap: 10px; }
.trip-leg__head strong { font-size: 18px; }
.trip-leg__head span { font-weight: 900; white-space: nowrap; }
.trip-leg > p { margin: 4px 0 0; color: #aeb7c4; font-size: 12px; line-height: 1.35; }
.trip-timeline { margin: 10px 0 0; padding: 0; list-style: none; }
.trip-stop { position: relative; display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 9px; min-height: 48px; padding: 6px 0 8px 18px; border-left: 2px solid #5e6a79; }
.trip-stop::before { content: ''; position: absolute; left: -6px; top: 10px; width: 9px; height: 9px; border: 2px solid #5e6a79; border-radius: 50%; background: #e8eef6; }
.trip-stop.is-endpoint::before { border-color: #4d82b8; background: #8ec8ff; }
.trip-stop.is-cancelled strong { color: #ffaaaa; text-decoration: line-through; }
.trip-stop__time { color: #e9eff7; font-size: 13px; font-weight: 900; font-variant-numeric: tabular-nums; }
.trip-stop strong { font-size: 14px; line-height: 1.3; }
.trip-change { margin-top: 8px; border: 1px solid #80642e; border-radius: 13px; background: #2b2514; color: #ffe0a8; padding: 9px 10px; font-size: 12px; font-weight: 850; }
.trip-safety { margin: 12px 0 0; border-top: 1px solid #344052; padding-top: 10px; color: #9ba6b5; font-size: 12px; line-height: 1.4; }
@media (max-width: 430px) {
  .trip-dialog { width: calc(100vw - 10px); max-height: 96vh; border-radius: 23px 23px 16px 16px; }
  .trip-dialog__sheet { max-height: 96vh; }
  .trip-dialog__head { padding: 13px 13px 11px; }
  .trip-dialog__head h2 { font-size: 23px; }
  .trip-dialog__body { padding: 11px; }
  .trip-stop { grid-template-columns: 76px minmax(0,1fr); gap: 7px; padding-left: 15px; }
  .trip-finder__row { grid-template-columns: 1fr; }
}

/* RC4: vollständiger Fahrverlauf, Quellenstatus und explizite Umstiege */
.journey-source-status {
  margin: 0;
  border-top: 1px solid #364151;
  background: #19212b;
  color: #aeb9c8;
  padding: 8px 13px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.4;
}
.journey-ticket-warning {
  margin: 0;
  border-top: 1px solid #80642e;
  background: #2b2514;
  color: #ffe0a8;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}
.journey-leg__direction { color: #d7e3f0 !important; font-weight: 800; }
.journey-stop-timeline { margin: 10px 0 0; padding: 0; list-style: none; }
.journey-stop {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 9px;
  min-height: 38px;
  border-left: 2px solid #5e6a79;
  padding: 4px 0 7px 16px;
}
.journey-stop::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 8px;
  width: 9px;
  height: 9px;
  border: 2px solid #5e6a79;
  border-radius: 50%;
  background: #e8eef6;
}
.journey-stop--start::before, .journey-stop--end::before { border-color: #4d82b8; background: #8ec8ff; }
.journey-stop.is-cancelled .journey-stop__name { color: #ffaaaa; text-decoration: line-through; }
.journey-stop__time { color: #eef4fb; font-size: 12px; font-weight: 900; font-variant-numeric: tabular-nums; }
.journey-stop__name { font-size: 13px; line-height: 1.3; }
.journey-transfer {
  display: grid;
  gap: 3px;
  margin: 2px 0 2px -17px;
  border: 1px solid #80642e;
  border-radius: 13px;
  background: #2b2514;
  color: #ffe0a8;
  padding: 9px 11px;
}
.journey-transfer strong { font-size: 13px; }
.journey-transfer span { font-size: 11px; font-weight: 750; }
.route-page-note--warning { border: 1px solid #80642e; }
@media (max-width: 430px) {
  .journey-stop { grid-template-columns: 50px minmax(0, 1fr); gap: 7px; padding-left: 14px; }
  .journey-legs { padding-left: 25px; }
}

.trip-stop__platform {
  display: inline-flex;
  margin-top: .2rem;
  font-size: .78rem;
  color: var(--color-muted);
}

/* Arbeitsblock 15: begrenzte Routen-Zeitauswahl Heute/Morgen/Jetzt */
.route-time-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: stretch; }
.route-time-open { min-height: 58px; border: 1px solid #3b4656; border-radius: 18px; background: #202632; color: var(--color-text); padding: 8px 15px; display: flex; align-items: center; justify-content: space-between; text-align: left; cursor: pointer; }
.route-time-open span:first-child { display: grid; gap: 2px; }
.route-time-open small { color: var(--color-muted); font-size: .72rem; }
.route-time-open strong { font-size: .95rem; }
.route-time-open > span:last-child { color: #92b8ff; font-size: 1.45rem; }
.route-time-now { min-width: 82px; border-radius: 18px; }
body.route-time-dialog-open { overflow: hidden; }
.route-time-dialog { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 18px; }
.route-time-dialog[hidden] { display: none; }
.route-time-dialog__backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / 76%); backdrop-filter: blur(3px); }
.route-time-dialog__panel { position: relative; width: min(100%, 430px); border: 1px solid #465165; border-radius: 20px; background: #111720; box-shadow: 0 24px 70px rgb(0 0 0 / 55%); padding: 15px; display: grid; gap: 13px; }
.route-time-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.route-time-dialog__head h2 { margin: 0; font-size: 1.25rem; }
.route-time-dialog__close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #29313e; color: #fff; font-size: 1.25rem; cursor: pointer; }
.route-time-days { border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.route-time-days button { min-height: 46px; border: 1px solid #3b4656; border-radius: 13px; background: #252c38; color: var(--color-muted); font-weight: 850; cursor: pointer; }
.route-time-days button[aria-pressed="true"] { background: #0b42d0; border-color: #2f6df6; color: #fff; }
.route-time-stepper { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 9px; align-items: end; }
.route-time-stepper > button { min-width: 48px; min-height: 52px; border-radius: 14px; font-size: 1.25rem; }
.route-time-stepper label { display: grid; gap: 5px; color: var(--color-muted); font-size: .78rem; }
.route-time-stepper input { min-height: 52px; width: 100%; border: 1px solid #3b4656; border-radius: 14px; background: #202632; color: #fff; padding: 0 12px; font-size: 1rem; font-weight: 850; color-scheme: dark; }
.route-time-dialog__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.route-time-dialog__actions .button { min-height: 48px; }
@media (max-width: 390px) { .route-time-control { grid-template-columns: 1fr; } .route-time-now { width: 100%; } }


/* Arbeitsblock 22A: gemeinsame kompakte Detailansichten */
.screen:not([data-screen="home"]) > .card > .muted { margin-bottom: 10px; font-size: .8rem; line-height: 1.4; }
.route-builder { margin-top: 12px; gap: 9px; }
.route-ab { grid-template-columns: 38px minmax(0, 1fr) 40px; gap: 7px; }
.route-markers { grid-template-rows: 31px 18px 31px; }
.route-markers span { width: 31px; height: 31px; font-size: .78rem; }
.route-markers i { min-height: 18px; height: 18px; }
.route-fields { gap: 8px; }
.station-field > label { margin-bottom: 3px; font-size: .68rem; }
.station-field__input-row { gap: 6px; }
.station-field__input-row input { min-height: 46px; border-radius: 14px; padding: 0 11px; font-size: .86rem; }
.station-search-button { min-width: 70px; min-height: 46px; border-radius: 14px; padding-inline: 9px; }
.swap-button { width: 38px; height: 38px; margin-top: 18px; border-radius: 50%; font-size: 1.2rem; }
.station-suggestions { gap: 6px; margin-top: 6px; }
.station-suggestion { gap: 4px; min-height: 44px; border-radius: 13px; padding: 8px 9px; }
.station-suggestion__name { font-size: .8rem; }
.station-suggestion small { font-size: .66rem; line-height: 1.3; }
.station-suggestion__chips { gap: 4px; }
.station-chip { min-height: 22px; padding: 2px 6px; font-size: .61rem; }
.station-selected { gap: 3px; margin-top: 5px; border-radius: 10px; padding: 7px 8px; font-size: .66rem; line-height: 1.3; }
.station-selected strong { font-size: .7rem; }
.station-selected small { font-size: .61rem; }
.segmented { margin-top: 9px; border-radius: 15px; padding: 3px; }
.segmented label, .segmented label span { min-height: 42px; }
.segmented label span { border-radius: 12px; font-size: .82rem; }
.via-panel { gap: 8px; margin-top: 8px; border-radius: 16px; padding: 10px; }
.route-time-control { gap: 7px; }
.route-time-open { min-height: 48px; border-radius: 14px; padding: 7px 11px; }
.route-time-open small { font-size: .65rem; }
.route-time-open strong { font-size: .84rem; }
.route-time-open > span:last-child { font-size: 1.15rem; }
.route-time-now { min-width: 68px; border-radius: 14px; }
.route-status { margin-top: 8px; border-radius: 12px; padding: 8px 9px; font-size: .7rem; }
.route-results { gap: 8px; margin-top: 11px; }
.route-result-summary { border-radius: 12px; padding: 9px; font-size: .7rem; }
.journey-card { border-radius: 14px; }
.journey-summary { gap: 6px; padding: 10px 11px; }
.journey-summary__time { font-size: 1rem; }
.journey-card summary { min-height: 44px; padding: 8px 11px; font-size: .76rem; }
.journey-source-status, .journey-ticket-warning { padding: 7px 10px; font-size: .65rem; }
.journey-legs { padding: 0 10px 10px 28px; }
.journey-leg { padding: 8px 0 8px 10px; }
.journey-leg p { font-size: .69rem; }
.journey-stop { grid-template-columns: 48px minmax(0, 1fr); gap: 6px; min-height: 34px; padding: 3px 0 5px 13px; }
.journey-stop__time { font-size: .66rem; }
.journey-stop__name { font-size: .72rem; }
.journey-transfer { margin-left: -14px; border-radius: 11px; padding: 7px 8px; }
.journey-transfer strong { font-size: .72rem; }
.journey-transfer span { font-size: .62rem; }
.technical-test { margin-top: 12px; border-radius: 14px; padding: 0 10px 10px; }
.technical-test > summary { min-height: 44px; font-size: .76rem; }
.disruption-search-panel { gap: 8px; margin-top: 11px; border-radius: 16px; padding: 10px; }
.board-filter-chips { gap: 6px; margin: 8px 0 2px; padding-bottom: 6px; }
.board-filter-chip { min-height: 34px; padding: 6px 10px; font-size: .72rem; }
.trip-finder { margin-top: 8px; border-radius: 14px; padding: 9px; }
.trip-finder__row { gap: 6px; }
.trip-finder__row input { min-height: 42px; border-radius: 12px; padding: 9px 10px; }
.board-event { grid-template-columns: 56px minmax(0, 1fr) 58px; gap: 7px; border-radius: 15px; padding: 9px 10px; }
.board-event__time { font-size: 1rem; }
.board-event__content > strong { font-size: .86rem; }
.board-event p { margin: 2px 0; font-size: .68rem; line-height: 1.3; }
.board-event small { font-size: .6rem; line-height: 1.25; }
.board-event__status strong { font-size: .76rem; }
.board-event__status span { font-size: .6rem; }
.trip-dialog { border-radius: 21px 21px 15px 15px; }
.trip-dialog__head { padding: 11px 12px 9px; }
.trip-dialog__head h2 { font-size: 1.3rem; }
.trip-dialog__body { padding: 10px; }
.trip-summary, .trip-leg { border-radius: 14px; padding: 9px; }
.trip-summary > strong { font-size: 1rem; }
.trip-leg__head strong { font-size: .9rem; }
.trip-stop { grid-template-columns: 68px minmax(0,1fr); min-height: 40px; padding-left: 14px; }
.trip-stop__time { font-size: .69rem; }
.trip-stop strong { font-size: .76rem; }
.speech-review { border-radius: 17px; padding: 10px; }
.speech-review__head h2 { font-size: 1rem; }
.review-grid { gap: 7px; }

@media (max-width: 520px) {
  .route-ab { grid-template-columns: 34px minmax(0, 1fr); }
  .swap-button { grid-column: 2; width: 100%; height: 42px; margin-top: 0; border-radius: 14px; }
  .station-field__input-row { grid-template-columns: minmax(0, 1fr) auto; }
  .station-search-button { width: auto; }
}
@media (max-width: 360px) {
  .station-field__input-row { grid-template-columns: 1fr; }
  .station-search-button { width: 100%; }
  .board-event { grid-template-columns: 52px minmax(0, 1fr); }
  .board-event__status { grid-column: 2; justify-self: start; text-align: left; }
}

/* Arbeitsblock 22A Korrektur 01 – AppShell05: alte Bedienhierarchie in modularer Architektur */
.screen:not([data-screen="home"]) > .card > .muted,
.screen-heading .muted { margin-bottom: 0; }

.route-builder {
  display: grid;
  gap: 10px;
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.route-ab {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 44px;
  gap: 9px;
  align-items: center;
}
.route-markers {
  display: grid;
  justify-items: center;
  grid-template-rows: 40px 20px 40px;
  align-items: center;
  align-self: center;
  padding: 0;
}
.route-markers span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1rem;
  box-shadow: 0 8px 18px rgb(0 0 0 / 24%);
}
.route-markers span:first-child { background: linear-gradient(135deg, #4c73ff, #2848d8); }
.route-markers span:last-child { background: linear-gradient(135deg, #915cff, #6b35d9); }
.route-markers i { width: 2px; min-height: 20px; height: 20px; border-radius: 999px; background: #526174; }
.route-fields { gap: 10px; }
.station-field > label { margin-bottom: 4px; color: var(--color-muted); font-size: .72rem; font-weight: 850; }
.station-field__input-row { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.station-field__input-row input {
  min-height: 52px;
  border-radius: 18px;
  background: #111821;
  padding: 0 13px;
  font-size: .93rem;
  font-weight: 800;
}
.station-search-button,
#board-station-search,
#disruption-station-search,
#disruption-from-search,
#disruption-to-search,
#disruption-via-search {
  min-width: 76px;
  min-height: 52px;
  border-radius: 18px;
  padding-inline: 10px;
}
.swap-button {
  width: 44px;
  height: 44px;
  margin-top: 20px;
  border-radius: 50%;
  background: #151d27;
  color: #4f83ff;
  font-size: 1.45rem;
}
.station-suggestions { gap: 7px; margin-top: 7px; }
.station-suggestion { gap: 5px; min-height: 48px; border-radius: 15px; padding: 9px 10px; background: #222c39; }
.station-suggestion__name { font-size: .83rem; }
.station-suggestion small { font-size: .68rem; }
.station-suggestion__chips { gap: 4px; }
.station-chip { min-height: 23px; padding: 2px 7px; font-size: .62rem; }
.station-selected { gap: 3px; margin-top: 6px; border-radius: 14px; padding: 8px 9px; font-size: .68rem; }
.station-selected strong { font-size: .74rem; }
.station-selected small { font-size: .63rem; }

.segmented {
  margin-top: 0;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  background: #111821;
  padding: 4px;
}
.segmented label,
.segmented label span { min-height: 46px; }
.segmented label span { border-radius: 14px; color: var(--color-muted); font-size: .88rem; }
.segmented label input:checked + span { background: var(--color-blue); color: #fff; }

.route-time-control { grid-template-columns: minmax(0, 1fr) 104px; gap: 9px; }
.route-time-open {
  min-height: 54px;
  border-radius: 18px;
  background: #151d27;
  padding: 8px 13px;
}
.route-time-open small { font-size: .7rem; }
.route-time-open strong { font-size: .91rem; }
.route-time-open > span:last-child { font-size: 1.25rem; }
.route-time-now { min-width: 0; border-radius: 18px; color: #78a0ff; }
.route-submit { min-height: 54px; margin-top: 1px; font-size: 1rem; }
.route-status { margin-top: 0; border-radius: 14px; padding: 9px 10px; font-size: .72rem; }

.route-time-dialog__panel { width: min(100%, 430px); border-radius: 22px; padding: 15px; }
.route-time-days button { min-height: 46px; }
.route-time-stepper > button,
.route-time-stepper input { min-height: 52px; }

.route-results { gap: 9px; margin-top: 13px; }
.route-result-summary { border-radius: 15px; padding: 10px; font-size: .73rem; }
.journey-card { border-radius: 17px; }
.journey-summary { gap: 7px; padding: 11px 12px; }
.journey-summary__time { font-size: 1.04rem; }
.journey-card summary { min-height: 44px; padding: 9px 12px; font-size: .78rem; }
.journey-source-status, .journey-ticket-warning { padding: 8px 11px; font-size: .66rem; }
.journey-legs { padding: 0 11px 11px 30px; }
.journey-leg { padding: 8px 0 8px 10px; }
.journey-leg p { font-size: .7rem; }
.journey-stop { grid-template-columns: 50px minmax(0, 1fr); gap: 7px; min-height: 35px; padding: 3px 0 6px 14px; }
.journey-stop__time { font-size: .68rem; }
.journey-stop__name { font-size: .74rem; }
.journey-transfer { margin-left: -15px; border-radius: 12px; padding: 8px 9px; }
.technical-test { margin-top: 13px; border-radius: 16px; padding: 0 11px 11px; }
.technical-test > summary { min-height: 46px; font-size: .76rem; }

.liveboard-primary { margin-top: 0; }
.source-select { margin-bottom: -2px; }
.board-filter-chips { gap: 6px; margin: 0; padding-bottom: 0; overflow-x: auto; }
.board-filter-chip { min-height: 36px; padding: 6px 10px; font-size: .72rem; }
.trip-finder { margin-top: 0; border-radius: 15px; padding: 10px; }
.trip-finder__row { gap: 7px; }
.trip-finder__row input { min-height: 44px; border-radius: 13px; }
.board-event { grid-template-columns: 58px minmax(0, 1fr) 62px; gap: 8px; border-radius: 16px; padding: 10px 11px; }
.board-event__time { font-size: 1.04rem; }
.board-event__content > strong { font-size: .88rem; }
.board-event p { margin: 2px 0; font-size: .7rem; }
.board-event small { font-size: .62rem; }
.board-event__status strong { font-size: .78rem; }
.board-event__status span { font-size: .62rem; }

.disruption-mode { margin-bottom: 10px; }
.disruption-search-panel {
  gap: 10px;
  margin-top: 0;
  border-radius: 20px;
  padding: 12px;
}
.disruption-search-panel + .form-disclosure { margin-top: 10px; }
.disruption-results { margin-top: 12px; }

.trip-dialog { border-radius: 22px 22px 16px 16px; }
.trip-dialog__head { padding: 12px 13px 10px; }
.trip-dialog__body { padding: 11px; }
.trip-summary, .trip-leg { border-radius: 15px; padding: 10px; }

@media (min-width: 640px) {
  .route-ab { grid-template-columns: 46px minmax(0, 1fr) 48px; gap: 11px; }
  .route-markers { grid-template-rows: 42px 22px 42px; }
  .route-markers span { width: 42px; height: 42px; }
  .station-field__input-row input { min-height: 54px; }
  .station-search-button,
  #board-station-search,
  #disruption-station-search,
  #disruption-from-search,
  #disruption-to-search,
  #disruption-via-search { min-height: 54px; }
  .route-time-control { grid-template-columns: minmax(0, 1fr) 116px; }
}

@media (min-width: 900px) {
  .screen-card { max-width: 700px; margin-inline: auto; }
  .route-fields { grid-template-columns: 1fr; }
  .form-disclosure__body .option-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 430px) {
  .route-ab { grid-template-columns: 40px minmax(0, 1fr) 42px; gap: 7px; }
  .route-markers { grid-template-rows: 38px 18px 38px; }
  .route-markers span { width: 38px; height: 38px; }
  .station-field__input-row { grid-template-columns: minmax(0, 1fr) 64px; }
  .station-search-button,
  #board-station-search,
  #disruption-station-search,
  #disruption-from-search,
  #disruption-to-search,
  #disruption-via-search { min-width: 64px; padding-inline: 7px; font-size: .76rem; }
  .swap-button { width: 42px; height: 42px; }
  .route-time-control { grid-template-columns: minmax(0, 1fr) 88px; }
}

@media (max-width: 360px) {
  .route-ab { grid-template-columns: 34px minmax(0, 1fr); }
  .route-markers { grid-template-rows: 34px 18px 34px; }
  .route-markers span { width: 34px; height: 34px; font-size: .84rem; }
  .swap-button { grid-column: 2; width: 100%; height: 44px; margin-top: 0; border-radius: 15px; }
  .station-field__input-row { grid-template-columns: minmax(0, 1fr) 58px; }
  .station-search-button,
  #board-station-search,
  #disruption-station-search,
  #disruption-from-search,
  #disruption-to-search,
  #disruption-via-search { min-width: 58px; font-size: .7rem; }
  .route-time-control { grid-template-columns: 1fr; }
  .route-time-now { width: 100%; }
  .board-event { grid-template-columns: 52px minmax(0, 1fr); }
  .board-event__status { grid-column: 2; justify-self: start; text-align: left; }
}

/* AppShell05: programmatisch fokussierte Überschriften bleiben ruhig; Folgeaktionen erscheinen erst mit Ergebnis. */
.screen-heading h1[tabindex="-1"]:focus { outline: none; }
.page-actions:has(#route-earlier:disabled):has(#route-later:disabled),
.page-actions:has(#board-earlier:disabled):has(#board-later:disabled),
#route-results:empty ~ .route-actions,
#route-results:empty ~ #route-monitor-status { display: none; }

/* Arbeitsblock 22A Korrektur 04 – AppShell08: Live-Tafel nach historischer Bedienreferenz. */
.liveboard-reference-card { overflow: visible; }
.liveboard-heading { margin-bottom: 0; }
.liveboard-heading h1 { margin-bottom: 8px; }
.liveboard-search-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  border: 1px solid #3b4654;
  border-radius: 20px;
  background: #202833;
  padding: 12px;
}
.liveboard-station-search > label { color: #aeb7c4; font-size: .72rem; font-weight: 850; }
.liveboard-station-search .station-field__input-row input {
  min-height: 50px;
  border: 1px solid #4b5563;
  border-radius: 16px;
  background: #121821;
  padding: 0 13px;
  font-size: .88rem;
  font-weight: 780;
}
.liveboard-station-search #board-station-search {
  min-height: 50px;
  border-radius: 16px;
}
.liveboard-range-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #354252;
  border-radius: 15px;
  background: #17202b;
  padding: 8px 9px;
}
.liveboard-range-label {
  flex: 0 0 auto;
  color: #aeb7c4;
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.liveboard-range-buttons { display: flex; min-width: 0; gap: 5px; }
.liveboard-range-button {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #465160;
  border-radius: 999px;
  background: #202632;
  color: #dfe5ee;
  padding: 0 9px;
  font: inherit;
  font-size: .74rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}
.liveboard-range-button.is-active {
  border-color: #f2f4f7;
  background: #f2f4f7;
  color: #1c222b;
}
.liveboard-range-button:focus-visible { outline: 2px solid #78a8ff; outline-offset: 2px; }
.liveboard-live-action { display: flex; justify-content: center; }
.liveboard-live-action #board-load {
  width: auto;
  min-width: 118px;
  min-height: 48px;
  border-radius: 15px;
  padding-inline: 24px;
  font-size: .9rem;
}
.liveboard-load-status {
  margin: 0;
  border: 1px solid #354252;
  border-radius: 15px;
  background: #17202b;
  padding: 10px;
  color: #bcc7d4;
  font-size: .72rem;
  line-height: 1.38;
}
.liveboard-load-status[data-kind="ok"] { border-color: #2f6d4b; color: #cfeedd; }
.liveboard-load-status[data-kind="warn"] { border-color: #8a6630; color: #ffe0a8; }
.liveboard-load-status[data-kind="error"] { border-color: #7d3434; color: #ffcaca; }
.liveboard-source-proof {
  border: 1px solid #37506d;
  border-radius: 16px;
  background: #172233;
  padding: 11px;
  color: #c9d5e4;
  font-size: .7rem;
  line-height: 1.38;
}
.liveboard-source-proof strong {
  display: block;
  margin-bottom: 4px;
  color: #f2f6fb;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.liveboard-trip-finder { margin-top: 0; }
.liveboard-trip-finder .trip-finder__row { grid-template-columns: minmax(0, 1fr) 78px; }
.liveboard-trip-finder .trip-finder__row input { min-width: 0; font-size: .78rem; }
.liveboard-trip-finder #board-trip-find { min-width: 78px; padding-inline: 9px; }
.liveboard-board-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 10px;
}
.liveboard-station-name { min-width: 0; }
.liveboard-station-name strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1.18rem;
  line-height: 1.15;
}
.liveboard-station-name span {
  display: block;
  margin-top: 3px;
  color: var(--color-muted);
  font-size: .69rem;
  line-height: 1.35;
}
.liveboard-board-switch {
  display: flex;
  flex: 0 0 auto;
  margin: 0;
  border: 1px solid #384250;
  border-radius: 999px;
  background: #151a22;
  padding: 3px;
}
.liveboard-board-switch label { position: relative; }
.liveboard-board-switch input { position: absolute; opacity: 0; pointer-events: none; }
.liveboard-board-switch span {
  display: grid;
  place-items: center;
  min-width: 46px;
  min-height: 44px;
  border-radius: 999px;
  color: var(--color-muted);
  font-size: .76rem;
  font-weight: 900;
  cursor: pointer;
}
.liveboard-board-switch input:checked + span { background: var(--color-blue); color: #fff; }
.liveboard-board-switch input:focus-visible + span { outline: 2px solid #78a8ff; outline-offset: 2px; }
.liveboard-visible-filters {
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 4px;
  padding: 0 0 7px;
  overflow: visible;
}
.liveboard-visible-filters .board-filter-chip { min-height: 44px; padding: 8px 12px; font-size: .72rem; }
.liveboard-technical-disclosure { margin-top: 2px; }
.liveboard-technical-disclosure .date-input { margin-top: 0; }

@media (max-width: 430px) {
  .liveboard-search-panel { padding: 10px; }
  .liveboard-range-row { align-items: stretch; flex-direction: column; }
  .liveboard-range-buttons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .liveboard-range-button { width: 100%; min-width: 0; padding-inline: 4px; }
  .liveboard-trip-finder .trip-finder__row { grid-template-columns: minmax(0, 1fr) 70px; }
  .liveboard-trip-finder #board-trip-find { min-width: 70px; }
}

@media (max-width: 360px) {
  .liveboard-station-search .station-field__input-row { grid-template-columns: minmax(0, 1fr) 58px; }
  .liveboard-station-search #board-station-search { min-width: 58px; padding-inline: 5px; font-size: .68rem; }
  .liveboard-board-head { align-items: flex-start; flex-direction: column; }
  .liveboard-board-switch { align-self: flex-end; margin-top: -44px; }
  .liveboard-trip-finder .trip-finder__row { grid-template-columns: 1fr; }
  .liveboard-trip-finder #board-trip-find { width: 100%; }
}

/* Arbeitsblock 22A Korrektur 05 – AppShell11: historische Routen-Ergebnisreferenz. */
.route-results {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}
.route-recognition {
  display: grid;
  gap: 7px;
  border: 1px solid #354252;
  border-radius: 18px;
  background: #0d141d;
  padding: 11px;
}
.route-recognition h2 {
  margin: 0 0 1px;
  color: #f2f5f8;
  font-size: 1.1rem;
  letter-spacing: -.015em;
}
.route-recognition__route,
.route-recognition__row,
.route-recognition__grid > div,
.route-recognition__influence {
  border: 1px solid #354252;
  border-radius: 13px;
  background: #111923;
  padding: 8px 9px;
}
.route-recognition__route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
}
.route-recognition__route > div,
.route-recognition__row,
.route-recognition__grid > div,
.route-recognition__influence {
  min-width: 0;
}
.route-recognition__route span,
.route-recognition__row > span,
.route-recognition__grid span,
.route-recognition__influence > span {
  display: block;
  margin-bottom: 2px;
  color: #929eae;
  font-size: .61rem;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.route-recognition__route strong,
.route-recognition__row strong,
.route-recognition__grid strong,
.route-recognition__influence strong {
  display: block;
  color: #eef2f7;
  font-size: .81rem;
  line-height: 1.22;
  overflow-wrap: anywhere;
}
.route-recognition__route strong { font-size: .93rem; }
.route-recognition__arrow {
  margin: 0 !important;
  color: #92a0b4 !important;
  font-size: 1.35rem !important;
  text-align: center;
  text-transform: none !important;
}
.route-recognition__row--recommendation {
  border-color: #72512b;
  background: #21170f;
}
.route-recognition__row--recommendation > span { color: #d7ad75; }
.route-recognition__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.route-recognition__influence strong {
  color: #d1d8e2;
  font-size: .73rem;
  font-weight: 650;
  line-height: 1.35;
}
.route-recognition__status {
  display: grid;
  gap: 2px;
  border: 1px solid #405064;
  border-radius: 13px;
  background: #1c2530;
  padding: 8px 9px;
  color: #c6d0dc;
  font-size: .7rem;
  line-height: 1.35;
}
.route-recognition__status strong { color: #f0f4f8; font-size: .73rem; }
.route-recognition__status--ok { border-color: #2f6d4b; background: #0f2117; color: #d9ffdf; }
.route-recognition__status--warn { border-color: #8a6630; background: #281f12; color: #ffe0a8; }
.route-recognition__status--bad { border-color: #7d3434; background: #291416; color: #ffcaca; }

.route-light-list {
  display: grid;
  gap: 7px;
}
.route-light-option {
  width: 100%;
  min-width: 0;
  min-height: 72px;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 55px;
  gap: 8px;
  align-items: center;
  border: 1px solid #344253;
  border-radius: 14px;
  background: #0b121b;
  color: inherit;
  padding: 8px 9px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 5px 16px rgb(0 0 0 / 18%);
}
.route-light-option:hover,
.route-light-option:focus-visible {
  border-color: #6683aa;
  background: #101b28;
  outline: none;
  box-shadow: 0 0 0 2px rgb(120 168 255 / 14%), 0 7px 18px rgb(0 0 0 / 22%);
}
.route-light-option:active { transform: scale(.995); }
.route-light-option.is-selected { border-color: #526985; }
.route-light-option.is-delayed { border-color: #6f4b2a; background: #1b100a; }
.route-light-option.is-cancelled { border-color: #7d3434; background: #20090d; }
.route-light-time {
  color: #f3f6f9;
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing: -.02em;
}
.route-light-mid {
  display: block;
  min-width: 0;
}
.route-light-mid > strong {
  display: block;
  color: #f3f6f9;
  font-size: .9rem;
  font-weight: 950;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.route-light-destination,
.route-light-plan {
  display: block;
  margin-top: 2px;
  color: #b4bdc9;
  font-size: .65rem;
  font-weight: 720;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.route-light-plan { color: #8995a5; }
.route-light-plan--ok { color: #8ed7a7; }
.route-light-plan--warn { color: #e6b66f; }
.route-light-plan--bad { color: #ff9da5; }
.route-light-badges,
.route-trip-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.route-light-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  border: 1px solid #465365;
  border-radius: 999px;
  background: #151d27;
  padding: 1px 5px;
  color: #cbd4df;
  font-size: .55rem;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
}
.route-light-badge--ok { border-color: #2f6d4b; background: #102218; color: #d9ffdf; }
.route-light-badge--warn { border-color: #8a6630; background: #2b2113; color: #ffe0a8; }
.route-light-badge--bad { border-color: #7d3434; background: #2b1518; color: #ffcaca; }
.route-light-track {
  display: block;
  min-width: 0;
  color: #e5ebf2;
  text-align: right;
}
.route-light-track strong { display: block; font-size: .91rem; font-weight: 950; white-space: nowrap; }
.route-light-track > span { display: block; margin-top: 2px; color: #9aa6b5; font-size: .57rem; font-weight: 800; }

.route-transfer-card {
  overflow: hidden;
  border-radius: 14px;
  background: #0d151e;
}
.route-transfer-open {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  border: 0;
  background: #151f2a;
  color: inherit;
  padding: 9px 10px;
  text-align: left;
  cursor: pointer;
}
.route-transfer-open:focus-visible { outline: 2px solid #78a8ff; outline-offset: -3px; }
.route-transfer-open__title { color: #f2f5f8; font-size: 1rem; font-weight: 950; }
.route-transfer-open__meta { align-self: center; color: #ffe0a8; font-size: .62rem; font-weight: 900; }
.route-transfer-open__lines { grid-column: 1 / -1; color: #aeb8c6; font-size: .68rem; font-weight: 750; }
.route-transfer-existing { border-top: 1px solid #303b49; }
.route-transfer-existing > summary { min-height: 39px; padding: 8px 10px; color: #c8d1dc; font-size: .69rem; }
.route-transfer-existing .journey-legs { padding-bottom: 8px; }

.route-result-diagnostic {
  border: 1px solid #354252;
  border-radius: 13px;
  background: #101721;
  color: #aeb8c5;
}
.route-result-diagnostic > summary {
  min-height: 39px;
  display: flex;
  align-items: center;
  padding: 7px 9px;
  color: #cbd4df;
  font-size: .67rem;
  font-weight: 850;
  cursor: pointer;
}
.route-result-diagnostic p { margin: 0; padding: 0 9px 9px; font-size: .62rem; line-height: 1.35; }
.route-result-pager {
  grid-template-columns: minmax(86px, 1fr) auto minmax(86px, 1fr);
  gap: 7px;
  align-items: center;
  margin-top: 7px;
}
.route-result-pager .button { min-height: 40px; border-radius: 12px; padding: 7px 10px; font-size: .68rem; }
.route-result-pager__hint { color: #8591a0; font-size: .58rem; font-weight: 750; text-align: center; white-space: nowrap; }

.route-trip-dialog {
  width: min(520px, calc(100vw - 18px));
  max-height: min(88vh, 760px);
  border-radius: 17px;
}
.route-trip-dialog::backdrop { background: rgb(3 7 13 / 82%); backdrop-filter: blur(8px); }
.route-trip-dialog__sheet { max-height: min(88vh, 760px); border-radius: 17px; background: #07101a; }
.route-trip-dialog__head {
  align-items: center;
  border-bottom-color: #354252;
  background: #0d1722;
  padding: 10px 11px 9px;
}
.route-trip-dialog__head h2 { margin: 0; color: #f2f5f8; font-size: 1.2rem; }
.route-trip-dialog__head p { margin: 2px 0 0; color: #aab5c3; font-size: .68rem; font-weight: 750; }
.route-trip-category {
  display: inline-flex;
  width: fit-content;
  margin-top: 5px;
  border: 1px solid #465365;
  border-radius: 999px;
  background: #151d27;
  padding: 2px 6px;
  color: #d5dde7;
  font-size: .54rem;
  font-weight: 950;
  line-height: 1.15;
}
.route-trip-dialog__body { padding: 9px 10px 11px; }
.route-trip-dialog .trip-dialog__close {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  border-radius: 10px;
  font-size: 1rem;
}
.route-trip-badges { margin: 0 0 8px; }
.route-trip-leg-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 5px;
  border: 1px solid #344253;
  border-radius: 11px;
  background: #111a25;
  padding: 7px 8px;
}
.route-trip-leg-head strong { font-size: .78rem; }
.route-trip-leg-head span { color: #9faab8; font-size: .62rem; text-align: right; }
.route-trip-timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.route-trip-timeline::before {
  content: '';
  position: absolute;
  top: 17px;
  bottom: 17px;
  left: 73px;
  width: 2px;
  background: #34475e;
}
.route-trip-stop {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 52px;
  gap: 13px;
  align-items: center;
  min-height: 54px;
  padding: 5px 0;
}
.route-trip-stop::before {
  content: '';
  position: absolute;
  left: 68px;
  top: 50%;
  width: 11px;
  height: 11px;
  border: 2px solid #6c8db4;
  border-radius: 50%;
  background: #08111b;
  transform: translateY(-50%);
  z-index: 1;
}
.route-trip-stop--start::before,
.route-trip-stop--end::before { background: #6c8db4; }
.route-trip-stop.is-cancelled::before { border-color: #c65a63; background: #7d3434; }
.route-trip-stop__clocks { display: grid; gap: 1px; text-align: right; }
.route-trip-stop__clocks small { color: #9da8b6; font-size: .54rem; font-weight: 750; }
.route-trip-stop__clocks strong { color: #dfe6ee; font-size: .62rem; font-weight: 900; }
.route-trip-stop__station { min-width: 0; color: #eef2f7; font-size: .73rem; font-weight: 900; overflow-wrap: anywhere; }
.route-trip-stop__track { color: #e1e7ef; font-size: .65rem; font-weight: 900; text-align: right; }
.route-trip-stop__track small { display: block; margin-top: 2px; color: #d3a467; font-size: .52rem; }
.route-trip-transfer {
  margin: 4px 0;
  border: 1px solid #785a2c;
  border-radius: 11px;
  background: #251d11;
  padding: 7px 8px;
  color: #ffe0a8;
  font-size: .64rem;
  font-weight: 850;
  line-height: 1.3;
}
.route-trip-source {
  margin: 9px 0 0;
  border-top: 1px solid #344253;
  padding-top: 8px;
  color: #8995a4;
  font-size: .57rem;
  line-height: 1.35;
}

@media (max-width: 430px) {
  .route-recognition { padding: 9px; }
  .route-light-option { grid-template-columns: 54px minmax(0, 1fr) 48px; gap: 6px; padding: 8px; }
  .route-light-time { font-size: .96rem; }
  .route-light-mid > strong { font-size: .83rem; }
  .route-light-track strong { font-size: .82rem; }
  .route-trip-stop { grid-template-columns: 58px minmax(0, 1fr) 46px; gap: 12px; }
  .route-trip-timeline::before { left: 66px; }
  .route-trip-stop::before { left: 61px; }
}
@media (max-width: 360px) {
  .route-recognition__route { grid-template-columns: 1fr 24px 1fr; }
  .route-light-option { grid-template-columns: 50px minmax(0, 1fr) 44px; }
  .route-light-destination { font-size: .6rem; }
  .route-result-pager { grid-template-columns: 1fr 1fr; }
  .route-result-pager__hint { display: none; }
  .route-trip-stop { grid-template-columns: 52px minmax(0, 1fr) 42px; gap: 11px; }
  .route-trip-timeline::before { left: 59px; }
  .route-trip-stop::before { left: 54px; }
}

/* AppShell11: ergänzende Soll-/Ist- und Quellenhinweise im historischen Fahrtdetail. */
.route-trip-stop__station { display: grid; gap: 2px; }
.route-trip-stop__station strong { color: inherit; font: inherit; }
.route-trip-stop__delay { color: #d3a467; font-size: .54rem; font-weight: 850; }
.route-trip-safety { margin: 4px 0 0; color: #8995a4; font-size: .57rem; line-height: 1.35; }

/* Arbeitsblock 22A Korrektur 09 – AppShell13: ein historisches Fahrtenkarten-System für Route und Live-Tafel. */
.route-light-list,
.board-results {
  display: grid;
  gap: 9px;
}

.route-light-option,
.board-event {
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 76px;
  gap: 10px;
  align-items: center;
  margin: 0;
  border: 1px solid #38414e;
  border-radius: 20px;
  background: linear-gradient(135deg, #060a11, #0b1018);
  color: var(--color-text);
  padding: 11px 14px;
  font: inherit;
  text-align: inherit;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  cursor: pointer;
}
.route-light-option:hover,
.route-light-option:focus-visible,
.board-event:hover,
.board-event:focus-visible {
  border-color: #78a8ff;
  background: linear-gradient(135deg, #060a11, #0b1018);
  outline: none;
  box-shadow: 0 0 0 2px rgb(45 109 246 / 16%), 0 12px 28px rgb(45 109 246 / 10%);
}
.route-light-option:active,
.board-event:active { transform: scale(.995); }
.route-light-option.is-selected,
.route-light-option.is-monitor-selected,
.board-event.is-match {
  border-color: #78a8ff;
  box-shadow: 0 0 0 2px rgb(45 109 246 / 16%), 0 12px 28px rgb(45 109 246 / 10%);
}
.route-light-option.is-delayed,
.board-event.is-delayed,
.route-transfer-card.is-delayed {
  border-color: #78613b;
  background: linear-gradient(135deg, #090805, #1a1005 58%, #251805);
}
.route-light-option.is-cancelled,
.board-event.is-cancelled,
.route-transfer-card.is-cancelled {
  border-color: #7d3434;
  background: linear-gradient(135deg, #11070a, #241014 62%, #2b171b);
}
.route-light-option.is-delayed:hover,
.route-light-option.is-delayed:focus-visible,
.board-event.is-delayed:hover,
.board-event.is-delayed:focus-visible {
  background: linear-gradient(135deg, #090805, #1a1005 58%, #251805);
}
.route-light-option.is-cancelled:hover,
.route-light-option.is-cancelled:focus-visible,
.board-event.is-cancelled:hover,
.board-event.is-cancelled:focus-visible {
  background: linear-gradient(135deg, #11070a, #241014 62%, #2b171b);
}

.route-light-time,
.board-event__time {
  color: #f3f6f9;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.4px;
  line-height: 1;
  text-align: left;
}
.route-light-mid,
.board-event__content {
  display: block;
  min-width: 0;
  padding: 0 4px;
  text-align: center;
}
.route-light-mid > strong,
.board-event__content > strong {
  display: block;
  margin: 0 0 1px;
  color: #f3f6f9;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.route-light-destination {
  display: block;
  margin-top: 0;
  color: #dfe5ee;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.route-light-plan {
  display: block;
  margin-top: 3px;
  color: #aeb7c4;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.route-light-plan--neutral { color: #778290; font-size: 11px; font-weight: 650; letter-spacing: .01em; }
.route-light-plan--ok { color: #94e3a1; font-weight: 900; }
.route-light-plan--warn { color: #ffc65c; font-weight: 900; }
.route-light-plan--bad { color: #ff9da5; font-weight: 900; }
.route-light-badges,
.route-trip-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-top: 5px;
}
.route-light-badge {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  border: 1px solid #465160;
  border-radius: 999px;
  background: #202632;
  padding: 3px 7px;
  color: #dfe5ee;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}
.route-light-badge--ok { border-color: #2f6d4b; background: #202632; color: #cfeedd; }
.route-light-badge--warn { border-color: #7d6333; background: #202632; color: #ffd28a; }
.route-light-badge--bad { border-color: #7d3434; background: #202632; color: #ffcaca; }
.route-light-track,
.board-event__status {
  display: block;
  min-width: 0;
  color: #f3f6f9;
  text-align: right;
}
.route-light-track strong,
.board-event__status strong {
  display: block;
  color: #f3f6f9;
  font-size: 21px;
  font-weight: 950;
  line-height: 1.05;
  white-space: nowrap;
}
.route-light-track > span,
.board-event__status > span {
  display: block;
  margin-top: 2px;
  color: #aeb7c4;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

/* Vorhandene Umstiegs-Sammelkarte: gleiche Farblogik, bestehende Gruppierung bleibt unverändert. */
.route-transfer-card {
  overflow: hidden;
  border: 1px solid #38414e;
  border-radius: 20px;
  background: linear-gradient(135deg, #060a11, #0b1018);
  box-shadow: none;
}
.route-transfer-open {
  border: 0;
  background: transparent;
  padding: 11px 14px;
}
.route-transfer-open__title { font-size: 1.05rem; }
.route-transfer-open__meta { color: #aeb7c4; }
.route-transfer-existing { border-top-color: #38414e; background: rgb(6 10 17 / 42%); }

@media (max-width: 520px) {
  .route-light-option,
  .board-event {
    grid-template-columns: 60px minmax(0, 1fr) 58px;
    gap: 6px;
    border-radius: 15px;
    padding: 10px 9px;
  }
  .route-light-time,
  .board-event__time { font-size: 18px; }
  .route-light-mid,
  .board-event__content { padding-inline: 2px; }
  .route-light-mid > strong,
  .board-event__content > strong { font-size: 17px; }
  .route-light-destination { font-size: 12px; }
  .route-light-plan { font-size: 11px; }
  .route-light-plan--neutral { font-size: 10px; }
  .route-light-badge { padding: 2px 5px; font-size: 9px; }
  .route-light-track strong,
  .board-event__status strong { font-size: 16px; }
  .route-light-track > span,
  .board-event__status > span { font-size: 10px; }
  .route-transfer-card { border-radius: 15px; }
  .route-transfer-open { padding: 10px 9px; }
}

@media (max-width: 360px) {
  .route-light-option,
  .board-event { grid-template-columns: 52px minmax(0, 1fr) 50px; gap: 5px; padding-inline: 7px; }
  .route-light-time,
  .board-event__time { font-size: 16px; }
  .route-light-mid > strong,
  .board-event__content > strong { font-size: 15px; }
  .route-light-destination { font-size: 10px; }
  .route-light-plan { font-size: 9px; }
  .route-light-badges { gap: 3px; margin-top: 3px; }
  .route-light-badge { font-size: 8px; }
  .route-light-track strong,
  .board-event__status strong { font-size: 14px; }
  .route-light-track > span,
  .board-event__status > span { font-size: 9px; }
}
