/* ============ THEMES (Auswahl in js/config.js -> design.theme) ============ */
:root, [data-theme="solana"] {
  --bg: #07051a;
  --bg2: #0e0a2b;
  --text: #ece9ff;
  --muted: rgba(236, 233, 255, .62);
  --accent: #9945ff;          /* Solana-Lila */
  --accent2: #14f195;         /* Solana-Grün */
  --accent-rgb: 153, 69, 255;
  --grad: linear-gradient(100deg, #9945ff 0%, #6a7bff 45%, #14f195 100%);
  --card: rgba(255, 255, 255, .045);
  --line: rgba(255, 255, 255, .10);
}
[data-theme="mars"] {
  --bg: #050816; --bg2: #120a12; --text: #f5f3f0; --muted: rgba(245,243,240,.62);
  --accent: #ef4444; --accent2: #fb923c; --accent-rgb: 239, 68, 68;
  --grad: linear-gradient(100deg, #ef4444, #fb923c);
  --card: rgba(255,255,255,.04); --line: rgba(255,255,255,.10);
}
[data-theme="gold"] {
  --bg: #0a0908; --bg2: #16120a; --text: #f8f2e4; --muted: rgba(248,242,228,.6);
  --accent: #e7b84a; --accent2: #fff1c1; --accent-rgb: 231, 184, 74;
  --grad: linear-gradient(100deg, #b8862b, #e7b84a 50%, #fff1c1);
  --card: rgba(255,240,200,.045); --line: rgba(255,230,170,.14);
}
[data-theme="ice"] {
  --bg: #030b17; --bg2: #071a33; --text: #eaf4ff; --muted: rgba(234,244,255,.62);
  --accent: #38bdf8; --accent2: #e0f2fe; --accent-rgb: 56, 189, 248;
  --grad: linear-gradient(100deg, #2563eb, #38bdf8 55%, #e0f2fe);
  --card: rgba(200,230,255,.045); --line: rgba(200,230,255,.12);
}

:root { --font-head: "Audiowide", sans-serif; --radius: 22px; --radius-sm: 999px; }
[data-corners="sharp"] { --radius: 4px; --radius-sm: 4px; }

/* ============ BASE ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font: 400 16px/1.65 "Inter", system-ui, sans-serif;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, .kicker, .btn, .bar, .tele-head, .big-price small, .ca-box small { font-family: var(--font-head); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.1; margin-bottom: 1.2rem; letter-spacing: .02em; }
h3 { font-size: 1.4rem; margin: 4rem 0 1.5rem; }
.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }
.muted { color: var(--muted); }
.tiny { font-size: .78rem; line-height: 1.6; }
.center { text-align: center; }
.narrow { max-width: 620px; margin: 0 auto 2.5rem; }
.kicker { font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; color: var(--accent2); margin-bottom: 1rem; }
.wrap { width: min(1140px, 100% - 32px); margin: 0 auto; }
.section { padding: clamp(5rem, 11vw, 9rem) 0; position: relative; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2rem); backdrop-filter: blur(14px); }

#stars { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; }
.glow { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 50% at 85% 0%, rgba(var(--accent-rgb), .20), transparent 70%),
              radial-gradient(50% 40% at 0% 100%, rgba(var(--accent-rgb), .12), transparent 70%); }

/* ============ BUTTONS ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem 1.7rem;
  border-radius: var(--radius-sm); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; background: none; color: var(--text); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad) border-box;color: #0b0718; font-weight: 700; box-shadow: 0 8px 30px rgba(var(--accent-rgb), .35); }
.btn-primary:hover { box-shadow: 0 10px 40px rgba(var(--accent-rgb), .55); }
.btn-ghost { border-color: var(--line); background: rgba(255,255,255,.04); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: .6rem 1.1rem; font-size: .68rem; }

/* ============ HEADER ============ */
#topbar { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); width: min(1140px, 100% - 24px); z-index: 50; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem .7rem .55rem 1rem;
  background: rgba(10, 8, 30, .55); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .18em; font-size: .85rem; }
.brand img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .5); }
#nav-links { display: flex; gap: 2.2rem; list-style: none; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
#nav-links a:hover { color: var(--text); }
.bar-right { display: flex; align-items: center; gap: .8rem; }
.price-pill { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.price-pill b { color: var(--accent2); font-family: "Inter", monospace; }
.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: none; cursor: pointer; }
.burger span { display: block; width: 16px; height: 2px; background: var(--text); margin: 4px auto; }
.mobile-menu { display: none; margin-top: 8px; padding: 1rem; background: rgba(10,8,30,.92); border: 1px solid var(--line); border-radius: var(--radius); }
.mobile-menu.open { display: grid; gap: .8rem; }
.mobile-menu a { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; }

/* ============ HERO ============ */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding: 7rem 0 4rem; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .5; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg) 0%, rgba(0,0,0,.35) 55%, transparent), linear-gradient(0deg, var(--bg), transparent 40%); }
.hero-inner { width: min(1140px, 100% - 32px); margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: center; }
.hero-title { font-size: clamp(3.2rem, 11vw, 8.5rem); line-height: .95; letter-spacing: .03em; margin: .2rem 0 1.4rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 40px rgba(var(--accent-rgb), .35)); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 560px; }
.hero-sub { color: var(--muted); max-width: 520px; margin-top: .8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.ca-chip { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.8rem; padding: .45rem .5rem .45rem .9rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: rgba(255,255,255,.04); font-size: .8rem; max-width: 100%; }
.ca-chip code { color: var(--muted); }
.ca-chip button { background: rgba(var(--accent-rgb), .25); border: 0; color: var(--text); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; }
.chain-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 10px var(--accent2); }
.hero-visual { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.hero-media { width: 82%; border-radius: 50%; object-fit: cover; aspect-ratio: 1; box-shadow: 0 0 80px rgba(var(--accent-rgb), .35); animation: float 7s ease-in-out infinite; }
.hero-media[hidden] { display: none; }
.orbit-ring { position: absolute; inset: 2%; border: 1px dashed rgba(var(--accent-rgb), .45); border-radius: 50%; animation: spin 40s linear infinite; }
.orbit-ring::after { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 16px var(--accent2); }
.orbit-ring.r2 { inset: -6%; animation-duration: 70s; animation-direction: reverse; opacity: .5; }
.scroll-hint { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); font-size: .65rem; letter-spacing: .35em; text-transform: uppercase; color: var(--muted); }
.scroll-hint::after { content: ""; display: block; width: 1px; height: 34px; margin: .5rem auto 0; background: linear-gradient(var(--accent), transparent); animation: drip 2s infinite; }

/* center-Layout (näher am Original) */
[data-hero="center"] .hero-inner { grid-template-columns: 1fr; text-align: center; }
[data-hero="center"] .hero-visual { display: none; }
[data-hero="center"] .hero-lead, [data-hero="center"] .hero-sub { margin-left: auto; margin-right: auto; }
[data-hero="center"] .hero-cta { justify-content: center; }
[data-hero="center"] .hero-shade { background: radial-gradient(ellipse at center, rgba(0,0,0,.2), var(--bg) 80%); }
[data-herobg="stars"] .hero-video, [data-herobg="slideshow"] .hero-video, .hero-video[hidden] { display: none; }
/* Hero-Diashow: gleiche Abdunklung wie früher das Video, weiche Überblendung, langsamer Zoom */
.hero-slides { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
:root:not([data-herobg="slideshow"]) .hero-slides { display: none; }
.hero-slide { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transform: scale(1.12);
  transition: opacity var(--fade, 2s) ease-in-out, transform var(--zoom-time, 10s) linear; will-change: opacity, transform; }
.hero-slide.active { opacity: .5; transform: scale(1); }
.hero-slide.out { transform: scale(1); }
.no-zoom .hero-slide { transform: none; }

/* ============ TICKER ============ */
.ticker { border-block: 1px solid var(--line); background: rgba(var(--accent-rgb), .07); overflow: hidden; padding: .9rem 0; }
.ticker-track { display: flex; gap: 3rem; width: max-content; animation: marquee 38s linear infinite; font-family: var(--font-head); font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
.ticker-track span::before { content: "✦"; color: var(--accent2); margin-right: 3rem; }

/* ============ STORY ============ */
.story-text p { margin-bottom: 1.2rem; color: rgba(255,255,255,.82); font-size: 1.05rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.fact { border-left: 2px solid var(--accent); padding-left: 1rem; }
.fact b { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2.2rem); display: block; }
.fact small { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; }

/* ============ GALLERY ============ */
.gallery { position: relative; margin-top: 2.5rem; }
.gallery-stage { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.gallery-stage > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s, transform 6s; transform: scale(1.06); }
.gallery-stage > .active { opacity: 1; transform: scale(1); }
.g-nav { position: absolute; top: calc(50% - 40px); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgba(0,0,0,.5); color: var(--text); font-size: 1.6rem; cursor: pointer; }
.g-nav.prev { left: 14px; } .g-nav.next { right: 14px; }
.g-nav:hover { border-color: var(--accent); }
.g-caption { text-align: center; margin-top: 1rem; color: var(--muted); font-size: .9rem; }
.g-dots { display: flex; justify-content: center; gap: .5rem; margin-top: .8rem; }
.g-dots button { width: 22px; height: 4px; border: 0; border-radius: 4px; background: var(--line); cursor: pointer; }
.g-dots button.active { background: var(--grad); width: 40px; }

/* ============ MISSION ============ */
.mission { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.5rem; }
.orbit-card { display: grid; justify-items: center; gap: .4rem; }
.orbit-top { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.o-date { font-family: var(--font-head); font-size: 1.05rem; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.o-mode { font-size: .65rem; letter-spacing: .2em; color: var(--muted); font-family: var(--font-head); }
.o-mode.is-live { color: #ff6b6b; }
.lg.trail::before { background: none; border-top: 2px solid var(--accent2); border-radius: 0; width: 14px; height: 0; }
.o-controls { width: 100%; display: flex; align-items: center; gap: .8rem; margin-top: .8rem; }
.o-play { flex: none; width: 40px; height: 40px; border-radius: var(--radius-sm); border: 0; background: var(--grad) border-box; color: #0b0718; font-size: .85rem; cursor: pointer; }
#o-range { flex: 1; min-width: 0; accent-color: var(--accent2); }
.o-speeds { display: flex; gap: .3rem; flex: none; }
.o-speeds button, .o-jumps button { border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--muted); border-radius: var(--radius-sm); padding: .4rem .6rem; font-size: .68rem; cursor: pointer; font-family: inherit; }
.o-speeds button.active { color: var(--text); border-color: var(--accent2); }
.o-speeds button:hover, .o-jumps button:hover { color: var(--text); border-color: var(--accent); }
.o-jumps { width: 100%; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.o-jumps small { opacity: .6; }
.o-note { min-height: 1.4em; font-size: .85rem; color: var(--muted); text-align: center; }
.o-note b { color: var(--accent2); }
@media (max-width: 560px) { .o-controls { flex-wrap: wrap; } #o-range { flex-basis: calc(100% - 64px); } .o-speeds { width: 100%; } .o-speeds button { flex: 1; } }
#orbit-svg { width: 100%; max-width: 480px; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; font-size: .75rem; color: var(--muted); margin-top: .5rem; }
.lg::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .4rem; vertical-align: middle; }
.lg.sun::before { background: #ffd54a; } .lg.earth::before { background: #4ea8ff; } .lg.mars::before { background: #ff6a3d; } .lg.car::before { background: var(--accent2); }
.tele-head { display: flex; align-items: center; gap: .6rem; font-size: .75rem; letter-spacing: .2em; margin-bottom: 1rem; }
.tele-head .utc { margin-left: auto; color: var(--muted); font-family: "Inter", monospace; letter-spacing: .05em; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff4d4d; animation: blink 1.4s infinite; }
#tele { display: grid; gap: .1rem; margin-bottom: 1.2rem; }
#tele div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
#tele dt { color: var(--muted); font-size: .85rem; }
#tele dd { font-family: var(--font-head); font-size: .95rem; text-align: right; font-variant-numeric: tabular-nums; }
.telemetry .btn { margin-top: 1rem; }

/* ============ TOKEN ============ */
.big-price { margin: .5rem 0 1.6rem; }
.big-price small { display: block; font-size: .65rem; letter-spacing: .3em; color: var(--muted); }
.big-price b { font-size: clamp(1.8rem, 4vw, 2.6rem); font-family: var(--font-head); color: var(--accent2); }
#token-text p { margin-bottom: 1rem; color: rgba(255,255,255,.82); }
.details { width: 100%; border-collapse: collapse; }
.details td { padding: .85rem 0; border-bottom: 1px solid var(--line); }
.details td:first-child { color: var(--muted); font-size: .88rem; }
.details td:last-child { text-align: right; font-weight: 600; }
.ca-box { margin: 1.4rem 0; padding: 1rem; border: 1px dashed rgba(var(--accent-rgb), .55); border-radius: calc(var(--radius) * .6); display: grid; gap: .6rem; }
.ca-box small { font-size: .62rem; letter-spacing: .22em; color: var(--muted); }
.ca-box code { word-break: break-all; font-size: .9rem; }
.ca-box .btn { justify-self: start; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: s; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.steps li::before { content: "0" counter(s); font-family: var(--font-head); font-size: 1.8rem; display: block; margin-bottom: .6rem; }
.steps li::before { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps b { display: block; margin-bottom: .3rem; }
.steps p { color: var(--muted); font-size: .9rem; }

/* ============ CREW ============ */
.crew-img img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(var(--accent-rgb), .25); }
.crew-img img[hidden], .crew-video[hidden] { display: none; }
/* Video verschmilzt mit dem Layout: weicher Verlauf an allen Rändern + Schwarz wird durchsichtig */
@media (min-width: 961px) { .crew:has(.crew-video:not([hidden])) { grid-template-columns: 1.25fr .75fr; } }
.crew-img { position: relative; }
.crew-video {
  width: 114%; max-width: none; margin-left: -8%;
  /* unteren Streifen (eingeblendeter Text im Video) abschneiden */
  aspect-ratio: 16 / 7.8; object-fit: cover; object-position: 50% 0%;
  mix-blend-mode: lighten;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 22%, #000 80%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 16%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 22%, #000 80%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 16%, #000 86%, transparent 100%);
  mask-composite: intersect;
}
.crew-img:has(.crew-video:not([hidden]))::before {
  content: ""; position: absolute; inset: 10% 15%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), .22), transparent);
  filter: blur(30px);
}
@media (max-width: 960px) { .crew-video { width: 124%; margin-left: -12%; } }
.crew blockquote { font-family: var(--font-head); font-size: clamp(1.1rem, 2vw, 1.4rem); border-left: 3px solid var(--accent); padding-left: 1.2rem; margin: 1.2rem 0 1.6rem; }
#crew-text p { margin-bottom: 1rem; color: rgba(255,255,255,.82); }
.sign { font-family: var(--font-head); letter-spacing: .1em; margin: 1.6rem 0; color: var(--accent2); }
.socials { display: flex; flex-wrap: wrap; gap: .7rem; }
.socials a { display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .85rem; transition: border-color .2s; }
.socials a:hover { border-color: var(--accent); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); padding: 3rem 0; background: rgba(0,0,0,.35); }
.footer .wrap > * + * { margin-top: 1rem; }
.disclaimer { display: grid; gap: .7rem; max-width: 900px; }
.disclaimer b { color: var(--text); font-weight: 600; }
.foot-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 30px); opacity: 0; padding: .8rem 1.4rem; background: var(--grad); color: #0b0718; font-weight: 700; border-radius: var(--radius-sm); transition: .3s; z-index: 100; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: .2; } }

/* ============ DESIGNER PANEL (?designer) ============ */
.designer { position: fixed; right: 16px; bottom: 16px; z-index: 200; width: 270px; padding: 1rem; background: rgba(8,6,24,.95); border: 1px solid var(--line); border-radius: 14px; font-size: .8rem; display: grid; gap: .6rem; }
.designer b { font-family: var(--font-head); letter-spacing: .15em; font-size: .7rem; }
.designer label { display: grid; gap: .2rem; color: var(--muted); }
.designer select { background: #111; color: #fff; border: 1px solid var(--line); border-radius: 6px; padding: .35rem; }
.designer pre { background: #000; padding: .6rem; border-radius: 6px; font-size: .68rem; white-space: pre-wrap; color: var(--accent2); }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  #nav-links, .price-pill { display: none; }
  .burger { display: block; }
  .bar-right .btn { display: none; }
  .two-col, .mission, .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 340px; margin: 1rem auto 0; order: -1; }
  .hero-shade { background: linear-gradient(0deg, var(--bg) 8%, rgba(0,0,0,.6) 55%, rgba(0,0,0,.45)); }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr 1fr; gap: .6rem; }
  .hero-visual { max-width: 240px; }
  .g-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
