/* ==========================================================================
   POLISH.CSS – Intro, Onboarding, Spielende-Bildschirm, App-Feinschliff
   Wird NACH style.css geladen. Themes beeinflussen nur über --theme-color.
   ========================================================================== */

/* ---------- Grundverhalten wie eine native App ---------- */
html, body { overscroll-behavior: none; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }
button, .dock-btn, .size-btn, .role-badge { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--theme-color, #00ffcc); outline-offset: 2px; }

/* Sichere Bereiche (Notch / Statusleiste im Vollbild-App-Modus) */
.top-nav { top: calc(12px + env(safe-area-inset-top, 0px)); }
body .dynamic-hud, body #tool-info { top: calc(104px + env(safe-area-inset-top, 0px)); }
.bottom-action-bar { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
body #transit-float-panel { bottom: calc(148px + env(safe-area-inset-bottom, 0px)); }

/* ---------- Weiche Dialoge und Tasten ---------- */
.fullscreen-modal { animation: hns-fade 0.22s ease-out; }
.fullscreen-modal > .modal-box { animation: hns-pop 0.34s cubic-bezier(0.18, 1.1, 0.3, 1); }
@keyframes hns-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hns-pop { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
.dock-btn, .action-btn, .size-btn, .role-badge, .mini-fab-btn { transition: transform 0.14s ease, background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s; }
.dock-btn:active, .action-btn:active, .size-btn:active, .role-badge:active, .mini-fab-btn:active { transform: scale(0.95); }
.app-sheet { will-change: bottom; }

/* UI schwebt nach dem Intro sanft ein */
body.hns-reveal .top-nav { animation: hns-down 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
body.hns-reveal .bottom-action-bar { animation: hns-up 0.7s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both; }
body.hns-reveal .mini-fab-btn, body.hns-reveal .undo-fab { animation: hns-fade 0.8s 0.35s both; }
@keyframes hns-down { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }
@keyframes hns-up { from { opacity: 0; transform: translate(-50%, 30px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Intro / Splash ---------- */
#intro-splash {
    position: fixed; inset: 0; z-index: 200000; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: radial-gradient(90% 70% at 50% 42%, #0f1f22 0%, #08090d 62%, #050507 100%);
    color: #fff; overflow: hidden; touch-action: manipulation;
    transition: opacity 0.8s ease, transform 1s cubic-bezier(0.3, 0, 0.2, 1), filter 0.8s ease, visibility 0s 1s;
}
#intro-splash.leaving { opacity: 0; transform: scale(1.12); filter: blur(8px); visibility: hidden; pointer-events: none; }
.hns-grid { position: absolute; inset: -20%; opacity: 0.35;
    background-image: linear-gradient(rgba(0,255,204,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(0,255,204,0.07) 1px, transparent 1px);
    background-size: 44px 44px; transform: perspective(500px) rotateX(58deg) translateY(-12%); transform-origin: 50% 40%;
    mask-image: radial-gradient(closest-side, #000 25%, transparent 100%); -webkit-mask-image: radial-gradient(closest-side, #000 25%, transparent 100%);
    animation: hns-grid-move 6s linear infinite; }
@keyframes hns-grid-move { to { background-position: 0 44px, 44px 0; } }
.hns-radar { position: relative; width: min(62vw, 250px); aspect-ratio: 1; margin-bottom: 34px; animation: hns-radar-in 1s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes hns-radar-in { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
.hns-radar .ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--theme-color, #00ffcc); opacity: 0.9; box-shadow: 0 0 24px color-mix(in srgb, var(--theme-color, #00ffcc) 45%, transparent), inset 0 0 24px color-mix(in srgb, var(--theme-color, #00ffcc) 18%, transparent); }
.hns-radar .ring.r2 { inset: 17%; opacity: 0.55; box-shadow: none; }
.hns-radar .ring.r3 { inset: 34%; opacity: 0.4; box-shadow: none; }
.hns-radar .cross-h, .hns-radar .cross-v { position: absolute; background: color-mix(in srgb, var(--theme-color, #00ffcc) 30%, transparent); }
.hns-radar .cross-h { left: 0; right: 0; top: 50%; height: 1px; } .hns-radar .cross-v { top: 0; bottom: 0; left: 50%; width: 1px; }
.hns-radar .sweep { position: absolute; inset: 0; border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, transparent 280deg, color-mix(in srgb, var(--theme-color, #00ffcc) 55%, transparent) 358deg, var(--theme-color, #00ffcc) 360deg);
    animation: hns-spin 2.4s linear infinite; }
@keyframes hns-spin { to { transform: rotate(360deg); } }
.hns-radar .pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--theme-color, #00ffcc); opacity: 0; animation: hns-pulse 2.4s ease-out infinite; }
.hns-radar .pulse.p2 { animation-delay: 0.8s; } .hns-radar .pulse.p3 { animation-delay: 1.6s; }
@keyframes hns-pulse { 0% { transform: scale(0.35); opacity: 0.7; } 100% { transform: scale(1.7); opacity: 0; } }
.hns-radar .core { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: #ffaa00; box-shadow: 0 0 14px #ffaa00; }
.hns-radar .blip { position: absolute; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px #ff3b55, 0 0 4px #ff3b55; opacity: 0; animation: hns-blip 2.4s linear infinite; }
.hns-radar .blip.b1 { left: 68%; top: 28%; animation-delay: 0.35s; } .hns-radar .blip.b2 { left: 30%; top: 70%; animation-delay: 1.5s; } .hns-radar .blip.b3 { left: 74%; top: 66%; animation-delay: 2.1s; }
@keyframes hns-blip { 0% { opacity: 1; transform: scale(1.6); } 40% { opacity: 0.8; transform: scale(1); } 100% { opacity: 0; } }
.hns-title { font-family: var(--font-head, 'Orbitron', 'Inter', sans-serif); font-weight: 900; font-size: clamp(30px, 9vw, 44px); letter-spacing: 0.22em; margin: 0; display: flex; gap: 0.35em; align-items: baseline; text-shadow: 0 0 28px color-mix(in srgb, var(--theme-color, #00ffcc) 55%, transparent); padding-left: 0.22em; }
.hns-title span { display: inline-block; opacity: 0; animation: hns-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hns-title .w1 { animation-delay: 0.35s; } .hns-title .pl { animation-delay: 0.5s; color: var(--theme-color, #00ffcc); } .hns-title .w2 { animation-delay: 0.65s; }
@keyframes hns-rise { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.hns-sub { margin: 12px 0 0; font-size: 12px; letter-spacing: 0.42em; color: #8e98a6; text-transform: uppercase; opacity: 0; animation: hns-rise 0.9s 0.95s cubic-bezier(0.16, 1, 0.3, 1) both; padding-left: 0.42em; }
.hns-load { margin-top: 38px; width: min(56vw, 210px); height: 3px; border-radius: 3px; background: rgba(255,255,255,0.1); overflow: hidden; opacity: 0; animation: hns-rise 0.9s 1.1s both; }
.hns-load i { display: block; height: 100%; width: 40%; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--theme-color, #00ffcc), transparent); animation: hns-load 1.3s ease-in-out infinite; }
@keyframes hns-load { from { transform: translateX(-110%); } to { transform: translateX(260%); } }
.hns-ver { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: 0; right: 0; text-align: center; font-size: 11px; color: #566070; letter-spacing: 0.12em; }
#intro-splash.ready .hns-load i { animation: none; width: 100%; transform: none; }

/* ---------- Willkommen (nur beim ersten Start) ---------- */
#welcome-overlay { position: fixed; inset: 0; z-index: 150000; display: none; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; background: rgba(0,0,0,0.7); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
#welcome-overlay.show { display: flex; animation: hns-fade 0.4s ease-out; }
.welcome-card { width: 100%; max-width: 400px; max-height: 92vh; overflow-y: auto; box-sizing: border-box; padding: 24px 22px 20px; border-radius: 26px; color: #fff;
    background: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,0.1) 0%, rgba(14,15,22,0.78) 55%, rgba(8,9,14,0.92) 100%);
    border: 1px solid rgba(255,255,255,0.22); box-shadow: 0 30px 80px rgba(0,0,0,0.7), inset 0 1px 2px rgba(255,255,255,0.35); animation: hns-pop 0.5s cubic-bezier(0.18, 1.1, 0.3, 1); }
.welcome-card h2 { margin: 0 0 4px; font-family: var(--font-head, 'Inter', sans-serif); font-size: 22px; letter-spacing: 0.04em; }
.welcome-card .lead { margin: 0 0 18px; color: #9aa4b2; font-size: 13px; line-height: 1.5; }
.welcome-card .lbl { font-size: 11px; letter-spacing: 0.2em; color: #7e8999; text-transform: uppercase; margin: 14px 0 8px; }
.chip-row { display: flex; gap: 8px; }
.chip { flex: 1; padding: 12px 6px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.05); color: #dfe6ee; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-align: center; transition: 0.18s; }
.chip small { display: block; font-weight: 500; font-size: 10.5px; color: #8a95a5; margin-top: 3px; letter-spacing: 0; }
.chip.active { border-color: var(--theme-color, #00ffcc); background: color-mix(in srgb, var(--theme-color, #00ffcc) 16%, transparent); color: #fff; box-shadow: 0 0 18px color-mix(in srgb, var(--theme-color, #00ffcc) 30%, transparent); }
.chip:active { transform: scale(0.96); }
.welcome-tip { margin-top: 16px; padding: 11px 13px; border-radius: 14px; background: rgba(255,255,255,0.05); font-size: 12px; line-height: 1.5; color: #b6bfcb; }
.cta-btn { width: 100%; margin-top: 18px; padding: 14px; border-radius: 16px; border: none; font-family: var(--font-head, 'Inter', sans-serif); font-size: 15px; font-weight: 800; letter-spacing: 0.08em; cursor: pointer; background: var(--theme-color, #00ffcc); color: #041014; box-shadow: 0 8px 26px color-mix(in srgb, var(--theme-color, #00ffcc) 40%, transparent); transition: transform 0.14s; }
.cta-btn:active { transform: scale(0.97); }
.ghost-btn { width: 100%; margin-top: 8px; padding: 11px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.05); color: #dfe6ee; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ghost-btn:active { transform: scale(0.97); }

/* ---------- Spielende-Bildschirm ---------- */
#round-end { position: fixed; inset: 0; z-index: 160000; display: none; flex-direction: column; background: radial-gradient(100% 60% at 50% 0%, #11252a 0%, #08090d 60%); color: #fff; overflow-y: auto; -webkit-overflow-scrolling: touch; }
#round-end.show { display: flex; animation: hns-fade 0.35s ease-out; }
#round-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.re-wrap { position: relative; z-index: 1; width: 100%; max-width: 480px; margin: 0 auto; box-sizing: border-box; padding: calc(22px + env(safe-area-inset-top, 0px)) 18px calc(28px + env(safe-area-inset-bottom, 0px)); }
.re-kicker { text-align: center; font-size: 12px; letter-spacing: 0.4em; color: var(--theme-color, #00ffcc); padding-left: 0.4em; }
.re-team { text-align: center; font-family: var(--font-head, 'Orbitron', 'Inter', sans-serif); font-weight: 900; font-size: clamp(26px, 8vw, 36px); margin: 8px 0 2px; word-break: break-word; }
.re-time { text-align: center; font-family: var(--font-digits, 'Rajdhani', 'Orbitron', monospace); font-weight: 700; font-size: clamp(54px, 18vw, 82px); line-height: 1.05; color: var(--theme-color, #00ffcc); text-shadow: 0 0 36px color-mix(in srgb, var(--theme-color, #00ffcc) 50%, transparent); font-variant-numeric: tabular-nums; }
.re-sub { text-align: center; font-size: 13px; color: #98a3b1; margin-bottom: 4px; }
.re-rank { text-align: center; margin: 12px auto 0; display: table; padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); }
.re-card { margin-top: 18px; border-radius: 22px; padding: 14px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.re-card h3 { margin: 0 0 10px; font-size: 11px; letter-spacing: 0.22em; color: #7e8999; text-transform: uppercase; font-weight: 600; }
.re-board { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.re-board li { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 12px; background: rgba(255,255,255,0.04); font-size: 14px; }
.re-board li.me { background: color-mix(in srgb, var(--theme-color, #00ffcc) 16%, transparent); border: 1px solid color-mix(in srgb, var(--theme-color, #00ffcc) 55%, transparent); }
.re-board .pos { width: 26px; text-align: center; font-size: 17px; } .re-board .nm { flex: 1; font-weight: 700; word-break: break-word; } .re-board .tm { color: #aab4c1; font-size: 12.5px; font-variant-numeric: tabular-nums; }
#round-end-map { height: 260px; border-radius: 16px; overflow: hidden; background: #0c0d12; }
.re-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; font-size: 12px; color: #aab4c1; }
.re-legend i { display: inline-block; width: 18px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.re-note { font-size: 12.5px; color: #98a3b1; line-height: 1.5; padding: 24px 10px; text-align: center; }
.re-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.re-actions .ghost-btn { margin: 0; }
.route-pin { background: transparent; border: none; font-size: 22px; text-align: center; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.7)); }

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
    #intro-splash *, .fullscreen-modal, .fullscreen-modal > .modal-box, .welcome-card, body.hns-reveal * { animation-duration: 0.01s !important; animation-delay: 0s !important; }
    #intro-splash { transition-duration: 0.2s; }
}

/* ---------- Haltestellen-Knopf: Zustand sichtbar ---------- */
.mini-fab-btn.active { border-color: var(--theme-color, #00ffcc); box-shadow: 0 0 16px color-mix(in srgb, var(--theme-color, #00ffcc) 55%, transparent), 0 4px 15px rgba(0,0,0,0.4); background: color-mix(in srgb, var(--theme-color, #00ffcc) 18%, rgba(16,17,23,0.85)); }
.mini-fab-btn:disabled { opacity: 0.4; }

/* ---------- Haltestellen: kurze Statusmeldung neben dem Knopf ---------- */
#transit-toast { position: fixed; right: 68px; bottom: calc(196px + env(safe-area-inset-bottom, 0px)); max-width: 62vw; padding: 8px 12px; border-radius: 12px; font-size: 12px; line-height: 1.35; color: #dfe6ee; z-index: 1900; pointer-events: none;
    background: rgba(16,17,23,0.88); border: 1px solid rgba(255,255,255,0.16); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transform: translateX(8px); transition: opacity 0.25s, transform 0.25s; }
#transit-toast.show { opacity: 1; transform: none; }
#transit-toast.bad { border-color: #ff6b7f; color: #ffb3bd; }

/* ---------- Gemeinsames Spiel (sync.js) ---------- */
.sync-overlay { position: fixed; inset: 0; z-index: 170000; display: none; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; background: rgba(0,0,0,0.7); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.sync-overlay.show { display: flex; animation: hns-fade 0.25s ease-out; }
#pin-modal { z-index: 175000; }
.game-input { width: 100%; box-sizing: border-box; padding: 13px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); color: #fff; font-size: 16px; font-family: inherit; user-select: text; }
.game-input.code { text-align: center; letter-spacing: 0.4em; font-weight: 800; font-size: 20px; text-transform: uppercase; }
.game-input.pin { text-align: center; letter-spacing: 0.6em; font-weight: 800; font-size: 28px; }
.game-code { text-align: center; font-family: var(--font-digits, 'Rajdhani', monospace); font-size: 46px; font-weight: 700; letter-spacing: 0.25em; color: var(--theme-color, #00ffcc); text-shadow: 0 0 24px color-mix(in srgb, var(--theme-color, #00ffcc) 45%, transparent); margin: 6px 0; padding-left: 0.25em; }
.game-state { text-align: center; font-size: 12.5px; color: #aab4c1; margin-bottom: 6px; }
.game-hint { font-size: 12px; color: #8a95a5; line-height: 1.5; margin: 12px 0 0; }
.game-error { min-height: 18px; margin-top: 10px; color: #ff8a9a; font-size: 12.5px; text-align: center; }
.ghost-btn.danger { border-color: rgba(255,90,110,0.4); color: #ff9aa8; margin-top: 14px; }
.welcome-card .lead { margin-top: 10px; }
.welcome-card.shake { animation: hns-shake 0.4s; }
@keyframes hns-shake { 20%,60% { transform: translateX(-9px); } 40%,80% { transform: translateX(9px); } }

/* ---------- Kurzanleitung ---------- */
#tutorial-overlay { position: fixed; inset: 0; z-index: 150001; display: none; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; background: rgba(0,0,0,0.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
#tutorial-overlay.show { display: flex; animation: hns-fade 0.35s ease-out; }
.tut-card { padding: 22px 0 18px; overflow: hidden; }
.tut-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tut-track::-webkit-scrollbar { display: none; }
.tut-slide { flex: 0 0 100%; scroll-snap-align: center; box-sizing: border-box; padding: 0 24px; min-height: 250px; }
.tut-ico { font-size: 44px; line-height: 1; margin-bottom: 12px; }
.tut-slide h2 { margin: 0 0 10px; font-family: var(--font-head, 'Inter', sans-serif); font-size: 21px; letter-spacing: 0.03em; }
.tut-slide p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: #c3cbd6; }
.tut-slide b { color: #fff; }
.tut-dots { display: flex; justify-content: center; gap: 7px; margin: 10px 0 4px; }
.tut-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.22); transition: 0.25s; }
.tut-dots i.on { width: 20px; border-radius: 4px; background: var(--theme-color, #00ffcc); }
.tut-btns { display: flex; gap: 10px; padding: 0 22px; }
.tut-btns .ghost-btn { margin-top: 18px; flex: 0 0 38%; }
.tut-btns .cta-btn { margin-top: 18px; flex: 1; }
@media (prefers-reduced-motion: reduce) { .tut-track { scroll-behavior: auto; } }

/* ---------------- Nebel außerhalb des Spielgebiets ---------------- */
.fog-cloud-a, .fog-cloud-b, .fog-cloud-c { stroke: none !important; pointer-events: none; animation: fog-breathe 19s ease-in-out infinite alternate; }
.fog-cloud-a { fill: url(#fog-a) !important; fill-opacity: 0.22 !important; }
.fog-cloud-b { fill: url(#fog-b) !important; fill-opacity: 0.18 !important; animation-duration: 27s; animation-delay: -9s; }
.fog-cloud-c { fill: url(#fog-c) !important; fill-opacity: 0.15 !important; animation-duration: 33s; animation-delay: -17s; }
@keyframes fog-breathe { 0% { opacity: 0.25; } 100% { opacity: 1; } }
body.fog-still .fog-cloud-a, body.fog-still .fog-cloud-b, body.fog-still .fog-cloud-c { animation: none; }
.area-results { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; max-height: 32vh; overflow-y: auto; }
.area-result { text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.05); color: #eef3f8; font-family: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.area-result small { color: #8e99a8; font-size: 11px; }
.area-result:active { transform: scale(0.98); }

.area-draw-row { display: flex; flex-direction: column; gap: 0; }
.area-result .area-kind { color: #6f7b8b; font-size: 10px; }
#area-draw-bar { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 140%); z-index: 160000; width: min(94vw, 420px); box-sizing: border-box; padding: 10px 12px; border-radius: 18px; background: rgba(14,15,20,0.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--theme-color, #00ffcc); box-shadow: 0 10px 30px rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: space-between; gap: 10px; transition: transform 0.3s cubic-bezier(.2,.9,.3,1); }
#area-draw-bar.show { transform: translate(-50%, 0); }
#area-draw-text { font-size: 12px; color: #dfe6ee; line-height: 1.3; }
.adb-btns { display: flex; gap: 6px; flex: none; }
.adb-btns button { border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.07); color: #fff; border-radius: 12px; padding: 8px 12px; font-family: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
.adb-btns button.ok { background: var(--theme-color, #00ffcc); color: #000; border-color: transparent; }

/* ---------------- Menü: Kategorien + Kacheln, Knopf-Kapsel rechts ---------------- */
.map-settings-popup { width: 282px !important; right: 68px !important; padding: 12px !important; }
.menu-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: rgba(255,255,255,0.06); }
.menu-tab { flex: 1; border: 0; background: transparent; color: #9aa4b2; border-radius: 9px; padding: 7px 4px; font-family: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; transition: background 0.2s, color 0.2s; }
.menu-tab.active { background: var(--theme-color, #00ffcc); color: #000; }
.settings-popup-body { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.settings-popup-body .menu-action-row { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; min-height: 78px; border-radius: 14px; }
.settings-popup-body .row-icon { font-size: 20px; line-height: 1; }
.settings-popup-body .row-title { font-size: 12px; line-height: 1.2; }
.settings-popup-body .row-sub { font-size: 10px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.quick-map-controls { right: 12px !important; bottom: 92px !important; gap: 0 !important; padding: 5px; border-radius: 22px; background: rgba(16,17,23,0.78); border: 1px solid rgba(255,255,255,0.14); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); box-shadow: 0 8px 26px rgba(0,0,0,0.55); }
.quick-map-controls .mini-fab-btn { width: 42px !important; height: 42px !important; border-radius: 16px !important; border: 0 !important; background: transparent !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; color: #cfd8e3; }
.quick-map-controls .mini-fab-btn + .mini-fab-btn { margin-top: 2px; }
.quick-map-controls .mini-fab-btn.settings { color: var(--theme-color, #00ffcc); }
.quick-map-controls .mini-fab-btn.active { background: color-mix(in srgb, var(--theme-color, #00ffcc) 22%, transparent) !important; color: var(--theme-color, #00ffcc); }
.quick-map-controls .mini-fab-btn:active { transform: scale(0.9); }
.quick-map-controls .mini-fab-btn:disabled { opacity: 0.35; }
#map-style-float-panel { right: 70px !important; }

/* Haltestellen-Schalter + Zurück-Knopf im Kartenstil-Fenster */
.transit-switch { display: flex; align-items: center; justify-content: space-between; width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.05); color: #eef3f8; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.transit-switch .ts-state { min-width: 44px; text-align: center; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,0.1); color: #9aa4b2; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.transit-switch.on { border-color: var(--theme-color, #00ffcc); }
.transit-switch.on .ts-state { background: var(--theme-color, #00ffcc); color: #000; }
.panel-back { border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.07); color: inherit; border-radius: 10px; padding: 3px 9px; margin-right: 6px; font-family: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }

/* Haltestellen-Namen auf der Karte */
.leaflet-tooltip.stop-label { background: rgba(10,12,16,0.82); border: 0; color: #fff; font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 6px; box-shadow: none; white-space: nowrap; pointer-events: none; }
.leaflet-tooltip.stop-label::before { display: none; }
.map-light-mode .leaflet-tooltip.stop-label { background: rgba(255,255,255,0.88); color: #111; }
#transit-float-panel label { white-space: nowrap; }

/* Ruhige Basiskarten: OSM-Kacheln per Filter (kein API-Schlüssel nötig) */
.calm-light-layer { filter: grayscale(0.92) brightness(1.1) contrast(0.86); }
.calm-dark-layer { filter: invert(1) hue-rotate(180deg) grayscale(0.85) brightness(0.72) contrast(0.92); }
