/* Gemeinsame Grundlage für alle Designs des Funnels.
   Aufbau, Abstände und Bewegung stehen hier. Farben, Schriften und die Bühne auf dem Einstieg
   kommen aus design-1.css, design-2.css oder design-3.css über die Variablen unten. */

:root {
  --bg: #f4f6fa;
  --bg-deep: #f4f6fa;
  --text: #1c2343;
  --muted: #5d6688;
  --faint: rgba(93, 102, 136, 0.6);
  --surface: #fff;
  --surface-2: #fff;
  --surface-hi: #f0f2f8;
  --stroke: #d3d9e6;
  --stroke-hi: #4f597e;
  --card-bg: #fff;
  --card-shadow: none;
  --accent: #34d3a6;
  --accent-text: #0b7d61;
  --accent-ink: #0b2a22;
  --accent-soft: #e7f8f2;
  --accent-line: rgba(11, 125, 97, 0.35);
  --accent-glow: transparent;
  --danger: #c4364e;
  --danger-soft: rgba(196, 54, 78, 0.12);
  --field-bg: #fff;
  --field-bg-focus: #fff;
  --autofill-bg: #fff;
  --header-bg: rgba(244, 246, 250, 0.9);
  --header-line: transparent;
  --progress-track: #e3e7f0;
  --progress-fill: var(--accent);
  --cta-bg: var(--accent);
  --cta-ink: var(--accent-ink);
  --cta-shadow: none;
  --icon-bg: #f0f2f8;
  --tone-mint: var(--icon-bg);
  --tone-violet: var(--icon-bg);
  --tone-sky: var(--icon-bg);
  --tone-peach: var(--icon-bg);
  --badge-bg: var(--accent);
  --badge-ink: var(--accent-ink);

  --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: var(--font-body);
  --display-weight: 700;
  --display-stretch: 100%;

  --r-card: 18px;
  --r-control: 14px;
  --r-icon: 10px;

  --pad: 20px;
  --col: 460px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg-deep);
}

body {
  position: relative;
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-stretch: var(--display-stretch);
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1:focus,
h2:focus {
  outline: none;
}

h1 {
  font-size: 29px;
  line-height: 1.08;
}

h2 {
  font-size: 24px;
  line-height: 1.14;
}

sup {
  font-size: 0.6em;
  line-height: 0;
}

/* ---------- Kopfzeile ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--header-line);
}

.bar-inner {
  max-width: var(--col);
  margin: 0 auto;
  height: 58px;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 28px;
  width: auto;
  display: block;
}

.back {
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--stroke);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.back svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.progress {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 var(--pad) 10px;
}

.progress::before {
  content: "";
  display: block;
  height: 4px;
  margin-bottom: -4px;
  border-radius: 4px;
  background: var(--progress-track);
}

.progress span {
  position: relative;
  display: block;
  height: 4px;
  width: var(--progress, 8%);
  border-radius: 4px;
  background: var(--progress-fill);
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 0.6s var(--ease);
}

/* ---------- Bildschirme ---------- */

main {
  max-width: var(--col);
  margin: 0 auto;
  padding: 18px var(--pad) calc(28px + env(safe-area-inset-bottom));
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
  animation: enter-fwd 0.45s var(--ease) both;
}

main[data-dir="back"] .screen.is-active {
  animation-name: enter-back;
}

@keyframes enter-fwd {
  from {
    opacity: 0;
    transform: translateX(32px);
    filter: blur(6px);
  }
}

@keyframes enter-back {
  from {
    opacity: 0;
    transform: translateX(-32px);
    filter: blur(6px);
  }
}

.lead {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16.5px;
}

.hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* Bühnen der Designs: jedes Design blendet nur seine eigene ein */
.stage {
  display: none;
  margin: 18px 0 0;
}

/* Animationen der Bühne laufen erst, wenn sie im Bild ist */
.stage:not(.is-visible),
.stage:not(.is-visible) * {
  animation-play-state: paused !important;
}

/* Finger, der auf die erste Antwort tippt, bis jemand antwortet */
.tap-hint {
  position: absolute;
  right: 24%;
  top: 46%;
  z-index: 2;
  width: 46px;
  height: 46px;
  opacity: 0;
  pointer-events: none;
}

.tap-hint svg {
  position: relative;
  width: 100%;
  height: 100%;
  fill: #fff;
  stroke: #10163d;
  stroke-width: 1.3;
  stroke-linejoin: round;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
}

.tap-ring {
  position: absolute;
  left: 2px;
  top: -12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  opacity: 0;
}

.show-tap-hint .tap-hint {
  animation: tap-finger 2.8s 0.1s ease-in-out infinite;
}

.show-tap-hint .tap-ring {
  animation: tap-ring 2.8s 0.1s ease-out infinite;
}

@keyframes tap-finger {
  0% {
    opacity: 0;
    transform: translate(26px, 30px);
  }
  18% {
    opacity: 1;
    transform: translate(0, 0);
  }
  30% {
    transform: translate(0, 0) scale(0.86);
  }
  40%,
  70% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  86%,
  100% {
    opacity: 0;
    transform: translate(26px, 30px);
  }
}

@keyframes tap-ring {
  0%,
  28% {
    opacity: 0;
    transform: scale(0.3);
  }
  31% {
    opacity: 0.95;
    transform: scale(0.45);
  }
  62%,
  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes grow {
  from {
    transform: scaleX(0);
  }
}

/* ---------- Erklärvideo im Querformat unter der ersten Frage ---------- */

.explainer {
  margin: 30px 0 0;
}

.explainer-title {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: var(--display-weight);
}

.explainer-frame {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--surface-hi);
  aspect-ratio: 16 / 9;
}

.explainer video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface-hi);
}

.explainer-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  border: 0;
  border-radius: 50%;
  background: var(--cta-bg);
  box-shadow: var(--cta-shadow), 0 10px 30px -8px rgba(10, 14, 40, 0.45);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.explainer-play svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
  fill: var(--cta-ink);
}

.explainer .video-end {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(10, 14, 40, 0.45);
}

.explainer .video-end[hidden] {
  display: none !important;
}

.explainer .cta {
  width: auto;
  min-height: 52px;
  margin: 0;
  padding: 12px 22px;
  font-size: 16px;
}

/* ---------- Fragen ---------- */

[data-screen="start"] .question {
  margin-top: 26px;
}

[data-screen="start"] .question h2 {
  font-size: 22px;
}

.options {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.options.is-grid {
  grid-template-columns: 1fr 1fr;
  gap: 12px 10px;
}

.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px 14px 12px 12px;
  border: 1px solid var(--stroke);
  border-radius: var(--r-control);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.25s;
}

.screen.is-active .option {
  animation: rise 0.5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 50ms + 120ms);
}

.option-text {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.option-label {
  font-size: 16.5px;
  font-weight: 640;
  line-height: 1.2;
}

.option small {
  font-size: 12.5px;
  font-weight: 450;
  line-height: 1.3;
  color: var(--muted);
}

.is-grid .option {
  align-items: flex-start;
  padding: 12px 10px;
  gap: 10px;
  min-height: 74px;
}

.is-grid .option-label {
  font-size: 15.5px;
}

.option:active {
  transform: scale(0.98);
}

@media (hover: hover) {
  .option:hover {
    border-color: var(--stroke-hi);
  }
}

.screen.is-active .option[aria-pressed="true"] {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, var(--accent-soft), var(--surface-2));
  box-shadow: 0 0 0 1px var(--accent-line), 0 12px 32px -14px var(--accent-glow);
  animation: choose 0.4s var(--spring);
}

@keyframes choose {
  40% {
    transform: scale(0.965);
  }
}

/* Kachel links: Emoji oder Balken */
.option-icon,
.level {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: var(--r-icon);
  background: var(--icon-bg);
}

.option-icon {
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  transition: transform 0.3s var(--spring), opacity 0.2s;
}

[data-tone="mint"] .option-icon { background: var(--tone-mint); }
[data-tone="violet"] .option-icon { background: var(--tone-violet); }
[data-tone="sky"] .option-icon { background: var(--tone-sky); }
[data-tone="peach"] .option-icon { background: var(--tone-peach); }

/* Balken für Beträge: je mehr, desto höher */
.level {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding-bottom: 10px;
}

.level i {
  width: 4px;
  border-radius: 2px;
  background: var(--stroke);
}

.level i:nth-child(1) { height: 6px; }
.level i:nth-child(2) { height: 10px; }
.level i:nth-child(3) { height: 14px; }
.level i:nth-child(4) { height: 18px; }

.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);
}

/* Kleines Etikett oben auf einer Kachel */
.option-badge {
  position: absolute;
  top: -9px;
  right: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

/* Haken: Kreis, der sich beim Antippen füllt und den Haken zeichnet */
.tick {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--stroke-hi);
  display: grid;
  place-items: center;
  transition: background-color 0.2s, border-color 0.2s, transform 0.35s var(--spring);
}

.tick svg,
.result-badge svg,
.pill-success svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--accent-ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tick path {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  transition: stroke-dashoffset 0.3s 0.08s var(--ease);
}

.option[aria-pressed="true"] .tick {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
  transform: scale(1.08);
}

.option[aria-pressed="true"] .tick path {
  stroke-dashoffset: 0;
}

/* In den Kacheln sitzt der Haken auf dem Emoji und ersetzt es */
.is-grid .tick {
  position: absolute;
  left: 10px;
  top: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: var(--r-icon);
  transform: scale(0.4);
  opacity: 0;
  transition: transform 0.35s var(--spring), opacity 0.15s;
}

.is-grid .option[aria-pressed="true"] .tick {
  transform: scale(1);
  opacity: 1;
}

.is-grid .option[aria-pressed="true"] .option-icon {
  transform: scale(0.4);
  opacity: 0;
}

/* ---------- Auswertung ---------- */

.scan {
  display: grid;
  justify-items: center;
  text-align: center;
  padding-top: 18px;
}

.scan-ring {
  position: relative;
  width: 168px;
  height: 168px;
  margin-bottom: 26px;
  display: grid;
  place-items: center;
}

.scan-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.scan-track,
.scan-bar {
  fill: none;
  stroke-width: 8;
}

.scan-track {
  stroke: var(--progress-track);
}

.scan-bar {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: var(--offset, 100);
}

.scan-percent {
  position: relative;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: var(--display-weight);
  font-stretch: var(--display-stretch);
  letter-spacing: -0.03em;
}

.scan-list {
  list-style: none;
  width: 100%;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  text-align: left;
}

.scan-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-control);
  border: 1px solid transparent;
  color: var(--faint);
  font-weight: 540;
  transition: color 0.3s, background-color 0.3s, border-color 0.3s;
}

.scan-list li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--stroke);
}

.scan-list li.is-current {
  color: var(--text);
  background: var(--surface);
  border-color: var(--stroke);
}

.scan-list li.is-current::before {
  border-top-color: var(--accent);
  animation: spin 0.7s linear infinite;
}

.scan-list li.done {
  color: var(--text);
}

.scan-list li.done::before {
  border: 0;
  background: var(--accent) var(--check-icon) center / 16px no-repeat;
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pop 0.35s var(--spring);
}

:root {
  --check-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.8 3.8 7.2-8.3' fill='none' stroke='%2304291e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- Ergebnis und Formular ---------- */

.result {
  margin-bottom: 22px;
  padding: 16px;
  border-radius: var(--r-card);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
}

.result-head {
  display: flex;
  gap: 12px;
  align-items: center;
}

.result-badge {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  display: grid;
  place-items: center;
  animation: pop 0.5s 0.15s var(--spring) both;
}

.result-badge svg {
  width: 22px;
  height: 22px;
}

.result-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: var(--display-weight);
  font-stretch: var(--display-stretch);
}

.result-text {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.result-amount {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--stroke);
}

.result-amount strong {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: var(--display-weight);
  font-stretch: var(--display-stretch);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--accent-text);
}

.result-amount span {
  font-size: 13.5px;
  color: var(--muted);
}

.result-total {
  margin: 10px 0 0;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--surface);
  font-size: 14.5px;
  line-height: 1.35;
}

.result-total strong {
  font-weight: 750;
  color: var(--accent-text);
  white-space: nowrap;
}

/* Geburtsdatum: Eingabe statt Kacheln */
.birth-form {
  margin-top: 16px;
}

.birth-form .field input {
  letter-spacing: 0.04em;
}

.form {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.field {
  position: relative;
}

.field input {
  width: 100%;
  height: 60px;
  padding: 22px 14px 6px 48px;
  border: 1px solid var(--stroke);
  border-radius: var(--r-control);
  background: var(--field-bg);
  color: var(--text);
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.field input:focus {
  outline: none;
  border-color: var(--accent-line);
  background: var(--field-bg-focus);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 100px var(--autofill-bg) inset;
  caret-color: var(--text);
}

.field label {
  position: absolute;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 16.5px;
  pointer-events: none;
  transition: top 0.2s var(--ease), font-size 0.2s var(--ease), color 0.2s;
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field input:-webkit-autofill + label {
  top: 17px;
  font-size: 12px;
  font-weight: 600;
}

.field input:focus + label {
  color: var(--accent-text);
}

.field-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transition: stroke 0.2s;
}

.field:focus-within .field-icon {
  stroke: var(--accent-text);
}

.field input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px var(--danger-soft);
}

.field-hint,
.error {
  margin: 6px 0 0 4px;
  font-size: 13px;
  color: var(--muted);
}

.error {
  color: var(--danger);
  font-weight: 560;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cta {
  position: relative;
  overflow: hidden;
  margin-top: 6px;
  width: 100%;
  min-height: 60px;
  padding: 16px 20px;
  border: 0;
  border-radius: 18px;
  background: var(--cta-bg);
  box-shadow: var(--cta-shadow);
  color: var(--cta-ink);
  font: inherit;
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 720;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.2s;
}

.cta span {
  position: relative;
}

/* Lichtreflex, der alle paar Sekunden über den Button läuft */
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: shine 3.6s 1.5s ease-in-out infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-120%);
  }
  35%,
  100% {
    transform: translateX(120%);
  }
}

.cta:active {
  transform: scale(0.985);
}

.privacy {
  display: flex;
  gap: 10px;
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.privacy svg {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ---------- Termin ---------- */

.pill-success {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 14.5px;
  font-weight: 650;
}

.pill-success svg {
  width: 24px;
  height: 24px;
  padding: 4px;
  border-radius: 50%;
  background: var(--accent);
}

[data-screen="termin"].no-cal .with-cal,
[data-screen="termin"]:not(.no-cal) .without-cal {
  display: none;
}

/* Show-up-Bonus auf Termin- und Danke-Seite */
.bonus {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--r-card);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  text-align: left;
}

.bonus-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: var(--display-weight);
  font-stretch: var(--display-stretch);
}

.bonus-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bonus-list li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

.bonus-list strong {
  display: block;
  margin-bottom: 1px;
  font-size: 15px;
  color: var(--text);
}

.bonus-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: var(--r-icon);
  background: var(--accent);
  display: grid;
  place-items: center;
}

.bonus-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--accent-ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.done .bonus {
  width: 100%;
  margin-top: 22px;
}

/* Cal.com öffnet sich als Fenster über der Seite */
.cal-open {
  margin-top: 18px;
}

.cal-open[aria-busy="true"] {
  opacity: 0.75;
  pointer-events: none;
}

.cal-fallback {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Danke ---------- */

.done {
  display: grid;
  justify-items: center;
  text-align: center;
  padding-top: 26px;
}

.done-mark {
  width: 104px;
  height: 104px;
  margin-bottom: 22px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.done-mark circle {
  fill: var(--accent-soft);
  stroke: var(--accent);
  stroke-width: 3;
  transform-origin: center;
  animation: pop 0.6s var(--spring) both;
}

.done-mark path {
  stroke: var(--accent-text);
  stroke-width: 6;
  stroke-dasharray: 64;
  stroke-dashoffset: 64;
  animation: draw 0.5s 0.35s var(--ease) forwards;
}

.booking-time {
  margin: 14px 0 0;
  padding: 12px 18px;
  border-radius: var(--r-control);
  border: 1px solid var(--stroke);
  background: var(--surface);
  font-weight: 650;
}

/* Das Erstgespräch ist ein Anruf, das soll nach der Buchung jeder wissen */
.call-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 30em;
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: var(--r-control);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  text-align: left;
  font-size: 15px;
  line-height: 1.45;
}

.call-note svg {
  flex: none;
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 50%;
  background: var(--accent);
  fill: none;
  stroke: var(--accent-ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.call-note strong {
  display: block;
  color: var(--text);
}

.done .hint {
  max-width: 30em;
  margin-top: 14px;
}

/* ---------- Konfetti ---------- */

.confetti {
  position: fixed;
  inset: 0;
  z-index: 30;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

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

.foot {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.disclaimer {
  margin: 0 0 12px;
}

/* Die Fußnote gehört zu den Beispielwerten auf Einstieg, Sparrate und Ergebnis */
main:not([data-screen-active="start"]):not([data-screen-active="sparrate"]):not([data-screen-active="kontakt"]) .disclaimer {
  display: none;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.foot-links a {
  padding: 6px 0;
}

/* ---------- Cookie-Hinweis ---------- */

.consent {
  position: fixed;
  z-index: 20;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  max-width: calc(var(--col) - 24px);
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: var(--card-bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 18px 40px rgba(10, 14, 40, 0.28);
  animation: rise 0.5s 0.6s var(--ease) both;
}

.consent p {
  margin: 0;
}

.consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.btn-quiet {
  min-height: 44px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}

.btn-quiet.is-strong {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

/* ---------- Rechtstexte ---------- */

.doc h1 {
  font-size: 28px;
  margin-bottom: 18px;
}

.doc h2 {
  font-size: 19px;
  margin: 28px 0 8px;
}

.doc p,
.doc li {
  font-size: 15.5px;
  max-width: 68ch;
}

.doc .todo {
  background: rgba(255, 196, 0, 0.22);
  padding: 0 4px;
  border-radius: 4px;
}

/* ---------- Kleine Bildschirme ---------- */

@media (max-width: 374px) {
  :root {
    --pad: 16px;
  }

  h1 {
    font-size: 27px;
  }

  .is-grid .option-icon {
    display: none;
  }

  .is-grid .tick {
    left: auto;
    right: 8px;
    top: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
  }
}

/* ---------- Größere Bildschirme ---------- */

@media (min-width: 520px) {
  main {
    padding-top: 34px;
  }

  h1 {
    font-size: 35px;
  }
}

/* ---------- Bewegung reduzieren ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
