/* SO-BahnVerkehr responsive architecture
   Common styles only. Device-specific layout lives in desktop.css, tablet.css and mobile.css.
   Build: 2026-09-05 FINAL RESPONSIVE */
:root{
  --bg:#edf4f8;--card:#fff;--ink:#102331;--muted:#647783;--line:#d9e4ea;
  --navy:#031d31;--navy2:#073d60;--brand:#0ea5e9;--brand2:#22d3ee;--brand-soft:#e7f8ff;
  --success:#1fbf83;--success-soft:#eaf9f3;--red:#d13a45;--red-soft:#fff0f2;--amber:#b47100;--amber-soft:#fff4dc;
  --shadow:0 18px 48px rgba(13,44,64,.10);--radius:22px;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px)
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:linear-gradient(180deg,#eaf3f8 0,#f6f9fb 34%,#eef4f7 100%);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased}button,input{font:inherit}a{color:inherit}.hidden{display:none!important}.skip-link{position:fixed;left:12px;top:-90px;z-index:9999;background:#fff;color:#000;padding:12px 16px;border-radius:12px;box-shadow:var(--shadow)}.skip-link:focus{top:12px}

.topbar{min-height:74px;padding:calc(10px + var(--safe-top)) max(18px,calc((100vw - 1500px)/2)) 10px;display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(115deg,rgba(3,29,49,.98),rgba(5,45,73,.97));border-bottom:1px solid rgba(92,199,239,.20);box-shadow:0 10px 28px rgba(0,31,52,.18);backdrop-filter:blur(16px);position:sticky;top:0;z-index:700;color:#fff}.brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none}.brand-mark{display:grid;place-items:center;width:46px;height:46px;border-radius:15px;background:linear-gradient(135deg,#12b6f4,#35e2ef);color:#04233a;font-weight:950;letter-spacing:-1.5px;box-shadow:0 8px 22px rgba(16,178,235,.28)}.brand-copy strong,.brand-copy small{display:block}.brand-copy strong{font-size:20px;line-height:1;letter-spacing:-.015em}.brand-copy small{color:#a9c8d8;font-size:12px;margin-top:5px}.top-actions{display:flex;gap:8px}.icon-btn{min-height:44px;border:1px solid rgba(151,205,230,.22);background:rgba(255,255,255,.08);color:#eaf8ff;border-radius:14px;padding:9px 12px;text-decoration:none;display:flex;align-items:center;gap:7px;cursor:pointer;transition:.15s}.icon-btn:hover,.icon-btn:focus-visible{border-color:rgba(76,220,255,.52);background:rgba(255,255,255,.13);outline:0}.icon-btn[aria-pressed="true"]{background:rgba(34,211,238,.16);border-color:rgba(34,211,238,.5);color:#bdf7ff}.icon-btn:disabled{opacity:.46;cursor:not-allowed}.icon-btn:disabled:hover{background:rgba(255,255,255,.08);border-color:rgba(151,205,230,.22)}.action-symbol{font-weight:900}.portal-btn .action-symbol{font-size:11px;background:#11b8ef;color:#03243a;border-radius:7px;padding:2px 4px}

.app-shell,.article-shell{width:min(1500px,calc(100% - 32px));margin:22px auto 46px}.cover-hero{border-radius:28px;overflow:hidden;background:var(--navy);box-shadow:0 25px 65px rgba(2,36,61,.22);border:1px solid rgba(48,151,201,.20)}.cover-media{position:relative;background:#031d31;overflow:hidden}.cover-media:after{content:"";position:absolute;inset:auto 0 0;height:16%;background:linear-gradient(180deg,transparent,rgba(3,29,49,.32));pointer-events:none}.cover-media img{display:block;width:100%;height:auto;aspect-ratio:1491/1055;object-fit:cover}.cover-copy{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:22px 26px;background:linear-gradient(110deg,#041f34,#073c5d);color:#fff}.eyebrow,.section-kicker{text-transform:uppercase;letter-spacing:.11em;font-size:11px;font-weight:850}.cover-copy h1{font-size:clamp(26px,3vw,42px);letter-spacing:-.035em;line-height:1.05;margin:6px 0 7px}.cover-copy p{max-width:850px;margin:0;color:#c7dde8;font-size:15px}.live-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#48f2a8;box-shadow:0 0 0 5px rgba(72,242,168,.14);margin-right:7px}.station-chip{position:relative;z-index:1;min-width:250px;display:flex;align-items:center;gap:13px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.15);padding:13px 16px;border-radius:17px}.station-chip strong,.station-chip small{display:block}.station-chip small{color:#a9c5d5;font-size:12px;margin-top:3px}.station-icon{font-size:27px}

.live-bar{display:grid;grid-template-columns:auto minmax(220px,1fr) auto auto;gap:8px;align-items:center;margin:14px 0;background:#07283f;color:#eaf8ff;border:1px solid rgba(22,151,207,.18);border-radius:16px;padding:9px 12px;box-shadow:0 8px 20px rgba(13,53,77,.08)}.live-brand{display:flex;align-items:center;gap:7px;white-space:nowrap}.live-brand strong{font-size:12px;letter-spacing:.12em}.live-brand #liveClock{font-variant-numeric:tabular-nums;color:#9fdff4;font-size:12px}.pulse{width:8px;height:8px;background:#42e69f;border-radius:50%;box-shadow:0 0 0 4px rgba(66,230,159,.13)}.live-bar.error .pulse{background:var(--red);box-shadow:0 0 0 4px rgba(209,58,69,.13)}.status-copy,.status-meta,.status-link{font-size:12px}.status-copy{color:#c7dce7}.status-meta{color:#8fb0c2}.status-link{color:#8ce7ff;text-decoration:none;font-weight:750}.status-link:hover{text-decoration:underline}

.toolbar-card{display:grid;grid-template-columns:auto minmax(260px,1fr) auto;gap:12px;align-items:center;background:#fff;border:1px solid var(--line);padding:12px;border-radius:20px;box-shadow:0 8px 24px rgba(28,68,90,.055)}.tabs{display:flex;padding:4px;background:#edf4f8;border-radius:14px}.tab{border:0;background:transparent;color:#607585;padding:10px 18px;border-radius:11px;font-weight:850;cursor:pointer;min-height:44px}.tab.active{background:#fff;color:#087fb8;box-shadow:0 3px 12px rgba(41,77,99,.12)}.search-wrap{position:relative}.search-wrap input{width:100%;min-height:48px;border:1px solid var(--line);border-radius:14px;padding:10px 42px 10px 42px;background:#fbfdfe;color:var(--ink);outline:none}.search-wrap input:focus{border-color:#70c8ea;box-shadow:0 0 0 4px rgba(14,165,233,.10)}.search-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#688293;font-size:19px}.clear-btn{position:absolute;right:5px;top:5px;width:38px;height:38px;border:0;background:transparent;border-radius:10px;color:#80939f;font-size:22px;cursor:pointer}.toolbar-actions{display:flex;align-items:center;gap:12px}.switch{display:flex;align-items:center;gap:8px;color:#4e6370;font-size:14px;white-space:nowrap;cursor:pointer}.switch input{position:absolute;opacity:0}.switch span{width:39px;height:23px;border-radius:999px;background:#c8d7df;position:relative;transition:.2s}.switch span:after{content:"";position:absolute;width:17px;height:17px;background:#fff;border-radius:50%;top:3px;left:3px;box-shadow:0 2px 5px rgba(0,0,0,.18);transition:.2s}.switch input:checked+span{background:var(--brand)}.switch input:checked+span:after{transform:translateX(16px)}.primary-btn,.mini-btn{border:0;background:linear-gradient(135deg,#0787c2,#16bfe8);color:#fff;border-radius:13px;font-weight:850;padding:11px 15px;min-height:44px;cursor:pointer;box-shadow:0 6px 16px rgba(6,136,194,.20)}.primary-btn.inline{display:inline-flex;text-decoration:none}.mini-btn{min-width:42px;padding:8px}.secondary-map-btn{background:#eef7fb;color:#096d9d;border:1px solid #cee5ef;box-shadow:none}.quick-filters{display:flex;gap:8px;overflow:auto;padding:12px 2px 10px;scrollbar-width:none}.quick-filters::-webkit-scrollbar{display:none}.filter-chip{flex:0 0 auto;border:1px solid var(--line);background:#fff;color:#5d7280;border-radius:999px;padding:8px 13px;font-weight:750;font-size:13px;cursor:pointer}.filter-chip.active{background:var(--brand-soft);color:#087fb8;border-color:#a9dbed}

.map-card,.board-card,.info-card,.source-card,.prose-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 10px 28px rgba(30,69,90,.06)}.map-card-main{padding:17px;margin-bottom:16px;overflow:hidden}.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}.section-head h2,.info-card h2{margin:2px 0 0;font-size:21px;letter-spacing:-.02em}.section-kicker{color:#087fb8}.section-subline{margin:4px 0 0;color:var(--muted);font-size:13px}.map-head{align-items:center}.map-actions{display:flex;gap:8px}.map-frame{position:relative;width:100%;height:500px;border-radius:18px;overflow:hidden;background:#d7e6ed;border:1px solid #d0e0e8;isolation:isolate}.map-frame #map{position:absolute;inset:0;width:100%;height:100%;z-index:1;background:#d7e6ed}.map-fallback{position:absolute;inset:0;z-index:5;display:grid;place-items:center;align-content:center;gap:5px;text-align:center;padding:24px;background:linear-gradient(135deg,#e9f3f7,#f7fbfd);color:#395766}.map-fallback strong{color:#17384c;font-size:18px}.map-fallback a{color:#087fb8;font-weight:800;margin-top:6px}.map-bottom-row{display:flex;gap:16px;justify-content:space-between;align-items:flex-start;margin-top:10px}.map-legend{display:flex;gap:13px;flex-wrap:wrap;color:#5f7480;font-size:11px}.map-legend span{display:flex;align-items:center;gap:5px}.legend-dot{width:9px;height:9px;border-radius:50%;display:inline-block}.legend-dot.station{background:#08a2df;box-shadow:0 0 0 3px rgba(8,162,223,.14)}.legend-dot.train{background:#062f4b}.legend-dot.user{background:#2563eb}.map-note{display:flex;gap:8px;max-width:650px;color:#6c7f8a;font-size:11px;line-height:1.4}.info-dot{display:grid;place-items:center;flex:0 0 20px;height:20px;border-radius:50%;background:#e5f6fc;color:#087fb8;font-weight:900}.leaflet-container{font:inherit;outline:0}.leaflet-control-zoom a{color:#0b5f89!important}.leaflet-bar{border:0!important;box-shadow:0 4px 14px rgba(0,34,55,.16)!important}.leaflet-bar a{border-bottom-color:#d9e6ec!important}.leaflet-control-attribution{font-size:10px!important;background:rgba(255,255,255,.88)!important}.leaflet-popup-content-wrapper{border-radius:13px;box-shadow:0 8px 28px rgba(0,0,0,.18)}

.map-card-main.map-fullscreen{position:fixed;inset:8px;z-index:1600;margin:0;padding:14px;border-radius:20px;box-shadow:0 30px 100px rgba(0,0,0,.34);display:flex;flex-direction:column}.map-card-main.map-fullscreen .map-frame{height:auto;flex:1;min-height:0}.map-card-main.map-fullscreen .section-subline,.map-card-main.map-fullscreen .map-bottom-row{display:none}.map-card-main.map-fullscreen .secondary-map-btn{background:#0a80b5;color:#fff;border-color:transparent}.map-card-main.map-fullscreen #mapFullscreenBtn{font-size:0}.map-card-main.map-fullscreen #mapFullscreenBtn:after{content:"× Vollbild";font-size:13px;line-height:1}body.map-open{overflow:hidden}.map-card-main:fullscreen,.map-card-main:-webkit-full-screen{position:fixed!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;margin:0!important;border-radius:0!important;padding:14px!important}.map-card-main:fullscreen::backdrop{background:#061f32}.map-card-main:-webkit-full-screen{background:#fff}body:fullscreen,html:fullscreen{background:#eef4f7}body:-webkit-full-screen,html:-webkit-full-screen{background:#eef4f7}

.content-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,.7fr);gap:16px}.board-card{padding:20px}.count-badge{background:#eef6fa;color:#607584;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:850}.board-legend{display:grid;grid-template-columns:82px minmax(0,1fr) 76px 122px;gap:10px;color:#8999a3;text-transform:uppercase;letter-spacing:.08em;font-size:10px;font-weight:850;padding:6px 11px;border-bottom:1px solid var(--line)}.board{min-height:310px}.train-row{display:grid;grid-template-columns:82px minmax(0,1fr) 76px 122px;gap:10px;align-items:center;padding:13px 10px;border-bottom:1px solid #edf2f4;transition:.15s;cursor:pointer}.train-row:last-child{border-bottom:0}.train-row:hover{background:#f9fcfd}.time-cell strong{font-size:20px;letter-spacing:-.03em;font-variant-numeric:tabular-nums}.scheduled-time{display:block;color:#8b9aa3;font-size:11px;text-decoration:line-through;margin-top:1px}.train-main{min-width:0}.train-title{display:flex;align-items:center;gap:8px;min-width:0}.train-badge{flex:0 0 auto;background:#073452;color:#fff;border-radius:9px;padding:4px 7px;font-weight:900;font-size:12px;letter-spacing:.02em}.train-badge.long{background:#364c63}.destination{font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.meta-line{font-size:12px;color:#7a8d98;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.platform-cell{font-size:12px;color:#768894}.platform-cell strong{display:inline-grid;place-items:center;min-width:33px;height:33px;padding:0 6px;border-radius:10px;background:#edf6fa;color:#204b61;font-size:14px}.platform-cell.changed strong{background:var(--amber-soft);color:var(--amber)}.status-cell{display:flex;align-items:center;gap:7px;justify-content:flex-end}.delay{font-weight:900;font-size:12px;border-radius:999px;padding:6px 8px;background:var(--success-soft);color:#17724f;white-space:nowrap}.delay.late{background:var(--amber-soft);color:var(--amber)}.delay.cancelled{background:var(--red-soft);color:var(--red)}.favorite-btn,.details-btn{border:0;background:transparent;border-radius:9px;min-width:34px;height:34px;cursor:pointer}.favorite-btn{font-size:19px;color:#9ba9b0}.favorite-btn.active{color:#d49400}.details-btn{color:#0787c2;font-size:20px}.skeleton-row{height:69px;margin:8px 0;border-radius:13px;background:linear-gradient(90deg,#eef3f5 25%,#fafcfd 37%,#eef3f5 63%);background-size:400% 100%;animation:shine 1.3s infinite}@keyframes shine{0%{background-position:100% 0}100%{background-position:0 0}}.empty-state{text-align:center;padding:48px;color:var(--muted)}.empty-state strong,.empty-state span{display:block}.empty-state a{color:#087fb8}.side-column{display:grid;gap:16px;align-content:start}.info-card{padding:19px}.feature-list{display:grid;gap:9px;margin-top:13px}.feature-list>div{display:flex;gap:11px;align-items:flex-start;padding:11px;background:#f7fbfd;border-radius:13px}.feature-list>div>span{width:30px;height:30px;display:grid;place-items:center;background:#e4f6fc;color:#087fb8;border-radius:9px;font-weight:900}.feature-list p{margin:0}.feature-list small{display:block;color:var(--muted);margin-top:2px}.source-card{padding:17px 19px}.source-card p{color:var(--muted);margin:5px 0 9px}.source-card div{display:flex;gap:15px;flex-wrap:wrap}.source-card a{color:#087fb8;font-weight:750}.compact-source{margin:0}

.site-footer{width:min(1500px,calc(100% - 32px));margin:0 auto;padding:22px 0 calc(26px + var(--safe-bottom));border-top:1px solid #d5e1e7;color:#607783;font-size:13px;display:grid;gap:8px}.footer-brandline strong{color:#18384a}.footer-links{display:flex;gap:14px;flex-wrap:wrap}.footer-links a{color:#42697d}.fineprint{font-size:11px;color:#8798a1;margin:0}

.article-shell{max-width:980px}.article-hero{padding:18px 4px 16px}.article-hero h1{font-size:clamp(31px,6vw,51px);line-height:1.02;margin:8px 0;letter-spacing:-.04em}.article-hero p{font-size:18px;color:var(--muted)}.prose-card{padding:clamp(22px,5vw,46px)}.prose-card h1{font-size:37px;letter-spacing:-.035em}.prose-card h2{margin-top:29px;font-size:22px}.prose-card p,.prose-card li{color:#526974}.prose-card a{color:#087fb8}.notice{background:var(--amber-soft);border-left:4px solid #e2a130;padding:14px 16px;border-radius:9px;margin:24px 0}

.modal{position:fixed;inset:0;z-index:1700;display:grid;place-items:center;padding:20px}.modal-backdrop{position:absolute;inset:0;background:rgba(4,28,44,.58);backdrop-filter:blur(4px)}.modal-sheet{position:relative;width:min(760px,100%);max-height:min(82dvh,850px);overflow:auto;background:#fff;border-radius:24px;padding:21px;box-shadow:0 30px 80px rgba(0,0,0,.28)}.modal-header{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;position:sticky;top:-21px;background:rgba(255,255,255,.94);padding:21px 0 10px;z-index:2;backdrop-filter:blur(8px)}.modal-header h2{margin:2px 0}.close-modal{border:1px solid var(--line);background:#fff;width:42px;height:42px;border-radius:12px;font-size:24px;cursor:pointer}.modal-handle{display:none}.loading-box{padding:45px;text-align:center;color:var(--muted)}.trip-summary{display:flex;align-items:center;gap:12px;padding:14px;background:#f3f8fb;border-radius:15px;margin-bottom:14px}.trip-summary .train-badge{font-size:15px}.trip-stops{display:grid}.trip-stop{display:grid;grid-template-columns:62px 22px minmax(0,1fr) auto;gap:8px;align-items:start;min-height:56px}.trip-stop .line{display:flex;flex-direction:column;align-items:center;height:100%}.trip-stop .line:before{content:"";width:10px;height:10px;background:#fff;border:3px solid #0c96cf;border-radius:50%;z-index:1}.trip-stop .line:after{content:"";width:2px;flex:1;background:#cfe2eb}.trip-stop:last-child .line:after{display:none}.trip-stop .stop-time{font-weight:800}.trip-stop .stop-name{font-weight:750}.trip-stop .stop-meta{font-size:11px;color:var(--muted)}.trip-stop .stop-track{font-size:11px;background:#edf6fa;padding:5px 7px;border-radius:8px}.share-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.secondary-btn{border:1px solid var(--line);background:#fff;color:#087fb8;border-radius:12px;padding:9px 12px;min-height:42px;font-weight:800;cursor:pointer}.user-pulse{width:18px;height:18px;border-radius:50%;background:#2563eb;border:3px solid #fff;box-shadow:0 0 0 4px rgba(37,99,235,.20),0 0 0 8px rgba(37,99,235,.08)}.train-map-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:#073452;color:#fff;border:2px solid #fff;box-shadow:0 4px 12px rgba(0,0,0,.24);font-size:14px}.station-map-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#0ea5e9;border:4px solid #fff;box-shadow:0 5px 16px rgba(0,0,0,.25);color:#fff;font-size:14px}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}




@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}


/* Übersicht/Anleitung: Cover bewusst von der Live-Tafel getrennt */
.dashboard-title{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:18px 4px 8px}.dashboard-title h1{margin:4px 0 2px;font-size:clamp(28px,4vw,42px);line-height:1;letter-spacing:-.04em;color:#11384d}.dashboard-title p{margin:6px 0 0;color:var(--muted);font-size:14px}.overview-link{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:9px 13px;border:1px solid var(--line);border-radius:12px;background:#fff;color:#087fb8;font-weight:850;white-space:nowrap;box-shadow:0 7px 18px rgba(6,50,76,.06)}
.overview-shell{max-width:1180px}.overview-cover-card,.overview-guide-card{background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);overflow:hidden}.overview-cover-media{background:#061f32}.overview-cover-media picture,.overview-cover-media img{display:block;width:100%}.overview-cover-media img{height:auto;object-fit:cover}.overview-cover-copy{padding:clamp(22px,4vw,42px)}.overview-cover-copy h1{font-size:clamp(31px,5vw,54px);line-height:1.02;letter-spacing:-.045em;margin:12px 0 12px;color:#10384d}.overview-cover-copy>p{max-width:850px;font-size:17px;line-height:1.65;color:var(--muted);margin:0}.overview-cta-row,.guide-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.overview-guide-card{margin-top:18px;padding:clamp(22px,4vw,42px)}.guide-heading{max-width:820px}.guide-heading h2{font-size:clamp(28px,4vw,42px);letter-spacing:-.04em;margin:5px 0 8px;color:#11384d}.guide-heading p{margin:0;color:var(--muted);line-height:1.65}.guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:25px}.guide-step{position:relative;padding:20px 20px 20px 66px;border:1px solid #dfeaf0;border-radius:17px;background:linear-gradient(180deg,#fbfdfe,#f6fafc)}.guide-number{position:absolute;left:18px;top:19px;width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:#073452;color:#fff;font-weight:900;box-shadow:0 6px 14px rgba(7,52,82,.16)}.guide-step h3{margin:0 0 7px;font-size:17px;color:#173d51}.guide-step p{margin:0;color:#5c727e;line-height:1.58;font-size:14px}.guide-note{display:flex;gap:14px;align-items:flex-start;margin-top:18px;padding:17px 18px;border:1px solid #cae7f2;border-radius:16px;background:#f1fbfe}.guide-note-icon{flex:0 0 34px;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#0c96cf;color:#fff;font-weight:900}.guide-note strong{color:#173d51}.guide-note p{margin:4px 0 0;color:#536f7c;line-height:1.55}.secondary-btn.inline,.primary-btn.inline{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.guide-actions{padding-top:2px}



/* ============================================================
   LIVE-RAIL MAP / FORUM-INSPIRED UX UPDATE · 05.09.2026
   - bewegte Zugmarker auf echten Segment-Polylines
   - farbige Linien, Bahnhoefe/Haltepunkte, Layer-/Linienfilter
   - transparente Echtzeit-vs-Schaetzungskennzeichnung
   - Favoriten-Hinweise fuer relevante Aenderungen
   ============================================================ */
.toolbar-actions{flex-wrap:wrap;justify-content:flex-end}
.toolbar-alert-btn{padding:9px 11px;white-space:nowrap;box-shadow:none}
.toolbar-alert-btn.active,.toolbar-alert-btn[aria-pressed="true"]{background:#e8f8ff;border-color:#83cfea;color:#076c9c}
.train-badge,.train-badge.long{background:var(--line-color,#073452);color:var(--line-text,#fff)}
.train-row.has-platform-change{background:linear-gradient(90deg,#fffaf0 0,#fff 32%)}
.platform-cell.changed{display:flex;flex-direction:column;align-items:flex-start;gap:3px}
.platform-cell.changed small{font-size:10px;line-height:1;color:#9b6500;font-weight:800;white-space:nowrap}

.map-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px;margin-bottom:8px;border:1px solid #dbe8ee;border-radius:14px;background:#f7fbfd}
.map-layer-switches{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.map-layer-toggle{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:5px 9px;border-radius:10px;color:#496371;font-size:12px;font-weight:800;cursor:pointer;user-select:none}
.map-layer-toggle:hover{background:#edf7fb}
.map-layer-toggle input{position:absolute;opacity:0;pointer-events:none}
.map-layer-toggle span{width:31px;height:18px;border-radius:999px;background:#c9d7de;position:relative;transition:.18s;box-shadow:inset 0 0 0 1px rgba(39,79,99,.08)}
.map-layer-toggle span:after{content:"";position:absolute;width:14px;height:14px;border-radius:50%;background:#fff;left:2px;top:2px;transition:.18s;box-shadow:0 1px 4px rgba(0,0,0,.22)}
.map-layer-toggle input:checked+span{background:#0ea5e9}
.map-layer-toggle input:checked+span:after{transform:translateX(13px)}
.map-layer-toggle:focus-within{outline:3px solid rgba(14,165,233,.18);outline-offset:2px}
.map-live-stats{font-size:11px;line-height:1.35;color:#67808d;text-align:right;max-width:58%;font-variant-numeric:tabular-nums}
.route-filter-wrap{display:flex;align-items:center;gap:10px;margin:0 0 9px;min-width:0}
.route-filter-label{flex:0 0 auto;color:#708590;font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.07em}
.route-filters{display:flex;align-items:center;gap:6px;overflow:auto;min-width:0;padding:2px 2px 3px;scrollbar-width:thin}
.route-chip{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;min-height:32px;border:1px solid #d7e4ea;background:#fff;color:#536c79;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:850;cursor:pointer;transition:.15s}
.route-chip i{display:block;width:9px;height:9px;border-radius:50%;background:var(--route-color,#0ea5e9);box-shadow:0 0 0 2px color-mix(in srgb,var(--route-color,#0ea5e9) 18%,transparent)}
.route-chip:hover{border-color:#9ccfe2;background:#f8fcfe}
.route-chip.active{border-color:#64bddf;background:#e9f8fe;color:#086e9e;box-shadow:0 0 0 2px rgba(14,165,233,.08)}
.route-chip.active:not([data-route="all"]){border-color:var(--route-color,#0ea5e9);box-shadow:0 0 0 2px color-mix(in srgb,var(--route-color,#0ea5e9) 12%,transparent)}

.station-map-icon{display:flex;align-items:center;gap:6px;width:max-content;max-width:145px;height:34px;padding:3px 9px 3px 5px;border-radius:12px;background:#0ea5e9;border:3px solid #fff;box-shadow:0 5px 16px rgba(0,0,0,.24);color:#fff;font-size:11px;font-weight:900;white-space:nowrap;overflow:hidden}
.station-map-icon b{display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:#fff;color:#0b7fad;font-size:10px;flex:0 0 auto}
.station-map-icon span{overflow:hidden;text-overflow:ellipsis}
.station-small-icon{display:flex;align-items:center;gap:6px;width:max-content;max-width:136px;height:26px;padding:3px 7px 3px 4px;border-radius:9px;background:rgba(255,255,255,.94);border:1px solid rgba(45,85,105,.22);box-shadow:0 3px 11px rgba(10,42,58,.16);color:#335461;font-size:10px;font-weight:850;white-space:nowrap;overflow:hidden}
.station-small-icon b{width:10px;height:10px;border-radius:50%;background:#fff;border:3px solid #0c96cf;flex:0 0 auto}
.station-small-icon span{overflow:hidden;text-overflow:ellipsis}
#map.station-labels-compact .station-small-icon{width:17px;padding:3px;border-radius:50%;background:#fff}
#map.station-labels-compact .station-small-icon span{display:none}

.train-map-icon{display:flex;align-items:center;width:58px;height:32px;border-radius:11px;background:var(--route-color,#073452);color:var(--route-text,#fff);border:2px solid #fff;box-shadow:0 5px 15px rgba(0,0,0,.28);font-size:13px;overflow:hidden;transform:translateZ(0)}
.train-glyph{display:grid;place-items:center;width:28px;height:100%;font-size:14px;flex:0 0 auto;background:rgba(0,0,0,.10)}
.train-mini-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;line-height:1;font-weight:950;padding:0 5px 0 3px;letter-spacing:-.01em}
.train-popup{min-width:220px;color:#193849}
.popup-train-line{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:7px}
.popup-train-line>span{display:inline-flex;align-items:center;border-radius:7px;padding:3px 7px;background:var(--route-color,#073452);color:var(--route-text,#fff);font-weight:900;font-size:11px}
.popup-train-line strong{font-size:11px;color:#11734f;text-transform:uppercase;letter-spacing:.05em}
.popup-meta{margin-top:5px;color:#6a7f8a;font-size:11px}
.popup-estimate{margin-top:7px;padding:7px 8px;border-radius:8px;background:#fff5df;color:#8b5a00;font-size:10px;line-height:1.35}

.app-toast{position:fixed;z-index:2200;left:50%;bottom:max(22px,calc(14px + var(--safe-bottom)));transform:translateX(-50%);width:min(620px,calc(100% - 28px));padding:13px 15px;border-radius:14px;background:#073452;color:#fff;box-shadow:0 16px 48px rgba(0,31,52,.28);font-size:13px;font-weight:750;text-align:center}
.app-toast[data-kind="alert"]{background:#7a4b00}




@media(prefers-reduced-motion:reduce){.train-map-icon{transition:none!important}}

/* Forum-Plus: Stationssuche, Fruehabfahrt und Informationsdichte */
.density-btn{white-space:nowrap;box-shadow:none}.density-btn.active,.density-btn[aria-pressed="true"]{background:#eef8fc;border-color:#9acfe2;color:#075f8b}
.delay.early{background:#eef2ff;color:#4f46a5}
.map-find-row{display:flex;align-items:center;gap:10px;margin:0 0 9px}
.map-stop-search{display:grid;grid-template-columns:auto minmax(180px,360px) auto;align-items:center;gap:7px;width:min(100%,560px);padding:5px 6px 5px 11px;border:1px solid #d9e6ec;border-radius:13px;background:#fff;box-shadow:0 3px 11px rgba(18,62,83,.045)}
.map-stop-search>span{color:#6f8794;font-size:17px}.map-stop-search input{min-width:0;width:100%;height:36px;border:0;background:transparent;color:var(--ink);outline:0;font-size:13px}.map-stop-search input::placeholder{color:#91a0a8}.map-stop-search:focus-within{border-color:#76c6e4;box-shadow:0 0 0 3px rgba(14,165,233,.09)}
.map-stop-search button{height:34px;border:0;border-radius:9px;padding:0 11px;background:#e8f7fd;color:#0876a7;font-size:12px;font-weight:850;cursor:pointer}.map-stop-search button:hover{background:#d9f2fc}





/* ===== Deutschland-/Reiseausbau ===== */
.station-picker-card,.journey-card{background:#fff;border:1px solid #d8e3ea;border-radius:18px;padding:18px;box-shadow:0 10px 28px rgba(9,44,65,.08);margin-bottom:16px}.station-picker-main{display:grid;grid-template-columns:minmax(210px,.8fr) minmax(300px,1.4fr) auto;gap:16px;align-items:end}.station-picker-main h2,.journey-card h2{margin:.2rem 0 .35rem}.station-search-box label,.journey-form label{display:block;font-size:.78rem;font-weight:800;color:#466171;margin:0 0 6px}.station-search-input{display:flex;align-items:center;border:1px solid #bfcfd9;border-radius:13px;background:#f8fbfd;min-height:48px;padding:0 7px 0 12px}.station-search-input input{border:0;background:transparent;outline:0;min-width:0;flex:1;font-size:1rem;padding:11px 8px}.station-search-input button{border:0;background:transparent;font-size:1.35rem;cursor:pointer;color:#547080;min-width:40px;min-height:40px}.station-picker-actions{display:flex;gap:8px;flex-wrap:wrap}.current-station-strip{margin-top:14px;padding:11px 14px;border-radius:12px;background:#eef6fa;display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}.current-station-strip span{font-size:.75rem;text-transform:uppercase;letter-spacing:.07em;font-weight:800;color:#567181}.current-station-strip strong{font-size:1.05rem;color:#073452}.current-station-strip small{color:#5e7583}.search-autocomplete{position:relative}.station-suggestions{position:absolute;z-index:1200;left:0;right:0;top:calc(100% + 5px);background:#fff;border:1px solid #cbd9e1;border-radius:14px;box-shadow:0 14px 34px rgba(4,35,54,.18);max-height:310px;overflow:auto;padding:6px}.station-suggestion{width:100%;border:0;background:transparent;border-radius:10px;padding:10px 11px;text-align:left;cursor:pointer;display:flex;justify-content:space-between;gap:10px;align-items:center;color:#102d3f}.station-suggestion:hover,.station-suggestion:focus{background:#edf6fb;outline:0}.station-suggestion strong{display:block}.station-suggestion small{display:block;color:#667f8e;margin-top:2px}.station-suggestion .suggestion-mode{font-size:.72rem;font-weight:800;background:#eaf3f8;border-radius:999px;padding:4px 7px;white-space:nowrap}.station-suggestion-empty{padding:12px;color:#667f8e}.journey-card{margin-bottom:16px}.journey-head{align-items:flex-start}.journey-badge{background:#e9f4fa;color:#0b567d;border-radius:999px;padding:6px 10px;font-weight:800;font-size:.78rem}.journey-form{display:grid;grid-template-columns:minmax(190px,1fr) 44px minmax(190px,1fr) minmax(185px,.7fr) auto;gap:10px;align-items:end}.journey-form input{width:100%;min-height:46px;border:1px solid #bfd0da;border-radius:12px;background:#f9fcfd;padding:10px 12px;font-size:1rem;color:#143245}.journey-swap{width:44px;height:44px;border-radius:50%;border:1px solid #bfd0da;background:#fff;font-size:1.15rem;cursor:pointer;margin-bottom:1px}.journey-submit{min-height:46px}.journey-gps{grid-column:1 / -1;justify-self:start}.journey-results{margin-top:14px;display:grid;gap:10px}.journey-result{border:1px solid #d4e0e7;border-radius:14px;padding:13px;background:#fbfdfe}.journey-result-top{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}.journey-result-time{font-size:1.12rem;font-weight:900;color:#0a3550}.journey-result-meta{font-size:.83rem;color:#607887}.journey-legs{display:flex;gap:8px;flex-wrap:wrap;margin-top:9px}.journey-leg{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 8px;background:#eef5f8;font-size:.78rem}.journey-leg i{display:block;width:9px;height:9px;border-radius:50%;background:var(--journey-color,#0b74de)}.journey-result-actions{margin-top:10px;display:flex;gap:8px;flex-wrap:wrap}.journey-loading,.journey-empty{padding:14px;border-radius:12px;background:#eef6fa;color:#496879}.selected-trip-status{font-size:.78rem;padding:6px 9px;border-radius:9px;background:#eef5f8;color:#435f70;margin-left:auto}.selected-route-stop{width:12px;height:12px;border-radius:50%;background:#fff;border:3px solid var(--route-color,#0b74de);box-shadow:0 1px 4px rgba(0,0,0,.18)}.trip-map-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.gps-consent-copy{color:#355466;line-height:1.55}.gps-sheet{max-width:620px}.gps-accuracy{border-radius:50%;background:rgba(26,143,201,.12);border:1px solid rgba(26,143,201,.35)}.map-region-hint{font-weight:700;color:#735b00}.map-card-main .leaflet-tooltip.route-tooltip{border:0;border-radius:9px;background:#05263d;color:#fff;box-shadow:0 5px 16px rgba(0,0,0,.22)}




/* Reise-/Routenstatus 2026-09-05 */
.selected-trip-status{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.trip-status-key{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.trip-status-key i{display:inline-block;width:18px;height:5px;border-radius:999px;background:#71808a}
.trip-status-key i.ahead{background:var(--selected-route-color,#0b74de);height:6px}
.trip-status-key i.future{height:0;border-top:3px dashed var(--selected-route-color,#0b74de);background:transparent;border-radius:0}
.selected-train-here{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:var(--route-color,#0b74de);border:3px solid #fff;box-shadow:0 4px 14px rgba(0,0,0,.3);font-size:14px}
.station-popup{min-width:210px}.station-popup small{color:#627986}.station-popup-actions{display:flex;gap:5px;flex-wrap:wrap;margin-top:9px}.station-popup-actions button{border:1px solid #c9d9e2;border-radius:8px;background:#f5fafc;color:#0a5074;font-weight:800;font-size:11px;padding:7px 8px;cursor:pointer}.station-popup-actions button:first-child{background:#0a628f;color:#fff;border-color:#0a628f}


/* Deutschlandweite Autovervollständigung: Bahnhof / Haltepunkt / Ort / Adresse */
.autocomplete-help{margin-top:6px;font-size:.72rem;color:#718692;line-height:1.35}
.station-suggestion.active{background:#e8f4fa;outline:2px solid rgba(18,124,174,.18);outline-offset:-2px}
.suggestion-main{display:flex;align-items:center;gap:10px;min-width:0}
.suggestion-main>span{min-width:0}
.suggestion-icon{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:9px;background:#edf5f8;color:#315a70;font-style:normal;font-size:.9rem}
.suggestion-icon.stop{background:#eaf5fb;color:#086d9c}.suggestion-icon.place{background:#eef8ef;color:#2d6e3b}.suggestion-icon.address{background:#fff5e8;color:#8a5a12}
.station-suggestion .suggestion-mode.stop{background:#e5f3fa;color:#0a638e}.station-suggestion .suggestion-mode.place{background:#eaf6ec;color:#2e6a3a}.station-suggestion .suggestion-mode.address{background:#fff1dc;color:#7d5518}
.autocomplete-loading{display:flex;align-items:center;gap:8px}.autocomplete-loading span{width:13px;height:13px;border-radius:50%;border:2px solid #c8d8e0;border-top-color:#177eac;animation:soBahnSpin .75s linear infinite}
@keyframes soBahnSpin{to{transform:rotate(360deg)}}
.map-search-suggestions{min-width:min(520px,calc(100vw - 32px));left:0;right:auto;top:calc(100% + 6px)}

@media(prefers-reduced-motion:reduce){.autocomplete-loading span{animation:none}}

/* ===== Gemeinsame Barrierefreiheit / responsive Basis ===== */
.mobile-task-nav{display:none}
:where(a,button,input,select,textarea,[tabindex]):focus-visible{outline:3px solid rgba(14,165,233,.34);outline-offset:2px}
button,.icon-btn,.filter-chip,.route-chip,.station-suggestion{-webkit-tap-highlight-color:transparent}
@supports (font-size:clamp(1rem,1vw,1.1rem)){.legal p,.prose-card li{line-height:1.68}}
#bahnhof,#reise,#karte,#abfahrten{scroll-margin-top:92px}


/* FINAL rail-only + trip position + map fullscreen control */
.map-fullscreen-floating{position:absolute;z-index:850;right:10px;top:10px;min-height:44px;border:1px solid rgba(4,49,75,.18);border-radius:12px;background:rgba(255,255,255,.94);color:#073b5b;font:inherit;font-weight:850;padding:8px 12px;display:flex;align-items:center;gap:7px;box-shadow:0 5px 18px rgba(0,35,55,.18);cursor:pointer;backdrop-filter:blur(8px)}
.map-fullscreen-floating:hover,.map-fullscreen-floating:focus-visible{background:#fff;outline:3px solid rgba(14,165,233,.22);outline-offset:2px}
.map-card-main.map-fullscreen .map-fullscreen-floating{top:8px;right:8px;background:#073b5b;color:#fff;border-color:transparent}
.map-card-main.map-fullscreen .map-fullscreen-floating span{font-size:0}.map-card-main.map-fullscreen .map-fullscreen-floating span:after{content:"Schließen";font-size:13px}
.trip-position-banner{display:flex;align-items:center;gap:12px;border:1px solid #cfe0e9;background:#f5fafc;border-radius:14px;padding:12px 14px;margin:12px 0;color:#14384d}
.trip-position-banner.at-stop{border-color:#93d6bb;background:#effaf5}.trip-position-banner.between-stops{border-color:#a9d9ef;background:#eef8fd}.trip-position-banner.finished{border-color:#cfd8dd;background:#f6f8f9}
.trip-position-icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:12px;background:#073b5b;color:#fff;font-size:18px}
.trip-position-banner strong,.trip-position-banner small{display:block}.trip-position-banner small{margin-top:2px;color:#597483;font-size:12px;line-height:1.35}
.trip-position-progress{height:6px;border-radius:999px;background:#d9e8ef;overflow:hidden;margin-top:7px;max-width:360px}.trip-position-progress i{display:block;height:100%;background:#0b8fc7;border-radius:inherit}
.trip-stop.past{opacity:.7}.trip-stop.current{background:#effaf5;border-radius:12px;padding:7px 7px 7px 0;margin:2px 0}.trip-stop.next{background:#f3f9fc;border-radius:12px;padding:7px 7px 7px 0;margin:2px 0}
.trip-stop .line:before{border-color:var(--trip-line-color,#0c96cf)}.trip-stop.current .line:before{background:var(--trip-line-color,#0c96cf);box-shadow:0 0 0 5px rgba(11,116,222,.15)}
.current-stop-badge,.next-stop-badge{display:inline-flex;vertical-align:middle;align-items:center;min-height:22px;border-radius:999px;padding:2px 7px;margin-left:6px;font-size:10px;font-weight:900;white-space:nowrap}.current-stop-badge{background:#d8f5e8;color:#126b4c}.next-stop-badge{background:#dff2fb;color:#075d89}
.trip-between-marker{display:grid;grid-template-columns:62px 22px minmax(0,1fr) auto;gap:8px;align-items:center;min-height:54px;margin:-2px 0 4px}.trip-between-line{height:54px;display:grid;place-items:center;position:relative}.trip-between-line:before,.trip-between-line:after{content:"";position:absolute;left:50%;width:3px;transform:translateX(-50%);background:var(--trip-line-color,#0b74de)}.trip-between-line:before{top:0;height:50%;opacity:.35}.trip-between-line:after{bottom:0;height:50%;opacity:.9}.trip-between-line span{z-index:2;display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:var(--trip-line-color,#0b74de);color:#fff;border:2px solid #fff;box-shadow:0 3px 10px rgba(0,0,0,.18);font-size:14px}.trip-between-copy strong,.trip-between-copy small{display:block}.trip-between-copy strong{font-size:13px;color:#0b4f74}.trip-between-copy small{font-size:11px;color:#637d8b;margin-top:2px}
