/*
  nova.css
  Design-Tokens und Bausteine der Nova-Website.
  Die Farben, Maße und Verläufe stammen 1:1 aus ios/Nova/Design/NovaTheme.swift.
*/

/* ---------------------------------------------------------------- Tokens */

:root {
  /* Markenfarben */
  --pink:   #ff5c9e;
  --violet: #8c61ff;
  --orange: #ffa35c;

  /* Hintergrund */
  --deep-space: #0a0817;
  --nebula:     #211442;

  /* Semantisch */
  --success: #5cdb9e;
  --error:   #ff6b6b;

  /* Text */
  --text:      #ffffff;
  --text-soft: rgba(255, 255, 255, 0.72);
  --text-mute: rgba(255, 255, 255, 0.52);
  --text-faint: rgba(255, 255, 255, 0.38);

  /* Glas */
  --glass:        rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --hairline:     rgba(255, 255, 255, 0.12);

  /* Verläufe */
  --brand-gradient: linear-gradient(135deg, var(--orange), var(--pink), var(--violet));
  --like-gradient:  linear-gradient(135deg, var(--pink), var(--violet));
  --nope-gradient:  linear-gradient(135deg, var(--orange), #ff5973);

  /* Maße */
  --control-height: 56px;
  --radius-card: 28px;
  --radius-field: 18px;
  --page-padding: 24px;
  --max-width: 1120px;

  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Quicksand",
          -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

/* ------------------------------------------------------------- Grundlage */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--deep-space);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 800;
}

p { margin: 0; }

::selection {
  background: rgba(255, 92, 158, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 8px;
}

/* -------------------------------------------------------- Weltraum-Grund */
/*
   Entspricht NovaBackground: Verlauf, drei treibende Nebel, Sternenfeld.
   Alles liegt fix hinter dem Inhalt, damit es beim Scrollen ruhig bleibt.
*/

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, var(--nebula), var(--deep-space) 70%);
  overflow: hidden;
}

.sky__nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.sky__nebula--violet {
  width: 44vw; height: 44vw;
  min-width: 340px; min-height: 340px;
  background: rgba(140, 97, 255, 0.42);
  top: -12vh; left: -6vw;
  animation: drift-a 22s ease-in-out infinite alternate;
}

.sky__nebula--pink {
  width: 38vw; height: 38vw;
  min-width: 300px; min-height: 300px;
  background: rgba(255, 92, 158, 0.3);
  top: 32vh; right: -8vw;
  animation: drift-b 26s ease-in-out infinite alternate;
}

.sky__nebula--orange {
  width: 32vw; height: 32vw;
  min-width: 260px; min-height: 260px;
  background: rgba(255, 163, 92, 0.18);
  bottom: -14vh; left: 18vw;
  filter: blur(100px);
  animation: drift-c 30s ease-in-out infinite alternate;
}

#starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

@keyframes drift-a { to { transform: translate3d(-70px, -70px, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(60px, -100px, 0) scale(1.05); } }
@keyframes drift-c { to { transform: translate3d(-50px, 70px, 0) scale(1.1); } }

/* -------------------------------------------------------------- Struktur */

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--page-padding);
}

section { position: relative; }

.section {
  padding-block: clamp(72px, 10vw, 128px);
}

.section__head {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section__head p {
  color: var(--text-soft);
  margin-top: 16px;
  font-size: 1.0625rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--brand-gradient);
}

.section__head .eyebrow::after {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--brand-gradient);
}

h2 { font-size: clamp(1.875rem, 4vw, 2.75rem); }
h3 { font-size: 1.1875rem; font-weight: 700; }

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------------------------------------------------------- Knöpfe */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--control-height);
  padding-inline: 30px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1),
              box-shadow 0.25s ease, opacity 0.2s ease;
}

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

.btn--primary {
  background: var(--brand-gradient);
  box-shadow: 0 8px 18px rgba(255, 92, 158, 0.45);
  position: relative;
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 92, 158, 0.5);
}

.btn--ghost {
  background: var(--glass);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.btn--ghost:hover {
  background: var(--glass-strong);
  transform: translateY(-2px);
}

.btn--small {
  height: 44px;
  padding-inline: 22px;
  font-size: 0.9375rem;
}

.btn--block { width: 100%; }

/* ------------------------------------------------------------- Kopfleiste */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding-block: 14px;
  transition: background 0.3s ease, backdrop-filter 0.3s ease,
              border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-stuck {
  background: rgba(10, 8, 23, 0.72);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-bottom-color: var(--hairline);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.14em;
}

.brand svg { width: 30px; height: 30px; flex: none; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: color 0.2s ease;
}

.nav__links a:hover { color: #fff; }

.nav__cta { flex: none; }

@media (max-width: 860px) {
  .nav__links { display: none; }
}

/* Auf dem Handy bleibt der wichtigste Knopf stehen, die Links weichen. */
@media (max-width: 420px) {
  .brand { font-size: 1.0625rem; gap: 8px; }
  .brand svg { width: 26px; height: 26px; }
  .nav__cta { padding-inline: 16px; font-size: 0.875rem; }
}

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

.hero {
  padding-top: clamp(120px, 16vw, 176px);
  padding-bottom: clamp(64px, 9vw, 112px);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero h1 {
  font-size: clamp(2.375rem, 5.6vw, 4rem);
  letter-spacing: -0.02em;
}

.hero__lead {
  margin-top: 20px;
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  color: var(--text-soft);
  max-width: 30em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 22px;
  font-size: 0.875rem;
  color: var(--text-mute);
}

.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }

.hero__meta span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand-gradient);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 24px;
}

.badge__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(92, 219, 158, 0.6);
  animation: pulse-dot 2.4s ease-out infinite;
}

@keyframes pulse-dot {
  70%  { box-shadow: 0 0 0 10px rgba(92, 219, 158, 0); }
  100% { box-shadow: 0 0 0 0 rgba(92, 219, 158, 0); }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .hero__meta { justify-content: center; }
  /* Überschrift und Knopf zuerst, das Telefon darunter. */
  .hero__visual { margin-top: 16px; }
}

@media (max-width: 560px) {
  .hero__actions .btn { width: 100%; }
}

/* --------------------------------------------------------- Telefon-Mockup */

.hero__visual {
  display: flex;
  justify-content: center;
  perspective: 1400px;
}

.phone {
  position: relative;
  width: min(300px, 72vw);
  aspect-ratio: 300 / 620;
  border-radius: 48px;
  padding: 11px;
  background: linear-gradient(160deg, #2c2547, #12101f 60%);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 0 60px rgba(140, 97, 255, 0.25);
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-14px) rotate(1.5deg); }
}

@media (max-width: 560px) {
  .phone { width: min(250px, 66vw); border-radius: 40px; padding: 9px; }
  .phone__screen { border-radius: 32px; }
  .phone__notch { width: 80px; height: 22px; }
}

.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: linear-gradient(to bottom, #241548, #0a0817);
  display: flex;
  flex-direction: column;
  padding: 16px 14px 12px;
}

.phone__notch {
  position: absolute;
  top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 98px; height: 26px;
  border-radius: 999px;
  background: #07060f;
  z-index: 3;
}

.phone__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 14px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.phone__bar strong {
  color: #fff;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
}

/* Kartenstapel */

.deck {
  position: relative;
  flex: 1;
  min-height: 0;
}

.deck__card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid transparent;
  background:
    linear-gradient(#13102a, #13102a) padding-box,
    linear-gradient(135deg, var(--violet), var(--pink)) border-box;
  box-shadow: 0 0 26px rgba(255, 92, 158, 0.45);
}

.deck__card--back-2 { transform: translateY(-20px) scale(0.92); opacity: 0.4; }
.deck__card--back-1 { transform: translateY(-10px) scale(0.96); opacity: 0.7; }

.deck__card--front {
  animation: card-tilt 9s ease-in-out infinite;
}

@keyframes card-tilt {
  0%, 62%, 100% { transform: translateX(0) rotate(0deg); }
  72%           { transform: translateX(26px) rotate(4deg); }
  84%           { transform: translateX(-18px) rotate(-3deg); }
}

.deck__photo {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 25% 20%, rgba(255, 163, 92, 0.55), transparent 60%),
    radial-gradient(110% 90% at 80% 30%, rgba(255, 92, 158, 0.6), transparent 62%),
    linear-gradient(160deg, #5b3aa8, #2a1350 70%);
}

.deck__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    transparent 35%,
    rgba(0, 0, 0, 0.55) 62%,
    rgba(0, 0, 0, 0.92) 100%);
}

.deck__dots {
  position: absolute;
  top: 12px; left: 12px; right: 12px;
  display: flex;
  gap: 5px;
  z-index: 2;
}

.deck__dots i {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

.deck__dots i:first-child { background: #fff; }

.deck__info {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 2;
}

.deck__name {
  font-size: 1.375rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 7px;
}

.deck__name svg { width: 16px; height: 16px; flex: none; }

.deck__meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
}

.deck__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.chip {
  padding: 5px 11px;
  border-radius: 14px;
  font-size: 0.6875rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.deck__stamp {
  position: absolute;
  top: 26px; left: 16px;
  z-index: 3;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  border: 2.5px solid var(--success);
  color: var(--success);
  transform: rotate(-14deg);
  opacity: 0;
  animation: stamp 9s ease-in-out infinite;
}

@keyframes stamp {
  0%, 66%, 80%, 100% { opacity: 0; }
  72%, 76%           { opacity: 1; }
}

/* Aktionsleiste */

.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-block: 14px 10px;
}

.action {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--glass-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.action svg { width: 45%; height: 45%; }

.action--rewind    { width: 40px; height: 40px; color: var(--orange); }
.action--nope      { width: 52px; height: 52px; background: var(--nope-gradient); border-color: transparent; }
.action--like      { width: 62px; height: 62px; background: var(--like-gradient); border-color: transparent;
                     box-shadow: 0 6px 20px rgba(255, 92, 158, 0.5); }
.action--supernova { width: 40px; height: 40px; color: #c6b0ff; }

/* Untere Leiste */

.tabbar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 52px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-inline: 8px;
}

.tabbar i {
  width: 18px; height: 18px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.28);
}

.tabbar .tabbar__center {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(255, 92, 158, 0.45);
}

.tabbar .tabbar__center svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- Karten */

.card {
  background: var(--glass);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 30px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1),
              border-color 0.35s ease, background 0.35s ease;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.feature:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.24);
  background: var(--glass-strong);
}

.feature__icon {
  width: 52px; height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--brand-gradient);
  box-shadow: 0 8px 20px rgba(140, 97, 255, 0.35);
  margin-bottom: 20px;
}

.feature__icon svg { width: 26px; height: 26px; color: #fff; }

.feature p {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 0.9375rem;
}

/* ----------------------------------------------------------- So geht das */

.steps {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
  counter-reset: step;
}

@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.step { position: relative; padding-top: 34px; }

.step__num {
  position: absolute;
  top: 26px; left: 30px;
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.55;
}

.step h3 { margin-top: 44px; }

.step p {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 0.9375rem;
}

/* ------------------------------------------------------------ Beta-Block */

.beta__panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(30px, 4vw, 52px);
  border-radius: 36px;
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(140, 97, 255, 0.22), transparent 60%),
    radial-gradient(80% 120% at 100% 100%, rgba(255, 92, 158, 0.18), transparent 60%),
    var(--glass);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

@media (max-width: 860px) { .beta__panel { grid-template-columns: 1fr; } }

.beta h2 { font-size: clamp(1.75rem, 3.4vw, 2.375rem); }

.beta__lead {
  margin-top: 16px;
  color: var(--text-soft);
}

.beta__download { margin-top: 28px; }

.beta__filemeta {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--text-mute);
}

.beta__note {
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: var(--radius-field);
  background: rgba(255, 163, 92, 0.1);
  border: 1px solid rgba(255, 163, 92, 0.28);
  font-size: 0.875rem;
  color: rgba(255, 226, 200, 0.92);
}

.install {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: install;
  display: grid;
  gap: 16px;
}

.install li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 0.9375rem;
  color: var(--text-soft);
}

.install li::before {
  counter-increment: install;
  content: counter(install);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--hairline);
}

.install strong { color: #fff; font-weight: 700; }

.beta__side h3 { margin-bottom: 20px; }

.ios-card {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: var(--radius-field);
  background: var(--glass);
  border: 1px solid var(--hairline);
}

.ios-card svg { width: 26px; height: 26px; flex: none; color: var(--text-soft); }

.ios-card p { font-size: 0.875rem; color: var(--text-soft); }

.ios-card strong { display: block; color: #fff; font-size: 0.9375rem; }

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

.faq {
  max-width: 780px;
  margin-inline: auto;
  display: grid;
  gap: 14px;
}

.faq details {
  border-radius: var(--radius-field);
  background: var(--glass);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  width: 10px; height: 10px;
  flex: none;
  border-right: 2px solid var(--text-mute);
  border-bottom: 2px solid var(--text-mute);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.faq details[open] summary::after { transform: rotate(-135deg); }

.faq p {
  padding: 0 24px 22px;
  color: var(--text-soft);
  font-size: 0.9375rem;
}

/* ---------------------------------------------------------------- Fußzeile */

.footer {
  border-top: 1px solid var(--hairline);
  padding-block: 48px 36px;
  margin-top: 40px;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer__tagline {
  color: var(--text-mute);
  font-size: 0.875rem;
  margin-top: 12px;
  max-width: 30ch;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-soft);
}

.footer__links a:hover { color: #fff; }

.footer__bottom {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-faint);
}

/* --------------------------------------------------------- Rechtsseiten */

.legal { padding-top: clamp(120px, 15vw, 168px); padding-bottom: 40px; }

.legal__inner { max-width: 760px; margin-inline: auto; }

.legal h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  margin-bottom: 12px;
}

.legal__updated {
  color: var(--text-mute);
  font-size: 0.875rem;
  margin-bottom: 40px;
}

.legal__body {
  background: var(--glass);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: clamp(26px, 4vw, 48px);
}

.legal__body h2 {
  font-size: 1.375rem;
  margin-top: 40px;
  margin-bottom: 14px;
  scroll-margin-top: 100px;
}

.legal__body h2:first-child { margin-top: 0; }

.legal__body h3 {
  font-size: 1.0625rem;
  margin-top: 26px;
  margin-bottom: 8px;
}

.legal__body p,
.legal__body li {
  color: var(--text-soft);
  font-size: 0.9375rem;
}

/* Ein Absatz nach Liste, Tabelle oder Definitionsliste braucht ebenso Luft. */
.legal__body p + p,
.legal__body ul + p,
.legal__body ol + p,
.legal__body dl + p,
.legal__body .table-scroll + p { margin-top: 14px; }

.legal__body ul,
.legal__body ol {
  margin: 12px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.legal__body a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.4); }

.legal__body strong { color: #fff; }

.legal__body dl {
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: minmax(140px, auto) 1fr;
  gap: 10px 20px;
  font-size: 0.9375rem;
}

.legal__body dt { color: var(--text-mute); }
.legal__body dd { margin: 0; color: #fff; }

@media (max-width: 560px) {
  .legal__body dl { grid-template-columns: 1fr; gap: 2px; }
  .legal__body dd { margin-bottom: 10px; }
}

.legal__body table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 0.875rem;
}

.legal__body th,
.legal__body td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  vertical-align: top;
  color: var(--text-soft);
}

.legal__body th { color: #fff; font-weight: 700; }

.table-scroll { overflow-x: auto; }

/* Hinweis auf noch einzutragende Angaben. Vor dem Launch entfernen. */
.todo {
  display: block;
  margin: 16px 0;
  padding: 14px 18px;
  border-radius: var(--radius-field);
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.32);
  color: #ffd7d7;
  font-size: 0.875rem;
}

.todo strong { color: #fff; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-mute);
  text-decoration: none;
}

.back-link:hover { color: #fff; }

/* ------------------------------------------------------------- Einblenden */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.reveal.is-visible { opacity: 1; transform: none; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
