/* ==========================================================================
   VignetSpace – „Sternenroute“ Design
   Nachthimmel, Quasar-Licht (Cyan/Violett) und Sternengold
   ========================================================================== */

@font-face { font-family: 'Unbounded'; src: url('../fonts/unbounded.woff2') format('woff2'); font-weight: 200 900; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
  --night: #060914;
  --night-2: #0b1124;
  --night-3: #121a36;
  --panel: rgba(18, 26, 54, .62);
  --panel-solid: #111933;
  --line: rgba(160, 180, 255, .14);
  --line-strong: rgba(160, 180, 255, .28);
  --ink: #eef2ff;
  --ink-2: #b9c3e6;
  --muted: #8592bd;
  --sun: #ffd36b;
  --sun-2: #ffab5c;
  --corona: #fff3c4;
  --q1: #8be9ff;
  --q2: #a98bff;
  --q3: #ff6bd6;
  --polar: #7fdcff;
  --polar-2: #4f8bff;
  --at: #ef3340;
  --de: #ffce00;
  --ok: #5ee6a8;
  --warn: #ffb547;
  --radius: 22px;
  --radius-s: 14px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  --glow-sun: 0 0 40px rgba(139, 233, 255, .4), 0 0 120px rgba(169, 139, 255, .3);
  --font-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1220px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: radial-gradient(1100px 760px at 88% -12%, rgba(169, 139, 255, .16), transparent 60%),
              radial-gradient(900px 700px at -10% 30%, rgba(79, 139, 255, .13), transparent 60%),
              radial-gradient(700px 500px at 60% 110%, rgba(255, 107, 214, .07), transparent 60%),
              var(--night);
  min-height: 100vh;
  overflow-x: hidden;
  font-variant-numeric: tabular-nums;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--polar); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sun); }
::selection { background: var(--q1); color: var(--night); }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; color: var(--ink-2); }
strong { color: var(--ink); }
small { color: var(--muted); }

.skip { position: absolute; left: -999px; top: 0; background: var(--sun); color: var(--night); padding: .6rem 1rem; z-index: 999; border-radius: 0 0 10px 0; }
.skip:focus { left: 0; }

/* ---------- Himmel (globaler Sternenhintergrund) ---------- */
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* ---------- Layout ---------- */
.wrap { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
section { position: relative; padding: clamp(4rem, 9vw, 7.5rem) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--q1); margin-bottom: 1rem;
}
.eyebrow::before { content: ''; width: 10px; height: 10px; background: currentColor; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 62ch; }
.section-head { max-width: 760px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.grad { background: linear-gradient(100deg, #fff3c4, var(--sun) 30%, var(--q3) 70%, var(--q2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-polar { background: linear-gradient(100deg, #fff, var(--polar) 50%, var(--polar-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: linear-gradient(to bottom, rgba(6, 9, 20, .85), rgba(6, 9, 20, .55));
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand .logo { width: 38px; height: 38px; transition: transform .8s var(--ease); }
.brand:hover .logo { transform: rotate(90deg) scale(1.08); }
.brand span b { color: var(--sun); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: .55rem .9rem; border-radius: 999px; text-decoration: none;
  color: var(--ink-2); font-weight: 600; font-size: .95rem; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.nav-links a[aria-current="page"] { color: var(--night); background: linear-gradient(120deg, #e9fbff, var(--q1) 45%, var(--q2)); box-shadow: 0 0 24px rgba(139, 233, 255, .35); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--ink); width: 46px; height: 46px; border-radius: 14px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: .2rem;
    padding: 1rem 1.25rem 2rem; background: rgba(6, 9, 20, .97); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .45s var(--ease); max-height: calc(100vh - 74px); overflow-y: auto;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: .9rem 1rem; font-size: 1.05rem; }
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--sun);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.5rem; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(120deg, #e9fbff, var(--q1) 40%, var(--q2));
  color: #0a0f24; font-family: var(--font-body); font-weight: 800; font-size: 1rem; text-decoration: none;
  box-shadow: 0 10px 30px -8px rgba(169, 139, 255, .65); transition: transform .25s var(--ease), box-shadow .25s;
  position: relative; overflow: hidden;
}
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover { transform: translateY(-2px); color: #0a0f24; box-shadow: 0 16px 40px -10px rgba(139, 233, 255, .8); }
.btn:hover::after { transform: translateX(120%); }
.btn.ghost { background: rgba(255, 255, 255, .04); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: none; }
.btn.ghost:hover { border-color: var(--q1); color: var(--q1); }
.btn.small { padding: .6rem 1rem; font-size: .9rem; }
.btn svg { width: 18px; height: 18px; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.7vw, 4.1rem); }
.hero h1 .line { display: block; }
.hero .lead { margin: 1.4rem 0 2rem; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(1.05); opacity: .7; } }

/* ---------- Quasar ---------- */
.quasar { --s: 620px; position: absolute; width: var(--s); height: var(--s); pointer-events: none; z-index: -1; }
.hero > .quasar { right: -170px; top: -150px; }
.quasar > div { position: absolute; left: 50%; top: 50%; }
.q-glow { width: 70%; height: 70%; margin: -35% 0 0 -35%; border-radius: 50%; background: radial-gradient(circle, rgba(230, 251, 255, .5), rgba(139, 233, 255, .18) 18%, rgba(169, 139, 255, .12) 38%, transparent 66%); animation: qpulse 5s ease-in-out infinite; }
.q-tilt { width: 0; height: 0; transform: rotate(-32deg); }
.q-jet { position: absolute; left: -2px; top: calc(var(--s) * -.5); width: 4px; height: var(--s); border-radius: 4px;
  background: linear-gradient(transparent, rgba(169, 139, 255, .35) 12%, rgba(230, 251, 255, .95) 47%, #fff 50%, rgba(230, 251, 255, .95) 53%, rgba(169, 139, 255, .35) 88%, transparent);
  filter: blur(.6px); box-shadow: 0 0 18px rgba(139, 233, 255, .7), 0 0 50px rgba(169, 139, 255, .5); animation: qjet 3.2s ease-in-out infinite; }
.q-jet::before, .q-jet::after { content: ''; position: absolute; left: 50%; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .9), rgba(139, 233, 255, .3) 40%, transparent 70%); }
.q-jet::before { top: 4%; animation: knot 3.2s linear infinite; }
.q-jet::after { bottom: 4%; animation: knot 3.2s linear infinite reverse; }
.q-disk { position: absolute; width: calc(var(--s) * .44); height: calc(var(--s) * .44); margin: calc(var(--s) * -.22) 0 0 calc(var(--s) * -.22); transform: scaleY(.26); }
.q-disk::before { content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 107, 214, .0), rgba(255, 211, 107, .85), rgba(255, 107, 214, .7), rgba(169, 139, 255, .2), rgba(139, 233, 255, .8), rgba(255, 211, 107, .85), rgba(255, 107, 214, .0));
  -webkit-mask: radial-gradient(circle, transparent 30%, #000 34%, #000 52%, transparent 71%); mask: radial-gradient(circle, transparent 30%, #000 34%, #000 52%, transparent 71%);
  animation: spin 7s linear infinite; filter: blur(1px); }
.q-core { width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: radial-gradient(circle, #fff 0 30%, #e6fbff 45%, rgba(139, 233, 255, .5) 70%, transparent 72%); box-shadow: 0 0 30px #fff, 0 0 70px var(--q1), 0 0 140px var(--q2); }
.q-core::before, .q-core::after { content: ''; position: absolute; left: 50%; top: 50%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent); }
.q-core::before { width: 220px; height: 1.5px; margin: -.75px 0 0 -110px; }
.q-core::after { width: 1.5px; height: 220px; margin: -110px 0 0 -.75px; background: linear-gradient(transparent, rgba(255, 255, 255, .85), transparent); }
.quasar.mini { --s: 92px; position: relative; z-index: 0; }
.quasar.mini .q-core { width: 14px; height: 14px; margin: -7px 0 0 -7px; }
.quasar.mini .q-core::before { width: 70px; margin-left: -35px; }
.quasar.mini .q-core::after { height: 70px; margin-top: -35px; }
.quasar.mini .q-jet { width: 2px; left: -1px; }
@keyframes qpulse { 50% { transform: scale(1.12); opacity: .75; } }
@keyframes qjet { 50% { opacity: .75; transform: scaleY(.94); } }
@keyframes knot { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(calc(var(--s) * .38)); opacity: 0; } }

.quick-route {
  display: grid; grid-template-columns: 1fr auto 1fr auto; gap: .5rem; align-items: center;
  padding: .55rem; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 999px;
  backdrop-filter: blur(10px); max-width: 640px; box-shadow: var(--shadow);
}
.quick-route input { background: transparent; border: 0; color: var(--ink); padding: .75rem 1rem; font: inherit; min-width: 0; }
.quick-route input::placeholder { color: var(--muted); }
.quick-route input:focus { outline: none; }
.quick-route .swap { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--sun); background: rgba(255, 194, 71, .1); border: 0; cursor: pointer; transition: transform .4s var(--ease); }
.quick-route .swap:hover { transform: rotate(180deg); }
.quick-route .swap svg { transform: rotate(90deg); }
@media (max-width: 640px) {
  .quick-route { grid-template-columns: 1fr; border-radius: 22px; }
  .quick-route .swap { justify-self: center; }
  .quick-route .swap svg { transform: none; }
  .quick-route .btn { width: 100%; }
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.2rem; color: var(--muted); font-size: .92rem; }
.hero-meta div { display: flex; align-items: center; gap: .5rem; }
.hero-meta i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px var(--ok); }

.constellation-card { position: relative; aspect-ratio: 0.86; width: 100%; max-width: 560px; justify-self: end; }
#constellation { width: 100%; height: 100%; cursor: crosshair; }
.const-hint { position: absolute; left: 0; right: 0; bottom: -.4rem; text-align: center; font-size: .85rem; color: var(--muted); }
.const-panel {
  position: absolute; left: 50%; bottom: 2.2rem; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  width: min(92%, 380px); padding: 1.1rem 1.2rem; border-radius: var(--radius-s); background: rgba(11, 17, 36, .92);
  border: 1px solid rgba(255, 194, 71, .4); box-shadow: var(--glow-sun); transition: all .45s var(--ease);
}
.const-panel.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.const-panel h4 { font-size: 1rem; margin-bottom: .35rem; padding-right: 2rem; }
.const-panel .close { position: absolute; top: .6rem; right: .6rem; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); background: none; color: var(--ink-2); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.const-panel .close:hover { color: var(--sun); border-color: var(--sun); }
.const-panel p { font-size: .9rem; margin-bottom: .7rem; }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .constellation-card { justify-self: center; max-width: 480px; }
  .hero > .quasar { --s: 420px; right: -170px; top: -120px; opacity: .8; }
}

/* ---------- Seiten-Hero (Unterseiten) ---------- */
.page-hero { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem); overflow: hidden; }
.page-hero h1 { font-size: clamp(2.1rem, 4.8vw, 3.9rem); max-width: 18ch; }
.page-hero .lead { margin-top: 1.2rem; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1.4rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--sun); }
/* Pulsar-Deko (Unterseiten) */
.pulsar-deco { position: absolute; right: -80px; top: 50%; width: 460px; height: 460px; transform: translateY(-50%); pointer-events: none; z-index: -1; }
.pulsar-deco > div { position: absolute; inset: 0; border-radius: 50%; }
.p-ring { border: 1px dashed rgba(139, 233, 255, .2); transform: rotate(-25deg) scaleY(.42); }
.p-ring.r2 { inset: 14%; border-style: solid; border-color: rgba(169, 139, 255, .22); transform: rotate(-25deg) scaleY(.42); }
.p-ring.r3 { inset: 30%; border-color: rgba(255, 107, 214, .18); transform: rotate(65deg) scaleY(.5); }
.p-beams { inset: -10% !important; background: conic-gradient(from 0deg, transparent 0 82deg, rgba(139, 233, 255, .38) 88deg, rgba(230, 251, 255, .6) 90deg, rgba(139, 233, 255, .38) 92deg, transparent 98deg 262deg, rgba(169, 139, 255, .38) 268deg, rgba(230, 251, 255, .55) 270deg, rgba(169, 139, 255, .38) 272deg, transparent 278deg);
  -webkit-mask: radial-gradient(circle, #000 8%, rgba(0, 0, 0, .6) 30%, transparent 64%); mask: radial-gradient(circle, #000 8%, rgba(0, 0, 0, .6) 30%, transparent 64%); animation: spin 5.5s linear infinite; }
.p-core { inset: 46% !important; background: radial-gradient(circle, #fff 0 35%, #e6fbff 50%, rgba(139, 233, 255, .4) 75%, transparent 78%); box-shadow: 0 0 24px #fff, 0 0 60px var(--q1), 0 0 120px var(--q2); animation: qpulse 1.6s ease-in-out infinite; }
.p-core::before, .p-core::after { content: ''; position: absolute; left: 50%; top: 50%; }
.p-core::before { width: 300px; height: 1px; margin: -.5px 0 0 -150px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent); }
.p-core::after { width: 1px; height: 300px; margin: -150px 0 0 -.5px; background: linear-gradient(transparent, rgba(255, 255, 255, .8), transparent); }
@media (max-width: 860px) { .pulsar-deco { opacity: .4; right: -220px; } }

/* ---------- Karten ---------- */
.grid { display: grid; gap: 1.4rem; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
  position: relative; padding: 1.8rem; border-radius: var(--radius); background: var(--panel);
  border: 1px solid var(--line); backdrop-filter: blur(8px); overflow: hidden;
  transition: transform .4s var(--ease), border-color .3s;
}
.card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 194, 71, .14), transparent 45%);
}
.card:hover::before { opacity: 1; }
.card.lift:hover { transform: translateY(-6px); border-color: rgba(255, 194, 71, .35); }
.card h3 { margin-top: .2rem; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.2rem;
  background: linear-gradient(140deg, rgba(255, 194, 71, .2), rgba(255, 138, 61, .05)); border: 1px solid rgba(255, 194, 71, .3); color: var(--sun);
}
.card .icon.polar { background: linear-gradient(140deg, rgba(127, 220, 255, .2), rgba(79, 139, 255, .05)); border-color: rgba(127, 220, 255, .3); color: var(--polar); }
.card .icon svg { width: 26px; height: 26px; }
.card .more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; margin-top: .6rem; }
.card .more::after { content: '→'; transition: transform .3s var(--ease); }
.card:hover .more::after { transform: translateX(5px); }
a.card { text-decoration: none; color: inherit; display: block; }

/* Planeten-Karten (Startseite) */
.planet-card { padding: 2.2rem 1.9rem 2rem; min-height: 340px; display: flex; flex-direction: column; }
.cosmo { position: relative; width: 92px; height: 92px; margin-bottom: 1.6rem; transition: transform .8s var(--ease); }
.planet-card:hover .cosmo { transform: scale(1.12) rotate(12deg); }
.cosmo .spk, .giant::before, .giant::after { content: ''; position: absolute; left: 50%; top: 50%; }
.giant { border-radius: 50%; }
.giant .orb { position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle at 42% 40%, #fff 0 8%, #ffd0c4 20%, #ff6b5e 46%, #b3122a 72%, transparent 74%); box-shadow: 0 0 40px rgba(239, 51, 64, .6), 0 0 90px rgba(255, 107, 94, .3); animation: qpulse 6s ease-in-out infinite; }
.giant::before { width: 120px; height: 1.5px; margin: -.75px 0 0 -60px; background: linear-gradient(90deg, transparent, rgba(255, 200, 190, .9), transparent); }
.giant::after { width: 1.5px; height: 120px; margin: -60px 0 0 -.75px; background: linear-gradient(transparent, rgba(255, 200, 190, .9), transparent); }
.binary .pair { position: absolute; inset: 0; animation: spin 7s linear infinite; }
.binary .pair i { position: absolute; top: 50%; border-radius: 50%; }
.binary .pair i:first-child { left: 14%; width: 30px; height: 30px; margin-top: -15px; background: radial-gradient(circle, #fff 0 20%, #ffe68a 45%, rgba(255, 206, 0, .35) 70%, transparent 72%); box-shadow: 0 0 30px rgba(255, 206, 0, .6); }
.binary .pair i:last-child { right: 16%; width: 18px; height: 18px; margin-top: -9px; background: radial-gradient(circle, #fff 0 25%, #bfefff 50%, rgba(139, 233, 255, .3) 72%, transparent 74%); box-shadow: 0 0 22px rgba(139, 233, 255, .7); }
.binary::before { content: ''; position: absolute; inset: 10%; border-radius: 50%; border: 1px dashed rgba(255, 230, 138, .3); }
.pulsar-mini { border-radius: 50%; }
.pulsar-mini .p-beams { position: absolute; inset: -14%; border-radius: 50%; }
.pulsar-mini .p-core { position: absolute; inset: 40%; border-radius: 50%; }
.pulsar-mini .p-core::before { width: 110px; margin-left: -55px; }
.pulsar-mini .p-core::after { height: 110px; margin-top: -55px; }
.planet-card .more { margin-top: auto; }

/* Stat-Leiste */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.stat { padding: 2rem 1.6rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 700; line-height: 1; color: var(--ink); }
.stat .num small { font-size: .45em; color: var(--sun); margin-left: .15em; }
.stat p { margin: .7rem 0 0; font-size: .92rem; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* Zweispaltig */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Listen */
.ticks { list-style: none; padding: 0; margin: 0 0 1rem; }
.ticks li { position: relative; padding: .45rem 0 .45rem 2rem; color: var(--ink-2); }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .78rem; width: 14px; height: 14px; background: var(--sun);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.ticks.polar li::before { background: var(--polar); }

/* Badges / Chips */
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 700; border: 1px solid var(--line-strong); color: var(--ink-2); background: rgba(255, 255, 255, .03); }
.chip.at { border-color: rgba(239, 51, 64, .5); color: #ffb3b9; }
.chip.de { border-color: rgba(255, 206, 0, .45); color: #ffe680; }
.chip.ok { border-color: rgba(94, 230, 168, .45); color: var(--ok); }
.chip.warn { border-color: rgba(255, 181, 71, .5); color: var(--warn); }
.flag { display: inline-block; width: 22px; height: 15px; border-radius: 3px; vertical-align: -2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.flag.at { background: linear-gradient(#ef3340 0 33.3%, #fff 33.3% 66.6%, #ef3340 66.6%); }
.flag.de { background: linear-gradient(#000 0 33.3%, #dd0000 33.3% 66.6%, #ffce00 66.6%); }

/* Tabellen */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { padding: 1rem 1.2rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, .02); }
tr:last-child td { border-bottom: 0; }
td.price { font-weight: 800; color: var(--sun); white-space: nowrap; }
td .sub { display: block; font-size: .85rem; color: var(--muted); }
tbody tr { transition: background .2s; }
tbody tr:hover { background: rgba(255, 194, 71, .05); }

/* Hinweisboxen */
.note { display: flex; gap: 1rem; padding: 1.2rem 1.4rem; border-radius: var(--radius-s); border: 1px solid rgba(127, 220, 255, .3); background: rgba(127, 220, 255, .06); color: var(--ink-2); font-size: .95rem; }
.note.sun { border-color: rgba(255, 194, 71, .35); background: rgba(255, 194, 71, .07); }
.note.alert { border-color: rgba(239, 51, 64, .4); background: rgba(239, 51, 64, .07); }
.note svg { flex: none; width: 22px; height: 22px; color: var(--polar); margin-top: 2px; }
.note.sun svg { color: var(--sun); }
.note.alert svg { color: #ff7b85; }
.note p { margin: 0; }

/* Timeline */
.timeline { position: relative; padding-left: 2.2rem; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--sun), var(--polar-2)); border-radius: 2px; }
.tl-item { position: relative; padding-bottom: 1.8rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ''; position: absolute; left: -2.2rem; top: .35rem; width: 20px; height: 20px; border-radius: 50%; background: var(--night); border: 2px solid var(--sun); box-shadow: 0 0 14px rgba(255, 194, 71, .5); }
.tl-item h4 { font-family: var(--font-body); font-weight: 800; font-size: 1.02rem; margin-bottom: .2rem; letter-spacing: 0; }
.tl-item .date { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--sun); }
.tl-item p { margin: .2rem 0 0; }

/* ---------- Vignetten-Finder ---------- */
.finder { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: stretch; }
@media (max-width: 900px) { .finder { grid-template-columns: 1fr; } }
.finder-controls { display: flex; flex-direction: column; gap: 1.6rem; }
.field label, .field .label { display: block; font-weight: 700; color: var(--ink); margin-bottom: .55rem; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: .35rem; }
.range-row { display: flex; align-items: center; gap: 1rem; }
.range-row output { min-width: 6.2rem; white-space: nowrap; text-align: right; font-family: var(--font-display); font-size: 1.4rem; color: var(--sun); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--sun) var(--fill, 0%), rgba(255, 255, 255, .12) var(--fill, 0%)); cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle, #fff6d8, var(--sun) 60%); box-shadow: 0 0 0 5px rgba(255, 194, 71, .2), 0 0 20px var(--sun); border: 0; }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 5px rgba(255, 194, 71, .2), 0 0 20px var(--sun); border: 0; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { border: 0; background: none; color: var(--ink-2); font: inherit; font-weight: 700; font-size: .92rem; padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer; transition: all .25s; }
.seg button[aria-pressed="true"] { background: linear-gradient(120deg, #e9fbff, var(--q1) 45%, var(--q2)); color: var(--night); box-shadow: 0 0 18px rgba(139, 233, 255, .4); }
.finder-result { display: flex; flex-direction: column; gap: 1rem; }
.opt-bars { display: flex; flex-direction: column; gap: .7rem; }
.opt-bar { position: relative; padding: .9rem 1.1rem; border-radius: var(--radius-s); border: 1px solid var(--line); background: rgba(255, 255, 255, .025); overflow: hidden; transition: border-color .3s, transform .3s var(--ease); }
.opt-bar .fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(127, 220, 255, .14), rgba(127, 220, 255, .03)); transition: width .7s var(--ease); }
.opt-bar.best { border-color: rgba(255, 194, 71, .6); transform: scale(1.015); box-shadow: 0 0 34px -6px rgba(255, 194, 71, .45); }
.opt-bar.best .fill { background: linear-gradient(90deg, rgba(255, 194, 71, .28), rgba(255, 138, 61, .05)); }
.opt-bar .row { position: relative; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.opt-bar .name { font-weight: 700; }
.opt-bar .val { font-family: var(--font-display); font-weight: 600; white-space: nowrap; }
.opt-bar .det { position: relative; font-size: .83rem; color: var(--muted); }
.opt-bar.best .name::after { content: '★ Empfehlung'; margin-left: .6rem; font-size: .72rem; color: var(--sun); letter-spacing: .06em; text-transform: uppercase; }
.verdict { padding: 1.3rem 1.4rem; border-radius: var(--radius-s); background: linear-gradient(120deg, rgba(255, 194, 71, .14), rgba(255, 138, 61, .04)); border: 1px solid rgba(255, 194, 71, .35); }
.verdict strong { font-family: var(--font-display); font-size: 1.15rem; display: block; margin-bottom: .2rem; }
.verdict p { margin: 0; font-size: .93rem; }

/* ---------- Mautkarte (SVG) ---------- */
.mapsvg-wrap { position: relative; border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(circle at 50% 40%, rgba(79, 139, 255, .1), transparent 70%), var(--panel); padding: 1rem; }
.mapsvg { width: 100%; height: auto; }
.mapsvg .land { fill: rgba(127, 160, 255, .07); stroke: rgba(160, 190, 255, .55); stroke-width: 1.4; stroke-dasharray: 3 4; }
.mapsvg .node { cursor: pointer; }
.mapsvg .node circle.halo { fill: rgba(255, 194, 71, .16); transition: r .3s; }
.mapsvg .node circle.core { fill: var(--sun); filter: drop-shadow(0 0 6px var(--sun)); }
.mapsvg .node.polar circle.core { fill: var(--polar); filter: drop-shadow(0 0 6px var(--polar)); }
.mapsvg .node.polar circle.halo { fill: rgba(127, 220, 255, .14); }
.mapsvg .node:hover circle.halo, .mapsvg .node.active circle.halo { r: 16; }
.mapsvg .node text { fill: var(--ink-2); font: 600 11px var(--font-body); pointer-events: none; }
.mapsvg .city { fill: rgba(255, 255, 255, .5); }
.mapsvg .city-label { fill: var(--muted); font: 500 10px var(--font-body); }
.map-info { min-height: 120px; }
.map-info h3 { margin-bottom: .3rem; }
.map-info .price-big { font-family: var(--font-display); font-size: 2rem; color: var(--sun); }

/* ---------- Akkordeon / FAQ ---------- */
.faq-tools { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 2rem; }
.search { flex: 1 1 280px; position: relative; }
.search input { width: 100%; padding: 1rem 1.2rem 1rem 3rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); font: inherit; }
.search input:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 4px rgba(255, 194, 71, .15); }
.search svg { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.acc { display: flex; flex-direction: column; gap: .8rem; }
.acc-item { border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--panel); overflow: hidden; transition: border-color .3s; }
.acc-item.open { border-color: rgba(255, 194, 71, .4); }
.acc-item[hidden] { display: none; }
.acc-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; background: none; border: 0; color: var(--ink); font: inherit; font-weight: 700; font-size: 1.04rem; text-align: left; cursor: pointer; }
.acc-btn .tag { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: .6rem; }
.acc-btn .pm { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; transition: transform .4s var(--ease), background .3s; }
.acc-btn .pm::before, .acc-btn .pm::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--sun); transform: translate(-50%, -50%); }
.acc-btn .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s; }
.acc-item.open .pm { transform: rotate(180deg); background: rgba(255, 194, 71, .12); }
.acc-item.open .pm::after { transform: translate(-50%, -50%) rotate(0); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel .inner { padding: 0 1.4rem 1.3rem; }
.acc-panel .inner p:last-child { margin-bottom: 0; }
.empty { text-align: center; color: var(--muted); padding: 2rem; display: none; }

/* ---------- Checkliste ---------- */
.checklist { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: center; }
@media (max-width: 760px) { .checklist { grid-template-columns: 1fr; } }
.progress-ring { position: relative; width: 220px; height: 220px; margin-inline: auto; }
.progress-ring svg { transform: rotate(-90deg); }
.progress-ring .track { stroke: rgba(255, 255, 255, .08); }
.progress-ring .bar { stroke: url(#sunGrad); stroke-linecap: round; transition: stroke-dashoffset .7s var(--ease); }
.progress-ring .label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.progress-ring .label b { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; }
.progress-ring .label span { font-size: .85rem; color: var(--muted); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
@media (max-width: 560px) { .checks { grid-template-columns: 1fr; } }
.check { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1rem; border-radius: var(--radius-s); border: 1px solid var(--line); background: rgba(255, 255, 255, .025); cursor: pointer; transition: border-color .25s, background .25s; }
.check:hover { border-color: var(--line-strong); }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line-strong); display: grid; place-items: center; transition: all .25s; margin-top: 2px; }
.check .box svg { width: 14px; height: 14px; color: var(--night); opacity: 0; transform: scale(.4); transition: all .25s var(--ease); }
.check input:checked + .box { background: var(--sun); border-color: var(--sun); box-shadow: 0 0 14px rgba(255, 194, 71, .5); }
.check input:checked + .box svg { opacity: 1; transform: none; }
.check input:focus-visible + .box { outline: 2px solid var(--sun); outline-offset: 2px; }
.check.done { border-color: rgba(255, 194, 71, .3); background: rgba(255, 194, 71, .05); }
.check span.t { font-size: .95rem; color: var(--ink-2); }
.check span.t b { display: block; color: var(--ink); }

/* ---------- Vergleichskarten DE/AT ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.compare > div { padding: 2rem; background: var(--panel); }
.compare > div + div { border-left: 1px solid var(--line); }
.compare h3 { display: flex; align-items: center; gap: .6rem; }
.compare dl { margin: 0; display: grid; gap: .9rem; }
.compare dt { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.compare dd { margin: .1rem 0 0; color: var(--ink); font-weight: 600; }
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } .compare > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- Routenplaner ---------- */
.planner { display: grid; grid-template-columns: 410px 1fr; gap: 1.4rem; align-items: start; }
@media (max-width: 1040px) { .planner { grid-template-columns: 1fr; } }
.planner-panel { padding: 1.5rem; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-strong); position: sticky; top: 92px; }
@media (max-width: 1040px) { .planner-panel { position: static; } }
.wp-list { display: flex; flex-direction: column; gap: .55rem; position: relative; }
.wp { position: relative; display: flex; align-items: center; gap: .6rem; }
.wp .dot { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--polar); background: var(--night); }
.wp.start .dot { border-color: var(--ok); }
.wp.end .dot { background: var(--sun); border-color: var(--sun); box-shadow: 0 0 10px var(--sun); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); width: 18px; height: 18px; border: 0; margin: 0 -2px; }
.wp .ac { position: relative; flex: 1; }
.wp input, .form input, .form textarea, .form select, .planner select {
  width: 100%; padding: .85rem 1rem; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(6, 9, 20, .6); color: var(--ink); font: inherit; font-size: .97rem;
}
.wp input:focus, .form input:focus, .form textarea:focus, .form select:focus, .planner select:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px rgba(255, 194, 71, .15); }
.wp .rm { flex: none; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; }
.wp .rm:hover { color: #ff7b85; border-color: #ff7b85; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 1000; list-style: none; margin: 0; padding: .3rem; background: #0d1430; border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow); display: none; max-height: 280px; overflow-y: auto; }
.suggest.show { display: block; }
.suggest li { padding: .6rem .8rem; border-radius: 8px; cursor: pointer; font-size: .92rem; color: var(--ink-2); }
.suggest li small { display: block; font-size: .78rem; }
.suggest li:hover, .suggest li.hl { background: rgba(255, 194, 71, .12); color: var(--ink); }
.planner-actions { display: flex; gap: .6rem; margin: .9rem 0 1.2rem; flex-wrap: wrap; }
.linkbtn { background: none; border: 0; color: var(--polar); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; padding: .3rem 0; }
.linkbtn:hover { color: var(--sun); }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-bottom: 1.2rem; }
.opts .full { grid-column: 1 / -1; }
.opts label { display: block; font-size: .82rem; font-weight: 700; color: var(--muted); margin-bottom: .35rem; letter-spacing: .02em; }
.toggle { display: flex; align-items: center; gap: .7rem; cursor: pointer; font-size: .93rem; color: var(--ink-2); }
.toggle input { position: absolute; opacity: 0; }
.opts .toggle { display: flex; margin: 0; color: var(--ink-2); font-size: .93rem; font-weight: 600; letter-spacing: 0; }
.toggle .sw { display: inline-block; width: 42px; height: 24px; border-radius: 99px; background: rgba(255, 255, 255, .12); position: relative; transition: background .25s; flex: none; }
.toggle .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.toggle input:checked + .sw { background: linear-gradient(120deg, var(--q1), var(--q2)); }
.toggle input:checked + .sw::after { transform: translateX(18px); }
.toggle input:focus-visible + .sw { outline: 2px solid var(--sun); outline-offset: 2px; }
.planner .btn.go { width: 100%; }

.map-stage { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); height: min(74vh, 720px); min-height: 460px; background: radial-gradient(70% 60% at 30% 30%, rgba(79, 139, 255, .12), transparent 70%), radial-gradient(50% 50% at 80% 80%, rgba(169, 139, 255, .12), transparent 70%), rgba(6, 9, 20, .55); }
#map { position: absolute; inset: 0; }
.map-loading { position: absolute; z-index: 600; top: 1rem; left: 50%; transform: translateX(-50%); padding: .55rem 1rem; border-radius: 999px; background: rgba(11, 17, 36, .92); border: 1px solid var(--line-strong); font-size: .88rem; display: none; align-items: center; gap: .6rem; }
.map-loading.show { display: flex; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 194, 71, .25); border-top-color: var(--sun); animation: spin .8s linear infinite; }
.map-tip { position: absolute; z-index: 450; left: 1rem; bottom: 1rem; padding: .5rem .9rem; border-radius: 999px; background: rgba(11, 17, 36, .85); border: 1px solid var(--line); font-size: .8rem; color: var(--muted); pointer-events: none; }

.results { margin-top: 1.4rem; display: none; }
.results.show { display: block; animation: rise .6s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.alt-tabs { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.alt-tab { padding: .75rem 1.1rem; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); font: inherit; cursor: pointer; text-align: left; transition: all .25s; }
.alt-tab b { display: block; color: var(--ink); font-size: 1.02rem; }
.alt-tab small { font-size: .8rem; }
.alt-tab[aria-pressed="true"] { border-color: var(--sun); box-shadow: 0 0 24px -6px rgba(255, 194, 71, .5); background: rgba(255, 194, 71, .08); }
.res-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 860px) { .res-grid { grid-template-columns: repeat(2, 1fr); } }
.kpi { padding: 1.2rem 1.3rem; border-radius: var(--radius-s); background: var(--panel); border: 1px solid var(--line); }
.kpi .k { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kpi .v { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; margin-top: .3rem; line-height: 1.15; }
.kpi .v small { font-family: var(--font-body); font-size: .8rem; color: var(--muted); font-weight: 600; }
.kpi.sun { border-color: rgba(255, 194, 71, .45); background: linear-gradient(135deg, rgba(255, 194, 71, .14), rgba(255, 138, 61, .03)); }
.kpi.sun .v { color: var(--sun); }
.countrybar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, .06); margin: .8rem 0 .6rem; }
.countrybar span { height: 100%; transition: width .8s var(--ease); }
.countrybar .de { background: linear-gradient(90deg, #a88700, var(--de)); }
.countrybar .at { background: linear-gradient(90deg, #a51f2a, var(--at)); }
.countrybar .xx { background: linear-gradient(90deg, #3c4a7d, #6d7cb3); }
.legend { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .85rem; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .4rem; }
.toll-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.toll-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); font-size: .95rem; }
.toll-list li b { color: var(--ink); }
.toll-list li .p { font-weight: 800; color: var(--sun); white-space: nowrap; }
.toll-list li small { display: block; }
.res-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem; }
@media (max-width: 860px) { .res-cols { grid-template-columns: 1fr; } }
.res-cols .card { padding: 1.4rem; }
.err { color: #ff9aa2; font-size: .92rem; margin-top: .8rem; display: none; }
.err.show { display: block; }

/* ---------- Formular ---------- */
.form { display: grid; gap: 1rem; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form .row2 { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .4rem; }
.form textarea { min-height: 160px; resize: vertical; }
.contact-line { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-line:last-child { border-bottom: 0; }
.contact-line .icon { margin: 0; width: 46px; height: 46px; flex: none; }
.contact-line .k { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--muted); }
.contact-line a, .contact-line .v { font-size: 1.08rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.contact-line a:hover { color: var(--sun); }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.5rem; margin-top: 2.6rem; }
.legal h3 { font-size: 1.08rem; margin-top: 1.8rem; font-family: var(--font-body); font-weight: 800; letter-spacing: 0; }
.legal address { font-style: normal; color: var(--ink); line-height: 1.8; }
.legal ul { color: var(--ink-2); padding-left: 1.2rem; }

/* ---------- CTA-Band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: calc(var(--radius) + 8px); padding: clamp(2.5rem, 6vw, 4.5rem); border: 1px solid rgba(139, 233, 255, .3); background: radial-gradient(600px 300px at 90% 0%, rgba(169, 139, 255, .3), transparent 70%), radial-gradient(500px 300px at 0% 100%, rgba(79, 139, 255, .25), transparent 70%), var(--night-2); }
.cta-band h2 { max-width: 20ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.cta-band > .quasar { --s: 380px; right: -110px; top: -150px; z-index: 0; opacity: .85; }
.cta-band > *:not(.quasar) { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 3rem; border-top: 1px solid var(--line); background: linear-gradient(to bottom, transparent, rgba(6, 9, 20, .9)); padding: 4rem 0 2rem; font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--font-body); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.site-footer address { font-style: normal; color: var(--ink-2); line-height: 1.75; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.disclaimer { max-width: 60ch; }

/* ---------- Reveal-Animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 1.1rem 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; gap: 3rem; width: max-content; animation: marquee 45s linear infinite; font-family: var(--font-display); font-size: 1.05rem; color: var(--muted); white-space: nowrap; }
.marquee .track span::before { content: '✦'; color: var(--sun); margin-right: 3rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

.mt0 { margin-top: 0; } .mt1 { margin-top: 1rem; } .mt2 { margin-top: 2rem; } .mt3 { margin-top: 3rem; }
.mb0 { margin-bottom: 0; } .muted { color: var(--muted); } .center { text-align: center; }
.sr-only { position: absolute; 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) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Ergänzungen ---------- */
[hidden] { display: none !important; }
button.chip { cursor: pointer; font-family: inherit; transition: border-color .2s, color .2s, background .2s; }
button.chip:hover { border-color: var(--sun); color: var(--sun); background: rgba(255, 194, 71, .08); }
.seg button:not([aria-pressed="true"]):hover { color: var(--ink); }

/* ---------- StarMap ---------- */
#map { position: absolute; inset: 0; }
.starmap { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.starmap:focus { outline: none; }
.starmap:focus-visible { outline: 2px solid var(--q1); outline-offset: -4px; }
.starmap.dragging { cursor: grabbing; }
.sm-country { fill: url(#sm-land); stroke: rgba(139, 233, 255, .6); stroke-width: 1.3; }
.sm-at { stroke: rgba(255, 140, 200, .7); }
.sm-state { fill: none; stroke: rgba(170, 190, 255, .2); stroke-width: .8; stroke-dasharray: 2 4; }
.sm-lake { fill: rgba(79, 139, 255, .28); stroke: rgba(139, 233, 255, .4); stroke-width: .7; }
.sm-river { fill: none; stroke: rgba(90, 150, 255, .3); stroke-width: 1; }
.sm-net-a, .sm-net-at, .sm-net-b { fill: none; stroke: rgba(200, 220, 255, .3); stroke-width: 1.2; stroke-linecap: round; }
.sm-net-at { stroke: rgba(255, 107, 214, .42); }
.sm-net-b { stroke: rgba(200, 220, 255, .3); stroke-dasharray: 3 3; }
.sm-alt-path { fill: none; stroke: rgba(139, 233, 255, .55); stroke-width: 4; stroke-dasharray: 7 6; cursor: pointer; transition: stroke .2s; }
.sm-alt-path:hover { stroke: rgba(230, 251, 255, .9); }
.sm-route path { fill: none; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.sm-r-glow3 { stroke: rgba(169, 139, 255, .14); stroke-width: 24; }
.sm-r-glow2 { stroke: rgba(139, 233, 255, .25); stroke-width: 12; }
.sm-r-glow1 { stroke: rgba(230, 251, 255, .6); stroke-width: 5; }
.sm-r-core { stroke: #fff; stroke-width: 2; }
.sm-r-vig { stroke: var(--q3); stroke-width: 3.6; filter: drop-shadow(0 0 4px rgba(255, 107, 214, .9)); }
.sm-photon { fill: #fff; filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 8px var(--q1)); pointer-events: none; }
.sm-city { cursor: pointer; }
.sm-city .halo { opacity: .55; transition: opacity .3s; animation: twinkle 4s ease-in-out infinite; }
.sm-city:nth-child(3n) .halo { animation-delay: -1.3s; } .sm-city:nth-child(3n+1) .halo { animation-delay: -2.6s; }
.sm-city .core { fill: #fff; transition: fill .2s; }
.sm-city.t2 .core { fill: rgba(225, 235, 255, .9); }
.sm-city.border .core { fill: var(--q1); }
.sm-city .lbl { fill: var(--ink-2); font: 600 12px var(--font-body); paint-order: stroke; stroke: rgba(6, 9, 20, .9); stroke-width: 3.5px; stroke-linejoin: round; pointer-events: none; }
.sm-city.t1 .lbl { fill: var(--ink); font-weight: 700; font-size: 13px; }
.sm-city.border .lbl { fill: var(--q1); font-size: 11px; }
.starmap[data-zoom="1"] .t2 .lbl, .starmap[data-zoom="1"] .t3 .lbl, .starmap[data-zoom="2"] .t3 .lbl { display: none; }
.sm-city.on .lbl, .sm-city.hover .lbl { display: block !important; fill: #fff; }
.sm-city.on .core { fill: var(--sun); }
.sm-city.hover .halo { opacity: 1; }
.sm-city.hover .core { fill: var(--q1); }
.sm-toll rect { fill: rgba(255, 211, 107, .12); stroke: rgba(255, 211, 107, .75); stroke-width: 1.4; }
.sm-toll.on rect { fill: var(--sun); stroke: #fff; filter: drop-shadow(0 0 6px var(--sun)); }
.sm-mark { pointer-events: none; }
.sm-mark .q-rot { animation: qspin 10s linear infinite; }
.sm-mark .q-jet { animation: qjet 2.4s ease-in-out infinite; }
.sm-mark .core { fill: var(--sun); }
.sm-mark .spike { stroke: rgba(255, 255, 255, .65); stroke-width: 1; }
@keyframes qspin { from { transform: rotate(-35deg); } to { transform: rotate(325deg); } }
@keyframes twinkle { 50% { opacity: .25; } }
.map-ctrl { position: absolute; top: 1rem; left: 1rem; z-index: 5; display: flex; flex-direction: column; gap: .4rem; }
.map-ctrl button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(11, 17, 36, .85); color: var(--ink); font-size: 1.25rem; cursor: pointer; backdrop-filter: blur(6px); transition: border-color .2s, color .2s; }
.map-ctrl button:hover { border-color: var(--q1); color: var(--q1); }
.map-legend { position: absolute; right: 1rem; top: 1rem; z-index: 5; display: flex; flex-direction: column; gap: .35rem; padding: .7rem .9rem; border-radius: 14px; background: rgba(11, 17, 36, .78); border: 1px solid var(--line); font-size: .78rem; color: var(--ink-2); backdrop-filter: blur(6px); }
.map-legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; margin-right: .5rem; vertical-align: middle; }
.lg-route { background: #fff; box-shadow: 0 0 8px var(--q1); }
.lg-vig { background: var(--q3); box-shadow: 0 0 6px var(--q3); }
.lg-at { background: rgba(255, 107, 214, .5); }
.lg-toll { width: 9px !important; height: 9px !important; background: var(--sun); transform: rotate(45deg); }
@media (max-width: 640px) { .map-legend { display: none; } }
.map-pop { position: absolute; z-index: 6; width: 236px; padding: .9rem 1rem; border-radius: 14px; background: rgba(13, 20, 48, .96); border: 1px solid rgba(139, 233, 255, .4); box-shadow: 0 0 40px -8px rgba(139, 233, 255, .45); }
.map-pop b { display: block; font-family: var(--font-display); font-size: .95rem; }
.map-pop small { display: block; color: var(--muted); font-size: .78rem; margin-bottom: .6rem; }
.pop-actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.pop-actions button { flex: 1 1 auto; padding: .45rem .6rem; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04); color: var(--ink); font: 700 .78rem var(--font-body); cursor: pointer; }
.pop-actions button:hover { border-color: var(--q1); color: var(--q1); }
.map-tip { position: absolute; z-index: 4; left: 1rem; bottom: 1rem; padding: .5rem .9rem; border-radius: 999px; background: rgba(11, 17, 36, .85); border: 1px solid var(--line); font-size: .8rem; color: var(--muted); pointer-events: none; }
.suggest li .flag { width: 16px; height: 11px; vertical-align: -1px; margin-right: .3rem; }
.wp.start .dot { border-color: var(--q1); box-shadow: 0 0 10px var(--q1); }
.map-tip { transition: opacity .5s; }
.map-tip.gone { opacity: 0; }
@media (max-width: 640px) { .map-tip { font-size: .72rem; right: 1rem; text-align: center; } }
.quasar.mini .q-glow { background: radial-gradient(circle, rgba(230, 251, 255, .8), rgba(139, 233, 255, .3) 22%, rgba(169, 139, 255, .18) 45%, transparent 70%); }

/* ---------- 404 · Schwarzes Loch ---------- */
.lost { min-height: calc(100vh - 74px); display: grid; align-items: center; padding: clamp(3rem, 7vw, 5rem) 0; overflow: hidden; }
.lost-wrap { text-align: center; display: flex; flex-direction: column; align-items: center; }
.center-eyebrow { justify-content: center; }
.lost-code { display: flex; align-items: center; justify-content: center; gap: clamp(.4rem, 2vw, 1.4rem); font-size: clamp(6rem, 22vw, 15rem); line-height: .9; margin: .5rem 0 1.5rem; letter-spacing: -.04em;
  background: linear-gradient(180deg, #fff, #c9d4ff 60%, rgba(169, 139, 255, .6)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lost-code > span:not(.bh) { transition: transform .8s var(--ease), filter .8s var(--ease), opacity .8s; display: inline-block; }
.bh { --b: clamp(7.5rem, 20vw, 13.5rem); position: relative; display: inline-block; width: var(--b); height: var(--b); cursor: pointer; flex: none; transition: transform .6s var(--ease); }
.bh > span { position: absolute; inset: 0; border-radius: 50%; display: block; }
.bh-lens { inset: -45% !important; background: radial-gradient(circle, transparent 30%, rgba(139, 233, 255, .1) 36%, rgba(169, 139, 255, .14) 44%, rgba(255, 107, 214, .06) 56%, transparent 70%); animation: qpulse 6s ease-in-out infinite; }
.bh-disk { inset: -38% -70% !important; border-radius: 50%; transform: rotate(-14deg) scaleY(.24);
  background: conic-gradient(from 0deg, rgba(255, 211, 107, .95), rgba(255, 107, 214, .75), rgba(169, 139, 255, .35), rgba(139, 233, 255, .8), rgba(255, 243, 196, .95), rgba(255, 107, 214, .6), rgba(255, 211, 107, .95));
  -webkit-mask: radial-gradient(circle, transparent 33%, #000 36%, #000 50%, transparent 70%); mask: radial-gradient(circle, transparent 33%, #000 36%, #000 50%, transparent 70%); filter: blur(1.5px); }
.bh-disk::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: spin 4s linear infinite; mix-blend-mode: screen; opacity: .6; }
.bh-ring { inset: -6% !important; background: conic-gradient(from 90deg, rgba(255, 243, 196, .95), rgba(255, 107, 214, .6), rgba(139, 233, 255, .9), rgba(255, 211, 107, .5), rgba(255, 243, 196, .95));
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 64%, #000 69%, transparent 72%); mask: radial-gradient(circle, transparent 62%, #000 64%, #000 69%, transparent 72%); animation: spin 2.6s linear infinite; filter: drop-shadow(0 0 10px rgba(255, 211, 107, .7)); }
.bh-core { inset: 4% !important; background: radial-gradient(circle, #000 0 62%, #05060d 70%, transparent 72%); box-shadow: 0 0 60px 10px rgba(0, 0, 0, .9), inset 0 0 30px rgba(0, 0, 0, 1); }
.bh:hover { transform: scale(1.06); }
.bh:hover .bh-ring { animation-duration: 1.1s; }
.lost-title { font-size: clamp(1.4rem, 3.2vw, 2.3rem); max-width: 22ch; margin-inline: auto; }
.lost-lead { margin: 1rem auto 2rem; }
.lost-path { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; padding: .15em .5em; border-radius: 8px; background: rgba(139, 233, 255, .1); border: 1px solid rgba(139, 233, 255, .25); color: var(--q1); word-break: break-all; }
.lost-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-bottom: 2.4rem; }
.lost-form { width: 100%; margin-inline: auto; }
.lost-links { margin-top: 2.6rem; }
.lost-links ul { list-style: none; padding: 0; margin: .8rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.lost-links a { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: .92rem; transition: all .25s var(--ease); }
.lost-links a svg { width: 13px; height: 13px; color: var(--sun); transition: transform .5s var(--ease); }
.lost-links a:hover { color: var(--ink); border-color: var(--q1); transform: translateY(-2px); box-shadow: 0 0 22px -6px rgba(139, 233, 255, .6); }
.lost-links a:hover svg { transform: rotate(90deg) scale(1.3); }
.lost-fact { margin-top: 2.4rem; min-height: 3em; max-width: 56ch; font-size: .9rem; color: var(--muted); transition: opacity .5s; }
.lost-fact b { color: var(--q1); }
/* Spaghettifizierung */
.lost.swallow .lost-code > span:not(.bh):first-child { transform: translateX(60%) scaleX(.1) skewX(-30deg); filter: blur(6px); opacity: 0; }
.lost.swallow .lost-code > span:not(.bh):last-child { transform: translateX(-60%) scaleX(.1) skewX(30deg); filter: blur(6px); opacity: 0; }
.lost.swallow .bh { transform: scale(1.25); }
