/* 24h ÖPNV – ABFAHRT-Box
 * Farben als Variablen: hell als Standard, dunkel per Systemeinstellung
 * oder wenn die Seite selbst den Dunkelmodus setzt.
 */
.t24oe-slot{display:block}
.t24oe{
	--t24oe-bg:var(--ph,#f4f4f4);--t24oe-fg:var(--tx,#161616);--t24oe-muted:var(--mu,#555);--t24oe-card:var(--cc,#fff);--t24oe-line:var(--hl,#ddd);--t24oe-seg:var(--ph,#ececec);--t24oe-acc:var(--acc,#a00000);--t24oe-warn:#9a5b00;
	container-type:inline-size;
	font-family:Roboto,"Helvetica Neue",Helvetica,system-ui,sans-serif;
	color:var(--t24oe-fg);background:var(--t24oe-card);
	border:1px solid var(--t24oe-line);border-radius:16px;padding:14px;
	display:flex;flex-direction:column;gap:12px;box-sizing:border-box;width:100%;max-width:100%;
	margin:14px 0;-webkit-text-size-adjust:100%
}
@media (prefers-color-scheme:dark){
	html:not([data-theme=light]) .t24oe:not(.t24oe--light){--t24oe-bg:var(--ph,#121212);--t24oe-fg:var(--tx,#f2f2f2);--t24oe-muted:var(--mu,#b0b0b0);--t24oe-card:var(--cc,#1e1e1e);--t24oe-line:var(--hl,#333);--t24oe-seg:var(--ph,#2a2a2a);--t24oe-acc:var(--acc,#ff6b6b);--t24oe-warn:#e8a33d}
}
.t24oe.t24oe--dark,
html[data-theme="dark"] .t24oe:not(.t24oe--light){
	--t24oe-bg:var(--ph,#121212);--t24oe-fg:var(--tx,#f2f2f2);--t24oe-muted:var(--mu,#b0b0b0);--t24oe-card:var(--cc,#1e1e1e);--t24oe-line:var(--hl,#333);--t24oe-seg:var(--ph,#2a2a2a);--t24oe-acc:var(--acc,#ff6b6b);--t24oe-warn:#e8a33d
}
html[data-theme="light"] .t24oe:not(.t24oe--dark){
	--t24oe-bg:var(--ph,#f4f4f4);--t24oe-fg:var(--tx,#161616);--t24oe-muted:var(--mu,#555);--t24oe-card:var(--cc,#fff);--t24oe-line:var(--hl,#ddd);--t24oe-seg:var(--ph,#ececec);--t24oe-acc:var(--acc,#a00000);--t24oe-warn:#9a5b00
}
.t24oe *{box-sizing:border-box}
.t24oe button,.t24oe input{font-family:inherit}
.t24oe-row{display:flex;justify-content:space-between;align-items:center;gap:8px}
.t24oe-lbl{font-size:12px;font-weight:700;letter-spacing:1.5px;color:var(--t24oe-muted);text-transform:uppercase}
.t24oe-live{font-size:11px;color:var(--t24oe-muted);display:flex;align-items:center;gap:5px;white-space:nowrap}
.t24oe-dot{width:7px;height:7px;border-radius:50%;background:#1f9d55;display:inline-block;flex-shrink:0}
.t24oe-dot--old{background:#b45309}
.t24oe-seg{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:var(--t24oe-seg);padding:4px;border-radius:12px}
.t24oe-seg button{border:0;border-radius:9px;min-height:44px;font-size:14px;font-weight:900;letter-spacing:1px;background:transparent;color:var(--t24oe-fg);cursor:pointer}
.t24oe-seg button[aria-pressed="true"]{background:#a00000;color:#fff}
.t24oe-seg button:disabled{cursor:default;opacity:.55}
.t24oe-link{border:0;background:none;padding:6px 0;font-size:13px;font-weight:700;color:var(--t24oe-acc);cursor:pointer;white-space:nowrap}
.t24oe-stops{display:flex;flex-direction:column}
.t24oe-stop{display:flex;flex-direction:column;padding:12px 0;border-top:1px solid var(--t24oe-line)}
.t24oe-stop:first-child{border-top:0;padding-top:2px}
.t24oe-stophead{display:flex;align-items:baseline;gap:8px;margin-bottom:6px}
.t24oe-stopname{font-size:15px;font-weight:700;flex:1;min-width:0;overflow-wrap:anywhere}
.t24oe-stopname small{display:none}
.t24oe-walk{font-size:12px;color:var(--t24oe-muted);white-space:nowrap}
.t24oe-prod{font-size:11px;font-weight:900;color:#fff;border-radius:4px;padding:2px 5px;flex-shrink:0}
.t24oe-dep{display:flex;align-items:center;gap:10px;min-height:34px}
.t24oe-line{min-width:38px;height:22px;display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:12px;padding:0 5px;border-radius:4px;color:#fff;flex-shrink:0}
.t24oe-dir{flex:1;min-width:0;font-size:14px;display:flex;align-items:center;gap:5px}
.t24oe-dir>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.t24oe-dir svg{flex-shrink:0;color:var(--t24oe-muted)}
.t24oe-sub{font-size:11px;color:var(--t24oe-muted);display:flex;align-items:center;gap:4px}
.t24oe-late{color:var(--t24oe-warn)}
.t24oe-gone .t24oe-dir>span{text-decoration:line-through;opacity:.7}
.t24oe-dl{font-size:11px;font-weight:500;margin-left:4px}
.t24oe-min{font-size:14px;font-weight:600;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.t24oe-empty{font-size:14px;line-height:1.5;color:var(--t24oe-muted);padding:4px 0}
/* Standort-Knopf: Symbol in Akzentfarbe */
.t24oe-near svg{color:var(--t24oe-acc)}
.t24oe-near{min-height:44px;border-radius:22px;border:1.5px solid var(--t24oe-line);background:transparent;color:var(--t24oe-fg);font-size:14px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;width:100%}
.t24oe-hint{font-size:11px;color:var(--t24oe-muted);text-align:center;line-height:1.4}
.t24oe-input{width:100%;min-height:46px;border-radius:10px;border:1px solid var(--t24oe-line);background:var(--t24oe-bg);color:var(--t24oe-fg);padding:0 12px;font-size:16px}
.t24oe-input::placeholder{color:var(--t24oe-muted)}
.t24oe-chips{display:flex;gap:8px;flex-wrap:wrap}
.t24oe-chip{min-height:38px;border-radius:19px;border:1px solid var(--t24oe-line);background:var(--t24oe-bg);color:var(--t24oe-fg);padding:0 14px;font-size:14px;display:inline-flex;align-items:center;gap:6px;cursor:pointer;max-width:100%}
.t24oe-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.t24oe-chip--dash{border-style:dashed;background:transparent;color:var(--t24oe-muted)}
.t24oe-chip--x{padding:0 10px;min-width:38px;justify-content:center;color:var(--t24oe-muted)}
.t24oe-btn{border:0;border-radius:12px;min-height:48px;background:#a00000;color:#fff;font-size:15px;font-weight:700;cursor:pointer;width:100%}
.t24oe-foot{font-size:11px;color:var(--t24oe-muted)}
.t24oe-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.t24oe-skel{height:44px;border-radius:8px;background:var(--t24oe-seg);animation:t24oe-p 1.2s ease-in-out infinite}
@keyframes t24oe-p{50%{opacity:.5}}
@media (prefers-reduced-motion:reduce){.t24oe-skel{animation:none}}

/* Schmale Handys: Fußweg unter den Haltestellennamen */
@container (max-width:250px){
	.t24oe-stophead .t24oe-walk{display:none}
	.t24oe-stopname small{display:block;font-size:12px;font-weight:400;color:var(--t24oe-muted);margin-top:1px}
	.t24oe-line{min-width:36px}
}
@supports not (container-type:inline-size){
	@media (max-width:359px){
		.t24oe-stophead .t24oe-walk{display:none}
		.t24oe-stopname small{display:block;font-size:12px;font-weight:400;color:var(--t24oe-muted);margin-top:1px}
	}
}

/* In der Web App (t24-berlin) sitzt die Box in einer eigenen Kachel: dann ohne zweiten Rahmen */
.blk.oepnv .t24oe{background:transparent;border:0;border-radius:0;padding:0;margin:0}
.t24oe-more{border:0;background:none;align-self:flex-start;min-height:36px;padding:6px 0 0;font-size:13px;font-weight:400;color:var(--t24oe-muted);text-align:left;cursor:pointer}

/* ---------- 0.3: eine Kachel „Hinkommen / Wegkommen“ im Stil der App ---------- */
.t24oe{font-family:inherit}
.t24oe-h{margin:0;font-size:15px;font-weight:900;color:var(--t24oe-fg)}
.t24oe-div{border-top:1px solid var(--t24oe-line);margin:6px 0}
.t24oe-map{height:160px;border-radius:3px;border:1px solid var(--t24oe-line);position:relative;overflow:hidden;display:grid;place-items:center;
	background:repeating-linear-gradient(0deg,transparent 0 28px,var(--t24oe-line) 28px 29px),repeating-linear-gradient(90deg,transparent 0 40px,var(--t24oe-line) 40px 41px),var(--t24oe-card)}
.t24oe-map iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.t24oe-mapb{background:#111;color:#fff;border:0;font-weight:700;font-size:13px;padding:10px 16px;border-radius:3px;cursor:pointer;min-height:40px}
.t24oe-mapb:disabled{opacity:.5;cursor:default}
.t24oe-modes{display:flex;gap:8px}
.t24oe-md{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:5px;border:1px solid var(--t24oe-line);border-radius:3px;padding:10px 2px;font-weight:700;font-size:13px;white-space:nowrap;background:transparent;color:var(--t24oe-fg);cursor:pointer;min-height:56px}
.t24oe-md[aria-pressed="true"]{background:var(--t24oe-fg);border-color:var(--t24oe-fg);color:var(--t24oe-card)}
.t24oe-btn{display:flex;align-items:center;justify-content:center;border-radius:10px;text-decoration:none;font-size:16px;box-sizing:border-box}
.t24oe-note{font-size:12px;color:var(--t24oe-muted);margin-top:-6px}
.t24oe-nearrow{margin-top:-4px}
.t24oe-near{border:0;border-top:1px solid var(--t24oe-line);border-radius:0;min-height:0;padding:12px 0 0;justify-content:flex-start;align-items:flex-start;text-align:left;font-size:14px;font-weight:700;color:var(--t24oe-fg)}
.t24oe-near>span{display:flex;flex-direction:column}
.t24oe-near small{font-weight:400;font-size:12px;color:var(--t24oe-muted);margin-top:2px}
.t24oe-near svg{margin-top:2px;flex-shrink:0}
.t24oe-lab{font-size:12px;color:var(--t24oe-muted);margin-bottom:-6px}
.t24oe-input{border-radius:3px;background:transparent}
.t24oe-chip{border-radius:3px}
/* Zugeklappt: eine Linie, beide Richtungen untereinander */
.t24oe-grp{display:grid;grid-template-columns:auto minmax(0,1fr) auto;column-gap:10px;row-gap:2px;align-items:center;padding:4px 0}
.t24oe-grp .t24oe-dir{min-height:28px}
.t24oe-ar{color:var(--t24oe-muted);flex-shrink:0}
.t24oe-dt{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.t24oe-dir.t24oe-gone .t24oe-dt{text-decoration:line-through;opacity:.7}
