/* Design 2: Dark. Tiefes Indigo, leuchtendes Blau aus dem Logo, Türkis für Geld und Förderung.
   Bühne: animierter Depot-Vergleich mit zwei Kurven. */

@font-face {
  font-family: "Mona Sans";
  src: url("/assets/fonts/mona-sans-var.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: transparent;
  --bg-deep: #080b22;
  --text: #f4f6ff;
  --muted: #a7afd4;
  --faint: rgba(167, 175, 212, 0.55);
  --surface: rgba(255, 255, 255, 0.07);
  --surface-2: rgba(255, 255, 255, 0.035);
  --surface-hi: rgba(255, 255, 255, 0.09);
  --stroke: rgba(255, 255, 255, 0.1);
  --stroke-hi: rgba(255, 255, 255, 0.22);
  --card-bg: rgba(255, 255, 255, 0.04);
  --accent: #2ee6d6;
  --accent-text: #2ee6d6;
  --accent-ink: #03282c;
  --accent-soft: rgba(46, 230, 214, 0.12);
  --accent-line: rgba(46, 230, 214, 0.6);
  --accent-glow: rgba(46, 230, 214, 0.55);
  --violet: #7c6cff;
  --danger: #ff8a9a;
  --danger-soft: rgba(255, 138, 154, 0.12);
  --field-bg: rgba(255, 255, 255, 0.05);
  --field-bg-focus: rgba(255, 255, 255, 0.07);
  --autofill-bg: #1a2050;
  --header-bg: rgba(11, 16, 48, 0.72);
  --header-line: rgba(255, 255, 255, 0.05);
  --progress-track: rgba(255, 255, 255, 0.08);
  --progress-fill: linear-gradient(90deg, #4f7dff, #2ee6d6);
  --cta-bg: linear-gradient(135deg, #8af7ee 0%, #2ee6d6 45%, #19b4d8 100%);
  --cta-ink: #03282c;
  --cta-shadow: 0 14px 34px -12px rgba(46, 230, 214, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  --icon-bg: rgba(255, 255, 255, 0.12);
  --tone-mint: rgba(46, 230, 214, 0.14);
  --tone-violet: rgba(124, 108, 255, 0.2);
  --tone-sky: rgba(79, 157, 255, 0.18);
  --tone-peach: rgba(255, 159, 122, 0.16);
  --badge-bg: linear-gradient(135deg, #8af7ee, #19b4d8);
  --badge-ink: #03282c;
  --confetti: #2ee6d6, #4f8dff, #ffffff, #8af7ee, #ffd666;

  --font-body: "Mona Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Mona Sans", system-ui, sans-serif;
  --display-weight: 760;
  --display-stretch: 106%;

  --r-card: 22px;
  --r-control: 16px;
  --r-icon: 11px;
}

body {
  font-weight: 430;
}

/* Polarlicht im Hintergrund, fest stehend, damit es beim Scrollen ruhig bleibt */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 45% at 0% 0%, rgba(70, 110, 255, 0.36), transparent 70%),
    radial-gradient(60% 40% at 100% 8%, rgba(46, 230, 214, 0.16), transparent 70%),
    radial-gradient(80% 50% at 50% 110%, rgba(79, 125, 255, 0.16), transparent 70%),
    linear-gradient(180deg, #0b1030 0%, #080b22 100%);
}

a {
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

h1 {
  font-weight: 780;
  font-stretch: 104%;
}

/* Logo leuchtet leicht, passend zum blauen Bildzeichen */
.logo {
  filter: drop-shadow(0 0 12px rgba(58, 141, 255, 0.45));
}

/* Antwortkacheln: hell, türkiser Rand und Pfeil rechts, damit sofort klar ist, dass man tippen soll */
.option {
  min-height: 64px;
  border: 1.5px solid rgba(46, 230, 214, 0.4);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.07));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 30px -16px rgba(46, 230, 214, 0.5),
    0 14px 28px -18px rgba(0, 0, 0, 0.85);
}

.option-label {
  color: #fff;
}

.option small {
  color: #c3cae8;
}

.tick {
  width: 30px;
  height: 30px;
  border-color: rgba(46, 230, 214, 0.7);
  background: rgba(46, 230, 214, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232ee6d6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m10 7 5 5-5 5'/%3E%3C/svg%3E") center / 17px no-repeat;
}

@media (hover: hover) {
  .option:hover {
    border-color: rgba(46, 230, 214, 0.85);
    background: linear-gradient(180deg, rgba(46, 230, 214, 0.16), rgba(255, 255, 255, 0.07));
  }
}

.option-badge {
  box-shadow: 0 4px 14px -4px rgba(46, 230, 214, 0.7);
}

.level[data-level] i {
  background: rgba(255, 255, 255, 0.16);
}

.level[data-level="1"] i:nth-child(-n + 1),
.level[data-level="2"] i:nth-child(-n + 2),
.level[data-level="3"] i:nth-child(-n + 3),
.level[data-level="4"] i:nth-child(-n + 4) {
  background: var(--accent);
  box-shadow: 0 0 6px rgba(46, 230, 214, 0.5);
}

/* ---------- Bühne: Depot-Vergleich ---------- */

.stage-2 {
  display: block;
  margin-top: 26px;
  padding: 16px 16px 14px;
  border-radius: var(--r-card);
  border: 1px solid var(--stroke);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(46, 230, 214, 0.1), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.depot-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.depot-head .is-right {
  text-align: right;
}

.depot-label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}

.depot-value {
  display: block;
  margin-top: 1px;
  font-size: 25px;
  font-weight: 760;
  font-stretch: 112%;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
  color: rgba(244, 246, 255, 0.62);
}

.depot-value.is-mint {
  color: var(--accent);
  text-shadow: 0 0 22px rgba(46, 230, 214, 0.45);
}

.chart {
  position: relative;
  height: 92px;
  margin: 12px 4px 0 0;
}

.chart svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-line,
.chart-glow {
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.5s 0.25s var(--ease) forwards;
}

.chart-line.is-plain {
  stroke: rgba(244, 246, 255, 0.42);
  stroke-width: 2;
}

.chart-line.is-mint {
  stroke: var(--accent);
  stroke-width: 3;
}

.chart-glow {
  stroke: var(--accent);
  stroke-width: 10;
  opacity: 0.18;
}

.chart-gap {
  opacity: 0;
  animation: fade-in 0.8s 1.1s ease forwards;
}

.chart-dot {
  position: absolute;
  right: -5px;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: rgba(244, 246, 255, 0.6);
  opacity: 0;
  animation: pop 0.4s 1.6s var(--spring) forwards;
}

.chart-dot.is-mint {
  background: var(--accent);
  animation:
    pop 0.4s 1.6s var(--spring) forwards,
    pulse 2.2s 2.1s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 230, 214, 0.55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 12px rgba(46, 230, 214, 0);
  }
}

.chart-chip {
  position: absolute;
  top: 0;
  left: 0;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(46, 230, 214, 0.35);
  background: rgba(46, 230, 214, 0.12);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
  opacity: 0;
  animation: pop 0.5s 1.75s var(--spring) forwards;
}

.equation {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1.1fr;
  align-items: start;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--stroke);
}

.equation div {
  display: grid;
  gap: 1px;
  text-align: center;
  padding: 6px 4px;
  border-radius: 12px;
}

.equation strong {
  font-size: 19px;
  font-weight: 740;
  font-stretch: 108%;
  line-height: 28px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.equation span {
  font-size: 12px;
  color: var(--muted);
}

.equation i {
  padding-top: 7px;
  font-style: normal;
  font-size: 19px;
  line-height: 28px;
  color: var(--muted);
}

.equation .is-mint {
  color: var(--accent);
}

.equation .is-result {
  background: var(--accent-soft);
  border: 1px solid rgba(46, 230, 214, 0.3);
}

.equation .is-result strong {
  color: var(--accent);
}

/* ---------- Glanzpunkte ---------- */

.explainer-play {
  box-shadow: 0 0 22px rgba(46, 230, 214, 0.45);
}

/* Video hebt sich mit Rand und leichtem Leuchten vom gleichfarbigen Hintergrund ab */
.explainer-frame {
  border: 1px solid var(--stroke-hi);
  box-shadow: 0 0 60px -18px rgba(46, 230, 214, 0.4), 0 24px 50px -28px rgba(0, 0, 0, 0.8);
}

.scan-ring::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(46, 230, 214, 0.55) 70deg, rgba(79, 125, 255, 0.55) 140deg, transparent 220deg);
  filter: blur(22px);
  opacity: 0.8;
  animation: spin 2.4s linear infinite;
}

.scan-bar {
  stroke: url(#ring);
}

.result {
  border-color: rgba(46, 230, 214, 0.35);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(46, 230, 214, 0.2), transparent 55%),
    radial-gradient(120% 120% at 100% 100%, rgba(124, 108, 255, 0.18), transparent 55%),
    rgba(255, 255, 255, 0.03);
  box-shadow: 0 18px 50px -24px rgba(46, 230, 214, 0.5);
}

.result-amount {
  border-top-color: rgba(255, 255, 255, 0.16);
}

.result-amount strong {
  text-shadow: 0 0 24px rgba(46, 230, 214, 0.45);
}

.cta:active {
  box-shadow: 0 8px 20px -10px rgba(46, 230, 214, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.pill-success svg {
  box-shadow: 0 0 12px rgba(46, 230, 214, 0.6);
}

.done-mark {
  filter: drop-shadow(0 0 24px rgba(46, 230, 214, 0.5));
}

.done-mark path {
  stroke: var(--accent);
}

.foot {
  color: rgba(167, 175, 212, 0.8);
}

.consent {
  border-color: var(--stroke-hi);
  background: rgba(20, 26, 66, 0.86);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  color: #dfe3f7;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.consent strong {
  color: #fff;
}

.btn-quiet {
  border-color: var(--stroke-hi);
  color: #fff;
}

.btn-quiet.is-strong {
  background: #fff;
  border-color: #fff;
  color: #0b1030;
}

.doc p,
.doc li {
  color: #d5daf0;
}

.doc .todo {
  background: rgba(255, 214, 102, 0.16);
  color: #ffd666;
}
