/* pumpenwechsel – Landingpage (Schwesterseite von thermenwechsel)
   Aufbau: Tokens · Basis · Bausteine · Abschnitte · Funnel · Rechtliches · Bewegung */

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #15171c;
  --ink-2: #555b6a;
  --ink-3: #8b91a1;
  --paper: #ffffff;
  --mist: #f3f5f8;
  --line: #e3e6ec;
  --night: #0e1016;
  --night-2: #181b24;
  --glut: #ff4d1c;
  --flamme: #2457ff;
  --ok: #17a05d;
  --err: #d92d20;

  /* Wärmebild-Verlauf: kalt -> warm */
  --t1: #2457ff;
  --t2: #a53dff;
  --t3: #ff3d77;
  --t4: #ff7a1a;
  --t5: #ffc83d;
  --thermal: linear-gradient(90deg, var(--t1), var(--t2) 30%, var(--t3) 55%, var(--t4) 80%, var(--t5));
  --warm: linear-gradient(135deg, var(--t3), var(--t4) 55%, var(--t5));

  --r-s: 12px;
  --r-m: 20px;
  --r-l: 32px;
  --gutter: clamp(20px, 5vw, 48px);
  --wrap: 1180px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.2, 0.9, 0.25, 1.18);

  --shadow-1: 0 1px 2px rgba(21, 23, 28, 0.06), 0 8px 24px -8px rgba(21, 23, 28, 0.12);
  --shadow-2: 0 2px 4px rgba(21, 23, 28, 0.05), 0 28px 60px -20px rgba(21, 23, 28, 0.28);
}

/* ---------- Basis ---------- */

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

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

html.is-locked,
html.is-locked body {
  overflow: hidden;
}

body {
  margin: 0;
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

svg {
  display: block;
}

:focus-visible {
  outline: 2.5px solid var(--flamme);
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Schrift ---------- */

.display {
  font-size: clamp(2.75rem, 6.6vw, 5.5rem);
  font-weight: 600;
  font-stretch: 84%;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  font-weight: 600;
  font-stretch: 86%;
  line-height: 1.03;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.h3 {
  font-size: 1.3rem;
  font-weight: 600;
  font-stretch: 92%;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.lead {
  font-size: clamp(1.125rem, 1.5vw, 1.3rem);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 34em;
  text-wrap: pretty;
}

.soft {
  color: var(--ink-3);
}

.note {
  font-size: 0.875rem;
  color: var(--ink-3);
}

.num {
  font-variant-numeric: tabular-nums;
}

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.5rem;
  padding: 0 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out), background-color 0.2s, box-shadow 0.3s, opacity 0.2s;
  isolation: isolate;
}

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

.btn--ink {
  background: var(--ink);
  color: #fff;
}

/* Wärmeschein unter dem Knopf */
.btn--ink::before {
  content: "";
  position: absolute;
  inset: 6px 10px -6px;
  z-index: -1;
  border-radius: inherit;
  background: var(--thermal);
  filter: blur(14px);
  opacity: 0;
  transition: opacity 0.35s;
}

.btn--ink::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--ink);
}

@media (hover: hover) {
  .btn--ink:hover::before {
    opacity: 0.85;
  }

  .btn--ink:hover {
    transform: translateY(-1px);
  }
}

.btn--light {
  background: #fff;
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

@media (hover: hover) {
  .btn--ghost:hover {
    box-shadow: inset 0 0 0 1.5px var(--ink);
  }
}

.btn--s {
  min-height: 2.75rem;
  padding: 0 1.25rem;
  font-size: 0.975rem;
}

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

.btn[disabled] {
  opacity: 0.35;
  pointer-events: none;
}

.btn.is-loading {
  color: transparent;
  pointer-events: none;
}

.btn.is-loading .spinner {
  opacity: 1;
}

.spinner {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  opacity: 0;
  animation: spin 0.8s linear infinite;
}

.link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color 0.2s;
}

.link:hover {
  text-decoration-color: currentColor;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  transition: box-shadow 0.3s;
}

.nav.is-scrolled {
  box-shadow: 0 1px 0 var(--line);
}

.nav__in {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-right: auto;
}

.brand__mark {
  width: 2rem;
  height: 2rem;
}

.brand__word {
  font-size: 1.3rem;
  font-weight: 650;
  font-stretch: 88%;
  letter-spacing: -0.03em;
}

.brand__word b {
  font-weight: 700;
}

.nav__links {
  display: flex;
  gap: 1.75rem;
  font-size: 0.975rem;
  color: var(--ink-2);
}

.nav__links a {
  text-decoration: none;
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--ink);
}

.nav__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--thermal);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

@media (max-width: 860px) {
  .nav {
    position: relative;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .nav__links,
  .nav .btn,
  .nav__progress {
    display: none;
  }

  .nav__in {
    height: 4rem;
  }
}

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

.hero {
  position: relative;
  padding: clamp(1rem, 4vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.display .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.display .line > span {
  display: block;
}

.hero .lead {
  margin-top: 1.5rem;
}

/* Erste Funnel-Frage direkt im Hero */
.quiz {
  margin-top: 2.25rem;
  max-width: 35rem;
}

.quiz__q {
  font-weight: 600;
  font-size: 1.0625rem;
  margin-bottom: 0.75rem;
}

.quiz__opts {
  display: grid;
  gap: 0.6rem;
}

.opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0.9rem 1.1rem;
  text-align: left;
  border-radius: var(--r-m);
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line), 0 1px 2px rgba(21, 23, 28, 0.04);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.opt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: var(--thermal);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.opt__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  background: var(--mist);
  flex: none;
  transition: background-color 0.25s, color 0.25s;
}

.opt__text {
  display: grid;
  line-height: 1.25;
}

.opt__text b {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.opt__text small {
  font-size: 0.9rem;
  color: var(--ink-2);
}

.opt__go {
  margin-left: auto;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--ink-3);
  transition: transform 0.25s var(--ease-out), color 0.25s;
}

@media (hover: hover) {
  .opt:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 1.5px transparent, 0 14px 30px -14px rgba(21, 23, 28, 0.3);
  }

  .opt:hover::after {
    opacity: 1;
  }

  .opt:hover .opt__icon {
    background: var(--ink);
    color: #fff;
  }

  .opt:hover .opt__go {
    transform: translateX(4px);
    color: var(--ink);
  }
}

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

.quiz__note {
  margin-top: 0.85rem;
}

/* Bühne mit Thermentausch */
.stage {
  position: relative;
  aspect-ratio: 10 / 11;
  width: 100%;
  max-width: 34rem;
  margin-left: auto;
  display: grid;
  place-items: center;
}

.stage__aura {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}

.stage__aura--cold {
  background: radial-gradient(closest-side, rgba(120, 150, 210, 0.3), rgba(120, 150, 210, 0.12) 55%, transparent 78%);
  transition: opacity 1.4s var(--ease-out);
}

.stage__aura--warm {
  background: radial-gradient(
    closest-side,
    rgba(255, 200, 61, 0.9) 0%,
    rgba(255, 122, 26, 0.72) 24%,
    rgba(255, 61, 119, 0.5) 44%,
    rgba(165, 61, 255, 0.28) 62%,
    rgba(36, 87, 255, 0.12) 76%,
    transparent 88%
  );
  opacity: 0;
  transform: scale(0.45);
  transition: opacity 1.6s var(--ease-out) 0.55s, transform 2.2s var(--ease-out) 0.55s;
}

.stage[data-state="new"] .stage__aura--cold {
  opacity: 0;
}

.stage[data-state="new"] .stage__aura--warm {
  opacity: 1;
  transform: scale(1);
}

.stage[data-state="new"] .stage__aura--warm > i {
  animation: breathe 7s ease-in-out 2.6s infinite;
}

.stage__aura--warm > i {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 214, 102, 0.55), transparent 70%);
}

.stage__device {
  position: relative;
  width: 52%;
  aspect-ratio: 240 / 380;
  will-change: transform;
}

.therme {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 26px 30px rgba(21, 23, 28, 0.2)) drop-shadow(0 4px 8px rgba(21, 23, 28, 0.1));
  will-change: transform, opacity;
}

.therme--old {
  transition: transform 0.85s cubic-bezier(0.55, 0, 0.9, 0.3), opacity 0.5s linear 0.4s;
}

.therme--new {
  opacity: 0;
  transform: translateY(-16%) scale(0.94);
  transition: transform 1s var(--ease-spring) 0.5s, opacity 0.35s linear 0.5s;
}

.stage[data-state="new"] .therme--old {
  transform: translate(-58%, 14%) rotate(-11deg) scale(0.9);
  opacity: 0;
}

.stage[data-state="new"] .therme--new {
  opacity: 1;
  transform: none;
}

.stage.is-resetting * {
  transition: none !important;
}

.therme__screen {
  transition: opacity 0.5s 1.35s;
  opacity: 0;
}

.stage[data-state="new"] .therme__screen {
  opacity: 1;
}

.therme__flame {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: flicker 2.4s ease-in-out infinite;
}

.therme__led {
  transition: fill 0.4s 1.4s;
  fill: #c9ced6;
}

.stage[data-state="new"] .therme__led {
  fill: #33d17a;
}

.stage__tag {
  position: absolute;
  left: 50%;
  bottom: 3%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  transition: opacity 0.4s;
}

.stage__tag--new {
  opacity: 0;
  color: var(--ink);
}

.stage[data-state="new"] .stage__tag--old {
  opacity: 0;
}

.stage[data-state="new"] .stage__tag--new {
  opacity: 1;
  transition-delay: 1.5s;
}

/* Aufsteigende Wärme */
.stage__heat {
  position: absolute;
  left: 50%;
  top: -7%;
  width: 30%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 1s 1.6s;
  overflow: visible;
}

.stage[data-state="new"] .stage__heat {
  opacity: 1;
}

.stage__heat path {
  fill: none;
  stroke: url(#g-heat);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 26 120;
  animation: rise 3.6s linear infinite;
}

.stage__heat path:nth-child(2) {
  animation-delay: -1.2s;
  animation-duration: 4.2s;
}

.stage__heat path:nth-child(3) {
  animation-delay: -2.3s;
  animation-duration: 3.9s;
}

/* Schwebende Karten */
.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85), 0 0 0 1px rgba(21, 23, 28, 0.05), 0 18px 36px -14px rgba(21, 23, 28, 0.28);
  line-height: 1.15;
  opacity: 0;
  transform: translateY(14px) scale(0.94);
  transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-spring);
  will-change: transform;
}

.chip small {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-2);
}

.chip b {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.chip__icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
}

.chip__icon .icon {
  width: 1.2rem;
  height: 1.2rem;
}

.chip--foto {
  left: 0;
  top: 17%;
}

.chip--preis {
  right: -1%;
  top: 43%;
}

.chip--tag {
  left: 4%;
  bottom: 15%;
}

.chip--steuer {
  right: 0;
  top: 13%;
}

.stage[data-state="new"] .chip--steuer {
  transition-delay: 2.25s;
}

.chip--steuer > span {
  animation-delay: -1s;
}

.stage[data-state="new"] .chip {
  opacity: 1;
  transform: none;
}

.stage[data-state="new"] .chip--foto {
  transition-delay: 1.5s;
}

.stage[data-state="new"] .chip--preis {
  transition-delay: 1.75s;
}

.stage[data-state="new"] .chip--tag {
  transition-delay: 2s;
}

.chip > span {
  animation: bob 6s ease-in-out infinite;
}

.chip--preis > span {
  animation-delay: -2s;
}

.chip--tag > span {
  animation-delay: -4s;
}

.chip__inner {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.stage__replay {
  position: absolute;
  right: 4%;
  bottom: 4%;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 1px rgba(21, 23, 28, 0.08), 0 8px 20px -8px rgba(21, 23, 28, 0.3);
  color: var(--ink-2);
  opacity: 0;
  transition: opacity 0.5s 2.6s, transform 0.5s var(--ease-out), color 0.2s;
}

.stage[data-state="new"] .stage__replay {
  opacity: 1;
}

.stage__replay:hover {
  color: var(--ink);
  transform: rotate(-90deg);
}

.stage__replay .icon {
  width: 1.2rem;
  height: 1.2rem;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.975rem;
  color: var(--ink-2);
}

.hero__facts li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero__facts .icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--ink);
}

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

  .hero .lead {
    margin-top: 1.1rem;
  }

  .quiz {
    margin-top: 1.6rem;
  }

  .stage {
    max-width: 26rem;
    margin-inline: auto;
    margin-top: 1rem;
  }

  .chip {
    padding: 0.55rem 0.75rem;
    border-radius: 15px;
  }

  .chip b {
    font-size: 0.95rem;
  }

  .chip--steuer {
    top: 1%;
  }

  .chip small {
    font-size: 0.74rem;
  }

  .chip__icon {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 10px;
  }

  .hero__facts {
    flex-direction: column;
  }
}

/* ---------- Abschnitte allgemein ---------- */

.section {
  padding: clamp(4.5rem, 10vw, 9rem) 0;
}

.section--mist {
  background: var(--mist);
}

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section__head .lead {
  margin-top: 1.25rem;
}

[id] {
  scroll-margin-top: 5.5rem;
}

/* ---------- Erlaubt: Text, der beim Scrollen "warm" wird ---------- */

.statement {
  padding: clamp(5rem, 12vw, 11rem) 0;
  background: var(--mist);
}

.statement__text {
  max-width: 21em;
  font-size: clamp(1.75rem, 4.1vw, 3.4rem);
  font-weight: 600;
  font-stretch: 86%;
  line-height: 1.12;
  letter-spacing: -0.028em;
}

.statement__text h2 {
  display: inline;
  font: inherit;
  letter-spacing: inherit;
}

.js .statement__text .w {
  opacity: 0.14;
  transition: opacity 0.5s linear;
}

.js .statement__text .w.is-on {
  opacity: 1;
}

.statement__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  margin-top: 2.5rem;
}

/* ---------- So geht's ---------- */

.how {
  position: relative;
}

.how__pin {
  padding: clamp(4.5rem, 10vw, 9rem) 0;
}

.how__steps {
  counter-reset: step;
  display: grid;
  gap: 3.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.step__text {
  position: relative;
  padding-left: 3.75rem;
  max-width: 30rem;
  counter-increment: step;
}

.step__text::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.2rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: var(--ink);
  color: #fff;
  transition: background-color 0.4s, color 0.4s, box-shadow 0.4s;
}

.step__text p {
  margin-top: 0.5rem;
  color: var(--ink-2);
}

.step__scene {
  position: relative;
  margin-top: 1.75rem;
  aspect-ratio: 1 / 1;
  max-width: 30rem;
  border-radius: var(--r-l);
  background: var(--mist);
  overflow: hidden;
  display: grid;
  place-items: center;
}

@media (min-width: 961px) {
  .js .how {
    height: 330vh;
  }

  .js .how__pin {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 40rem;
    padding: 5.5rem 0 2rem;
    display: grid;
    align-items: center;
  }

  .how__steps {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(2rem, 6vw, 6rem);
    row-gap: 2.25rem;
    align-content: center;
    margin-top: 3rem;
  }

  .step {
    display: contents;
  }

  .step__text {
    grid-column: 1;
    cursor: pointer;
  }

  .step__scene {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin-top: 0;
    width: 100%;
    max-width: min(30rem, 62vh);
    justify-self: end;
    align-self: center;
  }

  .js .step__text {
    opacity: 0.32;
    transition: opacity 0.5s;
  }

  .js .step.is-active .step__text {
    opacity: 1;
  }

  .js .step__text::before {
    background: var(--mist);
    color: var(--ink);
  }

  .js .step.is-active .step__text::before {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 0 0 5px rgba(255, 122, 26, 0.18);
  }

  .js .step__scene {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.55s, transform 0.8s var(--ease-out);
    pointer-events: none;
  }

  .js .step.is-active .step__scene {
    opacity: 1;
    transform: none;
  }
}

/* Szene 1: Fotos */
.phone {
  position: relative;
  width: 46%;
  aspect-ratio: 9 / 18.5;
  border-radius: 13% / 6.3%;
  background: #0c0d11;
  padding: 2.6%;
  box-shadow: 0 30px 50px -20px rgba(21, 23, 28, 0.45), inset 0 0 0 1.5px #2b2e38;
}

.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 10.5% / 5%;
  background: #15171c;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
}

.phone__island {
  position: absolute;
  top: 2.2%;
  left: 50%;
  width: 30%;
  height: 3.6%;
  transform: translateX(-50%);
  border-radius: 99px;
  background: #000;
  z-index: 3;
}

.cam {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 40%, #3a3f4c, #1b1d24);
}

.cam__subject {
  grid-area: 1 / 1;
  width: 74%;
  opacity: 0;
}

.plate {
  border-radius: 6px;
  background: #e9e4d6;
  padding: 9% 8%;
  display: grid;
  gap: 5px;
  font-size: 0.5rem;
  font-weight: 600;
  line-height: 1;
  color: #4a4636;
  transform: rotate(-3deg);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.plate i {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: #b9b29c;
}

.plate i:nth-of-type(2) {
  width: 70%;
}

.plate i:nth-of-type(3) {
  width: 85%;
}

.cam__corner {
  position: absolute;
  width: 13%;
  aspect-ratio: 1;
  border: 2px solid #fff;
  opacity: 0.9;
}

.cam__corner--tl {
  left: 9%;
  top: 22%;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 6px;
}

.cam__corner--tr {
  right: 9%;
  top: 22%;
  border-left: 0;
  border-bottom: 0;
  border-top-right-radius: 6px;
}

.cam__corner--bl {
  left: 9%;
  bottom: 22%;
  border-right: 0;
  border-top: 0;
  border-bottom-left-radius: 6px;
}

.cam__corner--br {
  right: 9%;
  bottom: 22%;
  border-left: 0;
  border-top: 0;
  border-bottom-right-radius: 6px;
}

.cam__flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
}

.cam__tray {
  display: flex;
  align-items: center;
  gap: 7%;
  padding: 7% 8% 9%;
  background: #0c0d11;
}

.thumb {
  position: relative;
  width: 24%;
  aspect-ratio: 1;
  border-radius: 22%;
  background: #2a2d37;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.4);
}

.thumb svg {
  width: 56%;
  height: 56%;
}

.thumb .plate {
  width: 70%;
  padding: 12% 10%;
  gap: 2px;
  font-size: 0;
  transform: rotate(-3deg);
  box-shadow: none;
}

.thumb .plate i {
  height: 2px;
}

.tick {
  position: absolute;
  right: -18%;
  top: -18%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px #0c0d11;
  transform: scale(0);
}

.tick .icon {
  width: 70%;
  height: 70%;
  stroke-width: 2.6;
}

.cam__shutter {
  margin-left: auto;
  width: 26%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px #0c0d11, 0 0 0 5px #fff;
}

.scene__caption {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translate(-50%, -12px);
  padding: 0.55rem 0.95rem;
  border-radius: 99px;
  background: #fff;
  box-shadow: var(--shadow-1);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  opacity: 0;
}

.scene__caption .icon {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--ok);
  stroke-width: 2.4;
}

.step.is-active .cam__subject--1 {
  animation: subj1 3.4s both;
}

.step.is-active .cam__subject--2 {
  animation: subj2 3.4s both;
}

.step.is-active .cam__corner {
  animation: focus 1.4s var(--ease-out) 0.1s 2 both;
}

.step.is-active .cam__flash {
  animation: flash 0.5s 0.95s forwards, flash 0.5s 2.35s forwards;
}

.step.is-active .thumb--1 {
  animation: pop 0.6s var(--ease-spring) 1.1s both;
}

.step.is-active .thumb--2 {
  animation: pop 0.6s var(--ease-spring) 2.5s both;
}

.step.is-active .thumb--1 .tick {
  animation: popTick 0.5s var(--ease-spring) 1.4s both;
}

.step.is-active .thumb--2 .tick {
  animation: popTick 0.5s var(--ease-spring) 2.8s both;
}

.step.is-active .scene__caption {
  animation: caption 0.7s var(--ease-out) 3.1s both;
}

.step.is-active .cam__shutter {
  animation: press 0.3s 0.85s, press 0.3s 2.25s;
}

/* Szene 2: Festpreis */
.dial {
  position: relative;
  width: 52%;
  aspect-ratio: 1;
}

.dial svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

.dial__track {
  fill: none;
  stroke: #e1e5ec;
  stroke-width: 9;
}

.dial__run {
  fill: none;
  stroke: url(#g-thermal);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.dial__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  line-height: 1;
}

.dial__label b {
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  font-weight: 600;
  font-stretch: 82%;
  letter-spacing: -0.04em;
}

.dial__label small {
  margin: 0.35rem auto 0;
  max-width: 5.5em;
  font-size: 0.85rem;
  line-height: 1.15;
  color: var(--ink-2);
}

.mail {
  position: absolute;
  left: 50%;
  bottom: 9%;
  width: 78%;
  transform: translate(-50%, 130%);
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-2);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  line-height: 1.2;
}

.mail__icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 13px;
  background: var(--warm);
  color: #fff;
  flex: none;
}

.mail small {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-2);
}

.mail b {
  font-weight: 600;
}

.step.is-active .dial__run {
  animation: sweep 2.2s var(--ease-in-out) 0.3s both;
}

.step.is-active .dial {
  animation: dialUp 0.9s var(--ease-out) 2.5s both;
}

.step.is-active .mail {
  animation: mailIn 0.9s var(--ease-spring) 2.5s both;
}

/* Szene 3: Tausch an einem Tag */
.day {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #dfe7f5, #eef2f8);
}

.day::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ffe7c2, #ffd3b0 55%, #ffc2b4);
  opacity: 0;
}

.day__sun {
  position: absolute;
  left: 12%;
  top: 30%;
  width: 11%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.35), 0 0 60px 20px rgba(255, 255, 255, 0.5);
}

.day__device {
  position: relative;
  width: 30%;
  aspect-ratio: 240 / 380;
  margin-top: -6%;
}

.day__device svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 16px 18px rgba(21, 23, 28, 0.22));
}

.day__new {
  opacity: 0;
}

.day__track {
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: 9%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 1rem;
  font-size: 0.82rem;
  line-height: 1.2;
  color: var(--ink-2);
}

.day__track::before,
.day__track::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  border-radius: 3px;
  background: rgba(21, 23, 28, 0.12);
}

.day__track::after {
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.day__track li {
  position: relative;
  opacity: 0.4;
}

.day__track li:nth-child(2) {
  text-align: center;
}

.day__track li:nth-child(3) {
  text-align: right;
}

.day__track b {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.step.is-active .day::before {
  animation: fadeIn 2.4s ease 1.4s both;
}

.step.is-active .day__sun {
  animation: sun 3.4s var(--ease-in-out) 0.2s both;
}

.step.is-active .day__old {
  animation: oldOut 0.8s cubic-bezier(0.55, 0, 0.9, 0.3) 1s both;
}

.step.is-active .day__new {
  animation: newIn 0.9s var(--ease-spring) 1.5s both;
}

.step.is-active .day__track::after {
  animation: track 3.2s var(--ease-in-out) 0.3s both;
}

.step.is-active .day__track li:nth-child(1) {
  animation: liOn 0.4s 0.4s both;
}

.step.is-active .day__track li:nth-child(2) {
  animation: liOn 0.4s 1.7s both;
}

.step.is-active .day__track li:nth-child(3) {
  animation: liOn 0.4s 3.1s both;
}

/* ---------- Festpreis-Angebot ---------- */

.offer {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.offer__copy .lead {
  margin-top: 1.25rem;
}

.offer__copy .btn {
  margin-top: 2rem;
}

.sheet-wrap {
  perspective: 1400px;
}

.sheet {
  position: relative;
  border-radius: var(--r-l);
  background: #fff;
  padding: clamp(1.5rem, 3.4vw, 2.75rem);
  box-shadow: 0 0 0 1px rgba(21, 23, 28, 0.05), 0 40px 80px -30px rgba(21, 23, 28, 0.35), 0 10px 20px -10px rgba(21, 23, 28, 0.12);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out);
  will-change: transform;
}

.sheet__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.sheet__head svg {
  width: 1.75rem;
  height: 1.75rem;
}

.sheet__head b {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.sheet__head span {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 99px;
  background: var(--mist);
}

.sheet__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.3;
}

.sheet__list small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.88rem;
  color: var(--ink-2);
}

.sheet__tick {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  flex: none;
  margin-top: 0.05rem;
}

.sheet__tick .icon {
  width: 0.95rem;
  height: 0.95rem;
  stroke-width: 2.6;
  stroke-dasharray: 22;
  stroke-dashoffset: 0;
}

.sheet__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.4rem;
}

.sheet__total b {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 600;
  font-stretch: 86%;
  letter-spacing: -0.025em;
}

.sheet__price {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border-radius: 14px;
  font-weight: 600;
  background: var(--mist);
  white-space: nowrap;
}

.sheet__price small {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--ink-2);
}

.js .sheet__list li {
  opacity: 0.25;
  transition: opacity 0.5s;
}

.js .sheet__tick {
  background: var(--line);
  transition: background-color 0.35s, transform 0.5s var(--ease-spring);
  transform: scale(0.8);
}

.js .sheet__tick .icon {
  stroke-dashoffset: 22;
  transition: stroke-dashoffset 0.4s 0.1s;
}

.js .sheet.is-in .sheet__list li {
  opacity: 1;
}

.js .sheet.is-in .sheet__tick {
  background: var(--ink);
  transform: none;
}

.js .sheet.is-in .sheet__tick .icon {
  stroke-dashoffset: 0;
}

.sheet.is-in .sheet__list li:nth-child(1),
.sheet.is-in .sheet__list li:nth-child(1) * {
  transition-delay: 0.1s;
}

.sheet.is-in .sheet__list li:nth-child(2),
.sheet.is-in .sheet__list li:nth-child(2) * {
  transition-delay: 0.3s;
}

.sheet.is-in .sheet__list li:nth-child(3),
.sheet.is-in .sheet__list li:nth-child(3) * {
  transition-delay: 0.5s;
}

.sheet.is-in .sheet__list li:nth-child(4),
.sheet.is-in .sheet__list li:nth-child(4) * {
  transition-delay: 0.7s;
}

.sheet.is-in .sheet__list li:nth-child(5),
.sheet.is-in .sheet__list li:nth-child(5) * {
  transition-delay: 0.9s;
}

.sheet.is-in .sheet__list li:nth-child(6),
.sheet.is-in .sheet__list li:nth-child(6) * {
  transition-delay: 1.1s;
}

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

/* ---------- Vermieter: Haus bei Nacht ---------- */

.landlord {
  position: relative;
  background: var(--night);
  color: #fff;
  overflow: hidden;
}

.landlord .lead {
  color: rgba(255, 255, 255, 0.68);
}

.landlord__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.landlord__points {
  display: grid;
  gap: 1.75rem;
  margin: 2.75rem 0;
}

.landlord__points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1rem;
}

.landlord__points .icon {
  grid-row: span 2;
  margin-top: 0.15rem;
  color: var(--t5);
}

.landlord__points p {
  color: rgba(255, 255, 255, 0.64);
  max-width: 30rem;
}

.house {
  position: relative;
  max-width: 27rem;
  margin-inline: auto;
  width: 100%;
}

.house__glow {
  position: absolute;
  inset: -22% -30% -10%;
  background: radial-gradient(closest-side, rgba(255, 122, 26, 0.34), rgba(255, 61, 119, 0.16) 50%, transparent 78%);
  opacity: calc(var(--lit, 0) / 9);
  transition: opacity 0.8s;
  pointer-events: none;
}

.house__body {
  position: relative;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, #232733, #1a1d27);
  padding: 9% 9% 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.house__body::before {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  top: -3.2%;
  height: 4.5%;
  border-radius: 6px;
  background: #2b3040;
}

.house__wins {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9% 11%;
}

.win {
  position: relative;
  aspect-ratio: 5 / 6;
  border-radius: 6px;
  background: #2a3550;
  box-shadow: inset 0 0 0 3px #343a4b;
  overflow: hidden;
  transition: box-shadow 0.8s;
}

.win::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--t5), var(--t4));
  opacity: 0;
  transition: opacity 0.9s var(--ease-out);
}

.win::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 47%, #343a4b 47% 53%, transparent 53%), linear-gradient(180deg, transparent 38%, #343a4b 38% 42%, transparent 42%);
}

.win.is-warm {
  box-shadow: inset 0 0 0 3px #4a3d3a, 0 0 34px 2px rgba(255, 160, 60, 0.45);
}

.win.is-warm::before {
  opacity: 1;
}

.house__ground {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 11%;
  margin-top: 9%;
  align-items: end;
}

.house__door {
  grid-column: 2;
  aspect-ratio: 5 / 7.4;
  border-radius: 6px 6px 0 0;
  background: #10121a;
  box-shadow: inset 0 0 0 3px #343a4b;
}

.house__base {
  height: 6px;
  margin: 0 -9%;
  background: #343a4b;
  border-radius: 2px;
}

.house__count {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
}

.house__count b {
  color: #fff;
  font-weight: 600;
}

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

  .house {
    max-width: 19rem;
  }
}

/* ---------- Region ---------- */

.region {
  padding: 0 0 clamp(4rem, 9vw, 8rem);
}

.region .section__head {
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.hero__cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero__cities li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Wahrzeichen (eigene Zeichnungen) */
.hero__cities li {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
}

.hero__cities img {
  height: 3.4rem;
  width: auto;
  max-width: 5.8rem;
  object-fit: contain;
  object-position: left bottom;
}

.hero__cities .hero__umland {
  font-size: 0.9rem;
}

.hero__cities li.hero__umland img {
  height: 3.2rem;
  margin-top: 0.2rem;
}

.js .hero__cities {
  opacity: 0;
  transform: translateY(18px);
}

.js.is-ready .hero__cities {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease-out) 0.36s, transform 1.1s var(--ease-out) 0.36s;
}

.sheet__foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.925rem;
  color: var(--ink-2);
}

.sheet__foot .icon {
  width: 1.25rem;
  height: 1.25rem;
}

@media (max-width: 860px) {
  .hero__cities {
    gap: 0.5rem 1.1rem;
    margin-top: 1.1rem;
    font-size: 0.975rem;
  }

  /* Mobil: Fragen zuerst, Städte als ruhige Leiste darunter */
  .hero__copy {
    display: flex;
    flex-direction: column;
  }

  .hero__cities {
    order: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0 0.5rem;
    margin-top: 1.6rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
  }

  .hero__cities img {
    height: 2.1rem;
    max-width: 100%;
  }

  .hero__cities li.hero__umland img {
    height: 2rem;
    margin-top: 0.1rem;
  }

  .hero__cities li {
    gap: 0.3rem;
  }

  .hero__cities li,
  .hero__cities .hero__umland {
    font-size: 0.75rem;
    white-space: nowrap;
  }
}

.cities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.city {
  padding: 2.5rem clamp(1rem, 3vw, 2.5rem) 0.5rem;
  border-left: 1px solid var(--line);
}

.city:first-child {
  padding-left: 0;
  border-left: 0;
}

.region__more {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  max-width: 46em;
  color: var(--ink-2);
}

.region__more b {
  color: var(--ink);
  font-weight: 600;
}

.hero__umland {
  font-weight: 500;
  color: var(--ink-2);
}

.city__art {
  display: block;
  width: 100%;
  max-width: 19rem;
  height: clamp(8.5rem, 13vw, 11.5rem);
  object-fit: contain;
  object-position: left bottom;
}

.city__name {
  margin-top: 1.25rem;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  font-weight: 600;
  font-stretch: 86%;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.city p {
  margin-top: 0.6rem;
  color: var(--ink-2);
  max-width: 22em;
}

.js .city__art {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out);
}

.js .cities.is-in .city__art {
  opacity: 1;
  transform: none;
}

.cities.is-in .city:nth-child(2) .city__art {
  transition-delay: 0.15s;
}

.cities.is-in .city:nth-child(3) .city__art {
  transition-delay: 0.3s;
}

@media (max-width: 860px) {
  .region__more {
    border-top: 0;
    padding-top: 0;
  }

  .cities {
    grid-template-columns: 1fr;
  }

  .city {
    padding: 1.75rem 0 2rem;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .city__art {
    max-width: 16rem;
    height: 9rem;
  }

  .city__name {
    margin-top: 0.9rem;
  }
}

/* Typenschild von Hand */
.manual {
  margin-top: 1.25rem;
  border-radius: var(--r-m);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.manual__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.15rem;
  text-align: left;
  line-height: 1.3;
}

.manual__toggle b {
  display: block;
  font-weight: 600;
}

.manual__toggle small {
  font-size: 0.9rem;
  color: var(--ink-2);
}

.manual .faq__icon {
  background: var(--mist);
}

.manual.is-open .faq__icon {
  background: var(--ink);
  transform: rotate(180deg);
}

.manual.is-open .faq__icon::before,
.manual.is-open .faq__icon::after {
  background: #fff;
}

.manual.is-open .faq__icon::after {
  transform: rotate(0deg);
}

.manual__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease-out);
}

.manual__body > div {
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s 0.5s;
  padding: 0 1.15rem;
}

.manual.is-open .manual__body {
  grid-template-rows: 1fr;
}

.manual.is-open .manual__body > div {
  visibility: visible;
  transition-delay: 0s;
  padding-bottom: 1.15rem;
}

.manual__hint {
  font-size: 0.925rem;
  color: var(--ink-2);
}

.manual .fields {
  margin-top: 0.9rem;
}

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

.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.faq__head {
  position: sticky;
  top: 7rem;
}

.faq__head .lead {
  margin-top: 1.25rem;
}

.faq__item {
  border-bottom: 1px solid #d9dde5;
}

.faq__item:first-child {
  border-top: 1px solid #d9dde5;
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.35rem 0;
  text-align: left;
  font-size: 1.2rem;
  font-weight: 600;
  font-stretch: 92%;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.faq__icon {
  position: relative;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #fff;
  flex: none;
  transition: background-color 0.3s, transform 0.5s var(--ease-out);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.75rem;
  height: 2px;
  margin: -1px 0 0 -0.375rem;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.5s var(--ease-out), background-color 0.3s;
}

.faq__icon::after {
  transform: rotate(90deg);
}

.faq__item.is-open .faq__icon {
  background: var(--ink);
  transform: rotate(180deg);
}

.faq__item.is-open .faq__icon::before,
.faq__item.is-open .faq__icon::after {
  background: #fff;
}

.faq__item.is-open .faq__icon::after {
  transform: rotate(0deg);
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease-out);
}

.faq__a > div {
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s 0.5s;
}

.faq__a p {
  padding: 0 3.5rem 1.5rem 0;
  color: var(--ink-2);
  max-width: 38em;
}

.faq__item.is-open .faq__a {
  grid-template-rows: 1fr;
}

.faq__item.is-open .faq__a > div {
  visibility: visible;
  transition-delay: 0s;
}

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

  .faq__head {
    position: static;
  }

  .faq__q {
    font-size: 1.1rem;
  }

  .faq__a p {
    padding-right: 0;
  }
}

/* ---------- Abschluss ---------- */

.final {
  position: relative;
  padding: clamp(6rem, 14vw, 12rem) 0;
  text-align: center;
  overflow: hidden;
}

.final__aura {
  position: absolute;
  left: 50%;
  bottom: -60%;
  width: min(120vw, 82rem);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(255, 200, 61, 0.7) 0%,
    rgba(255, 122, 26, 0.5) 26%,
    rgba(255, 61, 119, 0.32) 48%,
    rgba(165, 61, 255, 0.16) 66%,
    rgba(36, 87, 255, 0.06) 80%,
    transparent 90%
  );
  pointer-events: none;
  animation: breathe 9s ease-in-out infinite;
}

.final .wrap {
  position: relative;
}

.final .h2 {
  max-width: 15em;
  margin-inline: auto;
}

.final .btn {
  margin-top: 2.5rem;
}

.final .note {
  margin-top: 1rem;
  color: var(--ink-2);
}

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

.foot {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.925rem;
  color: var(--ink-2);
}

.foot__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.foot__in > p {
  margin-right: auto;
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.foot__links a,
.foot__links button {
  text-decoration: none;
  color: inherit;
}

.foot__links a:hover,
.foot__links button:hover {
  color: var(--ink);
}

@media (max-width: 860px) {
  .foot {
    padding-bottom: 7rem;
  }

  .foot__in > p {
    width: 100%;
  }
}

/* ---------- Mobile Leiste unten ---------- */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: none;
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 -1px 0 var(--line);
  transform: translateY(110%);
  transition: transform 0.5s var(--ease-out);
}

.dock.is-on {
  transform: none;
}

@media (max-width: 860px) {
  .dock {
    display: block;
  }
}

/* ---------- Funnel ---------- */

.funnel {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--paper);
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition: opacity 0.35s, transform 0.55s var(--ease-out);
}

.funnel.is-open {
  opacity: 1;
  transform: none;
}

.funnel__bar {
  display: grid;
  grid-template-columns: 3rem 1fr 3rem;
  align-items: center;
  gap: 1rem;
  width: min(100% - 2 * var(--gutter), 46rem);
  margin-inline: auto;
  height: 4.5rem;
}

.funnel__nav {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--mist);
  transition: background-color 0.2s, opacity 0.25s, transform 0.25s var(--ease-out);
}

.funnel__nav:hover {
  background: var(--line);
}

.funnel__nav:active {
  transform: scale(0.94);
}

.funnel__nav[disabled] {
  opacity: 0;
  pointer-events: none;
}

.funnel__nav .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.funnel__progress {
  height: 6px;
  border-radius: 6px;
  background: var(--mist);
  overflow: hidden;
}

.funnel__progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--thermal);
  background-size: 46rem 100%;
  transform-origin: 0 50%;
  width: 0;
  transition: width 0.7s var(--ease-out);
}

.funnel__body {
  position: relative;
  overflow: hidden;
}

.fstep {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: clamp(1rem, 4vh, 3rem) var(--gutter) 3rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(48px);
  transition: opacity 0.3s, transform 0.55s var(--ease-out), visibility 0s 0.55s;
}

.fstep.is-past {
  transform: translateX(-48px);
}

.fstep.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0.08s, 0.08s, 0s;
}

.fstep__in {
  width: min(100%, 34rem);
  margin-inline: auto;
}

.fstep__title {
  font-size: clamp(1.75rem, 4.6vw, 2.5rem);
  font-weight: 600;
  font-stretch: 86%;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.fstep__sub {
  margin-top: 0.6rem;
  color: var(--ink-2);
}

.fopts {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.fopt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-height: 4.5rem;
  padding: 0.9rem 1.15rem;
  text-align: left;
  border-radius: var(--r-m);
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: box-shadow 0.2s, background-color 0.2s, transform 0.25s var(--ease-out);
}

.fopt b {
  display: block;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.fopt small {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--ink-2);
}

.fopt__radio {
  position: relative;
  margin-left: auto;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px #c8cdd7;
  flex: none;
  display: grid;
  place-items: center;
  color: #fff;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.4s var(--ease-spring);
}

.fopt__radio .icon {
  width: 1rem;
  height: 1rem;
  stroke-width: 2.6;
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
  transition: stroke-dashoffset 0.3s 0.05s;
}

@media (hover: hover) {
  .fopt:hover {
    box-shadow: inset 0 0 0 1.5px var(--ink);
  }
}

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

.fopt.is-selected {
  background: var(--mist);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.fopt.is-selected .fopt__radio {
  background: var(--ink);
  box-shadow: none;
  transform: scale(1.08);
}

.fopt.is-selected .fopt__radio .icon {
  stroke-dashoffset: 0;
}

.fopt .opt__icon {
  background: var(--mist);
}

.fopt.is-selected .opt__icon {
  background: #fff;
}

/* PLZ */
.plz {
  margin-top: 2rem;
}

.plz__input {
  width: 100%;
  height: 5.5rem;
  border: 0;
  border-radius: var(--r-m);
  background: var(--mist);
  text-align: center;
  font-size: 2.75rem;
  font-weight: 600;
  font-stretch: 86%;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  font-variant-numeric: tabular-nums;
  outline: none;
  box-shadow: inset 0 0 0 2px transparent;
  transition: box-shadow 0.2s, background-color 0.2s;
}

.plz__input::placeholder {
  color: #c3c8d2;
}

.plz__input:focus {
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--ink);
}

.plz__hint {
  min-height: 3em;
  margin-top: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--ink-2);
}

.plz__hint .icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.12rem;
  color: var(--ok);
  stroke-width: 2.2;
}

.fstep__actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.fstep__skip {
  justify-self: center;
  padding: 0.5rem 0.75rem;
  color: var(--ink-2);
}

/* Fotos */
.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.shot {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.6rem;
  aspect-ratio: 4 / 5;
  padding: 1rem;
  border-radius: var(--r-m);
  background: var(--mist);
  background-size: cover;
  background-position: center;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  box-shadow: inset 0 0 0 1.5px transparent;
  transition: box-shadow 0.2s, transform 0.25s var(--ease-out);
}

.shot::before {
  content: "";
  position: absolute;
  inset: 0.5rem;
  border-radius: 14px;
  border: 1.5px dashed #c3c8d2;
  transition: opacity 0.2s;
  pointer-events: none;
}

.shot:hover {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.shot:focus-within {
  outline: 2.5px solid var(--flamme);
  outline-offset: 3px;
}

.shot input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.shot__art {
  width: 46%;
  max-width: 5rem;
  height: auto;
  aspect-ratio: 1;
  stroke-width: 1.4;
  color: var(--ink-3);
}

.shot b {
  font-weight: 600;
  line-height: 1.2;
}

.shot small {
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--ink-2);
}

.shot__done {
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.6rem;
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.7rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
}

.shot__done .icon {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--ok);
  stroke-width: 2.4;
}

.shot.has-photo::before,
.shot.has-photo .shot__art,
.shot.has-photo > b,
.shot.has-photo > small {
  opacity: 0;
}

.shot.has-photo .shot__done {
  display: flex;
  animation: caption2 0.5s var(--ease-out) both;
}

.shot.is-busy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(243, 245, 248, 0.8) ;
}

.shots__hint {
  margin-top: 1rem;
  font-size: 0.925rem;
  color: var(--ink-2);
}

/* Kontakt */
.fields {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.field {
  position: relative;
}

.field input,
.field textarea {
  width: 100%;
  height: 4rem;
  padding: 1.5rem 1.1rem 0.4rem;
  border: 0;
  border-radius: 16px;
  background: var(--mist);
  outline: none;
  box-shadow: inset 0 0 0 2px transparent;
  transition: box-shadow 0.2s, background-color 0.2s;
}

.field textarea {
  height: 7rem;
  resize: vertical;
  padding-top: 1.7rem;
}

.field label {
  position: absolute;
  left: 1.1rem;
  top: 1.22rem;
  color: var(--ink-2);
  pointer-events: none;
  transform-origin: 0 0;
  transition: transform 0.2s var(--ease-out), color 0.2s;
}

.field input:focus,
.field textarea:focus {
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--ink);
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-0.72rem) scale(0.78);
}

.field.has-error input {
  box-shadow: inset 0 0 0 2px var(--err);
  background: #fff;
}

.field__error {
  display: none;
  margin: 0.35rem 0 0 1.1rem;
  font-size: 0.875rem;
  color: var(--err);
}

.field.has-error .field__error {
  display: block;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.fstep__legal {
  margin-top: 1rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--ink-2);
}

.fstep__alert {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  background: #fef3f2;
  color: #912018;
  font-size: 0.95rem;
}

/* Erfolg */
.done {
  text-align: center;
  padding-top: clamp(1rem, 6vh, 4rem);
}

.done__mark {
  position: relative;
  width: 6.5rem;
  height: 6.5rem;
  margin: 0 auto 2rem;
}

.done__mark::before {
  content: "";
  position: absolute;
  inset: -70%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 200, 61, 0.75), rgba(255, 122, 26, 0.5) 30%, rgba(255, 61, 119, 0.28) 52%, rgba(165, 61, 255, 0.1) 70%, transparent 84%);
  transform: scale(0.3);
  opacity: 0;
}

.done__mark svg {
  position: relative;
  width: 100%;
  height: 100%;
}

.done__mark circle {
  fill: var(--ink);
  transform-origin: 50% 50%;
  transform: scale(0);
}

.done__mark path {
  fill: none;
  stroke: #fff;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
}

.fstep.is-active .done__mark::before {
  animation: bloom 1.8s var(--ease-out) 0.25s both;
}

.fstep.is-active .done__mark circle {
  animation: popIn 0.7s var(--ease-spring) 0.2s both;
}

.fstep.is-active .done__mark path {
  animation: draw 0.5s var(--ease-out) 0.65s both;
}

.done__when {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: 1.5rem;
  padding: 0.8rem 1.2rem;
  border-radius: 16px;
  background: var(--mist);
  font-weight: 600;
}

.done__when small {
  font-weight: 400;
  color: var(--ink-2);
  font-size: 0.925rem;
}

.done__next {
  display: grid;
  gap: 0.6rem;
  margin: 2rem auto 0;
  max-width: 26rem;
  text-align: left;
  color: var(--ink-2);
  counter-reset: n;
}

.done__next li {
  position: relative;
  padding-left: 2.25rem;
  counter-increment: n;
}

.done__next li::before {
  content: counter(n);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--mist);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.done .btn {
  margin-top: 2.25rem;
}

.demo-flag {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--ink-3);
}

/* ---------- Rechtliches (Overlay + Unterseiten) ---------- */

.legal-sheet {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: end center;
  background: rgba(14, 16, 22, 0.45);
  opacity: 0;
  transition: opacity 0.3s;
}

.legal-sheet.is-open {
  opacity: 1;
}

.legal-sheet__panel {
  position: relative;
  width: min(100%, 46rem);
  max-height: 88vh;
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--r-l) var(--r-l) 0 0;
  background: #fff;
  transform: translateY(40px);
  transition: transform 0.5s var(--ease-out);
}

.legal-sheet.is-open .legal-sheet__panel {
  transform: none;
}

.legal-sheet__close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
}

.legal {
  max-width: 44rem;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  font-stretch: 86%;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.legal h2 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 2rem 0 0.5rem;
}

.legal p,
.legal li {
  color: var(--ink-2);
}

.legal p + p {
  margin-top: 0.75rem;
}

.legal ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.legal a {
  color: var(--ink);
}

.legal-page {
  padding: 2rem 0 5rem;
}

.legal-page .back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  text-decoration: none;
  color: var(--ink-2);
}

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

.consent {
  position: fixed;
  left: var(--gutter);
  bottom: var(--gutter);
  z-index: 90;
  width: min(100% - 2 * var(--gutter), 26rem);
  padding: 1.25rem;
  border-radius: var(--r-m);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(21, 23, 28, 0.06), var(--shadow-2);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.3s;
}

.consent.is-open {
  transform: none;
  opacity: 1;
}

.consent p {
  font-size: 0.925rem;
  color: var(--ink-2);
}

.consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
}

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

/* Hero-Auftritt: ein orchestrierter Moment */
.js .display .line > span {
  transform: translateY(105%);
}

.js .hero .lead,
.js .quiz,
.js .hero__facts {
  opacity: 0;
  transform: translateY(18px);
}

.js.is-ready .display .line > span {
  transform: none;
  transition: transform 1.1s var(--ease-out);
}

.js.is-ready .display .line:nth-child(2) > span {
  transition-delay: 0.12s;
}

.js.is-ready .hero .lead,
.js.is-ready .quiz,
.js.is-ready .hero__facts {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out);
}

.js.is-ready .hero .lead {
  transition-delay: 0.3s;
}

.js.is-ready .quiz {
  transition-delay: 0.42s;
}

.js.is-ready .hero__facts {
  transition-delay: 0.6s;
}

/* Überschriften schieben sich einmal ins Bild */
.js .rise {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out);
}

.js .rise.is-in {
  opacity: 1;
  transform: none;
}

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

@keyframes breathe {
  0%,
  100% {
    transform: translateX(var(--tx, 0)) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateX(var(--tx, 0)) scale(1.06);
    opacity: 0.86;
  }
}

.final__aura {
  --tx: -50%;
}

@keyframes flicker {
  0%,
  100% {
    transform: scale(1, 1);
  }
  30% {
    transform: scale(0.92, 1.08);
  }
  60% {
    transform: scale(1.05, 0.94);
  }
}

@keyframes rise {
  from {
    stroke-dashoffset: 146;
    opacity: 0;
  }
  20% {
    opacity: 0.75;
  }
  80% {
    opacity: 0.5;
  }
  to {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes subj1 {
  0% {
    opacity: 0;
    transform: scale(1.12);
  }
  8%,
  36% {
    opacity: 1;
    transform: scale(1);
  }
  44%,
  100% {
    opacity: 0;
    transform: scale(0.94);
  }
}

@keyframes subj2 {
  0%,
  42% {
    opacity: 0;
    transform: scale(1.12);
  }
  50%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes focus {
  0% {
    transform: scale(1.35);
    opacity: 0;
  }
  45%,
  100% {
    transform: scale(1);
    opacity: 0.95;
  }
}

@keyframes flash {
  0% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
  }
}

@keyframes press {
  50% {
    transform: scale(0.86);
  }
}

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

@keyframes popTick {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

@keyframes caption {
  from {
    opacity: 0;
    transform: translate(-50%, -12px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

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

@keyframes sweep {
  from {
    stroke-dashoffset: 100;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes dialUp {
  to {
    transform: translateY(-14%) scale(0.88);
  }
}

@keyframes mailIn {
  from {
    transform: translate(-50%, 130%);
  }
  to {
    transform: translate(-50%, 0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes sun {
  from {
    left: 10%;
    top: 34%;
  }
  50% {
    top: 9%;
  }
  to {
    left: 79%;
    top: 30%;
  }
}

@keyframes oldOut {
  to {
    transform: translate(-70%, 16%) rotate(-12deg) scale(0.88);
    opacity: 0;
  }
}

@keyframes newIn {
  from {
    opacity: 0;
    transform: translateY(-18%) scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes track {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes liOn {
  to {
    opacity: 1;
  }
}

@keyframes bloom {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.55;
  }
}

@keyframes popIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js .statement__text .w {
    opacity: 1;
  }

  .js .how {
    height: auto;
  }

  .js .how__pin {
    position: static;
    height: auto;
  }
}

/* =====================================================================
   pumpenwechsel – Ergänzungen für die Wärmepumpen-Seite
   ===================================================================== */

/* ---------- Hero: Außengerät ---------- */
.wp__fan {
  transform-origin: 100px 194px;
}

.stage[data-state="new"] .wp__fan {
  animation: fanSpin 1.1s linear 1.3s infinite, fanUp 1.6s var(--ease-out) 1.3s both;
}

.step.is-active .day__new .wp__fan {
  animation: fanSpin 1.1s linear 2.4s infinite;
}

.stage__air {
  position: absolute;
  left: 3%;
  top: 40%;
  width: 24%;
  opacity: 0;
  transition: opacity 1s 1.7s;
  overflow: visible;
}

.stage[data-state="new"] .stage__air {
  opacity: 1;
}

.stage__air path {
  fill: none;
  stroke: #7fa2ff;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 22 110;
  animation: airIn 3.2s linear infinite;
}

.stage__air path:nth-child(2) { animation-delay: -1.1s; animation-duration: 3.8s; }
.stage__air path:nth-child(3) { animation-delay: -2.2s; animation-duration: 3.5s; }

.stage__tag--new { transition-delay: 0s; }

/* ---------- Förderrechner ---------- */
.calc__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.calc__form {
  display: grid;
  gap: 1.9rem;
}

.calc__row {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.calc__row[hidden] { display: none; }

.calc__row legend {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  width: 100%;
  padding: 0;
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-2);
}

.calc__row legend output {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.calc__row .note { margin-top: 0.7rem; }

.seg {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: #e6e9ef;
  max-width: 100%;
}

.seg--wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  background: none;
  border-radius: 0;
}

.seg button {
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.975rem;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background 0.25s var(--ease-out), color 0.2s, box-shadow 0.25s, transform 0.2s var(--ease-out);
}

.seg--wrap button {
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}

.seg button:active { transform: scale(0.97); }

.seg button.is-on {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(21, 23, 28, 0.08), 0 6px 16px -8px rgba(21, 23, 28, 0.25);
}

.seg--wrap button.is-on {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.9rem;
  font-size: 0.975rem;
  cursor: pointer;
}

.check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check i {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px #c3c8d2;
  color: #fff;
  transition: background 0.2s, box-shadow 0.2s;
}

.check i .icon {
  width: 1rem;
  height: 1rem;
  stroke-width: 2.6;
  transform: scale(0);
  transition: transform 0.3s var(--ease-spring);
}

.check input:checked + i {
  background: var(--ink);
  box-shadow: none;
}

.check input:checked + i .icon { transform: none; }
.check input:focus-visible + i { outline: 2.5px solid var(--flamme); outline-offset: 2px; }

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}

.stepper button {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  background: var(--mist);
  transition: background 0.2s, transform 0.2s var(--ease-out);
}

.stepper button:active { transform: scale(0.92); }
.stepper output { min-width: 3rem; text-align: center; font-size: 1.25rem; font-weight: 600; }

.range {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 2rem;
  background: none;
  --fill: 33%;
  cursor: pointer;
}

.range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--ink) var(--fill), #d5d9e1 var(--fill));
}

.range::-moz-range-track {
  height: 6px;
  border-radius: 6px;
  background: #d5d9e1;
}

.range::-moz-range-progress {
  height: 6px;
  border-radius: 6px;
  background: var(--ink);
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: calc(-0.875rem + 3px);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(21, 23, 28, 0.08), 0 4px 12px -2px rgba(21, 23, 28, 0.35);
  transition: transform 0.2s var(--ease-out);
}

.range::-moz-range-thumb {
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(21, 23, 28, 0.08), 0 4px 12px -2px rgba(21, 23, 28, 0.35);
}

.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.range:focus-visible { outline: 2.5px solid var(--flamme); outline-offset: 4px; border-radius: 8px; }

.calc__card {
  position: sticky;
  top: 6.5rem;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--r-l);
  background: var(--night);
  color: #fff;
  box-shadow: var(--shadow-2);
  --grund: 30;
  --klima: 16;
  --eink: 0;
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out);
}

.calc__card.is-in {
  opacity: 1;
  transform: none;
}

.calc__glow {
  position: absolute;
  right: -30%;
  top: -45%;
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 122, 26, 0.5), rgba(255, 61, 119, 0.28) 45%, rgba(36, 87, 255, 0.12) 70%, transparent 85%);
  opacity: calc(0.35 + (var(--grund) + var(--klima) + var(--eink)) / 120);
  transition: opacity 0.8s var(--ease-out);
  animation: breathe 8s ease-in-out infinite;
  pointer-events: none;
}

.calc__card > :not(.calc__glow) { position: relative; }

.calc__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
}

.calc__sum {
  margin-top: 0.3rem;
  font-size: clamp(3rem, 6.4vw, 4.75rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  font-stretch: 85%;
}

.calc__bar {
  display: flex;
  gap: 3px;
  height: 10px;
  margin-top: 1.6rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.calc__bar i {
  height: 100%;
  border-radius: 10px;
  transition: width 0.7s var(--ease-out);
}

.calc__bar i[data-part="grund"] { width: calc(var(--grund) * 1.25%); background: var(--t1); }
.calc__bar i[data-part="klima"] { width: calc(var(--klima) * 1.25%); background: var(--t3); }
.calc__bar i[data-part="eink"] { width: calc(var(--eink) * 1.25%); background: var(--t5); }

.calc__parts {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.2rem;
  font-size: 0.975rem;
}

.calc__parts li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: opacity 0.3s;
}

.calc__parts li[hidden] { display: none; }
.calc__parts li.is-off { opacity: 0.4; }
.calc__parts li > i { width: 0.6rem; height: 0.6rem; border-radius: 50%; }
.calc__parts li[data-part="grund"] > i { background: var(--t1); }
.calc__parts li[data-part="klima"] > i { background: var(--t3); }
.calc__parts li[data-part="eink"] > i { background: var(--t5); }
.calc__parts b { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }

.calc__own {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.7);
}

.calc__own b {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.calc__deadline {
  margin-top: 1.1rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.925rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.82);
}

.calc__deadline b { color: var(--t5); font-weight: 600; }
.calc__deadline[hidden] { display: none; }
.calc__card .btn { margin-top: 1.4rem; }

.calc__fine {
  margin-top: 1rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 860px) {
  .calc__grid { grid-template-columns: 1fr; }
  .calc__card { position: relative; top: auto; }
  .seg button { padding: 0.6rem 0.95rem; font-size: 0.925rem; }
}

/* ---------- Gas wird teurer: Treppe ---------- */
.stairs__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.stairs__copy .lead { margin-top: 1.25rem; }

.stairs__facts {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.stairs__facts li {
  display: flex;
  gap: 0.9rem;
  color: var(--ink-2);
}

.stairs__facts .icon {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.15rem;
  color: var(--ink);
}

.stairs__facts b { color: var(--ink); font-weight: 600; }

.stairs__chart { margin: 0; }

.stairs__bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: clamp(0.5rem, 1.6vw, 1.1rem);
  height: clamp(16rem, 30vw, 24rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.stair {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.stair i {
  display: block;
  height: calc(var(--h) * 0.86%);
  min-height: 6px;
  border-radius: 14px 14px 4px 4px;
  background: linear-gradient(180deg, var(--t5), var(--t4) 30%, var(--t3) 65%, var(--t2));
  background-size: 100% clamp(16rem, 30vw, 24rem);
  background-position: 0 100%;
  transform: scaleY(0);
  transform-origin: 50% 100%;
}

.stair b {
  margin-bottom: 0.4rem;
  font-size: clamp(0.95rem, 1.6vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  opacity: 0;
}

.stair span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1.7rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.stairs__chart.is-in .stair i { animation: stairUp 1.1s var(--ease-out) both; }
.stairs__chart.is-in .stair b { animation: caption2 0.5s var(--ease-out) both; }
.stairs__chart.is-in .stair:nth-child(1) i { animation-delay: 0.1s; }
.stairs__chart.is-in .stair:nth-child(2) i { animation-delay: 0.25s; }
.stairs__chart.is-in .stair:nth-child(3) i { animation-delay: 0.4s; }
.stairs__chart.is-in .stair:nth-child(4) i { animation-delay: 0.55s; }
.stairs__chart.is-in .stair:nth-child(5) i { animation-delay: 0.7s; }
.stairs__chart.is-in .stair:nth-child(1) b { animation-delay: 0.7s; }
.stairs__chart.is-in .stair:nth-child(2) b { animation-delay: 0.85s; }
.stairs__chart.is-in .stair:nth-child(3) b { animation-delay: 1s; }
.stairs__chart.is-in .stair:nth-child(4) b { animation-delay: 1.15s; }
.stairs__chart.is-in .stair:nth-child(5) b { animation-delay: 1.3s; }

.stairs__chart figcaption {
  margin-top: 2.6rem;
  font-size: 0.875rem;
  color: var(--ink-3);
}

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

/* ---------- Passt das zu meinem Haus ---------- */
.worries__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.worry {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: var(--r-m);
  background: var(--mist);
  opacity: 0;
  transform: translateY(24px);
}

.worries__grid.is-in .worry { animation: caption2 0.8s var(--ease-out) both; }
.worries__grid.is-in .worry:nth-child(2) { animation-delay: 0.1s; }
.worries__grid.is-in .worry:nth-child(3) { animation-delay: 0.2s; }
.worries__grid.is-in .worry:nth-child(4) { animation-delay: 0.3s; }

.worry .h3 { margin-top: 1.4rem; }
.worry p { margin-top: 0.5rem; color: var(--ink-2); font-size: 0.975rem; }

.worry--plain {
  background: var(--night);
  color: #fff;
}

.worry--plain p { color: rgba(255, 255, 255, 0.7); }

.worry__art {
  position: relative;
  display: grid;
  place-items: center;
  height: 8.5rem;
  border-radius: 14px;
  background: var(--paper);
  overflow: hidden;
}

.worry__art--temp b {
  position: relative;
  z-index: 1;
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.worry__art--temp > i {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  height: 6px;
  border-radius: 6px;
  background: #e6e9ef;
  overflow: hidden;
}

.worry__art--temp em {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: var(--thermal);
  transform: scaleX(0.2);
  transform-origin: 0 50%;
}

.worries__grid.is-in .worry__art--temp em { animation: tempBar 1.6s var(--ease-out) 0.5s both; }

.worry__art--sound .icon {
  position: relative;
  z-index: 1;
  width: 2.6rem;
  height: 2.6rem;
  stroke-width: 1.5;
  animation: fanSpin 6s linear infinite;
}

.worry__art--sound > i {
  position: absolute;
  width: 3.4rem;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid var(--ink-3);
  opacity: 0;
  animation: ripple 3.6s ease-out infinite;
}

.worry__art--sound > i:nth-of-type(2) { animation-delay: 1.2s; }
.worry__art--sound > i:nth-of-type(3) { animation-delay: 2.4s; }

.worry__art--ratio {
  grid-auto-flow: row;
  align-content: center;
  justify-items: start;
  gap: 0.55rem;
  padding: 0 1rem;
}

.worry__art--ratio span {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.worry__art--ratio i {
  width: 1.5rem;
  height: 1.1rem;
  border-radius: 5px;
  background: var(--ink);
}

.worry__art--ratio span:nth-child(2) i {
  background: var(--t4);
  transform: scale(0);
}

.worry__art--ratio span:nth-child(2) i:nth-of-type(2) { background: var(--t4); }
.worry__art--ratio span:nth-child(2) i:nth-of-type(3) { background: var(--t3); }
.worry__art--ratio span:nth-child(2) i:nth-of-type(4) { background: var(--t5); opacity: 0.55; }

.worries__grid.is-in .worry__art--ratio span:nth-child(2) i { animation: popIn 0.5s var(--ease-spring) both; }
.worries__grid.is-in .worry__art--ratio span:nth-child(2) i:nth-of-type(1) { animation-delay: 0.7s; }
.worries__grid.is-in .worry__art--ratio span:nth-child(2) i:nth-of-type(2) { animation-delay: 0.85s; }
.worries__grid.is-in .worry__art--ratio span:nth-child(2) i:nth-of-type(3) { animation-delay: 1s; }
.worries__grid.is-in .worry__art--ratio span:nth-child(2) i:nth-of-type(4) { animation-delay: 1.15s; }

.worry__art--ratio small {
  order: -1;
  width: 100%;
  font-size: 0.78rem;
  color: var(--ink-2);
  white-space: nowrap;
}

.worry__art--no {
  background: rgba(255, 255, 255, 0.08);
}

.worry__art--no .icon {
  width: 3rem;
  height: 3rem;
  padding: 0.7rem;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  stroke-width: 2.4;
}

@media (max-width: 1040px) {
  .worries__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

/* ---------- Funnel: fünf Fotos ---------- */
.shots--5 .shot { aspect-ratio: 1 / 1; }

.shots--5 .shot:last-child {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  min-height: 8.5rem;
}

.shots--5 .shot__art { width: 34%; max-width: 3.6rem; }
.shots--5 .shot:last-child .shot__art { width: 3.2rem; }

/* ---------- Bewegung (Ergänzungen) ---------- */
@keyframes fanSpin {
  to { transform: rotate(360deg); }
}

@keyframes fanUp {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

@keyframes airIn {
  from { stroke-dashoffset: 132; }
  to { stroke-dashoffset: 0; }
}

@keyframes stairUp {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes tempBar {
  from { transform: scaleX(0.2); }
  to { transform: scaleX(1); }
}

@keyframes ripple {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2.8); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wp__fan,
  .stage__air path,
  .worry__art--sound .icon,
  .worry__art--sound > i,
  .calc__glow { animation: none !important; }

  .stair i { transform: none; }
  .stair b { opacity: 1; }
  .worry { opacity: 1; transform: none; }
  .worry__art--ratio span:nth-child(2) i { transform: none; }
  .worry__art--temp em { transform: none; }
  .calc__card { opacity: 1; transform: none; }
}
