/* ============================================================
   PalHeim – Palworld-inspiriertes Design
   Heller Himmel, sattes Wiesengrün, sonniges Orange,
   runde verspielte Formen ("Pal-Sphere"-Optik)
   ============================================================ */

:root {
  --bg: #eaf6fe;             /* heller Himmel */
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-tint: #f3fafe;
  --border: rgba(22, 64, 95, 0.14);
  --text: #16405f;           /* tiefes Meeresblau */
  --text-muted: #52708a;
  --accent: #f98a1b;         /* sonniges Orange (CTA) */
  --accent-light: #ffb454;
  --blue: #2f9de4;           /* Himmelblau */
  --blue-dark: #176ba6;
  --accent-text: #a85500;  /* Orange als TEXT – AA-konform auf Weiß/Himmel */
  --green: #3fa447;
  --danger: #d94f4f;
  --navy: #12314e;           /* Nav/Footer dunkel */
  --shadow-soft: 0 6px 24px rgba(22, 64, 95, 0.10);
  --font-display: "Baloo 2", "Segoe UI Rounded", "Segoe UI", sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --radius: 20px;
  --container: 1120px;

  /* Chart-Farben: gegen weiße Fläche validiert (Kontrast + CVD) */
  --chart-series: #0d9488;
  --chart-grid: rgba(22, 64, 95, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* hidden-Attribut gewinnt immer – auch gegen display:flex etc. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

main { flex: 1; }

/* Nur für Screenreader sichtbar (Chart-Ansagen) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: ui-monospace, "Cascadia Code", "JetBrains Mono", monospace;
  font-size: 0.95em;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 0;
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px) scale(1.02); }

.btn--accent {
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  color: #0f334f;
  box-shadow: 0 4px 0 #d06e0a, 0 10px 24px rgba(249, 138, 27, 0.35);
}
.btn--accent:hover { box-shadow: 0 4px 0 #d06e0a, 0 14px 32px rgba(249, 138, 27, 0.5); }
.btn--accent:active { transform: translateY(2px); box-shadow: 0 2px 0 #d06e0a; }

.btn--ghost {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  box-shadow: inset 0 0 0 2px var(--border), var(--shadow-soft);
}
.btn--ghost:hover { background: #ffffff; }

.btn--large { padding: 16px 34px; font-size: 1.1rem; }
.btn--small { padding: 9px 18px; font-size: 0.9rem; }

/* ---------------- Navigation ---------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
}
.nav__brand:hover { text-decoration: none; }
.nav__brand em { color: var(--blue); font-style: normal; }

.nav__logo { width: 32px; height: 32px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav__links a {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.98rem;
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--blue-dark); text-decoration: none; }
.nav__links .btn { color: #0f334f; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 24px;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 72px 0 140px;
}

/* Landschafts-Artwork als Hintergrund, mit Fallback-Ebenen:
   1. /assets/hero.jpg   – eigenes Bild (einfach ablegen, gewinnt immer)
   2. /assets/hero.webp  – das KI-generierte Landschafts-Artwork (Standard)
   3. hero-scene.svg     – gezeichnete SVG-Szene, falls beide fehlen
   Fehlende Ebenen überspringt der Browser automatisch.
   Alternative Variante liegt unter /assets/hero-alt.webp bereit. */
.hero__scene {
  position: absolute;
  inset: 0;
  background:
    url("/assets/hero.jpg") center / cover no-repeat,
    url("/assets/hero.webp") center / cover no-repeat,
    url("/assets/hero-scene.svg") center bottom / cover no-repeat;
  pointer-events: none;
}

/* sanfter Übergang in die erste Sektion */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(234, 246, 254, 0) 0%, var(--bg) 92%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.pulse-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}
.pulse-dot.is-online {
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(63, 164, 71, 0.6);
  animation: pulse 2s infinite;
}
.pulse-dot.is-offline { background: var(--danger); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(63, 164, 71, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(63, 164, 71, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 164, 71, 0); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 7vw, 4.8rem);
  font-weight: 800;
  line-height: 1.06;
  color: #ffffff;
  max-width: 900px;
  text-shadow:
    0 2px 0 rgba(18, 49, 78, 0.25),
    0 6px 22px rgba(18, 49, 78, 0.45);
}

.text-gradient {
  text-shadow: none;
  background: linear-gradient(180deg, #ffe378 15%, #ffa63a 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(150, 90, 20, 0.35)) drop-shadow(0 5px 14px rgba(18, 49, 78, 0.35));
}

.hero__subtitle {
  max-width: 640px;
  color: #ffffff;
  font-size: 1.18rem;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(18, 49, 78, 0.55), 0 1px 3px rgba(18, 49, 78, 0.6);
}

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

/* Adresse mit Kopier-Button */
.address-chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  padding: 10px 12px 10px 22px;
  margin-top: 6px;
  flex-wrap: wrap;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}
.address-chip__label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.address-chip__value {
  font-size: 1.05rem;
  color: var(--blue-dark);
  font-weight: 700;
}
.address-chip__copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--blue-dark);
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease;
}
.address-chip__copy:hover { background: #125685; }
.address-chip__copy svg { width: 15px; height: 15px; }
.address-chip__copy.is-copied { background: #2e7d35; }

.hero__scroll {
  position: absolute;
  bottom: 108px;
  left: 50%;
  transform: translateX(-50%);
}
.hero__scroll a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 1.3rem;
  box-shadow: var(--shadow-soft);
  animation: bob 2.2s ease-in-out infinite;
}
.hero__scroll a:hover { text-decoration: none; background: #ffffff; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ---------------- Sektionen ---------------- */

.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }

.section__label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-text);
  margin-bottom: 8px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section__intro {
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 44px;
  font-size: 1.08rem;
  font-weight: 600;
}

/* Scroll-Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------- Status ---------------- */

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s ease;
}
.stat-card:hover { transform: translateY(-4px); }

.stat-card__label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.stat-card__value {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
}
.stat-card__value.is-online { color: var(--green); }
.stat-card__value.is-offline { color: var(--danger); }
.stat-card__hint { font-size: 0.88rem; font-weight: 600; color: var(--text-muted); }

.player-list { margin-top: 34px; }
.player-list__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-muted);
}
.player-list__items {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.player-list__items li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}
.player-list__items li span {
  color: var(--accent-text);
  font-size: 0.83rem;
  margin-left: 6px;
}

.status-footnote {
  margin-top: 26px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ---------------- Statistiken ---------------- */

/* 5 Kennzahl-Kacheln passen so bei voller Breite in eine Reihe */
#statistiken .status-grid,
#status .status-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.chart-card {
  margin-top: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 22px 24px 14px;
}

.chart-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.chart-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.chart-range {
  display: inline-flex;
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 3px;
}

.chart-range__btn {
  background: none;
  border: 0;
  border-radius: 999px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 6px 16px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.chart-range__btn:hover { color: var(--text); }
.chart-range__btn.is-active {
  background: var(--blue-dark);
  color: #ffffff;
}

.chart {
  position: relative;
  margin: 0;
  min-height: 280px;
  outline: none;
}
.chart:focus-visible { box-shadow: 0 0 0 3px rgba(47, 157, 228, 0.4); border-radius: 8px; }
.chart svg { display: block; }

.chart-grid { stroke: var(--chart-grid); stroke-width: 1; }
.chart-tick { fill: var(--text-muted); font-size: 11px; font-family: var(--font-body); font-weight: 600; }
.chart-line {
  fill: none;
  stroke: var(--chart-series);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.chart-area { fill: var(--chart-series); opacity: 0.1; }
.chart-dot {
  fill: var(--chart-series);
  stroke: var(--surface);
  stroke-width: 2;
}
.chart-crosshair { stroke: rgba(22, 64, 95, 0.3); stroke-width: 1; }

.chart__tooltip {
  position: absolute;
  transform: translateY(-100%);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
  box-shadow: 0 8px 24px rgba(22, 64, 95, 0.18);
  white-space: nowrap;
  z-index: 5;
}
.chart__tooltip strong {
  font-size: 0.95rem;
  padding-left: 14px;
  position: relative;
}
/* Linien-Key: kurzer Strich in der Serienfarbe vor dem Wert */
.chart__tooltip strong::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 2px;
  background: var(--chart-series);
}
.chart__tooltip span { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }

.chart__empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.98rem;
  text-align: center;
  padding: 24px;
}

.leaderboard { margin-top: 34px; }

.leaderboard__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-muted);
}

.leaderboard__scroll { overflow-x: auto; }

.leaderboard__table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  font-size: 0.98rem;
  min-width: 520px;
}

.leaderboard__table th,
.leaderboard__table td {
  text-align: left;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(22, 64, 95, 0.08);
}

.leaderboard__table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 800;
  background: var(--surface-tint);
}

.leaderboard__table tbody tr:last-child td { border-bottom: 0; }
.leaderboard__table tbody tr:hover td { background: var(--surface-tint); }

.leaderboard__table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.leaderboard__name { font-weight: 800; }

.leaderboard__online {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 8px;
}

/* ---------------- Live-Karte ---------------- */

.map-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 20px 22px 14px;
}

.map-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.map-legend { display: flex; gap: 18px; }
.map-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}
.map-legend__dot { width: 12px; height: 12px; border-radius: 50%; }
.map-legend__dot--player { background: var(--blue-dark); }
.map-legend__dot--base { background: #a85500; border-radius: 3px; }

.map-card__status { font-size: 0.9rem; font-weight: 700; color: var(--text-muted); }

.map-view {
  position: relative;
  min-height: 520px;
  background:
    radial-gradient(circle at 30% 20%, rgba(47, 157, 228, 0.08), transparent 60%),
    var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.map-view svg { display: block; }

.map-view__empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
  padding: 24px;
}

.map-grid { stroke: rgba(22, 64, 95, 0.08); stroke-width: 1; }
.map-tick { fill: var(--text-muted); font-size: 11px; font-family: var(--font-body); font-weight: 700; }

.map-base path {
  fill: #c1770e;
  stroke: #ffffff;
  stroke-width: 1.5;
}
.map-player circle { fill: var(--blue-dark); stroke: #ffffff; stroke-width: 2; }
.map-player__halo {
  fill: rgba(23, 107, 166, 0.18);
  stroke: none;
  animation: mapPulse 2.4s ease-out infinite;
}
@keyframes mapPulse {
  0% { opacity: 0.9; transform: scale(0.6); }
  70% { opacity: 0; transform: scale(1.5); }
  100% { opacity: 0; transform: scale(1.5); }
}

.map-label {
  fill: var(--text);
  font-size: 11.5px;
  font-family: var(--font-body);
  font-weight: 800;
  text-anchor: middle;
  paint-order: stroke;
  stroke: #ffffff;
  stroke-width: 3px;
  stroke-linejoin: round;
}
.map-label--player { fill: #114a73; }

.map-footnote {
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Ausricht-Modus (?align) */
.map-align path { stroke: var(--accent); stroke-width: 2; }
.map-align circle { stroke: var(--accent); stroke-width: 2; }
.map-align__label {
  fill: var(--accent-text);
  font-size: 11px;
  font-family: var(--font-body);
  font-weight: 800;
  paint-order: stroke;
  stroke: #ffffff;
  stroke-width: 3px;
  stroke-linejoin: round;
}

.map-align-panel {
  margin-top: 14px;
  padding: 16px 18px;
  border: 2px dashed var(--accent-light);
  border-radius: 16px;
  background: var(--surface-tint);
  font-size: 0.9rem;
}
.map-align-panel strong { font-family: var(--font-display); font-size: 1rem; }
.map-align-panel p { margin: 6px 0 12px; color: var(--text-muted); }
.map-align-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.map-align-panel label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
  font-size: 0.82rem;
}
.map-align-panel input {
  font-family: ui-monospace, monospace;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}
.map-align-panel__readout {
  margin: 12px 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--navy);
  color: #d7ecff;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  .map-player__halo { animation: none; opacity: 0; }
}

/* ---------------- Erfolge ---------------- */

.ach { margin-top: 44px; }

.ach__intro {
  color: var(--text-muted);
  font-weight: 600;
  max-width: 640px;
  margin-bottom: 16px;
}

.ach__form { max-width: 520px; margin-bottom: 16px; }

.ach__summary {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.ach__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.ach-card {
  display: flex;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 16px 18px;
}
.ach-card.is-unlocked { border-color: rgba(46, 125, 53, 0.45); }
.ach-card.is-locked { opacity: 0.75; }
.ach-card.is-locked .ach-card__icon { filter: grayscale(1); opacity: 0.6; }

.ach-card__icon { font-size: 1.9rem; line-height: 1.2; flex-shrink: 0; }
.ach-card__body { flex: 1; min-width: 0; }
.ach-card__name { font-family: var(--font-display); font-weight: 800; }
.ach-card__desc { font-size: 0.86rem; font-weight: 600; color: var(--text-muted); }

.ach-card__done {
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #256b2c;
}

.ach-card__track {
  margin-top: 8px;
  height: 8px;
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.ach-card__bar {
  height: 100%;
  background: var(--blue);
  border-radius: 999px;
}
.ach-card__count {
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ---------------- Raten ---------------- */

.rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.rate-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 28px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.rate-card:hover { transform: translateY(-4px); border-color: rgba(47, 157, 228, 0.5); }

.rate-card__value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--accent-text);
  line-height: 1.1;
}
.rate-card__name {
  display: block;
  font-weight: 800;
  margin: 6px 0 8px;
}
.rate-card p { color: var(--text-muted); font-weight: 600; font-size: 0.94rem; }

.info-strip {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.info-strip__item {
  background: var(--surface);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 700;
}
.info-strip__item strong {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ---------------- Schritte ---------------- */

.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 760px;
}

.step {
  display: flex;
  gap: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 26px 28px;
}

.step__num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(180deg, #1c7fc4, var(--blue-dark));
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 0 rgba(18, 49, 78, 0.25);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.step p { color: var(--text-muted); font-weight: 600; }

.inline-address {
  background: rgba(47, 157, 228, 0.1);
  border: 1px solid rgba(47, 157, 228, 0.35);
  color: var(--blue-dark);
  font-weight: 700;
  border-radius: 8px;
  padding: 2px 8px;
  white-space: nowrap;
}

.copy-mini {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 2px 12px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  margin-left: 6px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.copy-mini:hover { color: var(--blue-dark); border-color: var(--blue); }
.copy-mini.is-copied { color: #ffffff; background: #2e7d35; border-color: #2e7d35; }

.notice {
  margin-top: 34px;
  max-width: 760px;
  background: #fff6e8;
  border: 1px solid rgba(249, 138, 27, 0.35);
  border-radius: var(--radius);
  padding: 18px 24px;
  color: var(--text-muted);
  font-weight: 600;
}
.notice strong { color: var(--accent-text); }

/* ---------------- Vote & Belohnung ---------------- */

.vote-card {
  max-width: 640px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vote-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-muted);
  font-weight: 600;
}
.vote-steps li { display: flex; align-items: baseline; gap: 10px; }
.vote-steps li strong { color: var(--text); }
.vote-steps__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: #ffffff;
  background: var(--blue-dark);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transform: translateY(3px);
}

.vote-card .btn--accent { align-self: flex-start; }

.vote-form__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.vote-form__row { display: flex; gap: 10px; flex-wrap: wrap; }
.vote-form__input {
  flex: 1;
  min-width: 200px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-tint);
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 11px 20px;
  outline: none;
  transition: border-color 0.15s ease;
}
.vote-form__input:focus { border-color: var(--blue); }
.vote-form__input::placeholder { color: var(--text-muted); opacity: 0.6; }

.vote-message {
  font-weight: 700;
  border-radius: 12px;
  padding: 12px 18px;
}
.vote-message.is-ok {
  background: rgba(46, 125, 53, 0.1);
  border: 1px solid rgba(46, 125, 53, 0.4);
  color: #256b2c;
}
.vote-message.is-error {
  background: #fff6e8;
  border: 1px solid rgba(249, 138, 27, 0.4);
  color: #a85500;
}

/* ---------------- Regeln ---------------- */

.rules {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.rules li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 20px 24px 20px 56px;
  position: relative;
  color: var(--text-muted);
  font-weight: 600;
}
.rules li strong { color: var(--text); }
.rules li::before {
  content: "✓";
  position: absolute;
  left: 20px;
  top: 20px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------------- FAQ ---------------- */

.faq {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 54px 20px 24px;
  font-weight: 800;
  position: relative;
  transition: background 0.15s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-text);
  transition: transform 0.2s ease;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item summary:hover { background: var(--surface-tint); }

.faq__item p {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-weight: 600;
}
.faq__item code {
  background: rgba(22, 64, 95, 0.07);
  border-radius: 6px;
  padding: 1px 6px;
}

/* ---------------- CTA ---------------- */

.section--cta { padding: 40px 0 110px; }

.cta {
  position: relative;
  text-align: center;
  background: linear-gradient(180deg, #2b8fd0, #14639b);
  border-radius: 28px;
  padding: 64px 32px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(20, 99, 155, 0.35);
}
/* weiche Wolken im CTA-Panel */
.cta::before,
.cta::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  pointer-events: none;
}
.cta::before { width: 320px; height: 90px; top: -30px; left: -60px; }
.cta::after { width: 260px; height: 80px; bottom: -26px; right: -40px; }

.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(18, 49, 78, 0.3);
}
.cta p {
  color: #eaf6ff;
  margin-bottom: 28px;
  font-size: 1.08rem;
  font-weight: 700;
}

/* ---------------- 404 – Seite nicht gefunden ---------------- */

.notfound {
  text-align: center;
  padding: 56px 0 80px;
}

.notfound__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Illustration mit Fallback-Ebenen (wie beim Hero):
   1. /assets/404.webp|jpg|png – eigenes Bild (z. B. aus Higgsfield), gewinnt
   2. /assets/404-scene.svg    – gezeichnete SVG-Szene als Standard
   Fehlende Ebenen überspringt der Browser automatisch. */
.notfound__scene {
  width: min(420px, 82vw);
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  border: 4px solid var(--surface);
  box-shadow: var(--shadow-soft);
  background:
    url("/assets/404.webp") center / cover no-repeat,
    url("/assets/404.jpg") center / cover no-repeat,
    url("/assets/404.png") center / cover no-repeat,
    url("/assets/404-scene.svg") center / cover no-repeat;
}

.notfound__code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 12vw, 5.6rem);
  line-height: 1.05;
  margin-top: 20px;
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 10px rgba(249, 138, 27, 0.28));
}

.notfound__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin-top: 4px;
}

.notfound__text {
  max-width: 46ch;
  margin: 12px auto 0;
  color: var(--text-muted);
}

.notfound__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 30px;
}

/* ---------------- Footer ---------------- */

.footer {
  padding: 44px 0;
  background: var(--navy);
  color: #b7cde0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.92rem;
  font-weight: 600;
}

.footer__links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer__links a { color: #b7cde0; }
.footer__links a:hover { color: #ffffff; }

.footer__disclaimer { font-size: 0.8rem; opacity: 0.75; max-width: 640px; }

/* ---------------- Responsive ---------------- */

/* Info-Strip: verhindert 3+1-Umbruch mit sichtbaren Leer-Zellen.
   Obergrenze 869px: Media Queries messen inkl. Scrollbar (bis ~17px),
   das Grid rechnet aber mit der Breite ohne Scrollbar. */
@media (min-width: 650px) and (max-width: 869px) {
  .info-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 999px) {
  .nav__toggle { display: flex; }

  .nav__links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 30px rgba(22, 64, 95, 0.12);
    padding: 18px 24px 24px;
    gap: 4px;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a {
    padding: 12px 4px;
    font-size: 1.08rem;
  }
  .nav__links .btn { justify-content: center; margin-top: 10px; }

  .section { padding: 72px 0; }
  .step { flex-direction: column; gap: 12px; }
  .address-chip { width: 100%; border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse-dot.is-online, .hero__scroll a { animation: none; }
}
