/* ═══════════════════════════════════════════════════════════════════════
   KraftstoffTanken.de – Design-System
   Vanilla-Port ausgewählter Komponenten von Magic UI (magicui.design, MIT):
   Shimmer Button, Border Beam, Magic Card, Number Ticker, Blur Fade,
   Animated Gradient / Aurora / Shiny Text, Dot + Animated Grid Pattern,
   Retro Grid, Meteors, Ripple, Marquee, Particles, Dock, Scroll Progress,
   Animated Theme Toggler, Word Rotate, Hyper Text, Confetti.
   Das Verhalten (JS) steckt in assets/magic.js.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
    --mu-brand: #6366f1;
    --mu-brand-2: #8b5cf6;
    --mu-accent: #06b6d4;
    --mu-grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --mu-bg: #fafafa;
    --mu-card: rgba(255, 255, 255, .72);
    --mu-line: rgba(9, 9, 11, .08);
    --mu-line-strong: rgba(9, 9, 11, .14);
    --mu-spot: rgba(99, 102, 241, .12);
    --mu-dot: rgba(9, 9, 11, .13);
    --mu-grid: rgba(9, 9, 11, .07);
    --mu-particle: #6366f1;
    --mu-muted: #71717a;
    color-scheme: light;
}
.dark {
    --mu-bg: #111114;
    --mu-card: rgba(27, 27, 32, .62);
    --mu-line: rgba(255, 255, 255, .08);
    --mu-line-strong: rgba(255, 255, 255, .14);
    --mu-spot: rgba(129, 140, 248, .14);
    --mu-dot: rgba(255, 255, 255, .09);
    --mu-grid: rgba(255, 255, 255, .06);
    --mu-particle: #a5b4fc;
    --mu-muted: #a1a1aa;
    color-scheme: dark;
}

@property --mu-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

html { -webkit-tap-highlight-color: transparent; }
body { font-feature-settings: "ss01", "cv11"; text-rendering: optimizeLegibility; }
::selection { background: rgba(99, 102, 241, .28); }
input[type=checkbox], input[type=radio], input[type=range] { accent-color: #6366f1; }
code, pre, kbd, .font-mono { font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ── Fokus + Formulare ───────────────────────────────────────────────── */
:focus-visible { outline: 2px solid #6366f1; outline-offset: 2px; border-radius: 6px; }
:is(input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea) {
    transition: box-shadow .2s, border-color .2s, background-color .2s;
}
:is(input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea):focus,
:is(input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea):focus-visible {
    outline: none; border-color: #6366f1 !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .16);
}

/* ── Hintergrund: Dot Pattern + Aurora-Blobs ─────────────────────────── */
.mu-backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.mu-backdrop::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(var(--mu-dot) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 25%, transparent 75%);
            mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 25%, transparent 75%);
}
.mu-blob {
    position: absolute; width: 38rem; height: 38rem; border-radius: 9999px;
    filter: blur(100px); opacity: .22; will-change: transform;
    animation: mu-float 22s ease-in-out infinite alternate;
}
.dark .mu-blob { opacity: .2; }
.mu-blob.b1 { background: #6366f1; top: -18rem; left: -10rem; }
.mu-blob.b2 { background: #06b6d4; top: -14rem; right: -14rem; animation-delay: -7s; animation-duration: 26s; }
.mu-blob.b3 { background: #d946ef; bottom: -22rem; left: 30%; animation-delay: -12s; opacity: .12; }
@keyframes mu-float {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(6rem, 3rem) scale(1.1); }
    100% { transform: translate(-4rem, 5rem) scale(.95); }
}

/* Dot Pattern als Utility */
.mu-dots { background-image: radial-gradient(var(--mu-dot) 1px, transparent 1px); background-size: 18px 18px; }
.mu-mask-radial { -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.mu-mask-top { -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent); mask-image: linear-gradient(to bottom, #000 30%, transparent); }

/* ── Glas-Flächen ────────────────────────────────────────────────────── */
.mu-glass {
    background: var(--mu-card);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
            backdrop-filter: blur(18px) saturate(150%);
    border-color: var(--mu-line);
}
.mu-hairline { position: relative; }
.mu-hairline::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(99,102,241,.55), rgba(6,182,212,.55), rgba(217,70,239,.45), transparent);
    background-size: 200% 100%; animation: mu-slide 8s linear infinite;
}
@keyframes mu-slide { to { background-position: 200% 0; } }

/* ── Logo ────────────────────────────────────────────────────────────── */
.mu-logo-mark {
    display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 28%;
    background: #4f46e5; color: #fff; font-size: 1rem; flex: none;
    box-shadow: 0 6px 18px -6px rgba(99,102,241,.7), inset 0 1px 0 rgba(255,255,255,.35);
    position: relative; overflow: hidden;
}
.mu-logo-mark::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
    transform: translateX(-120%); animation: mu-sweep 5s ease-in-out infinite 1s;
}
html.dark .mu-logo-mark { background: #6366f1; }
.mu-logo-mark svg { width: 100%; height: 100%; }
@keyframes mu-sweep { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* ── Text-Effekte ────────────────────────────────────────────────────── */
.mu-gradient-text {
    background-image: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4, #6366f1);
    background-size: 300% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: mu-gradient 8s linear infinite;
}
@keyframes mu-gradient { to { background-position: 300% 0; } }

.mu-aurora {
    background-image: linear-gradient(135deg, #ff0080, #7928ca, #0070f3, #38bdf8, #ff0080);
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: mu-aurora 8s ease-in-out infinite alternate;
    padding-bottom: .06em;
}
@keyframes mu-aurora {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.mu-shiny {
    --shiny-width: 90px;
    color: rgba(113, 113, 122, .85);
    background: linear-gradient(90deg, transparent, rgba(9,9,11,.85) 50%, transparent) no-repeat 0 0 / var(--shiny-width) 100%;
    -webkit-background-clip: text; background-clip: text;
    animation: mu-shiny 8s infinite;
}
.dark .mu-shiny { color: rgba(161,161,170,.85); background-image: linear-gradient(90deg, transparent, rgba(255,255,255,.9) 50%, transparent); }
@keyframes mu-shiny {
    0%, 90%, 100% { background-position: calc(-100% - var(--shiny-width)) 0; }
    30%, 60%      { background-position: calc(100% + var(--shiny-width)) 0; }
}

/* Word Rotate */
.mu-rotate { display: inline-grid; vertical-align: bottom; }
.mu-rotate > span { grid-area: 1 / 1; transition: opacity .45s, transform .45s cubic-bezier(.16,1,.3,1), filter .45s; }
.mu-rotate > span:not(.on) { opacity: 0; transform: translateY(-.5em); filter: blur(6px); pointer-events: none; }
.mu-rotate > span.out { transform: translateY(.5em); }

/* ── Badge / Pill ────────────────────────────────────────────────────── */
.mu-badge {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .28rem .75rem; border-radius: 9999px; font-size: .75rem; font-weight: 500;
    border: 1px solid var(--mu-line-strong); background: var(--mu-card);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.mu-badge .dot { width: .45rem; height: .45rem; border-radius: 9999px; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); animation: mu-ping 2s infinite; }
@keyframes mu-ping { 0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.45); } 60% { box-shadow: 0 0 0 6px rgba(34,197,94,0); } }

/* ── Shimmer Button: umlaufender Lichtschweif am Rand (zusätzlich zu .btn-primary) ── */
.mu-shimmer { --speed: 3s; --spread: 90deg; }
.mu-shimmer::after {
    content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit; pointer-events: none;
    padding: 1.5px;
    background: conic-gradient(from var(--mu-angle), transparent 0 70%, rgba(255,255,255,.95) 80%, transparent 90%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    animation: mu-spin var(--speed) linear infinite;
}
@keyframes mu-spin { to { --mu-angle: 360deg; } }

/* Ripple (Klick-Welle) */
.mu-ripple-dot {
    position: absolute; border-radius: 9999px; pointer-events: none; z-index: 0;
    background: rgba(255,255,255,.45); transform: scale(0); animation: mu-ripple-dot .6s ease-out forwards;
}
@keyframes mu-ripple-dot { to { transform: scale(1); opacity: 0; } }

/* Pulsating (für Aufmerksamkeit, z. B. App installieren) */
.mu-pulse { --pulse: rgba(99,102,241,.55); animation: mu-pulse 2s cubic-bezier(.4,0,.6,1) infinite; }
@keyframes mu-pulse { 0%, 100% { box-shadow: 0 0 0 0 var(--pulse); } 50% { box-shadow: 0 0 0 8px transparent; } }

/* ── Magic Card (Spotlight + Verlaufsrand, folgt der Maus) ───────────── */
.mu-card { position: relative; isolation: isolate; }
.mu-card::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
    background: radial-gradient(380px circle at var(--mx, -999px) var(--my, -999px), var(--mu-spot), transparent 45%);
    opacity: 0; transition: opacity .35s;
}
.mu-card::after {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1px;
    background: radial-gradient(240px circle at var(--mx, -999px) var(--my, -999px), rgba(139,92,246,.95), rgba(6,182,212,.55) 45%, transparent 75%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity .35s;
}
@media (hover: hover) {
    .mu-card:hover::before, .mu-card:hover::after { opacity: 1; }
}
.mu-lift { transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s; }
@media (hover: hover) { .mu-lift:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -18px rgba(79,70,229,.45); } }

/* ── Border Beam (umlaufender Lichtstrahl) ───────────────────────────── */
[data-beam] { position: relative; }
.mu-beam {
    position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; z-index: 1;
    padding: 1.5px;
    background: conic-gradient(from var(--mu-angle), transparent 0 78%, #8b5cf6 86%, #06b6d4 92%, #ec4899 96%, transparent 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    animation: mu-spin var(--beam-dur, 8s) linear infinite;
}

/* ── Blur Fade (Einblenden beim Scrollen) ────────────────────────────── */
.mu-js [data-fade]:not(.mu-in) { opacity: 0; filter: blur(8px); transform: translateY(10px); }
.mu-ready [data-fade] { opacity: 1 !important; filter: none !important; transform: none !important; }
[data-fade].mu-in { animation: mu-blur-in .7s cubic-bezier(.16,1,.3,1) backwards; animation-delay: var(--d, 0ms); }
@keyframes mu-blur-in { from { opacity: 0; filter: blur(8px); transform: translateY(10px); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes mu-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Gestaffeltes Einblenden aller direkten Kinder (z. B. beim Tab-Wechsel) */
.mu-stagger > * { animation: mu-blur-in .6s cubic-bezier(.16,1,.3,1) backwards; }
.mu-stagger > :nth-child(1)  { animation-delay: 20ms; }
.mu-stagger > :nth-child(2)  { animation-delay: 70ms; }
.mu-stagger > :nth-child(3)  { animation-delay: 120ms; }
.mu-stagger > :nth-child(4)  { animation-delay: 170ms; }
.mu-stagger > :nth-child(5)  { animation-delay: 220ms; }
.mu-stagger > :nth-child(6)  { animation-delay: 270ms; }
.mu-stagger > :nth-child(7)  { animation-delay: 320ms; }
.mu-stagger > :nth-child(8)  { animation-delay: 370ms; }
.mu-stagger > :nth-child(n+9) { animation-delay: 420ms; }

/* ── Dialoge / Modals ────────────────────────────────────────────────── */
.modal:not(.hidden) { animation: mu-overlay .22s ease-out; }
.modal:not(.hidden) > .modal-panel { animation: mu-pop .42s cubic-bezier(.16,1,.3,1) backwards; }
@keyframes mu-overlay { from { opacity: 0; } to { opacity: 1; } }
@keyframes mu-pop { from { opacity: 0; transform: translateY(14px) scale(.96); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
/* ── Tabs / Segmented Control mit gleitendem Indikator ──────────────── */
[data-mu-tabs] { position: relative; }
[data-mu-tabs] > :not(.mu-tab-ind) { position: relative; z-index: 1; }
.mu-tab-ind {
    position: absolute; z-index: 0; border-radius: 9999px; pointer-events: none;
    transition: left .45s cubic-bezier(.16,1,.3,1), width .45s cubic-bezier(.16,1,.3,1), top .45s, height .45s, opacity .2s;
    background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 14px -6px rgba(79,70,229,.35);
}
.dark .mu-tab-ind { background: #2e2e35; box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 6px 16px -8px rgba(0,0,0,.8); }
.mu-tab-ind.ind-brand { background: var(--mu-grad); box-shadow: 0 8px 20px -10px rgba(99,102,241,.9), inset 0 1px 0 rgba(255,255,255,.3); }
.mu-tab-ind.ind-line { border-radius: 2px; background: var(--mu-grad); box-shadow: 0 0 12px rgba(99,102,241,.6); }

/* ── Scroll Progress ─────────────────────────────────────────────────── */
.mu-progress {
    position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1000; pointer-events: none;
    transform-origin: 0 50%; transform: scaleX(var(--p, 0));
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4, #ec4899);
}

/* ── Meteors ─────────────────────────────────────────────────────────── */
.mu-meteors { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.mu-meteor {
    position: absolute; top: -8px; width: 2px; height: 2px; border-radius: 9999px;
    background: #a1a1aa; box-shadow: 0 0 0 1px rgba(255,255,255,.08);
    transform: rotate(215deg); animation: mu-meteor linear infinite;
}
.mu-meteor::before {
    content: ""; position: absolute; top: 50%; width: 60px; height: 1px; transform: translateY(-50%);
    background: linear-gradient(90deg, #a1a1aa, transparent);
}
@keyframes mu-meteor {
    0%   { transform: rotate(215deg) translateX(0); opacity: 1; }
    70%  { opacity: 1; }
    100% { transform: rotate(215deg) translateX(-700px); opacity: 0; }
}

/* ── Ripple (konzentrische Kreise) ───────────────────────────────────── */
.mu-ripple-bg { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #fff, transparent); mask-image: linear-gradient(to bottom, #fff, transparent); }
.mu-ripple-bg > span {
    position: absolute; border-radius: 9999px; border: 1px solid rgba(99,102,241,.25);
    background: rgba(99,102,241,.05); animation: mu-ripple 3.4s ease infinite;
}
@keyframes mu-ripple { 0%, 100% { transform: scale(1); } 50% { transform: scale(.9); } }

/* ── Retro Grid ──────────────────────────────────────────────────────── */
.mu-retro { position: absolute; inset: 0; overflow: hidden; pointer-events: none; perspective: 200px; opacity: .55; }
.mu-retro > div { position: absolute; inset: 0; transform: rotateX(65deg); }
.mu-retro > div > div {
    position: absolute; height: 300vh; width: 600vw; margin-left: -200%; inset: 0 0; transform-origin: 100% 0 0;
    background-image: linear-gradient(to right, var(--mu-grid-line, rgba(99,102,241,.35)) 1px, transparent 0),
                      linear-gradient(to bottom, var(--mu-grid-line, rgba(99,102,241,.35)) 1px, transparent 0);
    background-size: 60px 60px; background-repeat: repeat;
    animation: mu-retro 18s linear infinite;
}
.mu-retro::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--mu-bg) 0%, transparent 90%); }
@keyframes mu-retro { 0% { transform: translateY(-50%); } 100% { transform: translateY(0); } }

/* ── Animated Grid Pattern (SVG wird per JS erzeugt) ─────────────────── */
.mu-gridpat { position: absolute; inset: 0; pointer-events: none; color: var(--mu-grid); }
.mu-gridpat svg { width: 100%; height: 100%; }
.mu-gridpat rect.sq { fill: rgba(99,102,241,.22); opacity: 0; animation: mu-sq 7s ease-in-out infinite; }
.dark .mu-gridpat rect.sq { fill: rgba(165,180,252,.14); }
@keyframes mu-sq { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }

/* ── Marquee ─────────────────────────────────────────────────────────── */
.mu-marquee { --gap: 1rem; display: flex; overflow: hidden; gap: var(--gap); user-select: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.mu-marquee > div { display: flex; flex-shrink: 0; gap: var(--gap); min-width: 100%; justify-content: space-around;
    animation: mu-marquee var(--duration, 36s) linear infinite; }
.mu-marquee:hover > div { animation-play-state: paused; }
@keyframes mu-marquee { from { transform: translateX(0); } to { transform: translateX(calc(-100% - var(--gap))); } }

/* ── Particles (Canvas per JS) ───────────────────────────────────────── */
.mu-particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ── Dock (Vergrößerung beim Überfahren) ─────────────────────────────── */
[data-dock] > * { transition: transform .18s cubic-bezier(.16,1,.3,1); transform-origin: var(--dock-origin, center right); }

/* ── Toasts (Animated List) ──────────────────────────────────────────── */
.toast {
    animation: mu-toast .5s cubic-bezier(.16,1,.3,1) backwards;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 18px 40px -16px rgba(0,0,0,.55);
}
@keyframes mu-toast { from { opacity: 0; transform: translateY(16px) scale(.9); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* ── Code (Terminal-Look) ────────────────────────────────────────────── */
.mu-terminal {
    position: relative; background: #0b0b10 !important; color: #e4e4e7 !important;
    border: 1px solid rgba(255,255,255,.08); border-radius: 14px !important;
    padding: 2.35rem 1rem 1rem !important; box-shadow: 0 20px 50px -30px rgba(79,70,229,.6);
}
.mu-terminal::before {
    content: ""; position: absolute; top: .85rem; left: 1rem; width: .6rem; height: .6rem; border-radius: 9999px;
    background: #ff5f57; box-shadow: 1rem 0 0 #febc2e, 2rem 0 0 #28c840;
}

/* ── Rechtstexte ─────────────────────────────────────────────────────── */
.legal-doc { color: #3f3f46; }
.dark .legal-doc { color: #d4d4d8; }
.legal-doc > * + * { margin-top: 1rem; }
.legal-doc > :first-child, .legal-doc > :first-child > :first-child { margin-top: 0; }
.legal-doc h2, .legal-doc h3, .legal-doc h4 { font-size: 1.15rem; line-height: 1.4; font-weight: 650; letter-spacing: -.01em; margin: 2rem 0 .5rem; color: #09090b; scroll-margin-top: 8rem; }
.dark .legal-doc h2, .dark .legal-doc h3, .dark .legal-doc h4 { color: #fafafa; }
.legal-doc p { line-height: 1.75; }
.legal-doc ul, .legal-doc ol { margin-left: 1.25rem; line-height: 1.75; }
.legal-doc ul { list-style: disc; } .legal-doc ol { list-style: decimal; }
.legal-doc li::marker { color: #8b5cf6; }
.legal-doc a { color: #4f46e5; text-decoration: underline; text-decoration-color: rgba(99,102,241,.35); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.legal-doc a:hover { text-decoration-color: currentColor; }
.dark .legal-doc a { color: #a5b4fc; }
.legal-doc table { width: 100%; border-collapse: collapse; font-size: .92em; }
.legal-doc th, .legal-doc td { border: 1px solid var(--mu-line-strong); padding: .5rem .6rem; text-align: left; vertical-align: top; }
.legal-doc th { background: rgba(99,102,241,.05); }
.legal-doc hr { margin: 1.75rem 0; border-color: var(--mu-line-strong); }

/* ── Karte (Leaflet) ─────────────────────────────────────────────────── */
.kt-pip {
    font-family: "Geist Mono", ui-monospace, monospace; letter-spacing: -.02em;
    border-radius: 9999px !important; border-width: 1.5px !important;
    box-shadow: 0 6px 16px -4px rgba(0,0,0,.35), 0 0 0 3px rgba(255,255,255,.18) !important;
    animation: mu-pip .45s cubic-bezier(.34,1.56,.64,1) backwards;
}
@keyframes mu-pip { from { opacity: 0; transform: translateY(6px) scale(.6); } to { opacity: 1; transform: none; } }
.kt-pip.sel { box-shadow: 0 0 0 4px rgba(99,102,241,.55), 0 10px 24px -6px rgba(0,0,0,.5) !important; }
.leaflet-container { font-family: inherit; background: var(--mu-bg); }
.leaflet-popup-content-wrapper { border-radius: 18px !important; box-shadow: 0 24px 60px -20px rgba(0,0,0,.45) !important; border: 1px solid var(--mu-line); }
.leaflet-popup-content { margin: 14px 16px !important; }
html.dark .leaflet-popup-content-wrapper, html.dark .leaflet-popup-tip { background: #1b1b20 !important; color: #f4f4f5 !important; }
.leaflet-control-zoom { border: 1px solid var(--mu-line-strong) !important; border-radius: 12px !important; overflow: hidden; box-shadow: 0 10px 24px -14px rgba(0,0,0,.4) !important; }
.kt-pop-title { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.kt-pop-sub { color: #71717a; font-size: 11px; margin-bottom: 6px; }
.kt-pop-tbl { width: 100%; border-collapse: collapse; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.kt-pop-tbl td { padding: 4px 6px; }
.kt-pop-tbl tr.hi td { background: rgba(99,102,241,.1); }
.kt-pop-tbl tr.hi td:first-child { border-radius: 8px 0 0 8px; } .kt-pop-tbl tr.hi td:last-child { border-radius: 0 8px 8px 0; }
.kt-pb {
    font: 600 11px/1 inherit; padding: 6px 9px; border-radius: 9999px; cursor: pointer;
    border: 1px solid var(--mu-line-strong); background: transparent; color: inherit;
    transition: background-color .15s, border-color .15s, transform .15s;
}
.kt-pb:hover { background: rgba(99,102,241,.08); border-color: rgba(99,102,241,.45); }
.kt-pb:active { transform: scale(.95); }
.kt-pb.primary { background: linear-gradient(135deg,#6366f1,#7c3aed); color: #fff; border-color: transparent; }
.kt-pb.warn { color: #b45309; border-color: rgba(245,158,11,.45); }
.kt-pb.danger { color: #dc2626; border-color: rgba(239,68,68,.4); }
.dark .kt-pb.warn { color: #fbbf24; } .dark .kt-pb.danger { color: #f87171; }

/* ── Stationsliste ───────────────────────────────────────────────────── */
.station { animation: mu-rise .35s cubic-bezier(.16,1,.3,1) backwards; }
.station:nth-child(2) { animation-delay: 25ms; } .station:nth-child(3) { animation-delay: 50ms; }
.station:nth-child(4) { animation-delay: 75ms; } .station:nth-child(5) { animation-delay: 100ms; }
.station:nth-child(6) { animation-delay: 125ms; } .station:nth-child(7) { animation-delay: 150ms; }
.station:nth-child(n+8) { animation-delay: 175ms; }
.mu-cheap {
    background: linear-gradient(90deg, rgba(34,197,94,.14), rgba(16,185,129,.22), rgba(34,197,94,.14));
    background-size: 200% 100%; animation: mu-slide 3s linear infinite;
}

/* ── View Transition (Animated Theme Toggler) ────────────────────────── */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ── Bewegung reduzieren ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .mu-blob, .mu-meteors, .mu-retro, .mu-particles { display: none !important; }
    .mu-js [data-fade]:not(.mu-in) { opacity: 1; filter: none; transform: none; }
}
