/* ==========================================================================
   NEXRA — CityBuild Economy Server
   Design-System & Komponenten
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Farben */
  --bg: #07090f;
  --bg-deep: #04060b;
  --bg-raise: #0b0f1a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --emerald: #10b981;
  --emerald-bright: #34d399;
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --gold: #f59e0b;
  --gold-bright: #fbbf24;
  --gold-glow: rgba(245, 158, 11, 0.32);
  --violet: #8b5cf6;
  --violet-glow: rgba(139, 92, 246, 0.25);
  --cyan: #22d3ee;
  --red: #f87171;

  --text: #eef2f8;
  --text-dim: #9aa5b5;
  --text-faint: #66707f;

  /* Typografie */
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  /* Zwei Schriften: Space Grotesk für Überschriften, Labels und Zahlen,
     Inter für Fließtext. --font-mono bleibt als Name für bestehende
     Stellen erhalten und zeigt auf die Display-Schrift. */
  --font-mono: "Space Grotesk", "Segoe UI", sans-serif;
  --font-code: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Layout */
  --container: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;

  /* Übergänge */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
  --shadow-lift: 0 26px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
  --panel: rgba(9, 12, 20, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset & Basis ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  font-variant-numeric: tabular-nums;
}

code,
kbd {
  font-family: var(--font-code);
  font-size: 0.92em;
}

html.nav-open {
  overflow: hidden;
}

/* Sprungziele nicht unter der festen Navigation verstecken */
[id] {
  scroll-margin-top: 90px;
}

/* Sichtbarer Fokus für Tastatur, unsichtbar für Maus */
:focus-visible {
  outline: 2px solid var(--emerald-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

::selection {
  background: rgba(16, 185, 129, 0.35);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1d2a3a, #12202d);
  border-radius: 6px;
  border: 2px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover {
  background: #24405a;
}

/* ---------- Hintergrund-Atmosphäre ---------- */
.page-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 15% -5%, rgba(16, 185, 129, 0.10), transparent 60%),
    radial-gradient(ellipse 55% 40% at 90% 10%, rgba(139, 92, 246, 0.09), transparent 60%),
    radial-gradient(ellipse 70% 55% at 50% 110%, rgba(245, 158, 11, 0.06), transparent 60%),
    var(--bg);
}

.page-atmosphere::before {
  /* feines Gitternetz */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
}

.page-atmosphere::after {
  /* Film-Grain / Noise für den Kino-Look */
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.03 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: orbDrift 24s ease-in-out infinite alternate;
}
.glow-orb--emerald {
  width: 480px;
  height: 480px;
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.24), transparent 70%);
}
.glow-orb--violet {
  width: 420px;
  height: 420px;
  top: 10%;
  right: -140px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.20), transparent 70%);
  animation-delay: -8s;
}
.glow-orb--gold {
  width: 520px;
  height: 520px;
  bottom: -220px;
  left: 30%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.13), transparent 70%);
  animation-delay: -16s;
}

@keyframes orbDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(60px, 40px, 0) scale(1.08);
  }
  100% {
    transform: translate3d(-40px, 70px, 0) scale(0.96);
  }
}

/* ---------- Container & Sektionen ---------- */
.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: 110px 0;
  position: relative;
}

.section--tight {
  padding: 70px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--emerald-bright);
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  background: linear-gradient(120deg, rgba(16, 185, 129, 0.10), rgba(16, 185, 129, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 24px rgba(16, 185, 129, 0.10);
  margin-bottom: 22px;
}
.eyebrow--gold {
  color: var(--gold-bright);
  border-color: rgba(245, 158, 11, 0.28);
  background: linear-gradient(120deg, rgba(245, 158, 11, 0.10), rgba(245, 158, 11, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 24px rgba(245, 158, 11, 0.10);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: clamp(30px, 4.4vw, 46px);
  margin-bottom: 18px;
}

.section-sub {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 640px;
}
.section-head--center .section-sub {
  margin-inline: auto;
}

.text-gradient {
  background: linear-gradient(100deg, #fff 10%, var(--emerald-bright) 55%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient--gold {
  background: linear-gradient(100deg, #fff 5%, var(--gold-bright) 50%, #f97316 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: padding 0.4s var(--ease-out);
  padding: 16px 0;
}

/* Glas-Hintergrund als eigene Ebene: backdrop-filter direkt auf der Leiste
   würde das mobile Vollbild-Panel (position: fixed) in die Leiste sperren. */
.navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(7, 9, 15, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.navbar.is-scrolled {
  padding: 10px 0;
}
.navbar.is-scrolled::before {
  opacity: 1;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  position: relative;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(140deg, #0e2f26, #071a15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 22px rgba(16, 185, 129, 0.28);
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: markShine 5s ease-in-out infinite;
}
@keyframes markShine {
  0%,
  70% {
    transform: translateX(-120%);
  }
  85%,
  100% {
    transform: translateX(120%);
  }
}

.brand-name em {
  font-style: normal;
  color: var(--emerald-bright);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.25s, background 0.25s;
}
.nav-link:hover,
.nav-group:hover > .nav-link,
.nav-group.is-open > .nav-link {
  color: var(--text);
  background: var(--surface);
}
.nav-link.is-active,
.nav-group.is-active > .nav-link {
  color: var(--emerald-bright);
}
.nav-link.is-active::after,
.nav-group.is-active > .nav-link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--emerald-bright), transparent);
  box-shadow: 0 0 8px var(--emerald-glow);
}

.nav-chevron {
  transition: transform 0.3s var(--ease-out);
  opacity: 0.7;
}
.nav-group.is-open .nav-chevron {
  transform: rotate(180deg);
}

.nav-group {
  position: relative;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  min-width: 290px;
  padding: 8px;
  display: grid;
  gap: 2px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.25s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
}
/* Brücke über den Abstand, damit das Menü beim Hinfahren offen bleibt */
.nav-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
.nav-group.is-open .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.25s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s;
}
@media (hover: hover) and (min-width: 1081px) {
  .nav-group:hover .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition: opacity 0.25s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s;
  }
  .nav-group:hover .nav-chevron {
    transform: rotate(180deg);
  }
}

.nav-menu a {
  display: grid;
  gap: 1px;
  padding: 11px 14px;
  border-radius: 11px;
  transition: background 0.2s, transform 0.25s var(--ease-out);
}
.nav-menu a strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}
.nav-menu a span {
  font-size: 12.5px;
  color: var(--text-faint);
  line-height: 1.45;
}
.nav-menu a:hover {
  background: var(--surface-strong);
  transform: translateX(2px);
}
.nav-menu a[aria-current="page"] strong {
  color: var(--emerald-bright);
}
.nav-ext {
  opacity: 0.6;
}

.nav-mobile-extra {
  display: none;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  transition: color 0.25s, border-color 0.25s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.nav-icon:hover {
  color: #c7d2fe;
  border-color: rgba(129, 140, 248, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.25);
}

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 11px 10px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.nav-burger span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav-burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-burger.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1240px) {
  .nav-ip span {
    display: none;
  }
  .nav-ip {
    padding: 10px 12px;
  }
  .nav-link {
    padding: 9px 10px;
  }
}

/* Mobil: Vollbild-Panel mit allen Seiten */
@media (max-width: 1080px) {
  .nav-burger {
    display: flex;
    position: relative;
    z-index: 95;
  }
  .nav-cta .nav-ip,
  .nav-cta .nav-icon {
    display: none;
  }
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 90;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: calc(var(--nav-h) + 12px) 24px 32px;
    background: rgba(5, 7, 12, 0.97);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s var(--ease-out), transform 0.35s var(--ease-out), visibility 0s linear 0.35s;
  }
  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s var(--ease-out), transform 0.35s var(--ease-out), visibility 0s;
  }
  .nav-links > .nav-link {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 600;
    color: var(--text);
    padding: 12px 6px;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links > .nav-link.is-active {
    color: var(--emerald-bright);
  }
  .nav-links > .nav-link::after,
  .nav-group > .nav-link::after {
    display: none;
  }
  .nav-group {
    padding: 14px 0 8px;
    border-bottom: 1px solid var(--border);
  }
  .nav-group-toggle {
    padding: 0 6px 6px;
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-faint);
    pointer-events: none;
    background: none !important;
  }
  .nav-group.is-active > .nav-group-toggle {
    color: var(--emerald-bright);
  }
  .nav-chevron {
    display: none;
  }
  .nav-menu,
  .nav-group:hover .nav-menu {
    position: static;
    min-width: 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav-menu::before {
    display: none;
  }
  .nav-menu a {
    padding: 10px 6px;
  }
  .nav-menu a strong {
    font-size: 18px;
  }
  .nav-menu a:hover {
    transform: none;
  }
  .nav-mobile-extra {
    display: grid;
    gap: 12px;
    margin-top: 22px;
  }
  .nav-mobile-extra .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .nav-cta .nav-play {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-out);
  isolation: isolate;
  /* Lange Beschriftungen umbrechen statt im Button abgeschnitten zu werden */
  max-width: 100%;
  text-align: center;
}

.btn:active {
  transform: scale(0.97);
}

/* Glossy Shine-Sweep */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, 0.35) 48%, rgba(255, 255, 255, 0.12) 52%, transparent 70%);
  transform: translateX(-130%) skewX(-12deg);
  transition: transform 0.7s var(--ease-out);
  z-index: 1;
}
.btn:hover::before {
  transform: translateX(130%) skewX(-12deg);
}

.btn--primary {
  color: #052018;
  background: linear-gradient(160deg, #5eead4 0%, var(--emerald-bright) 40%, var(--emerald) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -8px 16px rgba(4, 32, 24, 0.28),
    0 8px 28px rgba(16, 185, 129, 0.35);
}
.btn--primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -8px 16px rgba(4, 32, 24, 0.28),
    0 16px 42px rgba(16, 185, 129, 0.5);
}

.btn--gold {
  color: #241303;
  background: linear-gradient(160deg, #fde68a 0%, var(--gold-bright) 40%, #ea8b0c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -8px 16px rgba(80, 42, 4, 0.3),
    0 8px 28px rgba(245, 158, 11, 0.32);
}
.btn--gold:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -8px 16px rgba(80, 42, 4, 0.3),
    0 16px 42px rgba(245, 158, 11, 0.45);
}

.btn--ghost {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
.btn--ghost:hover {
  transform: translateY(-2px) scale(1.03);
  background: var(--surface-strong);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 12px 32px rgba(0, 0, 0, 0.35);
}

.btn--sm {
  white-space: nowrap;
  padding: 10px 20px;
  font-size: 13.5px;
  border-radius: 11px;
}

.btn--lg {
  padding: 17px 36px;
  font-size: 16.5px;
  border-radius: 16px;
}

/* ---------- Glass Card ---------- */
.glass {
  position: relative;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02) 55%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 18px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

/* oberer Glanz-Streifen */
.glass::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  pointer-events: none;
}

.card {
  padding: 32px;
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s var(--ease-out);
  will-change: transform;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(16, 185, 129, 0.10);
}

.card-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  margin-bottom: 20px;
  background: linear-gradient(150deg, rgba(16, 185, 129, 0.18), rgba(16, 185, 129, 0.04));
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 26px rgba(16, 185, 129, 0.14);
  color: var(--emerald-bright);
}
.card-icon--gold {
  background: linear-gradient(150deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.04));
  border-color: rgba(245, 158, 11, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 26px rgba(245, 158, 11, 0.14);
  color: var(--gold-bright);
}
.card-icon--violet {
  background: linear-gradient(150deg, rgba(139, 92, 246, 0.18), rgba(139, 92, 246, 0.04));
  border-color: rgba(139, 92, 246, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 26px rgba(139, 92, 246, 0.14);
  color: #a78bfa;
}
.card-icon--cyan {
  background: linear-gradient(150deg, rgba(34, 211, 238, 0.16), rgba(34, 211, 238, 0.04));
  border-color: rgba(34, 211, 238, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 26px rgba(34, 211, 238, 0.14);
  color: var(--cyan);
}

.card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-dim);
  font-size: 15px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 90px;
  overflow: hidden;
}

.hero--sub {
  min-height: 62vh;
  padding: 170px 0 70px;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 60px;
  align-items: center;
}

.hero-inner--single {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 840px;
  margin-inline: auto;
}

.hero-title {
  font-size: clamp(44px, 7.2vw, 88px);
  line-height: 1.02;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-title .line {
  display: block;
}

.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 38px;
}
.hero-inner--single .hero-sub {
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.hero-inner--single .hero-actions {
  justify-content: center;
}

/* Typing-Slot: alle Sätze liegen gestapelt in einer Zelle, die Höhe richtet
   sich nach dem längsten. So bleibt das Layout beim Tippen völlig ruhig. */
.type-slot {
  /* inline-grid: fließt im Satz mit, wird aber als ein Block umgebrochen —
     dadurch kein Umbau der Zeilen während des Tippens. max-width hält den
     Slot auch bei sehr schmalen Viewports im Rahmen. */
  display: inline-grid;
  max-width: 100%;
  vertical-align: top;
}
.type-slot > span {
  grid-area: 1 / 1;
}
.type-ghost {
  visibility: hidden;
}

/* Typing-Cursor im Hero — auch die Platzhalter tragen ihn, damit die
   Zeilenumbrüche exakt gleich berechnet werden. */
.type-slot > span::after {
  content: "▌";
  color: var(--emerald-bright);
  animation: blink 1s steps(2) infinite;
  margin-left: 2px;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Server-IP-Pill */
.ip-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 22px;
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 12px 34px rgba(0, 0, 0, 0.4);
  font-family: var(--font-mono);
  font-size: 15px;
}

.ip-pill .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 12px var(--emerald-bright);
  animation: pulse 2s ease-in-out infinite;
}

.ip-pill .ip {
  color: var(--text);
  letter-spacing: 0.03em;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: #052018;
  background: linear-gradient(160deg, #6ee7c8, var(--emerald));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s;
}
.copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 22px rgba(16, 185, 129, 0.5);
}

/* ---------- Voxel-Szene (CSS 3D Minecraft-Würfel) ---------- */
.voxel-scene {
  position: relative;
  height: 460px;
  perspective: 1100px;
  display: grid;
  place-items: center;
}

/* Nebel + Sternenfeld hinter den Blöcken. Bewusst per CSS statt als Bild:
   keine zusätzliche Datei, passt sich Marken-Farben an, bleibt scharf auf
   jeder Auflösung. Malt sich als erstes "Kind" der Szene — die absolut
   positionierten Würfel folgen im Markup danach und liegen automatisch
   darüber, ganz ohne z-index-Eingriff. */
.voxel-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Weiche, ovale Ausblendung zum Rand — sonst zeichnet sich die rechteckige
     Box der Szene sichtbar gegen die dunkle Seite ab. Wichtig: Die
     "transparent"-Haltestelle muss VOR dem Box-Rand erreicht werden (hier bei
     78% von 58%/62% Radius = 45–48% der halben Boxbreite/-höhe ab Mitte) —
     sonst liegt die eigentliche Ausblendung größtenteils außerhalb der
     sichtbaren Fläche und am Rand bleibt praktisch alles sichtbar. */
  mask-image: radial-gradient(ellipse 58% 62% at 50% 48%, #000 22%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 58% 62% at 50% 48%, #000 22%, transparent 78%);
  background:
    radial-gradient(ellipse 55% 50% at 28% 32%, rgba(16, 185, 129, 0.18), transparent 65%),
    radial-gradient(ellipse 50% 45% at 76% 60%, rgba(139, 92, 246, 0.16), transparent 65%),
    radial-gradient(ellipse 45% 40% at 52% 12%, rgba(245, 158, 11, 0.12), transparent 60%),
    radial-gradient(1.6px 1.6px at 12% 18%, rgba(255, 255, 255, 0.9), transparent 100%),
    radial-gradient(1px 1px at 22% 62%, rgba(255, 255, 255, 0.65), transparent 100%),
    radial-gradient(2px 2px at 35% 30%, rgba(255, 255, 255, 0.85), transparent 100%),
    radial-gradient(1px 1px at 48% 78%, rgba(255, 255, 255, 0.55), transparent 100%),
    radial-gradient(1.4px 1.4px at 58% 12%, rgba(103, 232, 249, 0.8), transparent 100%),
    radial-gradient(1px 1px at 68% 45%, rgba(255, 255, 255, 0.5), transparent 100%),
    radial-gradient(1.8px 1.8px at 79% 68%, rgba(255, 255, 255, 0.9), transparent 100%),
    radial-gradient(1px 1px at 85% 22%, rgba(255, 255, 255, 0.55), transparent 100%),
    radial-gradient(1.3px 1.3px at 92% 55%, rgba(167, 139, 250, 0.75), transparent 100%),
    radial-gradient(1px 1px at 15% 87%, rgba(255, 255, 255, 0.45), transparent 100%),
    radial-gradient(1.5px 1.5px at 40% 92%, rgba(255, 255, 255, 0.65), transparent 100%),
    radial-gradient(1px 1px at 63% 88%, rgba(255, 255, 255, 0.5), transparent 100%);
  animation: starTwinkle 5s ease-in-out infinite alternate;
}

@keyframes starTwinkle {
  0% {
    opacity: 0.72;
  }
  100% {
    opacity: 1;
  }
}

/* Treibende Gesteinssplitter zwischen den Blöcken — kein Bild, nur ein paar
   kleine gedrehte Rechtecke mit eigener, versetzter Schwebe-Animation. */
.debris {
  position: absolute;
  border-radius: 2px;
  background: linear-gradient(145deg, #9a9a9a, #5a5a5a);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  animation: debrisDrift 8s ease-in-out infinite;
}
.debris--gold {
  background: linear-gradient(145deg, #fcd34d, #b8860b);
}

@keyframes debrisDrift {
  0%,
  100% {
    transform: translateY(0) rotate(var(--r, 0deg));
  }
  50% {
    transform: translateY(-14px) rotate(calc(var(--r, 0deg) + 25deg));
  }
}

/* Reduzierte Bewegung ist bereits sitzeweit im globalen
   prefers-reduced-motion-Block (Dateiende) abgedeckt: der setzt
   animation-duration auf allen Elementen per !important auf 0.01ms. */

.voxel {
  --s: 90px;
  position: absolute;
  width: var(--s);
  height: var(--s);
  transform-style: preserve-3d;
  animation: voxFloat 7s ease-in-out infinite;
}

.voxel .face--front {
  transform: translateZ(calc(var(--s) / 2));
}
.voxel .face--side {
  transform: rotateY(90deg) translateZ(calc(var(--s) / 2));
}
.voxel .face--top {
  transform: rotateX(90deg) translateZ(calc(var(--s) / 2));
}

.voxel .face {
  position: absolute;
  inset: 0;
  /* Randfarbe setzt main.js auf die abgedunkelte Flächenfarbe — der Rand füllt
     nur die Haarlinien zwischen den Flächen und wirkt nicht als Outline. */
  border: 1px solid transparent;
  image-rendering: pixelated;
  backface-visibility: hidden;
}

/* Fallback-Optik ohne JavaScript (main.js ersetzt das durch Pixeltexturen) */
.voxel--grass .face--top {
  background: linear-gradient(140deg, #7cb342, #5f9430);
}
.voxel--grass .face--front,
.voxel--grass .face--side {
  background:
    linear-gradient(180deg, #7cb342 0 22%, transparent 22%),
    linear-gradient(150deg, #8b6547, #6f4e34);
}
.voxel--emerald .face {
  background: linear-gradient(150deg, #1fce62, #0e7a3d 70%);
}
.voxel--gold .face {
  background: linear-gradient(150deg, #f9c433, #b87d14 75%);
}
.voxel--diamond .face {
  background: linear-gradient(150deg, #4aedd9, #1f9aad 75%);
}

/* Kantenverschattung: weiche Verläufe an den Flächenkanten. Das ist der
   Hauptgrund, warum ein Würfel als solider Körper und nicht als drei Kacheln
   gelesen wird. Bewusst nicht in die 16×16-Textur gebacken (das ergäbe klobige
   Balken), sondern als Inset-Schatten — skaliert über --s mit der Würfelgröße.
   Der zweite Schatten ist das farbige Abstrahlen der Erzblöcke (--glow). */
.voxel {
  --glow: transparent;
}
.voxel--emerald {
  --glow: rgba(16, 185, 129, 0.4);
}
.voxel--gold {
  --glow: rgba(245, 158, 11, 0.4);
}
.voxel--diamond {
  --glow: rgba(34, 211, 238, 0.4);
}

.voxel .face--top {
  box-shadow:
    inset 0 calc(var(--s) * 0.1) calc(var(--s) * 0.2) calc(var(--s) * -0.08) rgba(0, 0, 0, 0.42),
    0 0 calc(var(--s) * 0.5) var(--glow);
}
.voxel .face--front {
  box-shadow:
    inset 0 calc(var(--s) * -0.14) calc(var(--s) * 0.24) calc(var(--s) * -0.1) rgba(0, 0, 0, 0.5),
    0 0 calc(var(--s) * 0.5) var(--glow);
}
.voxel .face--side {
  box-shadow:
    inset calc(var(--s) * 0.13) 0 calc(var(--s) * 0.26) calc(var(--s) * -0.1) rgba(0, 0, 0, 0.5),
    0 0 calc(var(--s) * 0.5) var(--glow);
}

@keyframes voxFloat {
  0%,
  100% {
    transform: translateY(0) rotateX(-24deg) rotateY(-28deg);
  }
  50% {
    transform: translateY(-26px) rotateX(-24deg) rotateY(-44deg);
  }
}

/* ---------- Stats-Band ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat {
  padding: 28px 24px;
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(120deg, #fff, var(--emerald-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-value .suffix {
  font-size: 0.62em;
}

.stat--gold .stat-value {
  background: linear-gradient(120deg, #fff, var(--gold-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 13.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  overflow-wrap: break-word;
}

/* ---------- Grids ---------- */
/* Grid-/Split-Kinder dürfen schrumpfen (Tabellen etc. sonst = Overflow) */
.grid-2 > *,
.grid-3 > *,
.grid-4 > *,
.split > *,
.pricing-grid > *,
.team-grid > *,
.steps > *,
.stats-band > * {
  min-width: 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* ---------- Split-Sektionen ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split--rev > :first-child {
  order: 2;
}

.split h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: 18px;
}

.split p {
  color: var(--text-dim);
  margin-bottom: 16px;
}

.checklist li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 9px 0;
  color: var(--text-dim);
}
.checklist li strong {
  color: var(--text);
  font-weight: 600;
}
.checklist .check {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: linear-gradient(150deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.06));
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--emerald-bright);
  font-size: 12px;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.18);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  padding: 30px 26px;
  position: relative;
}

.step-num {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.08));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.step h3 {
  font-size: 17.5px;
  margin-bottom: 8px;
}
.step p {
  font-size: 14px;
  color: var(--text-dim);
}
.step code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--emerald-bright);
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.22);
  padding: 2px 8px;
  border-radius: 7px;
}

/* ---------- Pricing / Ränge ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 34px 28px;
  transition: transform 0.45s var(--ease-out), border-color 0.4s, box-shadow 0.45s var(--ease-out);
}

.price-card:hover {
  transform: translateY(-8px);
}

.price-card .rank-tag {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 100px;
  margin-bottom: 20px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-dim);
}

.price-card h3 {
  font-size: 25px;
  margin-bottom: 6px;
}

.price {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  margin: 14px 0 4px;
}
.price .per {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-faint);
  font-family: var(--font-body);
}

.price-card ul {
  margin: 22px 0 28px;
  flex: 1;
}
.price-card ul li {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  font-size: 14px;
  color: var(--text-dim);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}
.price-card ul li:last-child {
  border-bottom: none;
}
.price-card ul li::before {
  content: "✦";
  color: var(--emerald-bright);
  flex: none;
}

.price-card--featured {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(160deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.02) 45%, rgba(255, 255, 255, 0.02));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 24px 70px rgba(0, 0, 0, 0.5),
    0 0 50px rgba(245, 158, 11, 0.14);
  transform: scale(1.03);
  z-index: 2;
}
.price-card--featured:hover {
  transform: scale(1.03) translateY(-8px);
}
.price-card--featured ul li::before {
  color: var(--gold-bright);
}
.price-card--featured .rank-tag {
  color: var(--gold-bright);
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
}

.badge-popular {
  position: absolute;
  top: 16px;
  right: -34px;
  transform: rotate(38deg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #241303;
  background: linear-gradient(90deg, #fde68a, var(--gold-bright));
  padding: 6px 42px;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
}

/* ---------- Tabs ---------- */
.tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 44px;
}

.tab-btn {
  padding: 10px 24px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text-dim);
  transition: all 0.3s var(--ease-out);
}

.tab-btn.is-active {
  color: #052018;
  background: linear-gradient(160deg, #6ee7c8, var(--emerald));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 6px 18px rgba(16, 185, 129, 0.35);
}

.tab-panel {
  display: none;
}
.tab-panel.is-active {
  display: block;
  animation: fadeUp 0.5s var(--ease-out);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Tabellen ---------- */
.table-wrap,
.table-wrap.glass {
  overflow-x: auto;
  border-radius: var(--radius);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

table.data th {
  font-family: var(--font-display);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--emerald-bright);
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.05);
  white-space: nowrap;
}

table.data td {
  padding: 15px 20px;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

table.data tr:last-child td {
  border-bottom: none;
}

table.data tr:hover td {
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
}

table.data td strong {
  color: var(--text);
}

/* Handy: Zeilen als Karten, Spaltenname vor jedem Wert */
@media (max-width: 720px) {
  table.data.is-stackable {
    min-width: 0;
  }
  /* Spaltennamen stehen jetzt vor jedem Wert (data-label) */
  table.data.is-stackable thead {
    display: none;
  }
  table.data.is-stackable,
  table.data.is-stackable tbody,
  table.data.is-stackable tr,
  table.data.is-stackable td {
    display: block;
    width: 100%;
  }
  table.data.is-stackable tr {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  table.data.is-stackable tr:last-child {
    border-bottom: none;
  }
  table.data.is-stackable td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 5px 0;
    border: none;
    text-align: right;
  }
  table.data.is-stackable td > * {
    min-width: 0;
    white-space: normal;
  }
  table.data.is-stackable td::before {
    content: attr(data-label);
    flex: none;
    max-width: 45%;
    text-align: left;
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-faint);
  }
  table.data.is-stackable td:first-child {
    padding-top: 0;
    font-size: 16px;
  }
  table.data.is-stackable tr:hover td {
    background: none;
  }
}

.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.pill--green {
  color: var(--emerald-bright);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.pill--gold {
  color: var(--gold-bright);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.pill--violet {
  color: #a78bfa;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.pill--red {
  color: var(--red);
  background: rgba(248, 113, 113, 0.10);
  border: 1px solid rgba(248, 113, 113, 0.3);
}
.pill--cyan {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.10);
  border: 1px solid rgba(34, 211, 238, 0.3);
}

/* ---------- Accordion (FAQ) ---------- */
.accordion {
  display: grid;
  gap: 14px;
}

.acc-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16.5px;
  transition: color 0.25s;
}

.acc-item.is-open .acc-head,
.acc-head:hover {
  color: var(--emerald-bright);
}

.acc-icon {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  transition: transform 0.4s var(--ease-spring), background 0.3s, color 0.3s;
  font-size: 16px;
}

.acc-item.is-open .acc-icon {
  transform: rotate(45deg);
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--emerald-bright);
}

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-out);
}

.acc-body-inner {
  padding: 0 26px 24px;
  color: var(--text-dim);
  font-size: 15px;
}
.acc-body-inner code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--emerald-bright);
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.22);
  padding: 1px 7px;
  border-radius: 6px;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.team-card {
  padding: 30px 24px;
  text-align: center;
}

.avatar {
  --skin: #d9a066;
  --hair: #3b2a1a;
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 26px rgba(0, 0, 0, 0.4);
  background:
    repeating-conic-gradient(rgba(0, 0, 0, 0.07) 0% 25%, transparent 0% 50%) 0 0/25% 25%,
    linear-gradient(180deg, var(--hair) 0 27%, var(--skin) 27%);
}
/* Freie Team-Position: gestrichelter Platzhalter statt Gesicht */
.avatar--open {
  background: rgba(255, 255, 255, 0.03);
  border-style: dashed;
  box-shadow: none;
  display: grid;
  place-items: center;
}
/* Doppelte Klasse, damit die Augen-Regeln weiter unten nicht gewinnen */
.avatar.avatar--open::before,
.avatar.avatar--open::after {
  content: none;
}
.avatar-open-mark {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-faint);
}

/* Augen */
.avatar::before {
  content: "";
  position: absolute;
  top: 46%;
  left: 17%;
  width: 13%;
  height: 13%;
  background: #fff;
  box-shadow: inset -4px 0 0 #2b3a52;
}
.avatar::after {
  content: "";
  position: absolute;
  top: 46%;
  right: 17%;
  width: 13%;
  height: 13%;
  background: #fff;
  box-shadow: inset -4px 0 0 #2b3a52;
}
/* Mund */
.avatar .mouth {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 26%;
  height: 8%;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 2px;
}
/* Glanz über dem Kopf */
.avatar .shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.28), transparent 45%);
  pointer-events: none;
}

.team-card h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.team-role {
  font-size: 12.5px;
  margin-bottom: 12px;
}

.team-card p {
  font-size: 13.5px;
  color: var(--text-dim);
}

/* ---------- Regeln ---------- */
.rule-section {
  padding: 36px 38px;
  margin-bottom: 26px;
}

.rule-section h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 23px;
  margin-bottom: 22px;
}

.rule-no {
  flex: none;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--emerald-bright);
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 10px;
  padding: 6px 13px;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.12);
}

.rule-list {
  display: grid;
  gap: 0;
}

.rule-list li {
  display: flex;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
  color: var(--text-dim);
  font-size: 15px;
}
.rule-list li:last-child {
  border-bottom: none;
}
.rule-list li strong {
  color: var(--text);
}

.rule-idx {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
  margin-top: 3px;
  min-width: 34px;
}

/* ---------- Economy-Spezial ---------- */
.coin {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fde68a, var(--gold-bright) 45%, #b45309 100%);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.65),
    inset 0 -3px 6px rgba(90, 45, 5, 0.55),
    0 6px 20px rgba(245, 158, 11, 0.4);
  color: #451a03;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  animation: coinBob 3.5s ease-in-out infinite;
}
@keyframes coinBob {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-8px) rotate(4deg);
  }
}

/* Markt-Chart Deko */
.market-chart {
  padding: 30px;
}
.market-chart svg {
  width: 100%;
  height: auto;
}
.chart-line {
  fill: none;
  stroke: url(#chartGrad);
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.5));
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}
.reveal.is-visible .chart-line,
.market-chart.is-visible .chart-line {
  animation: drawLine 2.4s var(--ease-out) forwards 0.3s;
}
@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}
.chart-area {
  fill: url(#areaGrad);
  opacity: 0;
  transition: opacity 1.2s ease 1s;
}
.market-chart.is-visible .chart-area,
.reveal.is-visible .chart-area {
  opacity: 1;
}

.job-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  transition: transform 0.35s var(--ease-out), border-color 0.3s;
}
.job-row:hover {
  transform: translateX(6px);
  border-color: rgba(245, 158, 11, 0.35);
}
.job-row .job-ico {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 20px;
  border-radius: 12px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
}
.job-row .job-info {
  flex: 1;
  min-width: 0;
}
.job-row h4 {
  font-size: 15.5px;
}
.job-row .job-desc {
  font-size: 12.5px;
  color: var(--text-faint);
}
.job-row .job-pay {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold-bright);
  white-space: nowrap;
}

/* ---------- CTA-Banner ---------- */
.cta-banner {
  position: relative;
  padding: 74px 60px;
  text-align: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 120% at 50% -20%, rgba(16, 185, 129, 0.22), transparent 60%),
    radial-gradient(ellipse 50% 90% at 85% 110%, rgba(245, 158, 11, 0.14), transparent 60%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 30px 80px rgba(0, 0, 0, 0.5);
}

.cta-banner h2 {
  font-size: clamp(30px, 4.4vw, 48px);
  margin-bottom: 16px;
}

.cta-banner p {
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 34px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 80% at 15% 0%, rgba(16, 185, 129, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(4, 6, 11, 0.4), rgba(4, 6, 11, 0.95));
  padding: 76px 0 34px;
}
.footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52, 211, 153, 0.5), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 54px;
}

.footer-ip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  transition: border-color 0.25s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.footer-ip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 10px var(--emerald-bright);
}
.footer-ip-hint {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald-bright);
  padding: 4px 8px;
  border-radius: 7px;
  background: rgba(16, 185, 129, 0.12);
}
.footer-ip:hover {
  border-color: rgba(52, 211, 153, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.15);
}

.footer .socials {
  margin-top: 18px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 14px;
  margin: 16px 0 22px;
  max-width: 320px;
}

.footer h4 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.footer-links li {
  margin-bottom: 11px;
}
.footer-links a {
  color: var(--text-dim);
  font-size: 14.5px;
  transition: color 0.25s, padding-left 0.25s;
}
.footer-links a:hover {
  color: var(--emerald-bright);
  padding-left: 5px;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  transition: all 0.3s var(--ease-out);
}
.socials a:hover {
  color: var(--emerald-bright);
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.18);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-faint);
}

.footer-bottom a:hover {
  color: var(--text-dim);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 30px;
  /* left/right statt left:50% — sonst steht nur die halbe Bildschirmbreite
     zur Verfügung und die Meldung bricht auf dem Handy mehrfach um.
     Zentriert wird über margin-inline, die Breite folgt dem Inhalt. */
  left: 16px;
  right: 16px;
  width: fit-content;
  margin-inline: auto;
  transform: translateY(80px);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 14px;
  background: rgba(10, 20, 16, 0.92);
  border: 1px solid rgba(16, 185, 129, 0.45);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(16, 185, 129, 0.18);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--emerald-bright);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s var(--ease-spring), opacity 0.4s;
}
.toast.is-shown {
  transform: translateY(0);
  opacity: 1;
}

/* Bleibt auf sehr schmalen Displays doch ein Umbruch nötig, dann mit
   gleichmäßigen Zeilen — und die IP wird nie mitten im Namen getrennt. */
.toast-msg {
  text-wrap: balance;
  line-height: 1.4;
}
.toast-label,
.toast-ip {
  white-space: nowrap;
}

/* ---------- Scroll-Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal--left {
  transform: translateX(-44px);
}
.reveal--right {
  transform: translateX(44px);
}
.reveal--scale {
  transform: scale(0.92);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Bildflächen (siehe src/assets.js) ---------- */
/* Bildrahmen mit Verlauf und Innenkante */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #0b1018;
  isolation: isolate;
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 -80px 120px -40px rgba(4, 6, 11, 0.55);
  pointer-events: none;
}

/* Bild-Enthüllung beim Scrollen */
.reveal--image {
  opacity: 1;
  transform: none;
  clip-path: inset(12% 8% 12% 8% round 26px);
  transition: clip-path 1.2s var(--ease-out);
}
.reveal--image img {
  transform: scale(1.12);
}
.reveal--image.is-visible {
  clip-path: inset(0 0 0 0 round 26px);
}
.reveal--image.is-visible img {
  transform: scale(1);
}
.reveal--blur {
  filter: blur(12px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out), filter 1s var(--ease-out);
}
.reveal--blur.is-visible {
  filter: none;
}

/* Unterseiten: Bild der passenden Fläche als Kulisse hinter dem Titel */
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  opacity: 0.5;
  animation: backdropIn 1.6s var(--ease-out) both;
}
.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 40%, rgba(7, 9, 15, 0.35), rgba(7, 9, 15, 0.8) 100%),
    linear-gradient(180deg, rgba(7, 9, 15, 0.75) 0%, rgba(7, 9, 15, 0.25) 35%, rgba(7, 9, 15, 0.6) 75%, var(--bg) 100%);
}
@keyframes backdropIn {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
  to {
    opacity: 0.5;
    transform: none;
  }
}
.hero--sub {
  isolation: isolate;
}
/* News-Seite: Bild in der Aufmacher-Karte */
.news-featured-visual.media-frame {
  border-radius: 0;
}
.news-featured-visual img {
  position: absolute;
  inset: 0;
}

/* Rechtstexte */
.legal {
  max-width: 860px;
  display: grid;
  gap: 18px;
}
.legal .rule-section h2 {
  font-size: 21px;
  margin-bottom: 12px;
}
.legal p,
.legal-list li {
  color: var(--text-dim);
  font-size: 15.5px;
}
.legal a {
  color: var(--emerald-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-list {
  display: grid;
  gap: 8px;
}
.legal-list li {
  position: relative;
  padding-left: 22px;
}
.legal-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--emerald-bright);
}
.hero--legal {
  min-height: 0;
  padding-bottom: 30px;
}

/* ---------- Sub-Hero Breadcrumb ---------- */
.crumb {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 20px;
}
.crumb a:hover {
  color: var(--emerald-bright);
}
.crumb .sep {
  margin: 0 8px;
  color: var(--text-faint);
}
.crumb .current {
  color: var(--emerald-bright);
}

/* ---------- Divider-Glow ---------- */
.divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.5), rgba(139, 92, 246, 0.4), transparent);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
  border: none;
  margin: 0;
}

/* ---------- Hinweis-Boxen ---------- */
.note {
  display: flex;
  gap: 16px;
  padding: 22px 26px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--text-dim);
}
.note strong {
  color: var(--text);
}
.note .note-ico {
  flex: none;
  font-size: 20px;
  line-height: 1.4;
}
.note--gold {
  border-color: rgba(245, 158, 11, 0.3);
  background: linear-gradient(150deg, rgba(245, 158, 11, 0.09), rgba(245, 158, 11, 0.02));
}

/* ---------- News ---------- */
.news-featured {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  overflow: hidden;
  margin-bottom: 26px;
}
.news-featured-body {
  /* Grid-Items schrumpfen sonst nicht unter ihre Inhaltsbreite (min-width:
     auto-Falle) — ohne das sprengt langer Fließtext/Buttons die Karte. */
  min-width: 0;
  padding: 44px 46px;
}
.news-featured-visual {
  position: relative;
  min-height: 300px;
  background:
    radial-gradient(ellipse 80% 80% at 70% 30%, rgba(16, 185, 129, 0.22), transparent 65%),
    radial-gradient(ellipse 70% 70% at 20% 90%, rgba(245, 158, 11, 0.16), transparent 60%),
    linear-gradient(150deg, #0b1520, #060a12);
}
.news-featured-visual .coin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  font-size: 38px;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.news-date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}
.news-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
}
.news-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.news-card p {
  color: var(--text-dim);
  font-size: 14.5px;
  flex: 1;
}

.changelog-item {
  display: flex;
  gap: 24px;
  padding: 28px 32px;
  margin-bottom: 18px;
}
.changelog-version {
  flex: none;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--emerald-bright);
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 10px;
  padding: 7px 14px;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.12);
  white-space: nowrap;
}
.changelog-item h3 {
  font-size: 17px;
  margin-bottom: 10px;
}
.changelog-item h3 .news-date {
  margin-left: 10px;
}
.changelog-item ul {
  display: grid;
  gap: 7px;
}
.changelog-item ul li {
  display: flex;
  gap: 11px;
  color: var(--text-dim);
  font-size: 14.5px;
}
.changelog-item ul li::before {
  content: "▸";
  color: var(--emerald-bright);
  flex: none;
}

/* ---------- Voting ---------- */
.vote-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 28px;
}
.vote-num {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: #052018;
  background: linear-gradient(160deg, #6ee7c8, var(--emerald));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 6px 18px rgba(16, 185, 129, 0.3);
  margin-bottom: 18px;
}
.vote-card h3 {
  font-size: 19px;
  margin-bottom: 6px;
}
.vote-card .vote-host {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.vote-card p {
  color: var(--text-dim);
  font-size: 14px;
  flex: 1;
  margin-bottom: 20px;
}

.streak-track {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin: 22px 0 8px;
}
.streak-day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  position: relative;
}
.streak-day.is-hit {
  color: #052018;
  font-weight: 700;
  background: linear-gradient(160deg, #6ee7c8, var(--emerald));
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 18px rgba(16, 185, 129, 0.3);
}
.streak-day.is-bonus {
  color: #241303;
  font-weight: 700;
  background: linear-gradient(160deg, #fde68a, var(--gold-bright));
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 0 22px rgba(245, 158, 11, 0.38);
  animation: pulse 2.2s ease-in-out infinite;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .voxel-scene {
    height: 340px;
  }
  .grid-3,
  .grid-4,
  .pricing-grid,
  .team-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-band {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .split--rev > :first-child {
    order: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .price-card--featured {
    transform: none;
  }
  .price-card--featured:hover {
    transform: translateY(-8px);
  }
}

@media (max-width: 720px) {
  .section {
    padding: 72px 0;
  }
  /* Lange Button-Texte (z.B. "Discord beitreten & Start nicht verpassen")
     brechen sonst wegen white-space:nowrap nicht um und sprengen ihren
     Container. Wirkt sich nicht auf kurze Buttons aus — die bleiben einzeilig. */
  .btn {
    white-space: normal;
    text-align: center;
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .pricing-grid,
  .team-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .news-featured {
    grid-template-columns: 1fr;
  }
  .news-featured-visual {
    min-height: 200px;
    order: -1;
  }
  .news-featured-body {
    padding: 30px 26px;
  }
  .changelog-item {
    flex-direction: column;
    gap: 14px;
    padding: 24px 22px;
  }
  .streak-track {
    gap: 6px;
  }
  .stats-band {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .cta-banner {
    padding: 52px 28px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 24px;
  }
  .hero {
    padding-top: 120px;
  }
  .ip-pill {
    flex-wrap: wrap;
    justify-content: center;
  }
  .rule-section {
    padding: 28px 22px;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .reveal--image {
    clip-path: none;
  }
  .reveal--blur {
    filter: none;
  }
  .chart-line {
    stroke-dashoffset: 0;
  }
  .chart-area {
    opacity: 1;
  }
  /* Ohne Schwebe-Animation fehlt den Würfeln die Drehung — hier fest setzen,
     damit sie auch bei reduzierter Bewegung als 3D-Blöcke erkennbar bleiben. */
  .voxel {
    transform: rotateX(-24deg) rotateY(-32deg) !important;
  }
}

/* ==========================================================================
   WERKZEUGE — Börse (Kursverlauf, Watchlist) und Rechner
   ========================================================================== */

/* ---------- Statusleiste über den Werkzeugen ---------- */
.tool-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
}

.tool-status .sep {
  color: var(--text-faint);
}

.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.source-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.source-badge--live {
  color: var(--emerald-bright);
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
}
.source-badge--live .dot {
  animation: livePulse 2s ease-in-out infinite;
}
.source-badge--sim {
  color: var(--gold-bright);
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.32);
}
@keyframes livePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(52, 211, 153, 0);
  }
}

/* ---------- Börsen-Layout ---------- */
.market-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.market-rail {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 6px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.filter-toggle:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.filter-toggle.is-on {
  color: var(--gold-bright);
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.1);
}

.market-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 74px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-align: left;
  transition: background 0.25s, border-color 0.25s;
}
.market-row:hover {
  background: var(--surface);
}
.market-row.is-active {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.28);
}

.market-row .row-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}
.market-row .row-price {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
}
.market-row .row-spark {
  width: 74px;
  height: 30px;
  overflow: visible;
}

.star-btn {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--text-faint);
  transition: color 0.2s, transform 0.2s var(--ease-spring), background 0.2s;
}
.star-btn:hover {
  color: var(--gold-bright);
  background: rgba(245, 158, 11, 0.12);
  transform: scale(1.12);
}
.star-btn.is-on {
  color: var(--gold-bright);
}

.delta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.delta--up {
  color: var(--emerald-bright);
}
.delta--down {
  color: var(--red);
}
.delta--flat {
  color: var(--text-faint);
}

/* ---------- Chart ---------- */
.chart-panel {
  padding: 26px 28px 22px;
}

.chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.chart-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chart-price {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.range-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.range-tab {
  padding: 7px 15px;
  border-radius: 9px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  transition: all 0.25s var(--ease-out);
}
.range-tab.is-active {
  color: #052018;
  background: linear-gradient(160deg, #6ee7c8, var(--emerald));
}

.chart-frame {
  position: relative;
}
.chart-frame svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-grid line {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1;
}
.chart-base-line {
  stroke: rgba(251, 191, 36, 0.45);
  stroke-width: 1;
  stroke-dasharray: 5 5;
}
.chart-path {
  fill: none;
  stroke: url(#kursGrad);
  stroke-width: 2.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.chart-fill {
  fill: url(#kursArea);
}
.chart-axis {
  font-family: var(--font-mono);
  font-size: 10.5px;
  fill: var(--text-faint);
}
.chart-event {
  fill: var(--bg);
  stroke: var(--gold-bright);
  stroke-width: 2;
  cursor: help;
}
.chart-cursor {
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}
.chart-dot {
  fill: var(--emerald-bright);
  stroke: var(--bg-deep);
  stroke-width: 2.5;
}

.chart-tip {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -140%);
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(6, 10, 18, 0.95);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.chart-tip.is-shown {
  opacity: 1;
}
.chart-tip .tip-time {
  color: var(--text-faint);
  font-size: 11px;
}

.chart-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.chart-stat .k {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 5px;
}
.chart-stat .v {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

/* ---------- Marktereignisse ---------- */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.event-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}
.event-item .ev-ico {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-size: 17px;
}
.event-item--up .ev-ico {
  color: var(--emerald-bright);
  background: rgba(16, 185, 129, 0.12);
}
.event-item--down .ev-ico {
  color: var(--red);
  background: rgba(248, 113, 113, 0.1);
}
.event-item h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}
.event-item p {
  font-size: 13.5px;
  color: var(--text-dim);
}
.event-time {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  white-space: nowrap;
}

/* ---------- Formularfelder (Rechner) ---------- */
.field {
  display: block;
  margin-bottom: 18px;
}
/* .field setzt display, sonst bliebe ein [hidden]-Feld sichtbar. */
.field[hidden] {
  display: none;
}
.field > .label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.field > .label .hint {
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  color: var(--text-dim);
}

.input,
select.input {
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  -moz-appearance: textfield;
  appearance: none;
}
.input:focus,
select.input:focus {
  outline: none;
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.06);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}
.input::-webkit-outer-spin-button,
.input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa5b5' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 17px;
  padding-right: 40px;
  cursor: pointer;
}
select.input option {
  background: var(--bg-raise);
  color: var(--text);
}

.input-group {
  display: flex;
  align-items: stretch;
}
.input-group .input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.input-group .unit {
  display: grid;
  place-items: center;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-faint);
  white-space: nowrap;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--emerald) var(--fill, 50%), rgba(255, 255, 255, 0.09) var(--fill, 50%));
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(160deg, #6ee7c8, var(--emerald));
  border: 2px solid #04120d;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.5);
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #04120d;
  background: var(--emerald);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.5);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dim);
  transition: all 0.25s var(--ease-out);
}
.chip:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.chip.is-active {
  color: var(--emerald-bright);
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.12);
}
.chip .chip-ico {
  font-size: 15px;
}

/* ---------- Ergebnisse ---------- */
.calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 22px;
  align-items: start;
}

.calc-input {
  padding: 28px;
}

.result-card {
  padding: 26px 28px;
  position: sticky;
  top: 96px;
}

.result-big {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(120deg, #fbbf24, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  word-break: break-word;
}
.result-sub {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
  margin-top: 4px;
}

.result-rows {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.result-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-size: 14px;
}
.result-row .k {
  color: var(--text-dim);
}
.result-row .v {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text);
  text-align: right;
}
.result-row--strong {
  padding-top: 11px;
  border-top: 1px solid var(--border);
  font-size: 15.5px;
}
.result-row--strong .v {
  color: var(--emerald-bright);
  font-size: 17px;
}

.verdict {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.6;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
}
.verdict strong {
  color: var(--text);
}
.verdict--good {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
}
.verdict--warn {
  border-color: rgba(245, 158, 11, 0.32);
  background: rgba(245, 158, 11, 0.08);
}
.verdict--bad {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.08);
}

/* ---------- Aktionstabelle im Jobs-Rechner ---------- */
table.data.action-table th {
  white-space: normal;
  letter-spacing: 0.06em;
  padding-inline: 12px;
}
table.data.action-table td {
  padding-inline: 12px;
}
.action-table td .input {
  padding: 8px 11px;
  font-size: 13.5px;
  max-width: 120px;
}
table.data td.num,
table.data th.num {
  text-align: right;
  font-family: var(--font-mono);
}
table.data tr.is-zero td {
  opacity: 0.45;
}

.level-readout {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
}
.level-readout .lvl {
  font-size: 30px;
  font-weight: 700;
  color: var(--emerald-bright);
}
.level-readout .mult {
  font-size: 13px;
  color: var(--text-faint);
}

.tool-error {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.08);
  color: var(--text-dim);
  font-size: 14px;
}

.is-loading {
  opacity: 0.45;
  transition: opacity 0.2s;
}

/* ---------- Responsiv ---------- */
@media (max-width: 1080px) {
  .calc-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}

@media (max-width: 980px) {
  .market-layout,
  .calc-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .market-rail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 8px;
  }
  .rail-head {
    grid-column: 1 / -1;
  }
  .result-card {
    position: static;
  }
}

@media (max-width: 720px) {
  /* Die Aktionstabelle ist ein Eingabefeld, kein Nachschlagewerk: Auf dem
     Handy müssen Name, Eingabe und Ergebnis nebeneinander passen, ohne
     seitlich zu scrollen. Art und Einkommen je Aktion fallen dafür weg. */
  table.data.action-table {
    min-width: 0;
    font-size: 13.5px;
  }
  table.data.action-table th:nth-child(2),
  table.data.action-table td:nth-child(2),
  table.data.action-table th:nth-child(3),
  table.data.action-table td:nth-child(3) {
    display: none;
  }
  table.data.action-table th,
  table.data.action-table td {
    padding: 11px 9px;
  }
  table.data.action-table td .input {
    max-width: 66px;
    padding: 7px 8px;
  }
  .calc-input {
    padding: 22px 16px;
  }

  .chart-panel {
    padding: 22px 18px 18px;
  }
  .chart-price {
    font-size: 26px;
  }
  .result-big {
    font-size: 32px;
  }
  .event-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }
  .event-item .event-time {
    grid-column: 2;
  }
  .market-rail {
    grid-template-columns: minmax(0, 1fr);
  }
}
