/* NutriMate Landingpage. Nur für index.html; Unterseiten nutzen css/main.css.
 * Werte aus DESIGN.md und src/css/nm-tokens.css der App: Kobaltfeld, Dotter für
 * Belohnung und Mate, Rosa für Bewegung, 1px-Linien, keine Karten. Die Screens
 * sind echte Aufnahmen der App. Milo-Bewegung läuft einmal, nie in Schleife.
 */

@font-face {
  font-family: 'Archivo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('../assets/archivo-variable.woff2') format('woff2-variations');
}

:root {
  --cobalt: #2340c8;
  --cobalt-press: #1a31a0;
  --cobalt-watch: #2a49d6;
  --on-cobalt-2: #cdd6f8;
  --cobalt-track: rgba(255, 255, 255, 0.18);
  --active-dark: #a9b9ff;

  --yolk: #ffc93c;
  --on-yolk: #14161a;
  --on-yolk-2: #4a3a0c;
  --move: #ff8cc3;

  --label: #ffffff;
  --carton: #efede7;
  --ink: #14161a;
  --ink-2: #3d4048;
  --ink-3: #5c606a;
  --rule-soft: rgba(20, 22, 26, 0.14);
  --error: #c4262e;

  --night: #121419;
  --night-ink-2: #c9cbd1;
  --night-ink-3: #9da0a9;
  --night-carton: #2b2f39;
  --night-rule: rgba(242, 241, 236, 0.16);

  --meal-breakfast: #4fc3d9;
  --meal-lunch: #8bcb4a;
  --meal-dinner: #b98ad6;
  --meal-snacks: #ff8a6b;

  --font: 'Archivo Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --nav: 60px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--cobalt) var(--carton);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--label);
  overflow-x: clip;
}

::selection { background: var(--yolk); color: var(--on-yolk); }

h1, h2, h3, p, ul, figure, fieldset { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.18em; }
button, input { font: inherit; color: inherit; }
.hidden { display: none !important; }
.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }

:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--yolk); }

h1, h2 { font-weight: 800; font-stretch: 64%; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); line-height: 0.95; }
.lead { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.4; max-width: 34em; }

/* ---------- Kopfleiste wie in der App: weiß, eine Linie ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav);
  background: var(--label);
  border-bottom: 1px solid var(--rule-soft);
}

.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img { width: 34px; height: 34px; border-radius: 8px; }

.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.9375rem; font-weight: 650; }
.nav-links a:not(.btn) { color: var(--ink-2); text-decoration: none; transition: color 0.2s; }
.nav-links a:not(.btn):hover { color: var(--cobalt); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}

.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn-yolk { background: var(--yolk); color: var(--on-yolk); }
.btn-yolk:hover { background: #ffd45f; }
.btn-cobalt { background: var(--cobalt); color: #fff; }
.btn-cobalt:hover { background: var(--cobalt-press); }
.btn-line { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.65); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px #fff; background: rgba(255, 255, 255, 0.08); }

/* ---------- Milo: Pfade unverändert aus der App, Bewegung wie in nm-milo.css ---------- */

.milo {
  display: inline-block;
  flex: none;
  width: var(--size, 96px);
  height: var(--size, 96px);
  border-radius: 50%;
  overflow: hidden;
  line-height: 0;
  background: var(--cobalt);
}

.milo.on-cobalt { background: var(--cobalt-press); }
.milo svg { display: block; width: 100%; height: 100%; }

.m-arm { transform-origin: 533px 433px; }
.m-eye { transform-origin: 421px 296px; }
.m-root { transform-origin: 335px 640px; }

.milo.is-wave .m-arm { animation: milo-wave 1700ms 300ms ease-in-out both; }
.milo.is-wink .m-eye { animation: milo-wink 620ms 200ms ease-in-out both; }
.milo.is-hop .m-root { animation: milo-hop 1100ms 100ms both; }

@keyframes milo-wave {
  0%, 100% { transform: rotate(0); }
  17% { transform: rotate(-15deg); }
  36% { transform: rotate(-3deg); }
  55% { transform: rotate(-15deg); }
  74% { transform: rotate(-3deg); }
  88% { transform: rotate(-9deg); }
}

@keyframes milo-wink {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.1); }
}

@keyframes milo-hop {
  0%, 100% { transform: none; }
  30% { transform: translateY(-34px) scale(0.97, 1.03); }
  55% { transform: translateY(0) scale(1.05, 0.95); }
  75% { transform: translateY(-10px); }
}

/* ---------- iPhone-Rahmen ---------- */

.phone {
  --w: 320px;
  position: relative;
  width: var(--w);
  aspect-ratio: 390 / 844;
  padding: calc(var(--w) * 0.028);
  border-radius: calc(var(--w) * 0.155);
  background: #0d0e11;
  box-shadow: inset 0 0 0 1.5px #33363f, 0 40px 70px -32px rgba(0, 0, 0, 0.45);
  flex: none;
}

.phone-screen {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: calc(var(--w) * 0.125);
  background: var(--label);
  color: var(--ink);
}

.phone-status {
  position: relative;
  flex: none;
  height: 6.4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9% 0 10%;
  font-size: calc(var(--w) * 0.042);
  font-weight: 700;
  background: var(--label);
  z-index: 2;
}

.phone-status::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 22%;
  width: 30%;
  height: 62%;
  transform: translateX(-50%);
  border-radius: 99px;
  background: #0d0e11;
}

.phone-status svg { width: 19%; height: auto; }

.phone-view { position: relative; flex: 1; overflow: hidden; background: var(--label); }

.phone-view img,
.phone-view video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}


.phone-home {
  position: relative;
  flex: none;
  height: 4%;
  background: var(--label);
}

.phone-home::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 38%;
  width: 36%;
  height: calc(var(--w) * 0.014);
  transform: translateX(-50%);
  border-radius: 99px;
  background: var(--ink);
}

/* ---------- Uhr-Rahmen. Maße aus NMWatch*-Views, 45 mm: 198 × 242 pt ---------- */

.watch {
  --s: 1;
  position: relative;
  width: calc(222px * var(--s));
  height: calc(266px * var(--s));
  flex: none;
}

.watch::before,
.watch::after {
  content: "";
  position: absolute;
  left: 13%;
  right: 13%;
  height: 22%;
  background: #24262c;
  z-index: 0;
}

.watch::before { bottom: 96%; border-radius: 10px 10px 0 0; }
.watch::after { top: 96%; border-radius: 0 0 10px 10px; }

.watch-case {
  position: absolute;
  inset: 0;
  border-radius: calc(54px * var(--s));
  background: #33353c;
  box-shadow: inset 0 0 0 1px #4c4f58, 0 34px 60px -26px rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.watch-crown {
  position: absolute;
  right: calc(-5px * var(--s));
  top: 24%;
  width: calc(7px * var(--s));
  height: calc(40px * var(--s));
  border-radius: 0 4px 4px 0;
  background: #4c4f58;
  z-index: 0;
}

.watch-glass {
  position: absolute;
  left: calc(12px * var(--s));
  top: calc(12px * var(--s));
  width: 198px;
  height: 242px;
  transform: scale(var(--s));
  transform-origin: 0 0;
  border-radius: 42px;
  overflow: hidden;
  background: #000;
  color: #fff;
  z-index: 2;
}

.w-page {
  position: relative;
  width: 198px;
  height: 242px;
  padding: 26px 12px 8px;
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 1.2;
}

.w-pages { transition: transform 0.7s var(--ease); transform: translateY(calc(var(--page, 0) * -242px)); }
.w-clock { position: absolute; top: 8px; right: 20px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; z-index: 3; }
.w-num { font-weight: 800; font-stretch: 64%; font-variant-numeric: tabular-nums lining-nums; }
.w-big { font-size: 52px; line-height: 0.95; letter-spacing: -0.01em; transition: opacity 0.3s; }
.w-word { font-size: 13px; font-weight: 750; color: var(--night-ink-2); transition: opacity 0.3s; }
.w-big.is-pop { animation: w-pop 0.4s var(--ease); }
@keyframes w-pop { 40% { transform: scale(1.09); } }
.w-big { transform-origin: 0 60%; }

.w-bar-wrap { position: relative; margin: 12px 0; z-index: 1; transition: transform 0.7s var(--ease); transform-origin: 88% 50%; }
.w-bar-wrap.is-zoom { transform: scale(2.4); }
.w-bar { position: relative; display: flex; height: 10px; background: var(--cobalt-track); }
.w-bar i { display: block; height: 100%; flex: none; box-shadow: inset -1px 0 0 #000; }
.w-bar .w-free { background: transparent; box-shadow: none; }
.w-bar .w-frame { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #fff; margin-left: -1px; }
.w-meta { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; font-weight: 650; color: var(--night-ink-3); font-variant-numeric: tabular-nums; }
.w-bonus { display: inline-flex; align-items: center; gap: 2px; color: var(--move); font-weight: 750; }
.w-bonus[hidden] { display: none; }
.w-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding-left: 4px; color: var(--night-ink-3); font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; }
.w-streak { display: inline-flex; align-items: center; gap: 3px; }
.w-streak svg { color: var(--yolk); }
.w-corner { margin-left: auto; width: 64px; height: 38px; border-radius: 19px; display: grid; place-items: center; background: var(--yolk); color: var(--on-yolk); }

.w-pill {
  position: absolute;
  top: 26px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 12px;
  border-radius: 14px;
  background: var(--move);
  color: var(--on-yolk);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -16px);
  transition: opacity 0.35s, transform 0.5s var(--ease);
  z-index: 3;
}

.w-pill.is-in { opacity: 1; transform: translate(-50%, 0); }

.w-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; padding-bottom: 8px; }
.w-head b { font-size: 15px; font-weight: 750; }
.w-head span { font-size: 12px; font-weight: 600; color: var(--on-cobalt-2); font-variant-numeric: tabular-nums; }
.w-label { padding: 2px 0 4px; font-size: 11px; font-weight: 750; color: var(--night-ink-3); }
.w-row { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 5px 0; border-top: 1px solid var(--night-rule); }
.w-row .t { flex: 1; min-width: 0; }
.w-row .n { font-size: 14px; font-weight: 700; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-row .m { font-size: 11px; font-weight: 600; color: var(--on-cobalt-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.w-row .k { font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; }
.w-seal { display: inline-block; margin-top: 3px; padding: 2px 6px; border-radius: 6px; background: var(--yolk); color: var(--on-yolk); font-size: 11px; font-weight: 750; }
.w-cap { flex: none; width: 44px; height: 30px; border-radius: 15px; display: grid; place-items: center; background: var(--night-carton); }
.w-cap.c { background: var(--cobalt-watch); }
.w-cap.y { color: var(--yolk); }
.w-swatch { width: 14px; height: 14px; flex: none; }
.w-box { width: 22px; height: 22px; flex: none; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--night-ink-3); }

.w-water { display: flex; align-items: center; gap: 8px; min-height: 58px; }
.w-glass { position: relative; width: 44px; height: 52px; border-radius: 3px 3px 10px 10px; box-shadow: inset 0 0 0 2px var(--night-ink-3); overflow: hidden; flex: none; }
.w-glass i { position: absolute; left: 2px; right: 2px; bottom: 2px; height: 30%; background: var(--cobalt-watch); border-radius: 0 0 8px 8px; }
.w-amount { font-size: 30px; line-height: 1; }
.w-amount small { font-size: 13px; font-weight: 700; color: var(--on-cobalt-2); font-stretch: 100%; }
.w-link { font-size: 12px; font-weight: 700; color: var(--active-dark); }
.w-action { display: grid; place-items: center; height: 42px; margin-top: 10px; border-radius: 21px; background: var(--yolk); color: var(--on-yolk); font-size: 15px; font-weight: 750; }
.w-track { height: 6px; margin-top: 12px; background: var(--cobalt-track); }
.w-track i { display: block; height: 100%; width: 41%; background: var(--cobalt-watch); }
.w-small { margin-top: 5px; font-size: 11px; font-weight: 600; color: var(--on-cobalt-2); font-variant-numeric: tabular-nums; }

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

.hero { position: relative; background: var(--cobalt); color: #fff; overflow: clip; }

.hero-grid {
  --phone: clamp(250px, min(25vw, calc((100svh - var(--nav) - 56px) * 0.462)), 340px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  min-height: calc(100svh - var(--nav));
  padding-block: 28px;
}

.hero h1 { font-size: clamp(3.75rem, 8.4vw, 6rem); line-height: 0.88; }
.hero-title-row { display: flex; align-items: center; gap: 0.2em; }
.hero h1 .milo { --size: 0.82em; }
.hero .lead { margin-top: clamp(18px, 3vh, 28px); color: var(--on-cobalt-2); max-width: 27em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 4vh, 36px); }
.hero-note { margin-top: 16px; font-size: 0.875rem; font-weight: 600; color: var(--on-cobalt-2); }

.hero-devices { position: relative; padding-right: clamp(40px, 6vw, 88px); }
.hero-devices .phone { --w: var(--phone); animation: rise 1s var(--ease) both; }
.hero-devices .watch { --s: 0.72; position: absolute; right: 0; bottom: 9%; animation: rise 1s var(--ease) 0.25s both; z-index: 3; }

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

/* ---------- Geführter Durchgang durch „Heute“ und Eintragen ---------- */

.section { padding-block: clamp(72px, 10vw, 136px); }
.section-head { max-width: 52rem; margin-bottom: clamp(32px, 5vw, 64px); }
.section-head .lead { margin-top: 18px; color: var(--ink-2); }

.tour { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(40px, 8vw, 120px); align-items: start; }

.tour-stage {
  --w: clamp(270px, min(26vw, calc((100svh - var(--nav) - 56px) * 0.462)), 340px);
  position: sticky;
  top: calc(var(--nav) + 28px);
}

.tour-stage .phone { --w: inherit; }
.tour-stage .phone-view img { opacity: 0; transition: opacity 0.4s; }
.tour-stage .phone-view img.is-on { opacity: 1; }

.tour-steps { border-top: 1px solid var(--ink); }
.tour-step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(72vh, 620px);
  padding-block: 40px;
  border-bottom: 1px solid var(--rule-soft);
}

.tour-step h3 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1;
  font-weight: 800;
  font-stretch: 64%;
  letter-spacing: -0.01em;
  transition: color 0.3s;
}

.tour-step p { margin-top: 14px; max-width: 30em; color: var(--ink-2); font-size: 1.125rem; line-height: 1.45; }
.tour-step .phone { display: none; }

/* Einzelnes Element der App: baut sich beim Einscrollen von links nach rechts auf wie dort */
.tour-el { width: 100%; max-width: 480px; margin-top: 24px; height: auto; }
.tour-el.is-pre { clip-path: inset(0 100% 0 0); }
.tour-el.is-in { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease); }
.tour-step.is-on h3 { color: var(--cobalt); }

/* ---------- Mate: Dotterfläche ohne Rand ---------- */

.mate { background: var(--yolk); color: var(--on-yolk); }
.mate-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 7vw, 96px); align-items: center; }
.mate-milo { --size: clamp(220px, 26vw, 360px); }
.mate .lead { margin-top: 18px; color: var(--on-yolk-2); }
.mate-say { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--on-yolk); max-width: 34em; color: var(--on-yolk-2); }
.mate-say b { display: block; margin-bottom: 4px; font-size: 1.375rem; line-height: 1.15; font-weight: 800; color: var(--on-yolk); }

/* ---------- Freunde ---------- */

.friends-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 8vw, 120px); align-items: center; }
.friends-grid .lead { margin-top: 18px; color: var(--ink-2); }
.friends-list { margin-top: 32px; border-top: 1px solid var(--ink); }
.friends-list li { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule-soft); }
.friends-list b { font-weight: 800; }
.friends-list span { color: var(--ink-2); }
.friends-grid .phone { --w: clamp(270px, 26vw, 330px); }

/* ---------- Uhr: schwarze Grundfläche wie watchOS ---------- */

.watch-section { background: var(--night); color: #fff; overflow: clip; }
.watch-section .lead { margin-top: 18px; color: var(--night-ink-2); }
.watch-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(48px, 9vw, 130px); align-items: center; }
.watch-stage { padding-block: 90px; padding-inline: clamp(0px, 3vw, 40px); }
.watch-stage .watch { --s: 1.45; }

.watch-nav { margin-top: 32px; border-top: 1px solid rgba(242, 241, 236, 0.4); }
.watch-nav button {
  display: block;
  width: 100%;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid var(--night-rule);
  background: none;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.watch-nav b { display: block; font-size: 1.375rem; font-weight: 800; font-stretch: 64%; color: var(--night-ink-3); transition: color 0.2s; }
.watch-nav button:hover b { color: #fff; }
.watch-nav button[aria-pressed="true"] b { color: #fff; }
.watch-nav .d { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); color: var(--night-ink-2); }
.watch-nav .d > span { display: block; overflow: hidden; max-width: 34em; }
.watch-nav button[aria-pressed="true"] .d { grid-template-rows: 1fr; }
.watch-nav button[aria-pressed="true"] .d > span { padding-top: 6px; }
.watch-also { margin-top: 24px; font-size: 0.9375rem; color: var(--night-ink-3); max-width: 38em; }

/* ---------- Der Rest: Schiene mit echten Screens ---------- */

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 280px;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-inline: max(var(--gutter), calc((100vw - 1200px) / 2));
  scroll-padding-inline: max(var(--gutter), calc((100vw - 1200px) / 2));
  padding-bottom: 24px;
  scrollbar-color: var(--ink-3) transparent;
  scrollbar-width: thin;
}

.rail figure { scroll-snap-align: start; }
.rail .phone { --w: 280px; box-shadow: inset 0 0 0 1.5px #33363f; }
.rail figcaption { margin-top: 16px; color: var(--ink-2); font-size: 1rem; line-height: 1.4; }
.rail figcaption b { display: block; font-size: 1.375rem; line-height: 1.1; font-weight: 800; font-stretch: 64%; color: var(--ink); margin-bottom: 4px; }
.rail:focus-visible { outline-offset: -3px; }

.also { margin-top: clamp(32px, 5vw, 56px); padding-top: 16px; border-top: 1px solid var(--ink); color: var(--ink-2); max-width: 46em; }
.note { margin-top: 12px; font-size: 0.875rem; color: var(--ink-3); }

/* ---------- Beta ---------- */

.beta { background: var(--cobalt); color: #fff; }
.beta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 28rem); gap: clamp(40px, 8vw, 110px); align-items: start; }
.beta .milo { --size: 88px; margin-bottom: 20px; }
.beta .lead { margin-top: 18px; color: var(--on-cobalt-2); }
.beta-points { margin-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.35); }
.beta-points li { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); font-weight: 600; line-height: 1.35; }

.beta-form { padding: clamp(20px, 3vw, 32px); background: var(--label); color: var(--ink); }
.beta-form h3 { font-size: 2rem; line-height: 1; font-weight: 800; font-stretch: 64%; }
.field { display: grid; gap: 6px; margin-top: 18px; }
.field label, .field legend { font-size: 0.8125rem; font-weight: 700; color: var(--ink-2); }
.field legend { margin-bottom: 6px; }

.field input[type='text'],
.field input[type='email'] {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: var(--carton);
}

.field input::placeholder { color: var(--ink-3); }
.field input[aria-invalid='true'] { box-shadow: inset 0 0 0 2px var(--error); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 6px; background: var(--carton); color: var(--ink); font-size: 0.9375rem; font-weight: 700; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.chips input:checked + label { background: var(--cobalt); color: #fff; }
.chips input:focus-visible + label { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.device-note { margin-top: 8px; font-size: 0.875rem; color: var(--ink-2); }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 10px; margin-top: 18px; font-size: 0.875rem; line-height: 1.4; color: var(--ink-2); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 0; accent-color: var(--cobalt); }
.consent a { color: var(--cobalt); font-weight: 650; }
.beta-form .btn { width: 100%; margin-top: 18px; }
.form-status { min-height: 1.4em; margin-top: 12px; font-size: 0.875rem; line-height: 1.4; color: var(--ink-3); }
.form-status.is-error { color: var(--error); font-weight: 650; }
.form-status.is-ok { color: var(--cobalt); font-weight: 700; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Fußzeile und Overlays ---------- */

.site-footer { padding: 28px 0 36px; background: var(--ink); color: #fff; font-size: 0.875rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .copy { color: var(--night-ink-3); }

.overlay-page { display: none; position: fixed; inset: 0; z-index: 100; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 22, 26, 0.6); }
.overlay-content { width: 100%; max-width: 500px; max-height: 85vh; overflow-y: auto; padding: 28px; border-radius: 12px; background: var(--label); color: var(--ink); }
.overlay-content h2 { margin-bottom: 16px; font-size: 1.875rem; line-height: 1; }
.overlay-content p { margin-bottom: 14px; font-size: 0.9375rem; color: var(--ink-2); }
.overlay-content a.back { display: inline-block; margin-top: 12px; color: var(--cobalt); font-weight: 700; }
.overlay-content input { width: 100%; min-height: 48px; margin-bottom: 12px; padding: 0 14px; border: 0; border-radius: 6px; background: var(--carton); }
.overlay-content .error { color: var(--error); font-size: 0.875rem; }
.overlay-content .wide { width: 100%; }
#message[data-type='error'] { color: var(--error); }

/* ---------- Schmal: jede Etappe trägt ihr eigenes Telefon ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-block: 40px 0; --phone: min(76vw, 320px); }
  .hero-copy { max-width: 36rem; }
  .hero h1 { font-size: clamp(3.75rem, 17vw, 6rem); }
  .hero-devices { justify-self: center; margin-bottom: -28%; padding-right: 44px; }
  .hero-devices .watch { --s: 0.62; bottom: 30%; }

  .tour { grid-template-columns: 1fr; }
  .tour-stage { display: none; }
  .tour-step { min-height: 0; padding-block: 36px; }
  .tour-step .phone { display: block; --w: min(78vw, 320px); margin: 28px auto 0; order: 2; }

  .mate-grid, .friends-grid, .beta-grid { grid-template-columns: 1fr; }
  .mate-milo { --size: 150px; }
  .friends-grid .phone { justify-self: center; --w: min(78vw, 320px); }
  /* Uhr bleibt beim Antippen der Liste im Blick */
  .watch-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .watch-copy { display: contents; }
  .watch-copy h2 { order: 1; }
  .watch-copy .lead { order: 2; }
  .watch-stage {
    order: 3;
    position: sticky;
    top: var(--nav);
    z-index: 5;
    display: flex;
    justify-content: center;
    margin: 20px calc(-1 * var(--gutter)) 0;
    padding: 18px 0;
    overflow: hidden;
    background: var(--night);
    border-bottom: 1px solid var(--night-rule);
  }
  .watch-stage .watch { --s: 0.62; }
  .watch-copy .watch-nav { order: 4; margin-top: 0; border-top: 0; }
  .watch-copy .watch-also { order: 5; }
}

@media (max-width: 760px) {
  .nav-links a:not(.btn) { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .friends-list li { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
