/* 3D-Streckenportrait der Isartalbahn – Gestaltung. Warm, ruhig, mit historischem Einschlag. */
@font-face { font-family: Sora; src: url(/assets/fonts/sora-regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Sora; src: url(/assets/fonts/sora-bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }
:root {
  --ink: #1b1916; --ink2: #2a2722; --paper: #f4efe4; --paper2: #e9e1cf; --gold: #c5a66d; --gold2: #e2c995; --gold-deep: #7a602e;
  --muted: #6b655a; --line: rgba(255,255,255,.14); --glass: rgba(27, 25, 22, .78); --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --ease: cubic-bezier(.2, .8, .2, 1); --shadow: 0 18px 50px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #1b1916; }
body { font-family: Sora, system-ui, -apple-system, sans-serif; color: #f4efe4; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
#karte { position: fixed; inset: 0; }

/* Historische Anmutung über der Karte */
.k-look { position: fixed; inset: 0; pointer-events: none; z-index: 2; opacity: var(--alt, 0); transition: opacity 1.2s var(--ease); }
.k-look i { position: absolute; inset: 0; }
.k-vignette { background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(40, 26, 10, .55) 100%); }
.k-grain { opacity: .16; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .22 0 0 0 0 .12 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1.2s steps(4) infinite; }
@keyframes grain { 25% { transform: translate(-6px, 4px); } 50% { transform: translate(5px, -3px); } 75% { transform: translate(-3px, -6px); } }

/* ---------- Kopfleiste ---------- */
.k-head { position: fixed; z-index: 10; left: 16px; right: 16px; top: max(14px, env(safe-area-inset-top)); display: flex; gap: 12px; align-items: flex-start; pointer-events: none; }
.k-head > * { pointer-events: auto; }
.k-brand { display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; text-decoration: none; box-shadow: var(--shadow); flex: none; }
.k-brand img { width: 42px; height: 42px; border-radius: 50%; background: #fff; padding: 2px; box-shadow: 0 0 0 2px var(--gold); }
.k-brand b { display: block; font-size: 16px; } .k-brand small { display: block; font-size: 12px; color: #cfc6b4; }
.k-eras { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow); margin: 0 auto; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.k-eras::-webkit-scrollbar { display: none; }
.k-eras button { border: 0; background: transparent; padding: 9px 15px; border-radius: 999px; font-size: 15px; font-weight: 700; color: #e4dccb; white-space: nowrap; transition: background .3s, color .3s; }
.k-eras button small { display: block; font-size: 10.5px; font-weight: 400; letter-spacing: .04em; color: #a9a08e; margin-top: 1px; }
.k-eras button:hover { background: rgba(255,255,255,.08); }
.k-eras button[aria-selected="true"] { background: linear-gradient(135deg, var(--gold2), var(--gold)); color: var(--ink); }
.k-eras button[aria-selected="true"] small { color: #5b4a2a; }
.k-tools { display: flex; gap: 8px; flex: none; }
.k-seg { display: flex; padding: 4px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.k-seg button { border: 0; background: transparent; padding: 9px 13px; border-radius: 999px; font-size: 14px; color: #e4dccb; }
.k-seg button[aria-pressed="true"] { background: rgba(255,255,255,.16); color: #fff; font-weight: 700; }
.k-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; padding: 11px 16px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow); font-size: 14px; font-weight: 700; }
.k-btn svg { font-size: 18px; color: var(--gold2); }
.k-erainfo { position: fixed; z-index: 9; left: 50%; top: calc(max(14px, env(safe-area-inset-top)) + 70px); transform: translate(-50%, -8px); width: min(620px, calc(100vw - 32px)); margin: 0; padding: 14px 18px; border-radius: 16px; background: rgba(244, 239, 228, .95); color: var(--ink); font-size: 14.5px; line-height: 1.5; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .5s, transform .5s var(--ease); }
.k-erainfo.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.k-erainfo b { font-family: var(--serif); font-size: 17px; } .k-erainfo em { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* MapLibre-Bedienelemente an den Stil anpassen */
.maplibregl-ctrl-top-right { top: 74px; right: 6px; }
.maplibregl-ctrl-group { background: var(--glass) !important; backdrop-filter: blur(12px); border-radius: 14px !important; box-shadow: var(--shadow) !important; overflow: hidden; }
.maplibregl-ctrl-group button + button { border-top: 1px solid var(--line) !important; }
.maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1) brightness(1.4); }
.maplibregl-ctrl-attrib { background: rgba(27,25,22,.6) !important; color: #d8d0c0; font-size: 11px; }
.maplibregl-ctrl-attrib a { color: #f0e6d0; }
.maplibregl-ctrl-bottom-right { bottom: 96px; }
.maplibregl-ctrl-attrib-button { filter: invert(1); }

/* ---------- Stationsschilder (wie alte Bahnhofsschilder) ---------- */
/* Achtung: Position und transform setzt MapLibre selbst – hier nur Aussehen */
.st { border: 0; padding: 0; background: none; display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.st .schild { font-family: var(--serif); font-size: 14px; letter-spacing: .02em; color: #111; background: #fbf8f0; padding: 4px 10px 3px; border: 2px solid #1d1d1b; box-shadow: 0 0 0 2px #fbf8f0, 0 6px 16px rgba(0,0,0,.35); white-space: nowrap; line-height: 1.15; text-align: center; }
.st .schild small { display: block; font-family: Sora, sans-serif; font-size: 9.5px; letter-spacing: .12em; color: #6b655a; }
.st .mast { width: 3px; height: 22px; background: linear-gradient(#1d1d1b, #4b453b); }
.st .fuss { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(27,25,22,.7), 0 0 14px rgba(226,201,149,.9); }
.st.is-major .schild { font-size: 16px; padding: 6px 13px 4px; }
.st:hover .schild, .st.is-on .schild { background: #fff4d8; }
.st.is-on .fuss { background: #fff; transform: scale(1.3); }
#karte.is-far .st:not(.is-major) { visibility: hidden; pointer-events: none; }
#karte.is-very-far .st .mast { height: 10px; }
.ort { font-family: var(--serif); font-style: italic; font-size: 17px; letter-spacing: .06em; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 0 12px rgba(0,0,0,.6); pointer-events: none; white-space: nowrap; }
.ort.is-see { color: #dcecf2; font-size: 15px; }

/* Zug – Räder drehen sich bei Fahrt, die Dampflok raucht */
.zug { width: 150px; height: 56px; pointer-events: none; filter: drop-shadow(0 7px 6px rgba(0,0,0,.45)); }
.zug > svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; stroke: none; }
.zug.is-zu > svg { opacity: .5; }
.zug.is-flip > svg { transform: scaleX(-1); }
.zug[data-typ=sbahn] { width: 232px; }
.zug .rad { transform-box: fill-box; transform-origin: center; }
.zug.is-fahrt .rad { animation: rad .45s linear infinite; }
.zug.is-fahrt.is-schnell .rad { animation-duration: .25s; }
@keyframes rad { to { transform: rotate(360deg); } }
.zug .stange { transform-box: fill-box; }
.zug.is-fahrt .stange { animation: stange .45s linear infinite; }
.zug.is-fahrt.is-schnell .stange { animation-duration: .25s; }
@keyframes stange { 0% { transform: translate(0, -2.6px); } 25% { transform: translate(2.6px, 0); } 50% { transform: translate(0, 2.6px); } 75% { transform: translate(-2.6px, 0); } 100% { transform: translate(0, -2.6px); } }
.zug .buegel { transform-origin: 76px 12px; }
.rauch { position: absolute; left: 90%; top: 6%; width: 0; height: 0; --dx: -1; }
.zug.is-flip .rauch { left: 10%; --dx: 1; }
.rauch i { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 40% 35%, rgba(250,248,242,.95), rgba(214,208,198,.75) 55%, rgba(200,194,184,0) 72%); animation: qualm 3.4s ease-out infinite; }
.rauch i:nth-child(3n) { background: radial-gradient(circle at 40% 35%, rgba(120,112,102,.85), rgba(84,78,70,.55) 55%, rgba(60,56,50,0) 72%); }
.rauch i:nth-child(1) { animation-delay: 0s; } .rauch i:nth-child(2) { animation-delay: .28s; } .rauch i:nth-child(3) { animation-delay: .57s; }
.rauch i:nth-child(4) { animation-delay: .85s; } .rauch i:nth-child(5) { animation-delay: 1.13s; } .rauch i:nth-child(6) { animation-delay: 1.42s; }
.rauch i:nth-child(7) { animation-delay: 1.7s; } .rauch i:nth-child(8) { animation-delay: 1.98s; } .rauch i:nth-child(9) { animation-delay: 2.27s; }
.rauch i:nth-child(10) { animation-delay: 2.55s; } .rauch i:nth-child(11) { animation-delay: 2.83s; } .rauch i:nth-child(12) { animation-delay: 3.12s; }
@keyframes qualm {
  0% { opacity: 0; transform: translate(0, 0) scale(.35); }
  8% { opacity: .95; }
  45% { opacity: .7; transform: translate(calc(var(--dx) * 34px), -38px) scale(2.1); }
  100% { opacity: 0; transform: translate(calc(var(--dx) * 95px), -70px) scale(4.2); }
}
.zug:not(.is-fahrt) .rauch i { animation-name: dampfStand; animation-duration: 5.5s; }
@keyframes dampfStand { 0% { opacity: 0; transform: translate(0, 0) scale(.3); } 15% { opacity: .55; } 100% { opacity: 0; transform: translate(calc(var(--dx) * 12px), -58px) scale(2.6); } }
.s7zug { width: 124px; height: 44px; pointer-events: auto; cursor: pointer; filter: drop-shadow(0 5px 5px rgba(0,0,0,.4)); }
.s7zug > svg { position: absolute; left: 0; top: 14px; width: 124px; height: 30px; }
.s7zug.is-flip > svg { transform: scaleX(-1); }
.s7zug .s7 { position: absolute; left: 50%; top: -12px; transform: translateX(-50%); white-space: nowrap; display: flex; gap: 5px; align-items: center; padding: 3px 7px 3px 3px; border-radius: 8px; background: rgba(27,25,22,.82); color: #fff; font-size: 11px; font-weight: 700; }
.s7-badge { display: inline-grid; place-items: center; min-width: 26px; height: 18px; padding: 0 5px; border-radius: 9px; background: #983224; color: #fff; font: 700 11.5px/1 Sora, sans-serif; letter-spacing: .02em; }
.s7zug .s7 em { font-style: normal; color: #ffb4a8; font-weight: 400; }
.k-s7 { position: fixed; z-index: 9; left: 16px; bottom: 112px; width: min(330px, calc(100vw - 32px)); padding: 14px 16px; border-radius: 18px; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow); font-size: 13px; }
.k-s7[hidden], body.is-reise .k-s7 { display: none; }
.k-s7 h3 { margin: 0 0 8px; display: flex; gap: 8px; align-items: center; font-size: 14px; }
.k-s7 .live { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: #9be3a8; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.k-s7 .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5fd47a; animation: blinken 1.4s infinite; }
@keyframes blinken { 50% { opacity: .3; } }
.k-s7 ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.k-s7 li { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; align-items: center; } .k-s7 li b { font-variant-numeric: tabular-nums; }
.k-s7 li em { font-style: normal; font-size: 11.5px; color: #ffb4a8; } .k-s7 li em.ok { color: #9be3a8; }
.k-s7 small { display: block; margin-top: 8px; color: #a9a08e; font-size: 11px; }
.k-ton { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; color: #e4dccb; }
.k-ton svg { font-size: 20px; } .k-ton .aus { display: none; } .k-ton[aria-pressed="false"] .an { display: none; } .k-ton[aria-pressed="false"] .aus { display: block; }

/* ---------- Reiseleiste ---------- */
.k-reise { position: fixed; z-index: 10; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(980px, calc(100vw - 32px)); display: flex; gap: 14px; align-items: center; padding: 10px 16px 10px 10px; border-radius: 22px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.k-play { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold2), var(--gold)); color: var(--ink); box-shadow: 0 6px 18px rgba(197,166,109,.4); }
.k-play svg { font-size: 24px; fill: currentColor; stroke: none; } .k-play .i-pause { display: none; }
body.is-reise .k-play .i-play { display: none; } body.is-reise .k-play .i-pause { display: block; }
.k-track { flex: 1; min-width: 0; }
.k-now { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 8px; }
.k-now b { font-family: var(--serif); font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .k-now span { font-size: 13px; color: var(--gold2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.k-bar { position: relative; height: 22px; cursor: pointer; touch-action: none; }
.k-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.16); }
.k-fill { position: absolute; left: 0; top: 9px; height: 4px; border-radius: 4px; background: var(--gold); width: 0; }
.k-knob { position: absolute; top: 3px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(197,166,109,.45); left: 0; }
.k-ticks i { position: absolute; top: 6px; width: 2px; height: 10px; margin-left: -1px; background: rgba(255,255,255,.45); border-radius: 2px; }
.k-ticks i.is-major { height: 14px; top: 4px; background: var(--gold2); }
.k-bar:focus-visible { outline: 2px solid var(--gold2); outline-offset: 4px; border-radius: 6px; }
.k-opts { display: flex; gap: 6px; flex: none; }
.k-chip { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 8px 12px; font-size: 13px; color: #d8d0c0; }
.k-chip[aria-pressed="true"] { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }

/* ---------- Stationstafel ---------- */
.k-tafel { position: fixed; z-index: 12; right: 16px; top: 84px; bottom: 112px; width: min(430px, calc(100vw - 32px)); border-radius: 22px; overflow: hidden; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.45); animation: tafelIn .55s var(--ease); display: flex; flex-direction: column; }
.k-tafel[hidden] { display: none; }
@keyframes tafelIn { from { opacity: 0; transform: translateX(30px); } }
.k-tafel-in { overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.k-x { position: absolute; right: 12px; top: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(27,25,22,.7); color: #fff; font-size: 24px; line-height: 1; }
.k-foto { position: relative; margin: 0; background: #2b2722; cursor: zoom-in; }
.k-foto img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: sepia(.18) contrast(1.03); }
.k-foto figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 10px; font-size: 11px; color: #e6dccb; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.k-tafel-body { padding: 20px 22px 26px; }
.k-kicker { margin: 0 0 6px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.k-tafel h2 { margin: 0 0 12px; font-family: var(--serif); font-size: 30px; font-weight: 400; line-height: 1.1; }
.k-tafel p.k-text { font-size: 15.5px; line-height: 1.65; margin: 0 0 16px; color: #2f2c27; }
.k-stein { float: right; width: 62px; margin: 2px 0 8px 16px; text-align: center; font-size: 10px; color: var(--muted); }
.k-stein img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.k-nav { clear: both; display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.k-nav button, .k-nav a { flex: 1; min-width: 120px; border: 1px solid #d7cdb8; background: #fff; color: var(--ink); border-radius: 12px; padding: 11px 12px; font-size: 13.5px; font-weight: 700; text-align: center; text-decoration: none; }
.k-nav button:disabled { opacity: .35; cursor: default; }
.k-nav .is-main { background: var(--ink); color: #fff; border-color: var(--ink); }
.k-liste { list-style: none; margin: 0; padding: 70px 10px 20px; }
.k-liste h2 { padding: 0 12px; }
.k-liste li button { width: 100%; display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; text-align: left; border: 0; background: transparent; padding: 8px 12px; border-radius: 14px; color: var(--ink); }
.k-liste li button:hover { background: #fff; }
.k-liste img { width: 54px; height: 40px; object-fit: cover; border-radius: 8px; filter: sepia(.25); background: #ddd; }
.k-liste b { font-size: 14.5px; } .k-liste span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Kurze Haltestellen-Anzeige während der Reise */
.k-halt { position: fixed; z-index: 11; left: 16px; bottom: 112px; width: min(360px, calc(100vw - 32px)); border-radius: 18px; overflow: hidden; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); animation: haltIn .6s var(--ease); cursor: pointer; }
.k-halt[hidden] { display: none; }
@keyframes haltIn { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.k-halt img { display: block; width: 100%; height: 170px; object-fit: cover; filter: sepia(.2); animation: kenburns 7s ease-out both; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.k-halt div { padding: 12px 16px 14px; } .k-halt b { font-family: var(--serif); font-size: 21px; font-weight: 400; display: block; }
.k-halt span { font-size: 12.5px; color: var(--muted); } .k-halt .bar { height: 3px; background: var(--gold); width: 0; }
.k-halt.is-run .bar { animation: haltBar var(--t, 5s) linear forwards; }
@keyframes haltBar { to { width: 100%; } }

/* ---------- Einstieg & Warteraum ---------- */
.k-intro, .k-warte { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: radial-gradient(ellipse at 50% 40%, rgba(27,25,22,.35), rgba(27,25,22,.85)); transition: opacity .9s var(--ease), visibility 0s .9s; }
.k-warte { background: rgba(27,25,22,.92); }
.k-warte[hidden] { display: none; }
body:not(.is-intro) .k-intro { opacity: 0; visibility: hidden; pointer-events: none; }
.k-intro-card { width: min(620px, 100%); text-align: center; padding: 40px 34px 30px; border-radius: 28px; color: var(--ink);
  background: radial-gradient(ellipse at 30% 0%, #fbf7ee, #efe6d2 70%), var(--paper); box-shadow: 0 40px 100px rgba(0,0,0,.55), inset 0 0 0 1px rgba(122,96,46,.25), inset 0 0 60px rgba(122,96,46,.15); animation: card 1s var(--ease) both; }
@keyframes card { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.k-intro h1 { margin: 6px 0 10px; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 7vw, 64px); line-height: 1; letter-spacing: -.01em; }
.k-sub { margin: 0 auto 22px; max-width: 460px; font-size: 16.5px; line-height: 1.55; color: #48433a; }
.k-facts { list-style: none; display: flex; justify-content: center; gap: 10px; padding: 0; margin: 0 0 26px; flex-wrap: wrap; }
.k-facts li { padding: 10px 16px; border-radius: 14px; background: rgba(255,255,255,.6); border: 1px solid rgba(122,96,46,.2); font-size: 12.5px; color: var(--muted); }
.k-facts b { display: block; font-family: var(--serif); font-size: 24px; font-weight: 400; color: var(--ink); }
.k-intro-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.k-go { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: 15px 28px; font-size: 16px; font-weight: 700; background: var(--ink); color: #fff; text-decoration: none; min-width: 190px; transition: transform .2s var(--ease); }
.k-go:hover { transform: translateY(-2px); }
.k-go.is-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px rgba(27,25,22,.25); }
.k-go:disabled { opacity: .5; }
.k-load { margin: 18px 0 0; font-size: 13px; color: var(--muted); min-height: 1.4em; }
.k-hint { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 12.5px; color: #d8d0c0; margin: 0; }
.k-noscript { position: fixed; inset: 0; display: grid; place-items: center; color: #fff; }

.k-lightbox { position: fixed; inset: 0; z-index: 30; background: rgba(15,14,12,.94); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.k-lightbox[hidden] { display: none; }
.k-lightbox img { max-width: 100%; max-height: calc(100vh - 90px); border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.k-lightbox p { color: #d8d0c0; font-size: 13px; margin: 10px 0 0; text-align: center; }

/* ---------- Handy ---------- */
@media (max-width: 860px) {
  .k-head { flex-wrap: wrap; gap: 8px; left: 10px; right: 10px; }
  .k-brand { padding: 5px 12px 5px 5px; } .k-brand img { width: 34px; height: 34px; } .k-brand small { display: none; }
  .k-eras { order: 3; width: 100%; margin: 0; }
  .k-eras button { padding: 8px 12px; font-size: 14px; } .k-eras button small { display: none; }
  .k-tools { margin-left: auto; } .k-btn span { display: none; } .k-btn { padding: 11px; }
  .k-seg button { padding: 8px 10px; font-size: 13px; }
  .k-erainfo { top: 128px; }
  .maplibregl-ctrl-top-right { top: 124px; }
  .k-reise { left: 10px; right: 10px; width: auto; transform: none; padding: 8px 12px 8px 8px; gap: 10px; border-radius: 18px; }
  .k-play { width: 48px; height: 48px; }
  .k-opts { display: none; }
  .k-tafel { left: 0; right: 0; top: auto; bottom: 0; width: 100%; height: 72vh; border-radius: 22px 22px 0 0; animation-name: sheetIn; }
  @keyframes sheetIn { from { transform: translateY(40px); opacity: 0; } }
  .k-halt { bottom: 96px; left: 10px; width: calc(100vw - 20px); } .k-halt img { height: 120px; }
  .maplibregl-ctrl-bottom-right { bottom: 84px; }
}
@media (max-width: 520px) { .k-seg { display: none; } .k-facts li { padding: 8px 12px; } .k-intro-card { padding: 30px 20px 24px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
.st.is-zukunft .schild { opacity: .45; filter: grayscale(1); }
.ort.is-tal { font-size: 15px; letter-spacing: .3em; text-transform: uppercase; font-style: normal; opacity: .85; }
.st.is-weg, .ort.is-weg { visibility: hidden !important; pointer-events: none; }
.st[hidden] { display: none !important; }

/* 3D-Modelle (zug3d.js) ersetzen die gezeichneten Züge */
.zug.is-3d { visibility: hidden; }
.s7zug.is-3d > svg { display: none; }
.s7zug.is-3d { height: 18px; }
.s7zug.is-3d .s7 { top: -40px; }
