/* Yumlytics – Landingpage im Design von w-schopf.com */

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

:root {
  --bg: #f5f4f0;
  --surface: #ebe9e3;
  --ink: #141413;
  --muted: #6d6b65;
  --line: #dedbd3;
  --accent: #e4572e;
  --dark: #121211;
  --dark-muted: #8f8d86;

  /* Farben aus der App – nur innerhalb der App-Ansichten */
  --ios-bg: #f2f2f7;
  --ios-card: #ffffff;
  --ios-blue: #007aff;
  --ios-muted: #6c6c70;
  --ios-line: #e5e5ea;
  --star: #f5a623;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--bg); }

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-size: 15px;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 550;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), translate 500ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn .arrow { transition: transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn-dark:hover { background: #2b2b29; }
  .btn-ghost:hover { border-color: var(--ink); }
  .btn:hover .arrow { transform: translateX(3px); }
}

/* ─── Header ─── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  transition: height 300ms var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(245, 244, 240, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: rgba(20, 20, 19, 0.06);
}
.site-header.is-scrolled .container { height: 60px; }
.site-header.on-dark { color: var(--bg); }
.site-header.on-dark.is-scrolled { background: rgba(18, 18, 17, 0.6); border-bottom-color: rgba(245, 244, 240, 0.08); }
.site-header.on-dark .nav-link { color: var(--dark-muted); }
.site-header.on-dark .btn-dark { background: var(--bg); color: var(--dark); }
@media (hover: hover) and (pointer: fine) {
  .site-header.on-dark .nav-link:hover { color: var(--bg); }
  .site-header.on-dark .btn-dark:hover { background: #fff; }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
  position: relative;
  z-index: 2;
}
.logo .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav-link {
  position: relative;
  font-size: 15px;
  text-decoration: none;
  color: var(--muted);
  transition: color 200ms ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover { color: var(--ink); }
  .nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
}
.nav .btn { height: 40px; padding: 0 18px; font-size: 14px; }

/* Load-in */
.js .load-in {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms + 500ms);
}
.is-loaded .load-in { opacity: 1; transform: none; }

/* Hamburger */
.menu-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 44px; height: 44px;
  margin-right: -10px;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}
.menu-toggle span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 350ms var(--ease-out), top 350ms var(--ease-out);
}
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 25px; }
.menu-open .menu-toggle span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) 48px;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 500ms var(--ease-in-out), visibility 0s linear 500ms;
}
.menu-open .mobile-menu {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 500ms var(--ease-in-out), visibility 0s;
}
.menu-open .site-header { color: var(--ink); }
.mobile-menu a {
  font-size: clamp(40px, 12vw, 64px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-decoration: none;
  padding: 6px 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 300ms ease, transform 300ms var(--ease-out);
}
.menu-open .mobile-menu a {
  opacity: 1;
  transform: none;
  transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: calc(var(--i) * 60ms + 200ms);
}
.mobile-menu .mobile-meta {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}

/* ─── Hero ─── */
.hero {
  padding-top: calc(var(--header-h) + clamp(40px, 8vh, 96px));
  padding-bottom: clamp(80px, 12vw, 160px);
}
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 28px;
}
.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
h1 {
  margin: 0;
  font-size: clamp(48px, 8.4vw, 120px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.045em;
}
h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
h1 .line > span { display: block; }
.js h1 .line > span {
  transform: translateY(105%);
  transition: transform 1000ms var(--ease-out);
  transition-delay: calc(var(--i) * 90ms + 100ms);
}
.is-loaded h1 .line > span { transform: none; }
h1 em { font-style: normal; color: var(--muted); }

.hero-text {
  max-width: 470px;
  margin: 36px 0 0;
  font-size: 18px;
  color: var(--muted);
}
.hero-text strong { color: var(--ink); font-weight: 550; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.js .hero-fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms + 450ms);
}
.is-loaded .hero-fade { opacity: 1; transform: none; }

/* Bühne mit dem iPhone – übernimmt die Rolle des Porträts */
.stage {
  position: relative;
  aspect-ratio: 785 / 1000;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
}
.stage .phone {
  position: absolute;
  left: 50%;
  top: 11%;
  width: 70%;
  margin-left: -35%;
  will-change: transform;
}
.js .stage {
  clip-path: inset(100% 0 0 0 round 20px);
  transition: clip-path 1100ms var(--ease-in-out) 150ms;
}
.js .stage .phone-rise { transform: translateY(18%); transition: transform 1400ms var(--ease-out) 250ms; }
.is-loaded .stage { clip-path: inset(0 0 0 0 round 20px); }
.is-loaded .stage .phone-rise { transform: none; }

/* ─── iPhone-Nachbau (Inhalte wie in der App) ─── */
.phone {
  aspect-ratio: 9 / 19.5;
  padding: 3.2%;
  border-radius: 15% / 7%;
  background: #1b1b1a;
  box-shadow: 0 40px 80px -30px rgba(20, 20, 19, 0.45), inset 0 0 0 1.5px #3a3a38;
  font-family: -apple-system, "SF Pro Text", system-ui, "Segoe UI", sans-serif;
  container-type: inline-size;
}
.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 12.5% / 5.8%;
  overflow: hidden;
  background: var(--ios-bg);
  color: #000;
}
.ios-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5.5cqw 8cqw 0 9cqw;
  font-size: 4.4cqw;
  font-weight: 600;
}
.ios-status .island {
  width: 30cqw; height: 8.5cqw;
  border-radius: 99px;
  background: #000;
  margin-top: -1.5cqw;
}
.ios-status .batt { width: 7.5cqw; height: 3.6cqw; border-radius: 1cqw; border: 1px solid rgba(0,0,0,.45); position: relative; }
.ios-status .batt::after { content: ""; position: absolute; inset: 1px; right: 25%; background: #000; border-radius: .5cqw; }
.ios-scroll { will-change: transform; }
.ios-title {
  margin: 6cqw 5.5cqw 3cqw;
  font-size: 9.6cqw;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.ios-search {
  margin: 0 5.5cqw 4.5cqw;
  padding: 2.6cqw 3.6cqw;
  border-radius: 99px;
  background: rgba(118, 118, 128, 0.12);
  color: var(--ios-muted);
  font-size: 4.6cqw;
}
.ios-list {
  list-style: none;
  margin: 0 4cqw;
  padding: 0;
  border-radius: 6cqw;
  background: var(--ios-card);
  overflow: hidden;
}
.ios-list li {
  display: flex;
  align-items: center;
  gap: 3.4cqw;
  padding: 3.2cqw 4cqw;
  position: relative;
}
.ios-list li + li::before {
  content: "";
  position: absolute;
  top: 0; right: 0; left: 15.5cqw;
  border-top: 1px solid var(--ios-line);
}
.score {
  flex: none;
  display: grid;
  place-items: center;
  width: 8.6cqw; height: 8.6cqw;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  font-size: 3.4cqw;
  font-weight: 700;
}
.ios-list .name { display: block; font-size: 4.5cqw; font-weight: 600; line-height: 1.25; }
.ios-list small { display: block; font-size: 3.6cqw; color: var(--ios-muted); line-height: 1.3; }
.ios-list .stars { margin-left: auto; font-size: 3.4cqw; color: var(--star); letter-spacing: 0.04em; white-space: nowrap; }
.ios-list .stars i { font-style: normal; color: #d1d1d6; }
.ios-tabbar {
  position: absolute;
  left: 5cqw; right: 5cqw; bottom: 5.5cqw;
  display: flex;
  justify-content: space-around;
  padding: 2.8cqw 2cqw;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), inset 0 0 0 0.5px rgba(0, 0, 0, 0.08);
  font-size: 3.2cqw;
  font-weight: 600;
  color: var(--ios-muted);
}
.ios-tabbar span { display: flex; flex-direction: column; align-items: center; gap: 1cqw; }
.ios-tabbar span::before { content: ""; width: 5cqw; height: 5cqw; border-radius: 1.6cqw; background: currentColor; opacity: 0.55; }
.ios-tabbar .on { color: var(--ios-blue); }
.ios-tabbar .on::before { opacity: 1; }
.ios-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 30%;
  background: linear-gradient(to bottom, rgba(242, 242, 247, 0), var(--ios-bg) 70%);
}

/* ─── Laufband (scroll-gekoppelt) ─── */
.marquee {
  padding: clamp(24px, 4vw, 56px) 0 clamp(72px, 10vw, 140px);
  overflow: hidden;
  user-select: none;
}
.marquee-row {
  display: flex;
  width: max-content;
  white-space: nowrap;
  font-size: clamp(40px, 7vw, 104px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  will-change: transform;
}
.marquee-row + .marquee-row { color: #cdc9bf; }
.marquee-row span { display: inline-flex; align-items: center; }
.marquee-row .sep {
  width: 0.16em; height: 0.16em;
  margin: 0 0.32em;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ─── Statement: Wörter füllen sich beim Scrollen ─── */
.statement { padding: 0 0 clamp(100px, 14vw, 200px); }
.statement .eyebrow { margin-bottom: 32px; }
.statement-text {
  margin: 0;
  max-width: 1100px;
  font-size: clamp(30px, 4.6vw, 64px);
  font-weight: 550;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.statement-sign { margin: 36px 0 0; font-size: 15px; color: var(--muted); }
.js .statement-text .w { opacity: 0.14; }

/* ─── Section heads ─── */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  margin-bottom: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}
h2 {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 60px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}
.section-head .count { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ─── Funktionen ─── */
.features { padding-bottom: clamp(100px, 14vw, 180px); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(56px, 6vw, 88px) clamp(20px, 3vw, 40px);
}
/* Bild und Text je Funktion teilen sich die Zeilen des Rasters: nebeneinander
   stehende Bilder werden gleich hoch, die Titel bleiben auf einer Linie. */
.feature { display: grid; grid-row: span 2; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); row-gap: 0; }
.feature-media {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  display: grid;
  place-items: center;
}
/* Mindesthöhe 16:11 als Platzhalter statt aspect-ratio: so kann das Raster
   nebeneinanderstehende Bilder auf dieselbe Höhe strecken. */
.feature-media::before { content: ""; grid-area: 1 / 1; padding-top: 68.75%; }
.feature-media > .inner:not(.is-map) { grid-area: 1 / 1; }
/* Die Karte liegt im Fluss: das Seitenverhältnis ist nur ein Minimum, schmale
   Spalten wachsen mit, statt den Inhalt abzuschneiden. Nur die Karte füllt absolut. */
.feature-media .inner {
  position: relative;
  width: 100%;
  padding: 64px 0 44px;
  display: grid;
  place-items: center;
  will-change: transform;
}
.feature-media .inner.is-map { position: absolute; inset: -6% 0; padding: 0; }
.feature-media .badge {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(245, 244, 240, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 550;
}
.feature-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 22px;
}
.feature-title {
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
.feature-meta { font-size: 14px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.feature-desc { margin: 8px 0 0; color: var(--muted); max-width: 52ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.tags li {
  font-size: 13px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}
.js .feature-media { clip-path: inset(14% 7% 0 7% round 16px); }

/* App-Karten in den Funktionsbildern */
.card {
  width: min(78%, 380px);
  padding: clamp(16px, 2.2vw, 24px);
  border-radius: 20px;
  background: var(--ios-card);
  color: #000;
  font-family: -apple-system, "SF Pro Text", system-ui, "Segoe UI", sans-serif;
  box-shadow: 0 30px 60px -28px rgba(20, 20, 19, 0.35);
}
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card-head b { display: block; font-size: clamp(16px, 1.6vw, 19px); letter-spacing: -0.01em; }
.card-head small { display: block; font-size: 13px; color: var(--ios-muted); }
.card-head .big { font-size: clamp(26px, 2.6vw, 32px); font-weight: 700; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }

/* Bewerten: Sterne füllen sich nacheinander */
.rate-rows { list-style: none; margin: 14px 0 0; padding: 0; }
.rate-rows li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-top: 1px solid var(--ios-line);
  font-size: 14px;
}
.rate-rows .s { font-size: 15px; letter-spacing: 0.06em; }
.rate-rows .s span { color: #d1d1d6; transition: color 250ms ease; transition-delay: calc(var(--k) * 70ms + 300ms); }
.rate-rows .s span.on { color: var(--star); }
.js .feature:not(.is-in) .rate-rows .s span.on { color: #d1d1d6; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chips span { font-size: 12px; padding: 4px 9px; border-radius: 99px; background: var(--ios-bg); color: #3a3a3c; }
.chips .blue { background: rgba(0, 122, 255, 0.1); color: var(--ios-blue); }

/* Karte */
.map { position: absolute; inset: 0; }
.map svg { width: 100%; height: 100%; display: block; }
.pin {
  position: absolute;
  left: var(--x); top: var(--y);
  translate: -50% -100%;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--c);
  color: #fff;
  font-family: -apple-system, system-ui, "Segoe UI", sans-serif;
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18), 0 0 0 2px #fff;
  transition: opacity 300ms ease, transform 600ms var(--ease-out);
  transition-delay: calc(var(--k) * 70ms + 250ms);
}
.pin::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -5px;
  margin-left: -4px;
  border: 4px solid transparent;
  border-top: 5px solid var(--c);
  border-bottom: 0;
}
.js .feature:not(.is-in) .pin { opacity: 0; transform: translateY(-14px); }

/* Statistik */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 2px; }
.stat { padding: 12px; border-radius: 14px; background: var(--ios-bg); }
.stat b { display: block; font-size: clamp(22px, 2.3vw, 28px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat small { font-size: 12px; color: var(--ios-muted); }
.card .label { margin: 14px 0 0; font-size: 12px; font-weight: 600; color: var(--ios-muted); text-transform: uppercase; letter-spacing: 0.04em; }

/* Freunde */
.compare { list-style: none; margin: 12px 0 0; padding: 0; }
.compare li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--ios-line); font-size: 14px; }
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--av, #8e8e93);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.compare .s { margin-left: auto; color: var(--star); letter-spacing: 0.04em; }
.compare .s i { font-style: normal; color: #d1d1d6; }
.compare .n { width: 2.4em; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ─── Und sonst: Detailliste ─── */
.details { padding-bottom: clamp(100px, 14vw, 180px); }
.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(20px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.detail-list li {
  display: grid;
  grid-template-columns: 2.6em minmax(0, 1fr);
  gap: 12px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.detail-list .no { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 3px; }
.detail-list b { display: block; font-size: clamp(18px, 1.6vw, 21px); font-weight: 600; letter-spacing: -0.015em; }
.detail-list span { color: var(--muted); }

/* ─── Abschluss (dunkel) ─── */
.contact {
  background: var(--dark);
  color: var(--bg);
  padding: clamp(96px, 14vw, 180px) 0 0;
  will-change: clip-path;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
}
.contact > .container { display: flex; flex-direction: column; }
.contact .site-footer { margin-top: auto; }
.contact .contact-links { margin-bottom: clamp(80px, 10vw, 140px); }
.contact .eyebrow { color: var(--dark-muted); }
.contact h2 { font-size: clamp(44px, 8vw, 112px); line-height: 0.95; letter-spacing: -0.045em; }
.contact h2 .muted { color: var(--dark-muted); }
.contact h2 .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.contact h2 .line > span { display: block; }
.js .contact h2 .line > span {
  transform: translateY(105%);
  transition: transform 1100ms var(--ease-out);
  transition-delay: calc(var(--i) * 100ms);
}
.contact h2.is-in .line > span { transform: none; }
.contact-text { max-width: 520px; margin: 32px 0 0; color: var(--dark-muted); font-size: 18px; }
.contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(20px, 3vw, 40px);
  margin-top: clamp(56px, 8vw, 96px);
}
.contact-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 28px 0;
  border-top: 1px solid rgba(245, 244, 240, 0.14);
  text-decoration: none;
  transition: transform 160ms var(--ease-out);
}
.contact-link:active { transform: scale(0.99); }
.contact-link small { display: block; font-size: 14px; color: var(--dark-muted); margin-bottom: 4px; }
.contact-link .value { font-size: clamp(19px, 2vw, 26px); font-weight: 550; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.contact-link .arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(245, 244, 240, 0.2);
  transition: background-color 250ms ease, color 250ms ease, transform 350ms var(--ease-out), translate 500ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .contact-link:hover .arrow { background: var(--bg); color: var(--dark); transform: rotate(-45deg); }
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  margin-top: clamp(80px, 10vw, 140px);
  padding: 28px 0 36px;
  border-top: 1px solid rgba(245, 244, 240, 0.14);
  font-size: 14px;
  color: var(--dark-muted);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { text-decoration: none; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .site-footer a:hover { color: var(--bg); }
}

/* ─── Scroll reveal ─── */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); align-items: center; }
  .hero-text { font-size: 17px; }
}
@media (min-width: 761px) and (max-width: 900px) {
  /* Schmale Textspalte neben dem iPhone: „geschmeckt?“ muss in eine Zeile passen */
  h1 { font-size: 6.6vw; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  .menu-toggle { display: block; }
  .site-header.is-scrolled .container { height: 56px; }
  .menu-open .site-header { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }

  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  .stage { max-width: 420px; aspect-ratio: 4 / 4.4; }
  .stage .phone { width: 62%; margin-left: -31%; top: 9%; }
  .feature-grid, .detail-list, .contact-links { grid-template-columns: 1fr; }
  .feature-media::before { padding-top: 85%; }
  .feature-media .inner { padding: 60px 0 36px; }
  .card { width: 84%; }
  .contact-link .arrow { width: 40px; height: 40px; }
}
@media (min-width: 761px) {
  .mobile-menu { display: none; }
}

/* ─── Reduced motion: nur Einblenden, keine Bewegung ─── */
@media (prefers-reduced-motion: reduce) {
  .js .load-in, .js .hero-fade, .js [data-reveal] { transform: none; transition: opacity 400ms ease; transition-delay: 0ms; }
  .js h1 .line > span, .js .contact h2 .line > span { transform: none; transition: none; }
  .js .stage { clip-path: none; transition: none; }
  .js .stage .phone-rise { transform: none; transition: none; }
  .js .feature-media { clip-path: none; }
  .js .statement-text .w { opacity: 1; }
  .js .feature:not(.is-in) .pin { transform: none; }
  .pin { transition: opacity 400ms ease; transition-delay: 0ms; }
  .rate-rows .s span { transition: none; }
  .js .feature:not(.is-in) .rate-rows .s span.on { color: var(--star); }
  .mobile-menu, .mobile-menu a { transition: none !important; }
  .contact-link .arrow { transition: none; }
}

/* ─── Funktionen: Choreografie beim Reinscrollen ─── */
.card { position: relative; z-index: 1; }
.card[data-tilt] {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 600ms var(--ease-out);
}

/* Bausteine: Zeilen gleiten herein, Chips und Kacheln ploppen auf */
[data-slide], [data-pop] {
  transition: opacity 400ms ease, transform 650ms var(--ease-out);
  transition-delay: calc(var(--t, 0) * 1ms + 150ms);
}
.js .feature:not(.is-in) [data-slide] { opacity: 0; transform: translateX(-14px); }
.js .feature:not(.is-in) [data-pop] { opacity: 0; transform: translateY(8px) scale(0.94); }
.js .feature:not(.is-in) .compare [data-slide] { transform: translateX(16px); }

/* Bewerten: Kassenbon schiebt sich hinter der Karte hervor */
.receipt {
  position: absolute;
  right: 5%;
  top: 9%;
  width: clamp(120px, 15vw, 160px);
  will-change: translate;
}
.receipt-paper {
  padding: 14px 14px 18px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 18px 40px -18px rgba(20, 20, 19, 0.35);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 10px;
  line-height: 1.7;
  color: #3a3a3c;
  transform: rotate(8deg);
  transition: transform 900ms var(--ease-out) 650ms, opacity 400ms ease 650ms;
}
.receipt-paper b { display: block; margin-bottom: 6px; font-size: 11px; color: #000; }
.receipt-paper span { display: flex; justify-content: space-between; gap: 8px; }
.receipt-paper i { font-style: normal; }
.receipt-paper .sum { margin-top: 6px; padding-top: 6px; border-top: 1px dashed #c7c7cc; font-weight: 700; color: #000; }
.js .feature:not(.is-in) .receipt-paper { opacity: 0; transform: translate(-70px, 40px) rotate(-4deg); }

/* Karte: Straßen zeichnen sich, Markierungen fallen, Route läuft zum besten Lokal */
.map .draw { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1100ms var(--ease-in-out); transition-delay: calc(var(--t) * 1ms); }
.js .feature:not(.is-in) .map .draw { stroke-dashoffset: 1; }
.map .park { transition: opacity 900ms ease 300ms; }
.js .feature:not(.is-in) .map .park { opacity: 0; }
.pin {
  z-index: 2;
  transition: opacity 250ms ease, transform 700ms cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: calc(var(--k) * 80ms + 550ms);
}
.js .feature:not(.is-in) .pin { transform: translateY(-26px) scale(0.9); }
.route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 1; }
/* Route deckt sich kreisförmig vom Standort aus auf (Strichlängen wären im verzerrten SVG ungenau) */
.route { clip-path: circle(75% at 48% 66%); transition: clip-path 1100ms var(--ease-in-out) 1300ms; }
.route path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.route-casing { stroke: #fff; stroke-width: 9px; }
.route-line { stroke: var(--ios-blue); stroke-width: 5px; }
.js .feature:not(.is-in) .route { clip-path: circle(0% at 48% 66%); }
.me {
  position: absolute;
  left: var(--x); top: var(--y);
  z-index: 2;
  width: 16px; height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--ios-blue);
  box-shadow: 0 0 0 3px #fff, 0 3px 10px rgba(0, 0, 0, 0.25);
  transition: transform 500ms var(--ease-out) 1200ms, opacity 300ms ease 1200ms;
}
.me::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.22);
  animation: me-pulse 2400ms var(--ease-out) infinite;
}
@keyframes me-pulse {
  from { transform: scale(0.4); opacity: 1; }
  to { transform: scale(1.6); opacity: 0; }
}
.js .feature:not(.is-in) .me { opacity: 0; transform: scale(0.5); }
.map-pop {
  position: absolute;
  left: var(--x); top: var(--y);
  z-index: 3;
  will-change: translate;
}
.map-pop > * { display: block; }
.map-pop {
  margin-top: -34px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.3);
  font-family: -apple-system, system-ui, "Segoe UI", sans-serif;
  white-space: nowrap;
  transform: translate(-82%, -100%);
  transform-origin: 82% 100%;
  transition: transform 600ms var(--ease-out) 2200ms, opacity 300ms ease 2200ms;
}
.map-pop b { font-size: 13px; color: #000; }
.map-pop small { font-size: 11px; color: var(--ios-muted); }
.js .feature:not(.is-in) .map-pop { opacity: 0; transform: translate(-82%, -100%) scale(0.9); }

/* Statistik: Verlauf zeichnet sich */
.spark { display: block; width: 100%; height: 44px; margin-top: 8px; overflow: visible; }
.spark-line { fill: none; stroke: var(--ios-blue); stroke-width: 2px; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1300ms var(--ease-in-out) 450ms; }
.spark-area { fill: rgba(0, 122, 255, 0.1); transition: opacity 700ms ease 1300ms; }
.js .feature:not(.is-in) .spark-line { stroke-dashoffset: 1; }
.js .feature:not(.is-in) .spark-area { opacity: 0; }

/* Freunde: Mitteilung schiebt sich herein */
.notify {
  position: absolute;
  left: 50%;
  bottom: 7%;
  z-index: 2;
  width: min(84%, 330px);
  margin-left: max(-42%, -165px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: 0 16px 36px -14px rgba(0, 0, 0, 0.32);
  font-family: -apple-system, system-ui, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.3;
  color: #1c1c1e;
  will-change: translate;
  transition: transform 750ms var(--ease-out) 1100ms, opacity 350ms ease 1100ms;
}
.notify .avatar { width: 28px; height: 28px; font-size: 11px; }
.js .feature:not(.is-in) .notify { opacity: 0; transform: translateY(40px) scale(0.96); }
.feature-media .inner:has(.notify) { padding-bottom: 92px; }

@media (max-width: 760px) {
  .receipt { right: 3%; top: 6%; }
  .map-pop { transform: translate(-88%, -100%); transform-origin: 88% 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .card[data-tilt] { transform: none; transition: none; }
  [data-slide], [data-pop], .receipt-paper, .map .draw, .map .park, .pin, .me, .map-pop, .spark-line, .spark-area, .notify { transition: opacity 400ms ease !important; }
  .js .feature:not(.is-in) [data-slide], .js .feature:not(.is-in) [data-pop], .js .feature:not(.is-in) .notify { transform: none; }
  .js .feature:not(.is-in) .receipt-paper { transform: rotate(8deg); }
  .js .feature:not(.is-in) .map-pop { transform: translate(-82%, -100%); }
  .js .feature:not(.is-in) .me, .js .feature:not(.is-in) .pin { transform: none; }
  .js .feature .map .draw, .js .feature .spark-line { stroke-dashoffset: 0; }
  .route { clip-path: none !important; transition: none; }
  .me::after { animation: none; opacity: 0; }
}
@media (min-width: 761px) {
  /* Platz rechts, damit der Kassenbon hinter der Karte sichtbar wird */
  .feature-media .inner:has(.receipt) .card { margin-right: 16%; }
}
