/* =============================================================================
   homy · landing.css
   Abschnitte der Startseite, in Reihenfolge der Seite:
   A Hero + Intro   B Chaos   C Bento (9 Bereiche)   D Scroll-Story
   E Live-Demo      F Haushalte   G Details + Farbwähler   H Datenschutz
   I Preise         J FAQ     K Abschluss   M Einblenden beim Scrollen

   Prinzip „progressive enhancement“: Ohne JavaScript ist alles sichtbar und statisch.
   main.js setzt pro Abschnitt eine Klasse (z. B. .is-live), erst dann greifen
   Animations-Ausgangszustände. Bei „Bewegung reduzieren“ bleibt alles ruhig.
   ============================================================================= */

/* A · Hero ===================================================================== */
.hero {
  --glow-a: rgb(251 141 103 / 0.42);
  --glow-b: rgb(255 214 170 / 0.55);
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 40px;
  overflow: clip;
}

.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(70px); }
.hero__blob--a {
  width: min(62vw, 900px);
  aspect-ratio: 1;
  right: -14vw;
  top: -18vw;
  background: radial-gradient(circle at 40% 40%, var(--glow-a), transparent 66%);
}
.hero__blob--b {
  width: min(48vw, 640px);
  aspect-ratio: 1;
  left: -16vw;
  bottom: -22vw;
  background: radial-gradient(circle, var(--glow-b), transparent 68%);
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgb(var(--shadow-rgb) / 0.13) 1px, transparent 0);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 72% 48%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 55% 60% at 72% 48%, #000 10%, transparent 72%);
}

.hero__grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(16px, 3vw, 48px);
  align-items: center;
}
.hero__copy { position: relative; z-index: var(--z-raised); max-width: 620px; }
.hero__title { margin-top: 26px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero__title .line__inner { display: block; will-change: transform; }
.hero__lead { margin-top: 24px; max-width: 36ch; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; margin-top: 36px; }

.hero__visual {
  position: relative;
  height: clamp(560px, 80svh, 780px);
}
.hero__stage { position: absolute; inset: 0; }
.hero__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(118%, 680px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 57%, rgb(var(--shadow-rgb) / 0.035) 57.2%, transparent 57.6%),
    radial-gradient(circle, transparent 69.6%, rgb(var(--shadow-rgb) / 0.05) 70%, transparent 70.4%);
}

.hero__phone-tilt {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  perspective: 1600px;
  z-index: 2;
}
.hero__phone {
  --phone-w: clamp(232px, calc(clamp(560px, 80svh, 780px) * 0.42), 326px);
  transform: rotateY(var(--ry, -8deg)) rotateX(var(--rx, 4deg)) rotateZ(var(--rz, 1.5deg));
  transform-style: preserve-3d;
  will-change: transform;
}
.hero__phone .screen { transition: opacity 0.55s var(--ease-out); }
.hero__land {
  position: absolute;
  inset: var(--bezel);
  border-radius: var(--screen-r);
  box-shadow: inset 0 0 0 3px var(--accent), inset 0 0 40px rgb(255 255 255 / 0.45);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}

/* Schnipsel um das iPhone */
.frags { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; z-index: 3; }
.frag {
  position: absolute;
  left: var(--x);
  top: var(--y);
  translate: -50% -50%;
  transform: translate3d(calc(var(--mx, 0) * var(--d) * 22px), calc(var(--my, 0) * var(--d) * 16px), 0);
  scale: calc(0.8 + var(--d) * 0.15);
}
.frag__fly { will-change: transform, opacity; }
.frag__card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px 10px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  animation: frag-float 7s ease-in-out infinite;
  animation-delay: calc(var(--d) * -3.1s);
}
.frag__card .tile-icon { width: 40px; height: 40px; font-size: 20px; border-radius: 12px; }
.frag__text b { display: block; font-size: 0.95rem; font-weight: 850; line-height: 1.25; }
.frag__text small { display: block; font-size: 0.75rem; font-weight: 700; color: var(--text-3); }
@keyframes frag-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-0.6deg); }
  50% { transform: translate3d(0, -10px, 0) rotate(0.6deg); }
}

/* Ausgangszustand vor dem Einblenden (nur wenn JS + Bewegung erlaubt) */
.hero-pre .hero__title .line__inner { transform: translateY(108%); }
.hero-pre [data-hero-in] { opacity: 0; transform: translateY(18px); }
.hero-pre .hero__phone { opacity: 0; }
.hero-pre .frag__fly { opacity: 0; }
.hero-pre .hero__ring { opacity: 0; }
.intro-on .nav { opacity: 0; }

/* Intro-Icon */
.intro { display: none; }
.intro-on .intro { display: block; position: fixed; inset: 0; z-index: var(--z-intro); pointer-events: none; }
.intro__app {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  display: grid;
  place-items: center;
  border-radius: 27px;
  background: var(--brand-grad);
  box-shadow: 0 30px 70px -18px rgb(251 96 85 / 0.6), inset 0 1px 0 rgb(255 255 255 / 0.35);
  transform: scale(0);
}
.intro__app img { width: 54%; height: auto; }

@media (max-width: 1023px) {
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 44px); }
  .hero__grid-layout { grid-template-columns: 1fr; gap: 8px; }
  .hero__copy { max-width: 640px; margin-inline: auto; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__ctas { justify-content: center; }
  .hero__visual { height: clamp(520px, 128vw, 700px); }
  .hero__phone { --phone-w: clamp(200px, 56vw, 300px); }
}
@media (max-width: 600px) {
  .hero__ctas { flex-direction: column; }
  .frag { scale: 0.64; }
  .frag:nth-child(1) { --x: 26% !important; --y: 8% !important; }
  .frag:nth-child(2) { --x: 74% !important; --y: 24% !important; }
  .frag:nth-child(3) { --x: 25% !important; --y: 50% !important; }
  .frag:nth-child(4) { --x: 75% !important; --y: 66% !important; }
  .frag:nth-child(5) { --x: 27% !important; --y: 90% !important; }
  .frag:nth-child(6) { display: none; }
}

/* B · Chaos → Ordnung ============================================================ */
.chaos { position: relative; }
.chaos__pin {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding-block: 120px;
  overflow: hidden;
}
.chaos__items { position: absolute; inset: 0; pointer-events: none; }
.chaos__items > * {
  position: absolute;
  left: var(--x);
  top: var(--y);
  translate: -50% -50%;
  rotate: var(--r);
}
.note {
  min-width: 118px;
  max-width: 190px;
  padding: 20px 20px 24px;
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: clamp(1.2rem, 0.95rem + 0.8vw, 1.75rem);
  line-height: 1.05;
  text-align: center;
  color: #3a3226;
  box-shadow: 0 1px 1px rgb(0 0 0 / 0.05), 0 16px 28px -12px rgb(70 48 20 / 0.4);
}
.note::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -10px;
  width: 58px;
  height: 20px;
  translate: -50% 0;
  rotate: -3deg;
  background: rgb(255 255 255 / 0.55);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
}
.note--yellow { background: #ffe68f; }
.note--pink { background: #ffcadf; }
.note--blue { background: #c3e7ff; }
.note--green { background: #cdf2c8; }
.note--lilac { background: #e4d6ff; }
.bubble {
  max-width: 230px;
  padding: 10px 16px 12px;
  border-radius: 22px 22px 22px 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.35;
}
.bubble b { display: block; font-size: 0.75rem; font-weight: 900; color: var(--m-blue); }
.bubble--me { border-radius: 22px 22px 6px 22px; background: #dcf8c6; border-color: transparent; color: #18301a; }
.receipt {
  width: 158px;
  padding: 16px 14px 22px;
  background: #fbfaf6;
  color: #3b3b3b;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.7rem;
  line-height: 1.6;
  box-shadow: 0 16px 30px -14px rgb(0 0 0 / 0.35);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%;
}
.receipt b { display: block; text-align: center; letter-spacing: 0.2em; margin-bottom: 6px; }
.receipt span { display: flex; justify-content: space-between; }
.receipt i { font-style: normal; }
.receipt__sum { margin-top: 6px; padding-top: 6px; border-top: 1px dashed #999; font-weight: 800; }

.chaos__copy { position: relative; z-index: var(--z-raised); max-width: 1020px; text-align: center; }
.chaos__text {
  font-size: clamp(1.65rem, 1.05rem + 2.5vw, 3.35rem);
  font-weight: 850;
  line-height: 1.16;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.chaos__text .w { display: inline-block; }
.chaos__answer { display: grid; justify-items: center; gap: 24px; margin-top: 56px; }
.chaos__icon {
  width: clamp(96px, 9vw, 132px);
  border-radius: 23%;
  box-shadow: 0 30px 60px -18px rgb(251 96 85 / 0.55);
}

/* Lebendige Variante (JS): Abschnitt wird festgehalten, Text leuchtet Wort für Wort auf */
/* Festhalten macht der Browser selbst (position: sticky), nicht JavaScript.
   ScrollTrigger musste dafür bisher die Scrollposition abfangen und das Element
   umhängen. Auf Berührungsgeräten kommen Scroll-Ereignisse aber verzögert an,
   dadurch lief der Abschnitt erst ein Stück weiter und sprang dann zurueck.
   Sticky läuft im Compositor und kann gar nicht hinterherhinken.
   Höhe des Abschnitts = 1 Bildschirm stehen + 2,3 Bildschirme scrollen. */
.chaos.is-live { min-height: calc(100svh * 3.3); }
.chaos.is-live .chaos__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  padding-block: 0;
}
.chaos.is-live .chaos__answer {
  position: absolute;
  inset: 0;
  margin: 0;
  place-content: center;
  pointer-events: none;
}
.chaos.is-live .chaos__answer > * { opacity: 0; }
/* Derselbe Zustand schon vor dem ersten Bild. Ohne das blitzt das homy-Icon
   beim Laden kurz in voller Größe vor den Zetteln auf, weil .chaos__copy über
   .chaos__items liegt und „is-live“ erst nach dem ersten Zeichnen dazukommt. */
.chaos-pre .chaos__answer > * { opacity: 0; }

@media (max-width: 700px) {
  .chaos__items > :nth-child(n + 7) { display: none; }
  .note { min-width: 92px; padding: 14px 12px 16px; }
  .bubble { max-width: 170px; font-size: 0.85rem; }
  .receipt { width: 120px; font-size: 0.6rem; }
  .chaos__items > :nth-child(1) { --x: 16% !important; --y: 12% !important; }
  .chaos__items > :nth-child(2) { --x: 82% !important; --y: 10% !important; }
  .chaos__items > :nth-child(3) { --x: 28% !important; --y: 86% !important; }
  .chaos__items > :nth-child(4) { --x: 80% !important; --y: 84% !important; }
  .chaos__items > :nth-child(5) { --x: 10% !important; --y: 30% !important; }
  .chaos__items > :nth-child(6) { --x: 90% !important; --y: 30% !important; }
}

/* C · Bento ===================================================================== */
.bento-section { padding-top: clamp(64px, 6vw, 120px); }
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.tile {
  --px: 50%;
  --py: 50%;
  position: relative;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 28px;
  border-radius: var(--r-tile);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
/* Lichtkante folgt dem Mauszeiger */
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(420px circle at var(--px) var(--py), color-mix(in oklab, var(--accent) 70%, transparent), transparent 60%);
  -webkit-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.4s;
  pointer-events: none;
  z-index: 5;
}
@media (hover: hover) {
  .tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .tile:hover::after { opacity: 1; }
}
.tile__head { display: flex; align-items: center; gap: 12px; }
.tile__text { margin-top: 12px; max-width: 46ch; font-size: 0.98rem; line-height: 1.55; color: var(--text-3); }
.tile__demo { position: relative; margin-top: auto; padding-top: 26px; }

.tile--cal { grid-column: span 7; grid-row: span 2; background: linear-gradient(180deg, var(--surface) 30%, color-mix(in oklab, var(--t-blue-bg) 55%, var(--surface))); }
.tile--shop { grid-column: span 5; }
.tile--tasks { grid-column: span 5; }
.tile--meal { background: linear-gradient(170deg, var(--surface) 35%, color-mix(in oklab, var(--t-food-bg) 70%, var(--surface))); }
.tile--shift { background: linear-gradient(170deg, var(--surface) 40%, color-mix(in oklab, var(--t-shift-bg) 60%, var(--surface))); }
.tile--budget { grid-column: span 5; }
.tile--vault { grid-column: span 3; background: linear-gradient(170deg, var(--surface) 35%, color-mix(in oklab, var(--t-rose-bg) 60%, var(--surface))); }
.tile--family { grid-column: span 4; }

@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tile, .tile--shop, .tile--tasks, .tile--budget, .tile--vault, .tile--family { grid-column: span 3; }
  .tile--cal { grid-column: span 6; grid-row: auto; }
  .tile--family { grid-column: span 6; }
}
@media (max-width: 700px) {
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .tile, .tile--cal, .tile--shop, .tile--tasks, .tile--budget, .tile--vault, .tile--family { grid-column: auto; }
  .tile { min-height: 0; padding: 24px; }
}

/* Kleine wiederverwendbare App-Bausteine */
.pop-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  z-index: 2;
}
.pop-card .tile-icon { width: 38px; height: 38px; font-size: 19px; border-radius: 12px; }
.pop-card b { display: block; font-size: 0.9rem; font-weight: 850; line-height: 1.25; }
.pop-card small { display: block; font-size: 0.75rem; font-weight: 700; color: var(--text-3); }
.pop-card > .icon { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--surface-3); color: var(--text-2); }

.tick {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  transition: background-color 0.25s, border-color 0.25s;
}
.tick::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2.5px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  rotate: 45deg;
  scale: 0;
  transition: scale 0.35s var(--spring);
}
.is-done > .tick,
.tick.is-done { background: var(--accent); border-color: var(--accent); }
.is-done > .tick::after,
.tick.is-done::after { scale: 1; }

.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg, var(--m-amber-bg));
  color: var(--fg, var(--m-amber-fg));
  font-weight: 900;
  font-size: 1.05rem;
}
.avatar--xs { width: 24px; height: 24px; font-size: 0.72rem; }

.switch {
  position: relative;
  flex: none;
  width: 44px;
  height: 26px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  transition: background-color 0.35s;
}
.switch::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
  transition: translate 0.45s var(--spring);
}
.switch.is-on { background: var(--accent); }
.switch.is-on::after { translate: 18px 0; }

/* Kalender-Kachel: Monatsansicht + Termine des gewählten Tages (wie in der App) */
.cal-demo { display: grid; gap: 12px; }
.cal-demo__month,
.cal-demo__agenda {
  padding: 16px;
  border-radius: 22px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.cal-demo__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-demo__head b { font-size: 1rem; font-weight: 900; }
.cal-demo__nav {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--text-3);
  font-weight: 900;
  line-height: 1;
}
.cal-demo__dow,
.cal-demo__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.cal-demo__dow span { padding-bottom: 6px; font-size: 0.7rem; font-weight: 800; color: var(--text-3); }
.cal-demo__days > span {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(36px, 3.7vw, 52px);
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-2);
  transition: background-color 0.35s, color 0.35s, transform 0.45s var(--spring), box-shadow 0.35s;
}
.cal-demo__days > .is-out { color: var(--text-4); }
.cal-demo__days > .is-today { box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--accent) 45%, transparent); }
.cal-demo__days > .is-sel {
  background: var(--accent);
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 8px 18px -8px color-mix(in oklab, var(--accent) 80%, transparent);
}
.cal-demo__dots { position: absolute; bottom: 5px; left: 50%; display: flex; gap: 2px; height: 4px; translate: -50% 0; }
.cal-demo__dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--c); }
.cal-demo__days > .is-sel .cal-demo__dots i { background: #fff; }
.cal-demo__date { padding: 0 4px 10px; font-size: 0.95rem; font-weight: 900; }
.cal-demo__events {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 196px; /* Platz für drei Termine: Kachel bleibt beim Wechsel gleich groß */
  margin: 0;
  padding: 0;
  list-style: none;
}
.cal-demo__events li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 12px 9px 9px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.cal-demo__events .tile-icon { width: 36px; height: 36px; font-size: 18px; border-radius: 11px; }
.cal-demo__events li > span:nth-child(2) { flex: 1; min-width: 0; }
.cal-demo__events b { display: block; font-size: 0.9rem; font-weight: 850; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-demo__events small { display: block; font-size: 0.74rem; font-weight: 700; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-demo__tag {
  flex: none;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  font-weight: 850;
  background: var(--accent-tint);
  color: var(--accent-ink);
}
.cal-demo__tag--priv { background: var(--surface-3); color: var(--text-2); }

/* Einkaufs-Kachel */
.shop-demo {
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 22px;
}
.shop-demo__input {
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 7px 0 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 750;
}
.shop-demo__typed:empty::before { content: "Schnell hinzufügen..."; color: var(--text-4); }
.caret { width: 2px; height: 20px; margin-left: 2px; background: var(--accent); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.shop-demo__plus {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: auto;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  transition: scale 0.2s var(--ease-out);
}
.shop-demo__plus.is-pressed { scale: 0.86; }
.shop-demo__cat { display: flex; align-items: center; gap: 6px; margin: 14px 4px 4px; font-size: 0.8rem; font-weight: 850; color: var(--text-2); }
.shop-demo__row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 9px 12px;
  background: var(--surface);
  border-radius: 12px;
  font-size: 0.9rem;
}
.shop-demo__row b { position: relative; font-weight: 800; transition: color 0.3s; }
.shop-demo__row i { margin-left: auto; font-style: normal; font-size: 0.78rem; font-weight: 700; color: var(--text-3); }
.shop-demo__row.is-done b { color: var(--text-4); text-decoration: line-through; }
.shop-demo__row--new.is-flash { animation: row-flash 1.2s var(--ease-out); }
@keyframes row-flash { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 50%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
.shop-demo__slot { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.5s var(--ease-out); }
.shop-demo__slot > div { min-height: 0; overflow: hidden; }
.shop-demo__slot .shop-demo__row { transition: opacity 0.4s, transform 0.5s var(--ease-out); }
.tile.is-live .shop-demo__slot.is-closed { grid-template-rows: 0fr; }
.tile.is-live .shop-demo__slot.is-closed .shop-demo__row { opacity: 0; transform: translateY(-8px); }

/* Aufgaben-Kachel: hakt nacheinander ab (CSS-Schleife) */
.task-demo { display: grid; gap: 8px; margin: 0; padding: 26px 0 0; list-style: none; }
.task-demo li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.task-demo li > span:nth-child(2) { flex: 1; min-width: 0; }
.task-demo b { position: relative; display: inline-block; font-weight: 850; font-size: 0.95rem; }
.task-demo b::after {
  content: "";
  position: absolute;
  left: 0;
  top: 55%;
  width: 100%;
  height: 2px;
  background: var(--text-4);
  transform: scaleX(0);
  transform-origin: left;
}
.task-demo small { display: block; font-size: 0.75rem; font-weight: 700; color: var(--text-3); }
.task-demo .chips { display: flex; gap: 4px; }
.tile.is-live .task-demo li { --t: 8s; }
.tile.is-live .task-demo li:nth-child(1) { --s: 0.10; }
.tile.is-live .task-demo li:nth-child(2) { --s: 0.30; }
.tile.is-live .task-demo li:nth-child(3) { --s: 0.50; }
.tile.is-live .task-demo .tick { animation: task-tick var(--t) infinite; animation-delay: calc(var(--t) * var(--s) - var(--t) * 0.1); }
.tile.is-live .task-demo .tick::after { animation: task-check var(--t) infinite; animation-delay: calc(var(--t) * var(--s) - var(--t) * 0.1); }
.tile.is-live .task-demo b::after { animation: task-strike var(--t) infinite; animation-delay: calc(var(--t) * var(--s) - var(--t) * 0.1); }
@keyframes task-tick {
  0%, 10% { background: transparent; border-color: var(--line-strong); }
  12%, 70% { background: var(--accent); border-color: var(--accent); }
  76%, 100% { background: transparent; border-color: var(--line-strong); }
}
@keyframes task-check { 0%, 10% { scale: 0; } 13%, 70% { scale: 1; } 75%, 100% { scale: 0; } }
@keyframes task-strike { 0%, 11% { transform: scaleX(0); } 16%, 70% { transform: scaleX(1); } 76%, 100% { transform: scaleX(0); } }

/* Essensplaner-Kachel */
.meal-demo__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 12px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), color-mix(in oklab, var(--accent) 60%, var(--accent-ink)));
  color: #fff;
  font-weight: 850;
  font-size: 0.92rem;
  box-shadow: 0 10px 24px -10px color-mix(in oklab, var(--accent) 80%, transparent);
}
.meal-demo__btn span { margin-left: auto; padding: 3px 12px; border-radius: var(--r-pill); background: rgb(255 255 255 / 0.25); font-size: 0.8rem; }
.meal-demo__week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 12px; }
.meal-demo__week span {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 8px 0 10px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.meal-demo__week i { font-style: normal; font-size: 0.68rem; font-weight: 800; color: var(--text-3); }
.meal-demo__week b { font-size: 1.15rem; line-height: 1; }
.meal-demo__progress {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 10px;
  margin-top: 12px;
  padding: 10px 14px 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 800;
}
.meal-demo__progress b { color: var(--accent-text); }
.meal-demo__progress i { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.meal-demo__progress em { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--accent); transform-origin: left; }
.tile.is-live .meal-demo__btn { animation: meal-press 8s infinite; }
.tile.is-live .meal-demo__week b { animation: meal-pop 8s var(--spring) infinite; }
.tile.is-live .meal-demo__week span:nth-child(1) b { animation-delay: 0s; }
.tile.is-live .meal-demo__week span:nth-child(2) b { animation-delay: 0.16s; }
.tile.is-live .meal-demo__week span:nth-child(3) b { animation-delay: 0.32s; }
.tile.is-live .meal-demo__week span:nth-child(4) b { animation-delay: 0.48s; }
.tile.is-live .meal-demo__week span:nth-child(5) b { animation-delay: 0.64s; }
.tile.is-live .meal-demo__week span:nth-child(6) b { animation-delay: 0.8s; }
.tile.is-live .meal-demo__week span:nth-child(7) b { animation-delay: 0.96s; }
.tile.is-live .meal-demo__progress em { animation: meal-bar 8s var(--ease-out) infinite; }
.tile.is-live .meal-demo__pct { animation: meal-pct 8s infinite; }
@keyframes meal-press { 0%, 8%, 14%, 100% { scale: 1; } 11% { scale: 0.96; } }
@keyframes meal-pop { 0%, 12% { scale: 0; opacity: 0; } 20%, 86% { scale: 1; opacity: 1; } 94%, 100% { scale: 0; opacity: 0; } }
@keyframes meal-bar { 0%, 13% { transform: scaleX(0); } 36%, 86% { transform: scaleX(1); } 94%, 100% { transform: scaleX(0); } }
@keyframes meal-pct { 0%, 34% { opacity: 0; } 38%, 86% { opacity: 1; } 92%, 100% { opacity: 0; } }

/* Rezept-Scan-Kachel */
.scan-demo { display: grid; grid-template-columns: 136px 1fr; gap: 18px; align-items: center; }
.scan-demo__page {
  position: relative;
  display: grid;
  gap: 7px;
  align-content: start;
  height: 176px;
  padding: 12px;
  border-radius: 12px;
  background: #fbf7ef;
  box-shadow: var(--shadow-md);
  rotate: -3deg;
  overflow: hidden;
}
.scan-demo__dish { display: grid; place-items: center; height: 68px; border-radius: 8px; background: #ffe7c2; font-size: 36px; }
.scan-demo__page i { display: block; height: 6px; border-radius: 3px; background: #d9d0c2; }
.scan-demo__page i:nth-of-type(2) { width: 80%; }
.scan-demo__page i:nth-of-type(4) { width: 60%; }
.scan-demo__corners {
  position: absolute;
  inset: 6px;
  border-radius: 8px;
  background:
    linear-gradient(var(--accent), var(--accent)) top left / 16px 3px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top left / 3px 16px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top right / 16px 3px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top right / 3px 16px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom left / 16px 3px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom left / 3px 16px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 16px 3px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 3px 16px no-repeat;
}
.scan-demo__beam {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 36px;
  background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--accent) 35%, transparent) 85%, var(--accent));
  opacity: 0;
}
.scan-demo__out { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.scan-demo__out li {
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--text-2);
}
.scan-demo__out li:first-child { background: var(--accent-tint); color: var(--accent-ink); border-color: transparent; font-weight: 900; }
.tile.is-live .scan-demo__beam { animation: scan-beam 6s var(--ease-in-out) infinite; }
.tile.is-live .scan-demo__out li { animation: scan-out 6s var(--ease-out) infinite; }
.tile.is-live .scan-demo__out li:nth-child(2) { animation-delay: 0.15s; }
.tile.is-live .scan-demo__out li:nth-child(3) { animation-delay: 0.3s; }
.tile.is-live .scan-demo__out li:nth-child(4) { animation-delay: 0.45s; }
@keyframes scan-beam { 0% { transform: translateY(-40px); opacity: 0; } 4% { opacity: 1; } 22% { transform: translateY(176px); opacity: 1; } 25%, 100% { transform: translateY(176px); opacity: 0; } }
@keyframes scan-out { 0%, 18% { opacity: 0.25; transform: translateX(-8px); } 26%, 94% { opacity: 1; transform: none; } 100% { opacity: 0.25; transform: none; } }

/* Schichtplan-Kachel */
.shift-demo__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.shift-demo__grid span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 9px;
  font-size: 0.8rem;
  background: var(--surface-3);
}
.shift-demo__grid .s-frueh, .shift-demo__legend .s-frueh { --c: #d9a21f; }
.shift-demo__grid .s-spaet, .shift-demo__legend .s-spaet { --c: #c4682b; }
.shift-demo__grid .s-nacht, .shift-demo__legend .s-nacht { --c: #7a5ce0; }
.shift-demo__grid .s-frei, .shift-demo__legend .s-frei { --c: #3fae5f; }
.shift-demo__grid [class^="s-"] { background: var(--c); box-shadow: inset 0 -2px 0 rgb(0 0 0 / 0.12); }
.tile.is-live .shift-demo__grid [class^="s-"] { animation: shift-pop 0.6s var(--spring) both; animation-delay: calc(var(--i) * 28ms + 0.15s); }
@keyframes shift-pop { from { scale: 0.2; opacity: 0; } }
.shift-demo__legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.shift-demo__legend span {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 850;
  background: color-mix(in oklab, var(--c) 18%, var(--surface));
  color: color-mix(in oklab, var(--c) 65%, var(--text));
}

/* Budget-Kachel */
.split-demo { padding: 14px; border-radius: 22px; background: var(--surface-2); border: 1px solid var(--line); }
.split-demo__title { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 8px; font-weight: 900; }
.split-demo__title small { font-size: 0.75rem; font-weight: 750; color: var(--text-3); }
.split-demo__row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: center;
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--surface);
  font-size: 0.88rem;
}
.split-demo__row > span { grid-row: span 2; font-size: 1.1rem; }
.split-demo__row b { font-weight: 850; }
.split-demo__row small { grid-column: 2; font-size: 0.72rem; font-weight: 750; color: var(--text-3); }
.split-demo__row small::before { content: "bezahlt von "; }
.split-demo__row i { grid-column: 3; grid-row: 1 / span 2; font-style: normal; font-weight: 850; font-variant-numeric: tabular-nums; }
.split-demo__settle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--ok-bg);
  font-weight: 850;
}
.split-demo__settle b { margin-left: auto; color: var(--ok); font-variant-numeric: tabular-nums; }
.split-demo__arrow { display: grid; place-items: center; color: var(--ok); }
.tile.is-live .split-demo__row { animation: split-row 9s var(--ease-out) infinite; }
.tile.is-live .split-demo__row:nth-of-type(3) { animation-delay: 0.25s; }
.tile.is-live .split-demo__row:nth-of-type(4) { animation-delay: 0.5s; }
.tile.is-live .split-demo__settle { animation: split-settle 9s var(--spring) infinite; }
.tile.is-live .split-demo__arrow { animation: split-arrow 1.2s ease-in-out infinite; }
@keyframes split-row { 0% { opacity: 0; transform: translateY(10px); } 8%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes split-settle { 0%, 24% { opacity: 0; transform: scale(0.9); } 32%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes split-arrow { 50% { transform: translateX(4px); } }

/* Tresor-Kachel */
.vault-demo__card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.vault-demo__card .tile-icon { width: 40px; height: 40px; font-size: 20px; border-radius: 12px; }
.vault-demo__meta { flex: 1; min-width: 0; }
.vault-demo__meta b { display: block; font-size: 0.9rem; font-weight: 850; }
.vault-demo__secret {
  display: block;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vault-demo__eye { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-3); color: var(--text-2); }
.vault-demo__vis { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.vault-demo__vis span {
  padding: 5px 10px;
  border-radius: var(--r-pill);
  font-size: 0.74rem;
  font-weight: 850;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-3);
  transition: background-color 0.35s, color 0.35s, border-color 0.35s;
}
.vault-demo__vis span.is-on { background: var(--accent-tint); color: var(--accent-ink); border-color: transparent; }

/* Familien-Kachel */
.family-demo__people { display: flex; justify-content: space-between; gap: 6px; margin: 0; padding: 0; list-style: none; }
.family-demo__people li { display: grid; justify-items: center; gap: 2px; text-align: center; }
.family-demo__people b { margin-top: 4px; font-size: 0.85rem; font-weight: 850; }
.family-demo__people small { font-size: 0.68rem; font-weight: 750; color: var(--text-3); }
.family-demo__rights { margin-top: 16px; padding: 12px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.family-demo__who { display: flex; align-items: center; gap: 8px; margin: 0 4px 8px; font-size: 0.82rem; font-weight: 850; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 4px; font-size: 0.84rem; font-weight: 750; }
.tile.is-live .family-demo__people li { animation: person-in 0.7s var(--spring) both; }
.tile.is-live .family-demo__people li:nth-child(2) { animation-delay: 0.08s; }
.tile.is-live .family-demo__people li:nth-child(3) { animation-delay: 0.16s; }
.tile.is-live .family-demo__people li:nth-child(4) { animation-delay: 0.24s; }
@keyframes person-in { from { opacity: 0; transform: translateY(14px) scale(0.8); } }

/* D · Scroll-Story „Alles greift ineinander“ ===================================== */
.flow { position: relative; background: var(--bg); }
.flow__pin {
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-block: calc(var(--nav-h) + 40px) 56px;
}
/* Siehe .chaos oben: natives Sticky statt JS-Pin.
   1 Bildschirm stehen + 3 Bildschirme scrollen. */
.flow.is-live { min-height: calc(100svh * 4); }
.flow.is-live .flow__pin {
  position: sticky;
  top: 0;
  /* Bewusst min-height statt height: Auf flachen Fenstern braucht der Inhalt
     mehr als einen Bildschirm, sonst ragt er unten heraus. Die Scrolllänge
     rechnet sich in flow.js aus der tatsächlichen Höhe, passt sich also an. */
  min-height: 100svh;
}
.flow__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.flow__lead { margin-top: 14px; }
.flow__steps { position: relative; display: grid; gap: 6px; margin: 36px 0 0; padding: 0; list-style: none; }
/* Der Faden sitzt nicht mehr als ein durchgehender Strich hinter der Liste,
   sondern als eigenes Stück je Schritt: von unterhalb der einen Zahl bis knapp
   über die nächste. So läuft er nie durch einen Zahlen-Kreis hindurch, auch
   nicht bei den abgeblendeten Schritten. */
.flow__step::before,
.flow__step::after {
  content: "";
  position: absolute;
  left: 39px;
  width: 2px;
  top: 58px;      /* knapp unter dem eigenen Kreis */
  bottom: -20px;  /* knapp über dem Kreis des nächsten Schritts */
  border-radius: 1px;
}
.flow__step:last-child::before,
.flow__step:last-child::after { content: none; }
.flow__step::before { background: var(--line); }
.flow__step::after {
  background: var(--accent);
  transform-origin: top;
  /* --progress läuft über alle drei Zwischenräume; jeder füllt seinen Abschnitt. */
  transform: scaleY(clamp(0, calc(var(--progress, 0) * 3 - var(--seg, 0)), 1));
}
.flow__step:nth-child(1) { --seg: 0; }
.flow__step:nth-child(2) { --seg: 1; }
.flow__step:nth-child(3) { --seg: 2; }
.flow__step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 24px;
  border: 1px solid transparent;
  transition: background-color 0.45s, box-shadow 0.45s, opacity 0.45s, border-color 0.45s;
}
.flow__step p { margin-top: 6px; color: var(--text-3); line-height: 1.5; }
.flow__num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-3);
  font-weight: 900;
  transition: background-color 0.45s, color 0.45s, transform 0.45s var(--spring);
}
/* Nur der Inhalt wird abgeblendet, nicht der Schritt selbst. Sonst würde
   auch sein Stück des Fadens blass. */
.flow.is-live .flow__step > * { opacity: 0.42; transition: opacity 0.45s; }
.flow.is-live .flow__step.is-active > * { opacity: 1; }
.flow.is-live .flow__step.is-active {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow-md);
}
.flow.is-live .flow__step.is-active .flow__num,
.flow.is-live .flow__step.is-past .flow__num { background: var(--accent); color: #fff; }
.flow.is-live .flow__step.is-active .flow__num { transform: scale(1.12); }

.flow__device { position: relative; display: grid; place-items: center; min-height: 660px; perspective: 1400px; }
.flow__glow {
  position: absolute;
  inset: 10% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 22%, transparent), transparent);
  filter: blur(20px);
}
.flow__phone { --phone-w: clamp(250px, 24vw, 310px); }
.flow__phone .screen { transition: opacity 0.6s var(--ease-out); }
.flow__token {
  position: absolute;
  left: max(-4%, calc(50% - var(--phone-w, 300px) / 2 - 150px));
  top: 18%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  z-index: 3;
}
.flow__token b { display: block; font-weight: 850; font-size: 0.95rem; }
.flow__token small { display: block; font-size: 0.76rem; font-weight: 750; color: var(--text-3); }
.flow__ingredients { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; z-index: 3; }
.flow__ingredients li {
  position: absolute;
  right: 0;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  font-weight: 850;
  font-size: 0.9rem;
  opacity: 0;
}
.flow__ingredients li:nth-child(1) { top: 30%; }
.flow__ingredients li:nth-child(2) { top: 42%; right: -4%; }
.flow__ingredients li:nth-child(3) { top: 54%; }

@media (max-width: 899px) {
  .flow__pin { padding-block: calc(var(--nav-h) + 24px) 24px; }
  .flow__layout { grid-template-columns: 1fr; gap: 12px; }
  .flow__copy { text-align: center; }
  .flow__title { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .flow__lead { display: none; }
  .flow__device { order: -1; min-height: 0; padding-top: 8px; }
  .flow__phone { --phone-w: min(44vw, 210px); }
  .flow__token { left: 0; top: 14%; scale: 0.8; transform-origin: left center; }
  .flow__ingredients li { scale: 0.85; }
  .flow__steps { margin-top: 16px; }
  .flow__step::before, .flow__step::after { content: none; }
  .flow.is-live .flow__step:not(.is-active) { display: none; }
  .flow__step { text-align: left; }
}

/* E · Live-Demo: zwei iPhones ===================================================== */
.sync__stage {
  display: grid;
  grid-template-columns: auto minmax(60px, 140px) auto;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.sync__device { margin: 0; }
.sync__device figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-weight: 850;
  color: var(--text-2);
}
.sync__phone { --phone-w: 300px; }
.sync__link { position: relative; height: 24px; }
.sync__link svg { width: 100%; height: 100%; overflow: visible; }
.sync__link path { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 3 7; stroke-linecap: round; }
.sync__pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 22%, transparent);
  opacity: 0;
}
.sync__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
  font-weight: 750;
  color: var(--text-3);
  text-align: center;
}
.sync__hint .icon { color: var(--accent-text); }
@media (max-width: 760px) {
  .sync__stage { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sync__link { display: none; }
  .sync__phone { zoom: 0.56; }
  .sync__device figcaption { margin-top: 12px; font-size: 0.85rem; }
}
@media (max-width: 380px) { .sync__phone { zoom: 0.5; } }

/* Nachgebaute App-Oberfläche (Einkaufsliste) */
.app-ui {
  --cat-l: 38%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  font-size: 13px;
  line-height: 1.35;
  color: var(--text);
  user-select: none;
  -webkit-user-select: none;
}
.app-ui__status { display: flex; justify-content: space-between; align-items: center; height: 46px; padding: 6px 26px 0 30px; font-size: 14px; font-weight: 800; flex: none; }
.app-ui__sys { display: flex; align-items: center; gap: 5px; }
.app-ui__bars { display: flex; align-items: flex-end; gap: 1.5px; height: 10px; }
.app-ui__bars i { width: 3px; border-radius: 1px; background: currentColor; }
.app-ui__bars i:nth-child(1) { height: 4px; } .app-ui__bars i:nth-child(2) { height: 6px; }
.app-ui__bars i:nth-child(3) { height: 8px; } .app-ui__bars i:nth-child(4) { height: 10px; }
.app-ui__batt { position: relative; width: 22px; height: 11px; border-radius: 3.5px; border: 1.5px solid color-mix(in oklab, currentColor 45%, transparent); padding: 1px; }
.app-ui__batt::before { content: ""; display: block; width: 78%; height: 100%; border-radius: 1.5px; background: currentColor; }
.app-ui__bar { display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; padding: 6px 14px 4px; flex: none; }
.app-ui__bar strong { text-align: center; font-size: 14px; font-weight: 850; }
.app-ui__menu, .app-ui__me {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 12px;
  font-weight: 900;
  color: var(--accent-text);
}
.app-ui__menu i { display: block; width: 12px; height: 2px; border-radius: 2px; background: currentColor; box-shadow: 0 -4px 0 currentColor, 0 4px 0 currentColor; }
.app-ui__body {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 8px 14px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.app-ui__body::-webkit-scrollbar { display: none; }

.app-ui__head { display: flex; justify-content: space-between; align-items: flex-start; }
.app-ui__title { font-size: 21px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
.app-ui__sub { font-size: 11.5px; font-weight: 700; color: var(--text-3); margin-top: 2px; }
.app-ui__add { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; }
.app-ui__add .icon { width: 16px; height: 16px; }
.app-ui__card { margin-top: 10px; padding: 10px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
.app-ui__progress { height: 7px; border-radius: 7px; background: var(--surface-3); overflow: hidden; }
.app-ui__progress i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform 0.6s var(--ease-out); }
.app-ui__clear { display: block; width: fit-content; margin: 8px auto 0; padding: 3px 10px; border-radius: var(--r-pill); background: var(--surface-2); font-size: 10.5px; font-weight: 800; color: var(--text-3); }
.app-ui__form { display: flex; gap: 6px; margin-top: 10px; }
.app-ui__input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  outline: none;
  user-select: text;
  -webkit-user-select: text;
}
.app-ui__input::placeholder { color: var(--text-4); }
.app-ui__input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent); }
.app-ui__send { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 11px; background: color-mix(in oklab, var(--accent) 16%, var(--surface)); color: var(--accent-text); }
.app-ui__send .icon { width: 16px; height: 16px; }
.app-ui__list { margin-top: 6px; }
.app-ui__cat { display: flex; align-items: center; justify-content: space-between; margin: 10px 2px 4px; font-size: 11.5px; font-weight: 900; color: var(--cat, var(--text-2)); }
.app-ui__cat span:last-child { color: var(--text-4); font-weight: 800; }
.app-ui__item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin-top: 5px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform 0.2s var(--ease-out);
}
.app-ui__item:active { transform: scale(0.98); }
.app-ui__item .tick { width: 19px; height: 19px; }
.app-ui__item .tick::after { left: 5px; top: 1.5px; width: 5px; height: 10px; border-width: 0 2px 2px 0; }
.app-ui__item b { flex: 1; min-width: 0; font-weight: 800; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-ui__item small { font-size: 11px; font-weight: 700; color: var(--text-3); white-space: nowrap; }
.app-ui__item .chip { font-size: 10px; padding: 1px 7px; }
.app-ui__item.is-done b { color: var(--text-4); text-decoration: line-through; }
.app-ui__item.is-new { animation: item-new 1.4s var(--ease-out); }
@keyframes item-new {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent); }
  100% { box-shadow: 0 0 0 14px transparent, var(--shadow-sm); }
}
.app-ui__banner {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50px;
  z-index: 4;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 2px 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 20px;
  background: color-mix(in oklab, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 10px 30px -8px rgb(0 0 0 / 0.3);
  border: 1px solid var(--line);
  transform: translateY(-160%);
  opacity: 0;
  transition: transform 0.6s var(--spring), opacity 0.3s;
}
.app-ui__banner.is-shown { transform: none; opacity: 1; }
.app-ui__banner img { grid-row: span 2; width: 34px; height: 34px; border-radius: 8px; }
.app-ui__banner b { font-size: 12px; font-weight: 900; }
.app-ui__banner time { font-size: 10.5px; font-weight: 700; color: var(--text-3); }
.app-ui__banner p { grid-column: 2 / -1; font-size: 12px; font-weight: 700; color: var(--text-2); line-height: 1.3; }

/* F · Haushalte =================================================================== */
.homes__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.homes__stage { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1; margin-inline: auto; }
.homes__orbit {
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  border: 2px dashed var(--line-strong);
  animation: spin 80s linear infinite;
}
.homes__orbit::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 16%, transparent), transparent);
}
.homes__house {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26%;
  translate: -50% -50%;
  border-radius: 23%;
  box-shadow: 0 24px 50px -18px rgb(251 96 85 / 0.55);
  z-index: 1;
}
.homes__people { position: absolute; inset: 0; z-index: 2; }
.person {
  position: absolute;
  left: var(--px);
  top: var(--py);
  translate: -50% -50%;
  display: grid;
  justify-items: center;
  gap: 6px;
}
.person .avatar {
  width: clamp(54px, 6vw, 74px);
  height: clamp(54px, 6vw, 74px);
  font-size: clamp(1.2rem, 1.6vw, 1.6rem);
  box-shadow: 0 0 0 5px var(--bg), var(--shadow-md);
}
.person b { font-size: 0.92rem; font-weight: 900; }
.person small {
  margin-top: -6px;
  padding: 1px 8px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.68rem;
  font-weight: 850;
  color: var(--text-3);
}
@keyframes spin { to { rotate: 360deg; } }

.segmented {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 5px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
}
.segmented button {
  position: relative;
  z-index: 1;
  min-height: 44px;
  padding: 0 clamp(14px, 2vw, 24px);
  border-radius: var(--r-pill);
  font-weight: 850;
  color: var(--text-3);
  transition: color 0.3s;
}
.segmented button[aria-selected="true"] { color: var(--text); }
.segmented__thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: var(--w, 0);
  transform: translateX(var(--x, 0));
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transition: transform 0.55s var(--spring);
}
.homes__panels { display: grid; margin-top: 36px; }
.homes__copy { grid-area: 1 / 1; }
/* Alle Texte liegen übereinander und bestimmen gemeinsam die Höhe.
   So springt der Umschalter nicht, wenn ein Text eine Zeile länger ist. */
.homes__copy[hidden] { display: block; visibility: hidden; }
.homes__copy h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 900; letter-spacing: -0.03em; }
.homes__copy > p { margin-top: 12px; font-size: var(--fs-lead); color: var(--text-3); max-width: 42ch; }
.checks { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.checks li { display: flex; align-items: flex-start; gap: 12px; font-weight: 750; }
.checks .icon {
  width: 26px;
  height: 26px;
  padding: 5px;
  margin-top: -1px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-ink);
}
@media (max-width: 899px) {
  .homes__layout { grid-template-columns: 1fr; }
  .homes__stage { max-width: 380px; }
  .homes__panel { text-align: center; }
  .homes__copy > p { margin-inline: auto; }
  .checks { justify-items: center; }
  .checks li { text-align: left; }
  .segmented { width: 100%; }
  .segmented button { padding: 0 8px; }
}

/* G · Details + Farbwähler ======================================================== */
.details { overflow: hidden; padding-bottom: clamp(72px, 5vw + 40px, 120px); }
.details__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 48px;
  margin-bottom: 48px;
}
.details__head .h2 { max-width: 14ch; }
.swatches__label { font-weight: 800; color: var(--text-3); font-size: var(--fs-small); }
.swatches__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.swatch {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08), 0 4px 10px -4px var(--c);
  transition: transform 0.4s var(--spring);
}
.swatch:hover { transform: scale(1.12); }
@media (max-width: 480px) {
  .swatches__row { gap: 8px; }
  .swatch { width: 32px; height: 32px; }
}
.swatch::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2.5px solid var(--c);
  opacity: 0;
  scale: 0.7;
  transition: opacity 0.3s, scale 0.45s var(--spring);
}
.swatch[aria-checked="true"]::after { opacity: 1; scale: 1; }

.marquee {
  display: grid;
  gap: 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__lane { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee__lane--reverse { animation-direction: reverse; animation-duration: 68s; }
.marquee:hover .marquee__lane { animation-play-state: paused; }
.marquee__track { display: flex; gap: 14px; margin: 0; padding: 0 14px 0 0; list-style: none; }
.marquee__track li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px 14px 16px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-weight: 800;
  white-space: nowrap;
}
.marquee__track .icon { width: 24px; height: 24px; color: var(--accent-text); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__lane { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__track[aria-hidden="true"] { display: none; }
  .marquee__track { flex-wrap: wrap; justify-content: center; padding: 0 var(--gutter); }
}

/* H · Datenschutz ================================================================== */
.privacy__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.privacy__seal {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 28px;
  border-radius: 24px;
  background: var(--accent-tint);
  color: var(--accent-ink);
}
.privacy__seal .icon { width: 40px; height: 40px; }
.privacy__intro .lead { margin-top: 18px; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-weight: 850;
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: color-mix(in oklab, var(--accent) 45%, transparent);
  transition: text-decoration-color 0.25s, gap 0.25s var(--ease-out);
}
.text-link:hover { gap: 10px; text-decoration-color: currentColor; }
.qa__body .text-link { margin-top: 0; display: inline; }
.privacy__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; padding: 0; list-style: none; }
.privacy__facts li {
  padding: 28px;
  border-radius: var(--r-tile);
  background: var(--surface);
  border: 1px solid var(--line);
}
/* Versatz bewusst über transform, nicht über translate: Die Kacheln tragen
   data-reveal, und das Einblenden belegt translate/scale. Über transform
   bleiben beide unabhängig. */
.privacy__facts li:nth-child(even) { transform: translateY(32px); }
.privacy__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 15px;
  background: var(--surface-3);
  color: var(--accent-text);
}
.privacy__icon .icon { width: 26px; height: 26px; }
.privacy__facts p { margin-top: 8px; color: var(--text-3); font-size: 0.98rem; }
@media (max-width: 899px) {
  .privacy__layout { grid-template-columns: 1fr; }
  .privacy__facts li:nth-child(even) { transform: none; }
}
@media (max-width: 560px) { .privacy__facts { grid-template-columns: 1fr; } }

/* I · Preise ======================================================================= */
.billing {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  margin-top: 32px;
  padding: 5px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.billing button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  font-weight: 850;
  color: var(--text-3);
  transition: color 0.3s;
}
.billing button[aria-checked="true"] { color: var(--bg); }
.billing__thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: var(--w, 50%);
  transform: translateX(var(--x, 0));
  border-radius: var(--r-pill);
  background: var(--text);
  transition: transform 0.55s var(--spring);
}
.billing__save {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 0.75rem;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .billing button { padding: 0 12px; font-size: 0.95rem; }
  .billing__save { margin-left: 6px; padding: 2px 6px; font-size: 0.68rem; }
}

.plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 16px;
  align-items: stretch;
  max-width: 1120px;
  margin-inline: auto;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 30px 30px;
  border-radius: var(--r-tile);
  background: var(--surface);
  border: 1px solid var(--line);
}
.plan__name { font-size: 1.6rem; letter-spacing: -0.03em; }
.plan__tag { margin-top: 4px; color: var(--text-3); font-weight: 700; }
.plan__price { display: flex; align-items: baseline; gap: 8px; margin-top: 26px; }
.plan__amount {
  display: inline-block;
  font-size: clamp(3rem, 2.4rem + 1.6vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan__unit { font-weight: 800; color: var(--text-3); }
.plan__note { margin-top: 6px; min-height: 1.5em; font-size: var(--fs-small); font-weight: 750; color: var(--text-3); }
.plan__list { display: grid; gap: 11px; margin: 26px 0 30px; padding: 0; list-style: none; }
.plan__list li { display: flex; align-items: flex-start; gap: 10px; font-weight: 750; font-size: 0.98rem; }
.plan__list .icon { margin-top: 3px; color: var(--ok); }
.plan__list li.is-off { color: var(--text-3); }
.plan__list li.is-off .icon { color: var(--text-4); }
.plan .btn { margin-top: auto; }
.plan__badge {
  position: absolute;
  top: -14px;
  left: 30px;
  padding: 4px 14px;
  border-radius: var(--r-pill);
  background: var(--text);
  color: var(--bg);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.plan--featured {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(from var(--spin), var(--brand-a), var(--accent), var(--brand-b), color-mix(in oklab, var(--accent) 40%, var(--surface)), var(--brand-a)) border-box;
  box-shadow: var(--shadow-lg), 0 30px 80px -30px color-mix(in oklab, var(--accent) 55%, transparent);
  animation: plan-spin 8s linear infinite;
}
@keyframes plan-spin { to { --spin: 360deg; } }
@media (min-width: 900px) { .plan--featured { transform: translateY(-14px); } }

.pricing__fine { max-width: 62ch; margin: 44px auto 0; text-align: center; font-size: var(--fs-small); color: var(--text-3); }
@media (max-width: 899px) {
  .plans { grid-template-columns: 1fr; max-width: 480px; }
  /* Untereinander in dieser Reihenfolge: Family (beliebt), dann Single,
     dann Standard. Im Quelltext stehen sie aufsteigend nach Preis. */
  .plans .plan:nth-child(1) { order: 3; } /* Standard */
  .plans .plan:nth-child(2) { order: 2; } /* Single   */
  .plans .plan:nth-child(3) { order: 1; } /* Family   */
}

/* J · FAQ ========================================================================== */
.faq__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.faq__intro { position: sticky; top: calc(var(--nav-h) + 56px); }
.faq__intro .lead { margin-top: 18px; }
.faq__intro .btn { margin-top: 28px; }
.faq__list { display: grid; gap: 10px; }
.qa {
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: box-shadow 0.35s var(--ease-out), border-color 0.35s;
}
.qa[open] { box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 20px 26px;
  font-size: 1.08rem;
  font-weight: 850;
  list-style: none;
  cursor: pointer;
}
.qa summary::-webkit-details-marker { display: none; }
.qa__icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-3);
  transition: background-color 0.3s, rotate 0.45s var(--spring);
}
.qa__icon::before,
.qa__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--text-2);
}
.qa__icon::after { rotate: 90deg; }
.qa[open] .qa__icon { rotate: 135deg; background: var(--accent-tint); }
.qa[open] .qa__icon::before,
.qa[open] .qa__icon::after { background: var(--accent-ink); }
.qa__body { padding: 0 26px 24px; color: var(--text-3); max-width: 62ch; }
@supports (interpolate-size: allow-keywords) {
  .faq__list { interpolate-size: allow-keywords; }
  .qa::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.45s var(--ease-out), content-visibility 0.45s allow-discrete;
  }
  .qa[open]::details-content { block-size: auto; }
}
@media (max-width: 899px) {
  .faq__layout { grid-template-columns: 1fr; }
  .faq__intro { position: static; }
}

/* K · Abschluss ==================================================================== */
.final {
  position: relative;
  padding-block: clamp(150px, 14vw, 240px) clamp(110px, 10vw, 180px);
  overflow: hidden;
  text-align: center;
}
.final__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 50% 30%, color-mix(in oklab, var(--brand-a) 26%, transparent), transparent 70%),
    radial-gradient(40% 40% at 80% 90%, color-mix(in oklab, var(--accent) 14%, transparent), transparent 70%);
}
.final__icon-wrap {
  position: relative;
  width: clamp(130px, 14vw, 176px);
  aspect-ratio: 1;
  margin: 0 auto 64px;
  perspective: 900px;
  transform-style: preserve-3d;
}
.final__icon {
  position: relative;
  width: 100%;
  border-radius: 23%;
  box-shadow: 0 40px 80px -24px rgb(251 96 85 / 0.6);
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-10px) rotate(-2deg); } }

/* Planetenring: Bereichs-Symbole kreisen auf einer schrägen Bahn vor und hinter dem Icon */
.final__orbit {
  --orbit: clamp(150px, 17vw, 230px);
  --tilt: 72deg;
  --t: 36s;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt));
  pointer-events: none;
}
.final__spin {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  transform-style: preserve-3d;
  animation: orbit-z var(--t) linear infinite;
}
.final__spin li {
  --r: calc(var(--i) * 45deg);
  position: absolute;
  left: 0;
  top: 0;
  transform-style: preserve-3d;
  transform: rotateZ(var(--r)) translateY(calc(var(--orbit) * -1)) rotateZ(calc(var(--r) * -1));
}
.final__spin span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 17px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  font-size: 24px;
  animation: orbit-face var(--t) linear infinite;
}
@keyframes orbit-z { to { transform: rotateZ(360deg); } }
/* Gegendrehung, damit die Symbole aufrecht zur Kamera schauen */
@keyframes orbit-face {
  from { transform: rotateZ(0deg) rotateX(calc(var(--tilt) * -1)); }
  to { transform: rotateZ(-360deg) rotateX(calc(var(--tilt) * -1)); }
}
.final__spin li:nth-child(1) { --i: 0; } .final__spin li:nth-child(2) { --i: 1; }
.final__spin li:nth-child(3) { --i: 2; } .final__spin li:nth-child(4) { --i: 3; }
.final__spin li:nth-child(5) { --i: 4; } .final__spin li:nth-child(6) { --i: 5; }
.final__spin li:nth-child(7) { --i: 6; } .final__spin li:nth-child(8) { --i: 7; }
@media (max-width: 600px) {
  .final__orbit { --orbit: 128px; }
  .final__spin span { width: 42px; height: 42px; margin: -21px 0 0 -21px; font-size: 19px; border-radius: 13px; }
}
.final__title { max-width: 16ch; margin-inline: auto; }
.final__lead { margin: 18px auto 0; }
.final__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 28px; margin-top: 40px; }
.qr {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 20px 8px 8px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-align: left;
  font-size: var(--fs-small);
  color: var(--text-3);
  line-height: 1.4;
}
.qr img { width: 88px; height: 88px; padding: 6px; border-radius: 14px; background: #fff; }
.qr b { color: var(--text); }
/* QR-Code nur am Computer: auf dem iPhone tippt man direkt aufs Badge */
@media (max-width: 899px), (hover: none) { .qr { display: none; } }

/* M · Einblenden beim Scrollen ======================================================= */
/* Dezent: Inhalte sind einfach da, statt sich aufzudrängen. Kacheln/Karten „poppen“ leicht,
   nacheinander (Versatz setzt reveal.js). Nach dem Einblenden entfernt reveal.js das Attribut,
   damit Hover-Effekte wieder ihre eigenen Übergänge haben. */
/* Bewusst translate/scale statt transform: Elemente mit eigenem transform
   (z. B. die angehobene Beliebt-Karte) behalten es dadurch während und nach
   dem Einblenden. Mit der transform-Kurzschrift ging es verloren und die Karte
   sprang nach dem Einblenden um 14 px nach oben. */
.reveal-on [data-reveal] {
  opacity: 0;
  translate: 0 18px;
  filter: blur(6px);
  transition:
    opacity 0.8s var(--ease-out),
    translate 0.9s var(--ease-out),
    filter 0.8s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.reveal-on [data-reveal="pop"] {
  translate: 0 34px;
  scale: 0.94;
  filter: none;
  transition:
    opacity 0.6s var(--ease-out),
    translate 0.85s cubic-bezier(0.34, 1.32, 0.64, 1),
    scale 0.85s cubic-bezier(0.34, 1.32, 0.64, 1);
  transition-delay: var(--delay, 0s);
}
.reveal-on [data-reveal].is-in { opacity: 1; translate: none; scale: none; filter: none; }
