/* VGN Fahrplan & Tickets – UI replica */

:root {
  --green: #0a9a62;
  --green-btn: #0a8a5c;
  --mint: #e3f2eb;
  --mint-ic: #1f9a68;
  --grad: linear-gradient(100deg, #05975f 0%, #22a24f 40%, #5fb43b 68%, #a4c614 100%);
  --accent: #c8104e;
  --egon: linear-gradient(90deg, #a3157f 0%, #7d3497 48%, #3c6fc7 100%);
  --text: #1f1f1f;
  --muted: #6b6b6b;
  --line: #9e9e9e;
  --line-l: #e6e6e6;
  --grey: #ececec;
  --ok: #2bb24c;
  --late: #e2001a;
  --sb: 34px;
  --tab-h: 62px;
  --tab-pad: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: radial-gradient(circle at 30% 15%, #f4f7f5, #d3dcd8);
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
a { color: inherit; text-decoration: none; }
b { font-weight: 700; }
.nowrap { white-space: nowrap; }
.muted { color: #8a8a8a; }
.green { color: var(--mint-ic); }

/* ---------- device frame ---------- */
.device {
  position: relative;
  width: 392px;
  height: min(848px, calc(100vh - 40px));
  min-height: 600px;
  background: #fff;
  border-radius: 44px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 0 0 9px #141414, 0 0 0 11px #2d2d2d, 0 28px 70px rgba(0, 0, 0, .35);
}
.statusbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 90;
  height: var(--sb);
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 26px 0 30px;
  font-size: 14.5px; font-weight: 500;
  color: #fff;
  pointer-events: none;
  transition: color .2s;
}
.statusbar.dark { color: #141414; }
.sb-cam { position: absolute; left: 50%; top: 10px; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: #0d0d0d; box-shadow: inset 0 0 0 3px #2a2a2a; }
.sb-right { display: flex; align-items: center; gap: 5px; }
.sb-right b { font-size: 14px; }
.sb-batt { border: 1.5px solid currentColor; border-radius: 4px; padding: 0 3px; font-size: 10px; font-weight: 700; line-height: 13px; }

.app { position: absolute; inset: 0; display: flex; flex-direction: column; }
.app::after { /* home indicator */
  content: ''; position: absolute; bottom: 6px; left: 50%; z-index: 99;
  width: 124px; height: 4.5px; margin-left: -62px; border-radius: 3px; background: #111; pointer-events: none;
}

@media (max-width: 520px) {
  body { display: block; background: #fff; }
  .device { width: 100%; height: 100%; min-height: 0; border-radius: 0; box-shadow: none; --sb: env(safe-area-inset-top, 0px); --tab-pad: env(safe-area-inset-bottom, 0px); }
  .statusbar, .app::after { display: none; }
}

.view { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; animation: screenIn .18s ease-out; }
@keyframes screenIn { from { opacity: .35; } to { opacity: 1; } }
.content { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.content::-webkit-scrollbar { display: none; }
.screenshot-content { display: flex; flex-direction: column; overflow: hidden; background: #f1f1f1; }
.ticket-screenshot { display: block; width: 100%; height: auto; }
.ticket-sticky-header { position: sticky; top: 0; z-index: 1; }
.ticket-clock { position: absolute; inset: 0; pointer-events: none; }
.ticket-clock-hand { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; transform-origin: 93.4722% 50%; }
.ticket-body-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.ticket-wallpaper { position: absolute; inset: 0; background-color: #fff; background-repeat: repeat; background-position: 0 0; background-size: 200% auto; }
.ticket-body-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.ticket-body-scroll::-webkit-scrollbar { display: none; }
.ticket-foreground { padding: 14px 0 24px; }
.ticket-qr { display: block; width: 50.55%; height: auto; margin: 0 auto 22px; }
.ticket-photo { display: block; width: 41.67%; height: auto; margin: 0 auto 20px; }
.ticket-copy { width: 87%; margin: 0 auto; color: #171717; font-size: 14.5px; line-height: 1.25; }
.ticket-copy p { margin: 0; }
.ticket-identity { line-height: 1.3; }
.ticket-validity { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; }
.ticket-id-check { margin-top: 19px !important; }
.ticket-rules { margin-top: 15px !important; }
.ticket-tariff { margin-top: 17px !important; }
.ticket-metadata { margin-top: 16px; }
.ticket-tax { margin-top: 18px !important; }
.ticket-xt001 { display: block; width: 41.4%; height: auto; margin: 17px auto 14px; background: #fff; }
.ticket-bottom { width: 87%; margin: 0 auto; color: #171717; font-size: 14.5px; line-height: 1.25; }
.ticket-bottom-copy p { margin: 0; }
.ticket-marks { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 17px; }
.ticket-e8-tile { flex: 0 0 80px; width: 80px; height: 80px; background: #fff; }
.ticket-e8-tile img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ticket-transit { display: block; width: 53.33%; height: auto; }

/* ---------- tab bar ---------- */
.tabbar {
  flex: 0 0 auto; z-index: 5;
  display: flex;
  height: calc(var(--tab-h) + var(--tab-pad));
  padding-bottom: var(--tab-pad);
  background: #fff;
  border-top: 1px solid #e4e4e4;
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; color: #262626; }
.tab .ic { width: 23px; height: 23px; }
.tab.active { color: var(--accent); font-weight: 500; }
.tab.active .ic { stroke-width: 2.1; }

/* ---------- headers ---------- */
.gheader { flex: 0 0 auto; background: var(--grad); color: #fff; padding: calc(var(--sb) + 14px) 18px 14px; }
.gheader-bar { display: flex; align-items: center; gap: 20px; min-height: 46px; }
.gheader h1 { flex: 1; min-width: 0; font-size: 19px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbtn {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: #1d1d1d;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .14);
  transition: transform .12s;
}
.hbtn:active { transform: scale(.94); }
.hbtn-sm { width: 38px; height: 38px; }
.hbtn.fav.on { color: #f2b600; }
.hbtn.fav.on svg { fill: #f2b600; }

.fheader { flex: 0 0 auto; background: var(--grad); color: #fff; padding-top: var(--sb); }
.fheader-bar { display: flex; align-items: center; gap: 26px; height: 58px; padding: 0 16px; }
.fheader h1 { flex: 1; min-width: 0; font-size: 19px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fbtn { display: grid; place-items: center; color: #fff; }

/* origin/destination box */
.odbox { display: flex; align-items: stretch; gap: 14px; margin-top: 18px; padding: 10px 14px 10px 12px; border: 1.6px solid rgba(255, 255, 255, .95); border-radius: 3px; color: #fff; }
.od-dots { display: flex; flex-direction: column; align-items: center; padding: 6px 0; }
.od-dots .o { width: 9px; height: 9px; border: 1.6px solid #fff; border-radius: 50%; }
.od-dots .l { flex: 1; width: 1.6px; background: #fff; margin: 2px 0; }
.od-dots .f { width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.od-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 17px; }
.od-fields > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.od-fields input { width: 100%; padding: 2px 0 4px; background: transparent; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .4); outline: 0; color: #fff; }
.od-fields input:last-child { border-bottom: 0; }
.od-fields input::placeholder { color: rgba(255, 255, 255, .78); }
.od-swap { align-self: center; display: grid; place-items: center; color: #fff; }
.odtime { display: flex; align-items: center; gap: 6px; width: fit-content; margin: 10px 0 0 auto; font-size: 16px; color: #fff; opacity: .96; }

.stdbar { display: flex; align-items: center; gap: 8px; padding: 12px 18px; background: var(--grey); color: #333; font-size: 15px; }
.stdbar span { flex: 1; }

/* ---------- map home ---------- */
.screen-map { background: #e9e9e4; }
.map-full { position: absolute; inset: 0; }
.map-offline { display: grid; place-items: center; color: #777; font-size: 14px; background: #e9e9e4; }
.map-menu { position: absolute; z-index: 500; top: calc(var(--sb) + 18px); left: 16px; }
.map-tools { position: absolute; z-index: 500; right: 14px; bottom: 166px; display: flex; flex-direction: column; gap: 10px; }
.map-tool { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #333; box-shadow: 0 1px 5px rgba(0, 0, 0, .2); }
.start-sheet {
  position: absolute; z-index: 600; left: 0; right: 0; bottom: 0;
  padding: 10px 18px 22px;
  background: var(--grad); color: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .15);
}
.sheet-grip { width: 34px; height: 4px; margin: 0 auto 8px; border-radius: 2px; background: #fff; }
.start-sheet h2 { margin: 2px 0 14px 2px; font-size: 20px; font-weight: 700; }
.route-field { position: relative; display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 14px 0 58px; border: 1.6px solid #fff; border-radius: 3px; }
.route-arrow { position: absolute; left: -26px; top: 50%; transform: translateY(-50%); color: #fff; }
.route-ph { flex: 1; font-size: 16px; color: rgba(255, 255, 255, .85); }
.screen-map .leaflet-bottom { bottom: 148px; }
.leaflet-control-attribution { font-size: 9.5px; }
.leaflet-container { font-family: Roboto, Arial, sans-serif; background: #eeeee9; }
.leaflet-tile-pane { filter: saturate(.38) brightness(1.05) contrast(.92); }

/* map markers */
.mk { background: none; border: 0; }
.h-stop { display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #fff; border: 1.6px solid #19a067; color: #19a067; font-weight: 700; line-height: 1; }
.mk-stop { width: 18px; height: 18px; font-size: 10.5px; }
.veh { position: relative; width: 30px; height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; --vc: #0d4fa0; }
.veh-T { --vc: #d6001c; }
.veh-B { --vc: #8b1f73; }
.veh-pin { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 2.5px solid var(--vc); color: var(--vc); font-weight: 800; font-size: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.veh-line { margin-top: 1px; padding: 0 5px; border-radius: 8px; background: var(--vc); color: #fff; font-size: 10px; font-weight: 700; line-height: 14px; }
.veh-delay { position: absolute; top: 0; right: -12px; padding: 0 4px; border-radius: 8px; border: 1px solid #fff; background: var(--ok); color: #fff; font-size: 9.5px; font-weight: 700; line-height: 14px; }
.veh-delay.late { background: var(--late); }
.leaflet-popup-content-wrapper { border-radius: 8px; }
.leaflet-popup-content { margin: 12px 14px; }
.pop { display: flex; flex-direction: column; gap: 2px; min-width: 150px; }
.pop b { font-size: 15px; }
.pop small { color: #666; }
.leaflet-container .pop a { display: flex; align-items: center; gap: 4px; margin-top: 8px; color: var(--green); font-weight: 500; }

/* ---------- generic rows & buttons ---------- */
.pad { padding: 16px 18px 4px; }
.pad-x { padding: 0 18px 24px; }
.pad-h { padding-left: 18px; padding-right: 18px; }
.hint { font-size: 14px; color: var(--muted); line-height: 1.4; margin-top: 14px; }
.hint .ic { vertical-align: -2px; }
.list-head { padding: 22px 18px 6px; font-size: 15px; font-weight: 700; color: #222; }
.row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 18px; border-bottom: 1px solid var(--line-l); text-align: left; }
.row-ic { display: grid; color: #555; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-main b { font-size: 16px; font-weight: 500; }
.row-main small { margin-top: 1px; font-size: 13.5px; color: var(--muted); }
.row-dist { font-size: 14px; color: var(--muted); }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 3px; font-size: 14.5px; font-weight: 700; letter-spacing: 1.4px; }
.btn-block { width: 100%; }
.btn-green { background: var(--green-btn); color: #fff; }
.btn-outline { background: #fff; color: var(--green-btn); border: 1.6px solid var(--green-btn); }
.btn-search { font-size: 16px; font-weight: 500; letter-spacing: .2px; }
.morelink { display: flex; align-items: center; gap: 6px; padding: 10px 18px; font-size: 17px; color: var(--green); }

/* transit symbols */
.mode-ic { display: inline-grid; place-items: center; flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 700; line-height: 1; }
.mode-R { background: #1a9a6c; }
.mode-S { background: #62a33d; }
.mode-U { background: #0d4fa0; border-radius: 2px; }
.mode-T { background: #d6001c; border-radius: 4px; }
.mode-B { background: #8b1f73; border-radius: 4px; }
.line-chip { display: inline-grid; place-items: center; flex: 0 0 auto; min-width: 50px; height: 26px; padding: 0 6px; border-radius: 4px; color: #fff; font-size: 14px; font-weight: 700; }
.chip-U { background: #0d4fa0; }
.chip-S { background: #62a33d; border-radius: 13px; }
.chip-R { background: #1a9a6c; }
.chip-T { background: #d6001c; }
.chip-B { background: #8b1f73; }
.d-ok { color: var(--ok); }
.d-late { color: var(--late); }
.warn-ic { flex: 0 0 auto; }

/* ---------- trip results ---------- */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 18px 18px 8px; }
.mode { height: 100px; padding: 10px 4px; border-radius: 3px; background: var(--grey); color: #222; display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; text-align: center; font-size: 15.5px; }
.mode b { font-weight: 500; }
.mode.active { background: var(--green); color: #fff; }
.trip { display: flex; margin: 0 18px; padding: 10px 0; border-bottom: 1.5px solid var(--line); }
.trip-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 4px 0; font-size: 16.5px; }
.trip-times { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.trip-main .trip-times { flex-wrap: nowrap; white-space: nowrap; letter-spacing: -.1px; }
.trip-line { display: flex; align-items: center; gap: 8px; }
.trip-price { flex: 0 0 auto; width: 116px; display: flex; align-items: center; padding: 4px 0 4px 10px; border-left: 1.5px solid #555; font-size: 16.5px; line-height: 1.35; }
@media (max-width: 380px) {
  .trip-main, .trip-price { font-size: 15px; }
  .trip-price { width: 104px; }
}

/* ---------- trip details ---------- */
.pager { flex: 0 0 auto; display: flex; justify-content: center; gap: 7px; padding: 9px 0; background: #0a8f5b; }
.pager a { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.pager a.on { background: #fff; }
.sumbox { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; background: var(--grey); font-size: 17px; }
.sum-price { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.sum-price b { font-size: 16.5px; line-height: 1.4; }
.sum-link { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 16.5px; color: #333; }
.leg { display: grid; grid-template-columns: auto 26px 1fr 44px; column-gap: 8px; padding: 22px 18px 8px; }
.leg-time { min-width: 52px; display: flex; flex-direction: column; gap: 2px; padding-bottom: 18px; font-size: 16.5px; }
.leg-time small { margin-top: 8px; font-size: 15px; color: #333; white-space: nowrap; }
.leg-rail { position: relative; }
.leg-rail .dot { position: absolute; z-index: 1; left: 50%; top: 3px; width: 15px; height: 15px; margin-left: -7.5px; border-radius: 50%; border: 2.4px solid #111; background: #fff; }
.leg-rail .fill-dot { background: #111; }
.leg-rail.first::after { content: ''; position: absolute; left: 50%; top: 16px; bottom: -6px; width: 2.4px; margin-left: -1.2px; background: #111; }
.leg-rail.last::before { content: ''; position: absolute; left: 50%; top: -2px; height: 8px; width: 2.4px; margin-left: -1.2px; background: #111; }
.leg-info { min-width: 0; padding-bottom: 18px; font-size: 16.5px; }
.leg-info b { display: block; }
.leg-line { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.leg-dir { margin-top: 12px; font-size: 15.5px; color: #333; }
.leg-toggle { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 15.5px; }
.leg-stops { display: none; margin: 8px 0 0 2px; font-size: 14.5px; color: #555; }
.leg-stops li { position: relative; padding: 4px 0 4px 14px; }
.leg-stops li::before { content: ''; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #999; }
.acc.open > .leg-stops { display: block; }
.leg-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.ring { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1.6px solid; }
.ring-warn { border-color: #f39200; }
.ring-info { border-color: #1593d4; }
.mini-map { height: 150px; margin: 6px 18px 0; overflow: hidden; border-radius: 2px; background: #eee; }
.btn-msg { display: flex; align-items: center; gap: 10px; height: 46px; margin: 22px 18px 0; padding: 0 14px; border-radius: 2px; background: var(--green-btn); color: #fff; font-size: 18px; }
.btn-msg span { flex: 1; }
.eco { padding: 24px 18px 28px; }
.eco h3 { margin-bottom: 12px; font-size: 16px; font-weight: 400; }
.eco-row { display: grid; grid-template-columns: 112px 1fr 84px; align-items: center; gap: 10px; margin: 8px 0; font-size: 14px; }
.eco-row span { display: flex; align-items: center; gap: 6px; }
.eco-row b { text-align: right; font-weight: 500; }
.bar { height: 10px; overflow: hidden; border-radius: 5px; background: #eee; }
.bar i { display: block; height: 100%; background: var(--green); }
.bar.car i { background: #9a9a9a; }
.eco-save { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; color: var(--green); }

/* ---------- accordion ---------- */
.acc-body { display: none; }
.acc.open > .acc-body { display: block; }
.acc-chev { transition: transform .2s; }
.acc.open .acc-chev { transform: rotate(180deg); }
.acc-chev-up { transition: transform .2s; transform: rotate(180deg); }
.acc.open .acc-chev-up { transform: none; }

/* ---------- trip tickets ---------- */
.tt-meta { margin: 14px 0 0 2px; font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.egon-pill { display: flex; align-items: center; gap: 6px; height: 38px; margin-top: 12px; padding: 0 8px 0 18px; border: 1.5px solid #fff; border-radius: 19px; background: #a3157f; color: #fff; font-size: 15.5px; white-space: nowrap; overflow: hidden; }
.egon-pill .egon-mark { font-size: 17px; }
@media (max-width: 380px) { .egon-pill { font-size: 14px; padding-left: 14px; } .egon-pill .egon-mark { font-size: 15.5px; } }
.egon-pill > .ic { margin-left: auto; }
.tt-tabs { flex: 0 0 auto; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); background: #f4f4f4; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.tt-tab { padding: 8px 4px 6px; border-bottom: 2.5px solid transparent; font-size: 14.5px; line-height: 1.2; text-align: center; color: #222; }
.tt-tab.active { background: #fff; border-bottom-color: var(--green); }
.tt-list { padding: 14px 18px 24px; }
.tcard { position: relative; display: flex; min-height: 94px; margin-bottom: 12px; border-radius: 8px; background: var(--grey); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.tcard::before { content: ''; position: absolute; left: -9px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: #fff; }
.tcard-main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; padding: 10px 10px 10px 24px; font-size: 16.5px; }
.tcard-desc { font-size: 15px; color: #333; }
.tcard-level { display: flex; align-items: center; gap: 10px; }
.tcard-level .q { display: grid; color: #333; }
.tcard-price { width: 96px; margin: 4px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-left: 2px dashed #555; font-size: 16.5px; }
.cart { display: grid; color: #333; }
.zones { margin: 6px 0 10px; font-size: 15px; line-height: 1.35; color: #222; }
.acc-head { display: flex; align-items: center; width: 100%; margin-bottom: 12px; padding: 8px 14px; border-radius: 3px; background: var(--grey); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); font-size: 16.5px; }
.acc-head span { flex: 1; text-align: center; }

/* ---------- tickets tab ---------- */
.dashed { border: 1.6px dashed #cfcfcf; border-radius: 3px; }
.empty-ticket { display: flex; align-items: center; justify-content: center; gap: 16px; height: 96px; margin-top: 24px; font-size: 17px; color: #555; }
.empty-ticket .ic { color: #666; }
.all-head { display: flex; align-items: baseline; justify-content: space-between; margin: 34px 0 14px; }
.all-head h2 { font-size: 24px; font-weight: 300; color: #222; }
.caps-link { color: var(--accent); font-size: 13.5px; font-weight: 700; letter-spacing: 1.6px; }
.caps-link.center { display: block; margin: 22px auto 10px; text-align: center; }
.tl-item { display: flex; align-items: center; gap: 14px; padding: 8px 0; }
.tl-item > b { flex: 1; font-size: 17.5px; }
.tl-ic { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 4px; background: var(--mint); color: var(--mint-ic); }
.tl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tl-main b { font-size: 16.5px; }
.tl-main small { font-size: 13.5px; color: var(--muted); }
.tl-price { font-size: 14px; font-weight: 500; color: #333; white-space: nowrap; }
.cat-list { padding-top: 14px; }
.cat-list .tl-item { padding: 12px 0; border-bottom: 1px solid var(--line-l); }
.voucher { display: flex; align-items: center; gap: 12px; width: 100%; height: 56px; margin-top: 28px; padding: 0 26px; font-size: 17px; color: #333; }

/* purchase config */
.pc-title { padding: 18px 18px 8px; }
.pc-title b { display: block; font-size: 19px; }
.pc-title small { font-size: 14px; color: var(--muted); }
.pc-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 9px 18px; text-align: left; }
.pc-ic { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 3px; background: var(--mint); color: var(--mint-ic); font-size: 18px; font-weight: 500; }
.pc-ic.round { border-radius: 50%; }
.pc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 15.5px; }
.pc-txt b { font-size: 16px; }
.pc-txt b.grey { color: #8a8a8a; }
.pc-txt small { font-size: 13.5px; color: #333; }
.pc-step { display: flex; gap: 8px; }
.pc-step button { display: grid; color: #777; }
.pc-step button.green { color: var(--mint-ic); }
.pc-q { padding: 22px 18px 6px; font-size: 16px; }
.pc-actions { flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; padding: 10px 8px; border-top: 1px solid #eee; box-shadow: 0 -2px 6px rgba(0, 0, 0, .05); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 80px 32px; text-align: center; color: #666; }
.empty b { color: #333; font-size: 17px; }

/* current tickets & history */
.cur-head { margin: 24px 0 6px; font-size: 15px; font-weight: 700; color: #222; }
.cur-list, .hist-list { display: flex; flex-direction: column; }
.tk-row { padding: 12px 0; border-bottom: 1px solid var(--line-l); }
.hist-list { padding-top: 10px; }
.tk-expired { color: var(--late); font-weight: 500; }

/* checkout */
.co-item { display: flex; align-items: flex-start; gap: 14px; margin: 18px 18px 4px; padding: 14px; border-radius: 8px; background: var(--grey); }
.co-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.co-main b { font-size: 16.5px; }
.co-main small { font-size: 13.5px; color: #444; }
.co-price { font-size: 16.5px; white-space: nowrap; }
.co-row { display: flex; align-items: center; gap: 12px; padding: 0 18px; font-size: 16px; color: #333; }
.radio-row, .check-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 18px; font-size: 16px; text-align: left; }
.radio { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #8a8a8a; position: relative; }
.radio.on { border-color: var(--green); }
.radio.on::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--green); }
.check-row { margin-top: 10px; font-size: 14.5px; line-height: 1.35; color: #333; }
.checkbox { flex: 0 0 auto; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 3px; border: 2px solid #8a8a8a; color: transparent; }
.checkbox.on { background: var(--green); border-color: var(--green); color: #fff; }
.co-total { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 12px 18px 4px; border-top: 1px solid var(--line-l); }
.co-total div { display: flex; flex-direction: column; }
.co-total span { font-size: 16px; font-weight: 500; }
.co-total small { font-size: 12.5px; color: var(--muted); }
.co-total b { font-size: 20px; }
.co-total + .pc-actions { border-top: 0; box-shadow: none; }

/* HandyTicket (sample) */
.tk-bg { background: #eef1ef; padding-bottom: 20px; }
.tk-card { margin: 16px 16px 0; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.tk-banner { padding: 7px 10px; background: var(--late); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-align: center; }
.tk-body { padding: 16px 18px 18px; background-repeat: repeat; }
.tk-top { display: flex; align-items: center; gap: 12px; }
.tk-top div { display: flex; flex-direction: column; }
.tk-top b { font-size: 15px; }
.tk-top small { font-size: 12px; color: var(--muted); }
.vgn-badge-sm { width: 42px; height: 42px; border-radius: 10px; font-size: 14px; border: 1.5px solid var(--green); }
.tk-name { margin-top: 16px; font-size: 22px; font-weight: 700; }
.tk-sub { margin-top: 2px; font-size: 14.5px; color: #444; }
.tk-qr { position: relative; width: 210px; height: 210px; margin: 18px auto 0; padding: 8px; border: 1px solid #ddd; border-radius: 6px; background: #fff; }
.tk-qr svg { display: block; width: 100%; height: 100%; }
.tk-stamp { position: absolute; left: 50%; top: 50%; padding: 4px 14px; border: 3px solid var(--late); border-radius: 6px; background: rgba(255, 255, 255, .82); color: var(--late); font-size: 26px; font-weight: 800; letter-spacing: 2px; transform: translate(-50%, -50%) rotate(-18deg); }
.tk-nr { margin-top: 8px; text-align: center; font-size: 13px; color: #555; font-family: ui-monospace, Consolas, monospace; }
.tk-grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 16px 0 0; font-size: 14.5px; }
.tk-grid dt { color: var(--muted); }
.tk-grid dd { margin: 0; font-weight: 500; text-align: right; }
.tk-note { margin-top: 14px; padding: 8px 10px; border-radius: 4px; background: #fdecee; color: #a40014; font-size: 12.5px; line-height: 1.4; }
.tk-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 16px 0; }
.tk-actions .btn { font-size: 13px; letter-spacing: .4px; }

/* ---------- egon ---------- */
.egon-mark { display: inline-flex; align-items: center; font-weight: 700; letter-spacing: -.3px; line-height: 1; }
.egon-o { position: relative; top: .06em; display: inline-block; width: 1.25em; height: .6em; margin: 0 .04em; border: .11em solid currentColor; border-radius: 1em; }
.egon-o::after { content: ''; position: absolute; right: .06em; top: 50%; width: .3em; height: .3em; margin-top: -.15em; border-radius: 50%; background: currentColor; }
.sec-title { padding: 20px 18px 12px; font-size: 18px; font-weight: 700; }
.stop-line { display: flex; align-items: center; gap: 14px; padding: 16px 18px 0 22px; }
.stop-line > span:not(.h-stop) { display: flex; flex-direction: column; font-size: 17px; }
.stop-line b { font-weight: 400; }
.stop-line small { font-size: 15.5px; color: #333; }
.link-right { display: flex; align-items: center; gap: 4px; width: fit-content; margin: 20px 18px 0 auto; font-size: 16.5px; color: #222; }
.who-block { margin-top: 26px; }
.who { display: flex; align-items: center; justify-content: space-between; padding: 0 22px 18px 20px; font-size: 17px; }
.info-purple { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #a3157f; color: #fff; font-family: Georgia, serif; font-size: 14px; font-weight: 700; }
.acc-bar { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 18px; background: var(--grey); font-size: 17px; }
.step-row { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line-l); font-size: 16px; }
.step-row span { flex: 1; }
.step-row button { display: grid; }
.step-row output { min-width: 22px; text-align: center; font-weight: 500; }
.pay { padding: 0 18px; font-size: 17px; }
.legal { padding: 24px 18px 12px; font-size: 13.5px; line-height: 1.45; color: #222; }
.legal a { color: var(--green); text-decoration: underline; }
.legal .ic { color: var(--green); vertical-align: -2px; }
.egon-slide { position: relative; flex: 0 0 auto; display: flex; align-items: center; height: 54px; margin: 4px 16px 10px; border-radius: 27px; background: var(--egon); color: #fff; user-select: none; touch-action: pan-y; cursor: pointer; }
.egon-knob { position: absolute; z-index: 2; left: -1px; top: -1px; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; border: 3px solid #141414; background: #fff; cursor: grab; touch-action: none; transition: transform .25s; }
.egon-knob.dragging { transition: none; cursor: grabbing; }
.egon-chev { margin-left: 64px; font-size: 22px; letter-spacing: 2px; opacity: .9; }
.egon-label { flex: 1; display: flex; flex-direction: column; align-items: center; font-size: 15.5px; line-height: 1.2; }
.egon-slide .egon-mark { margin-right: 16px; font-size: 21px; }

/* ---------- departures ---------- */
.searchbox { display: flex; align-items: center; gap: 10px; height: 48px; margin-top: 16px; padding: 0 14px; border: 1.6px solid #fff; border-radius: 3px; color: #fff; }
.searchbox input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font-size: 16px; }
.searchbox input::placeholder { color: rgba(255, 255, 255, .8); }
.board-sub { margin-top: 10px; text-align: right; font-size: 15px; opacity: .95; }
.chips { flex: 0 0 auto; display: flex; gap: 8px; padding: 12px 18px; overflow-x: auto; border-bottom: 1px solid var(--line-l); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; display: flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 16px; border: 1.4px solid #cfcfcf; font-size: 14px; color: #333; }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }
.dep { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line-l); }
.dep-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dep-main b { font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dep-main small { font-size: 13.5px; color: var(--muted); }
.dep-time { display: flex; flex-direction: column; align-items: flex-end; font-size: 16px; white-space: nowrap; }
.dep-time small { font-size: 13px; color: var(--muted); }

/* ---------- settings ---------- */
.set-sec { padding: 20px 18px 0; }
.set-sec h3 { margin-bottom: 4px; font-size: 18px; font-weight: 700; }
.set-row { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1.5px solid var(--line); font-size: 17px; }
.set-row .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.set-row small { margin-top: 2px; font-size: 14.5px; color: #333; }
.opt-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 18px; border-bottom: 1px solid var(--line-l); font-size: 16px; text-align: left; }
.opt-row span { flex: 1; }
.opt-row em { font-style: normal; font-size: 15px; color: var(--muted); }
.switch { position: relative; flex: 0 0 auto; width: 40px; height: 22px; border-radius: 11px; background: #bdbdbd; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: left .2s; }
.switch.on { background: var(--green); }
.switch.on::after { left: 20px; }

/* ---------- Störungen ---------- */
.st-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 18px 6px; }
.st-head h2 { font-size: 22px; font-weight: 700; color: var(--green); }
.pen { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1.6px solid #333; }
.st-note { padding: 4px 18px 6px; font-size: 16px; }
.grp-head { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 14px 18px; background: var(--grey); font-size: 17px; font-weight: 700; }
.grp-head > span:not(.h-stop) { flex: 1; }
.st-item { margin: 0 18px; padding: 14px 0; border-bottom: 1.5px solid var(--line); }
.acc-body > .st-item:last-child { border-bottom: 0; }
.st-top { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; }
.st-name { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 16.5px; }
.st-name small { margin-top: 4px; font-size: 14.5px; color: #333; }
.st-line { display: flex; align-items: center; gap: 8px; }
.st-ok { display: grid; padding-right: 6px; color: #222; }
.st-msgs { display: none; margin-top: 10px; padding: 10px 12px; border-left: 3px solid #f39200; background: #fff6e8; font-size: 14.5px; line-height: 1.4; }
.st-msgs li + li { margin-top: 6px; }
.acc.open > .st-msgs { display: block; }

/* ---------- drawer ---------- */
.scrim { position: absolute; inset: 0; z-index: 60; background: rgba(0, 0, 0, .42); opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer { position: absolute; z-index: 61; top: 0; bottom: 0; left: 0; width: 84%; max-width: 330px; display: flex; flex-direction: column; background: #fff; box-shadow: 4px 0 20px rgba(0, 0, 0, .2); transform: translateX(-104%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.app.drawer-open .scrim { opacity: 1; pointer-events: auto; }
.app.drawer-open .drawer { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 14px; padding: calc(var(--sb) + 20px) 20px 20px; background: var(--grad); color: #fff; }
.drawer-head b { display: block; font-size: 17px; }
.drawer-head small { font-size: 12.5px; opacity: .92; }
.vgn-badge { flex: 0 0 auto; width: 58px; height: 58px; display: inline-grid; place-items: center; border-radius: 14px; background: #fff; color: var(--green); font-size: 19px; font-weight: 900; font-style: italic; letter-spacing: -.5px; }
.drawer-login { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 20px; border-bottom: 1px solid var(--line-l); text-align: left; color: var(--green); }
.drawer-login span { display: flex; flex-direction: column; color: #222; }
.drawer-login small { font-size: 13px; color: var(--muted); }
.drawer-list { flex: 1; overflow-y: auto; padding: 6px 0; scrollbar-width: none; }
.drawer-item { display: flex; align-items: center; gap: 18px; width: 100%; padding: 12px 20px; font-size: 15.5px; text-align: left; color: #222; }
.drawer-item .ic { color: #444; }
.drawer-item.active { background: #fbeef3; color: var(--accent); }
.drawer-item.active .ic { color: var(--accent); }
.drawer-sep { height: 1px; margin: 6px 0; background: var(--line-l); }
.drawer-item span { flex: 1; }
.drawer-badge { padding: 1px 6px; border-radius: 4px; background: var(--mint); color: var(--mint-ic); font-size: 11.5px; font-style: normal; font-weight: 700; }
.drawer-foot { padding: 10px 20px calc(18px + var(--tab-pad)); font-size: 12px; color: #888; }

/* ---------- toast & sheet ---------- */
.toast {
  position: absolute; z-index: 100; left: 14px; right: 14px;
  bottom: calc(var(--tab-h) + var(--tab-pad) + 16px);
  padding: 13px 16px; border-radius: 6px;
  background: #2f2f2f; color: #fff;
  font-size: 14px; line-height: 1.35;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  opacity: 0; transform: translateY(12px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: none; }
.overlay-root { position: absolute; inset: 0; z-index: 95; pointer-events: none; }
.sheet-wrap { position: absolute; inset: 0; display: flex; align-items: flex-end; background: rgba(0, 0, 0, .38); pointer-events: auto; animation: fadeIn .2s; }
.sheet { width: 100%; max-height: 72%; overflow-y: auto; scrollbar-width: none;padding: 10px 0 calc(16px + var(--tab-pad)); border-radius: 18px 18px 0 0; background: #fff; animation: sheetUp .24s cubic-bezier(.2, .8, .2, 1); }
.sheet::before { content: ''; display: block; width: 34px; height: 4px; margin: 0 auto 8px; border-radius: 2px; background: #ccc; }
.sheet h3 { padding: 8px 20px 10px; font-size: 16px; font-weight: 700; }
.sheet-opt { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 20px; font-size: 16px; text-align: left; }
.sheet-opt.sel { color: var(--green); font-weight: 500; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } }
