/* ============================================================
   Kochkompass: gemeinsames Stylesheet
   Farben aus dem Figma-Design der App (siehe LANDING_PAGE_BRIEF.md)
   ============================================================ */

/* Schriften lokal gehostet (keine Anfrage an Google, siehe Datenschutz).
   Fraunces mit SOFT-Achse für Überschriften, Figtree für Fliesstext.
   Beide unter SIL Open Font License. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin-soft-normal.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin-soft-italic.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/fonts/figtree-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  --primary: #65B56E;
  --primary-dark: #4A9452;
  --primary-deep: #2F6B37;
  --primary-light: #93CDA0;
  --bg: #F5F5F0;
  --surface: #FFFFFF;
  --text: #2D2D2D;
  --text-secondary: #6B6B6B;
  --success: #4CAF50;
  --gold: #E8B84B;
  --brown: #8D6E63;
  --orange: #FF7043;
  --danger: #D64545;
  --danger-dark: #B23535;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino,
    Georgia, serif;
  --font-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 2px 10px rgba(45, 45, 45, 0.05), 0 10px 30px rgba(45, 45, 45, 0.06);
  --shadow-lg: 0 4px 16px rgba(45, 45, 45, 0.08), 0 24px 60px rgba(45, 45, 45, 0.16);
  --border: 1px solid rgba(45, 45, 45, 0.07);
  --max-width: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--primary-dark); }

::selection { background: rgba(101, 181, 110, 0.3); }

/* ---------- Layout-Helfer ---------- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.narrow { max-width: 760px; }

section { padding: 5rem 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 245, 240, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45, 45, 45, 0.06);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(245, 245, 240, 0.94);
  box-shadow: 0 6px 24px rgba(45, 45, 45, 0.07);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.brand-logo { flex: none; display: block; }

.site-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
}

.site-nav a:hover { color: var(--primary-deep); }

/* CTA-Button in der Navigation: Button-Farben müssen die Linkregeln schlagen */
.site-nav a.btn-nav {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  color: #fff;
}

.site-nav a.btn-nav:hover {
  color: #fff;
  background: var(--primary-deep);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

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

.btn-primary {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 6px 18px rgba(74, 148, 82, 0.35);
}
.btn-primary:hover { background: var(--primary-deep); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(45, 45, 45, 0.22);
}
.btn-outline:hover { border-color: var(--text); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-dark); }

.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------- Karten ---------- */

.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 2rem;
}

/* ---------- Typografie ---------- */

h1, h2, h3 { line-height: 1.2; }

h1, h2, .section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 100, "opsz" 96;
  letter-spacing: -0.025em;
}

h3 { font-weight: 700; letter-spacing: -0.01em; }

.text-muted { color: var(--text-secondary); }

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

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 0.9rem;
}

.section-title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--text-secondary);
  font-size: 1.06rem;
  max-width: 640px;
  margin-bottom: 3rem;
}

.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(45, 45, 45, 0.08);
  padding: 3rem 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text);
}

.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; list-style: none; }
.footer-links a { color: var(--text-secondary); text-decoration: none; }
.footer-links a:hover { color: var(--primary-deep); }

.site-footer:has(.footer-wordmark) { padding-bottom: 0; overflow: hidden; }

/* grosser, angeschnittener Schriftzug am Seitenende */
.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-size: clamp(3.5rem, 16.5vw, 13rem);
  line-height: 0.8;
  letter-spacing: -0.045em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, rgba(101, 181, 110, 0.32) 0%, rgba(101, 181, 110, 0) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  margin-top: 2.5rem;
  margin-bottom: -0.12em;
  user-select: none;
}

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

.hero {
  --hero-pad: clamp(2rem, 6vh, 6rem);
  position: relative;
  padding: var(--hero-pad) 0;
  overflow: hidden;
  /* füllt den ersten Bildschirm, damit der nächste Abschnitt nicht schon
     beim Laden hineinragt (Header ist ca. 68px hoch) */
  min-height: calc(100vh - 68px);
  min-height: calc(100svh - 68px);
  display: flex;
  align-items: center;
}

.hero > .container { width: 100%; }

.hero-rose {
  position: absolute;
  width: 760px;
  height: 760px;
  right: -140px;
  top: 50%;
  margin-top: -380px;
  color: var(--primary);
  opacity: 0.16;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle, #000 45%, transparent 71%);
  mask-image: radial-gradient(circle, #000 45%, transparent 71%);
}

/* weiche, organische Farbflächen im Hintergrund */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.hero::before {
  width: 560px;
  height: 560px;
  right: -180px;
  top: -140px;
  background: radial-gradient(circle,
    rgba(147, 205, 160, 0.5) 0%,
    rgba(147, 205, 160, 0) 70%);
}

.hero::after {
  width: 420px;
  height: 420px;
  left: -180px;
  top: 30%;
  background: radial-gradient(circle,
    rgba(232, 184, 75, 0.28) 0%,
    rgba(232, 184, 75, 0) 70%);
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(101, 181, 110, 0.13);
  border: 1px solid rgba(101, 181, 110, 0.35);
  color: var(--primary-deep);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.3rem);
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 2.1rem;
}

/* Zeilen-Masken für die Einblend-Animation */
.hero h1 .line { display: block; overflow: hidden; padding: 0 0.1em 0.4em 0; margin-bottom: -0.4em; }
.hero h1 .line-inner { display: inline-block; }

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--primary-deep);
  position: relative;
  white-space: nowrap;
}

/* Hero-Elemente bis zum Start der Animation verbergen (nur mit JS) */
.js-pending [data-hero],
.js-pending [data-hero-phone],
.js-pending [data-hero-chip] { visibility: hidden; }

/* handgezeichnete Unterstreichung */
.hero h1 em .squiggle {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.28em;
  width: 100%;
  height: 0.35em;
  color: var(--gold);
  overflow: visible;
}

.hero-pitch {
  color: var(--text-secondary);
  font-size: 1.13rem;
  max-width: 33rem;
  margin-bottom: 2.25rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

.store-note {
  width: 100%;
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
}

/* Store-Badges (Platzhalter, bis echte Links vorliegen) */

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--text);
  color: #fff;
  border-radius: 14px;
  padding: 0.6rem 1.15rem;
  text-decoration: none;
  line-height: 1.2;
  transition: transform 0.12s ease;
}

a.store-badge:hover { transform: translateY(-2px); }

.store-badge.is-placeholder { opacity: 0.6; cursor: default; }

.store-badge small { display: block; font-size: 0.68rem; font-weight: 400; opacity: 0.85; }
.store-badge strong { font-size: 0.98rem; font-weight: 600; }

/* ---------- Handy-Rahmen für echte App-Screenshots ---------- */

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ic {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.125em;
}

.hero-visual { position: relative; }

/* Seitenverhältnis der Screenshots (720 × 1416); leicht abweichende
   Bilder werden mittig angeschnitten, das sind nur wenige Pixel. */
.phone {
  --app-page: #EFEFEC;
  position: relative;
  aspect-ratio: 720 / 1416;
  padding: 7px;
  background: #1b1a16;
  border-radius: 13% / 6.6%;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, var(--shadow-lg);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 11% / 5.6%;
  background: var(--app-page);
}

/* Das ganze Handy soll ohne Scrollen sichtbar sein: Die Höhe richtet sich
   nach dem Bildschirm (abzüglich Header, Hero-Abstand und Chip unten),
   die Breite ergibt sich aus dem Seitenverhältnis. */
.hero-phone {
  height: clamp(400px, calc(100svh - 68px - 2 * var(--hero-pad) - 1.75rem), 580px);
  max-width: 78vw;
  margin: 0 auto;
  transform: rotate(-2deg);
}


/* schwebende Info-Chips um das Telefon */

.float-chip {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  border: var(--border);
  box-shadow: var(--shadow-lg);
  padding: 0.7rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}

.float-chip .dot {
  font-size: 17px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.float-chip small {
  display: block;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.7rem;
}

.chip-list { top: 12%; left: -1.5rem; rotate: 2deg; animation: float 7s ease-in-out infinite; }
.chip-cost { bottom: 18%; right: -1rem; rotate: -2deg; animation: float 8s ease-in-out -2.5s infinite; }
.chip-score { bottom: -1.25rem; left: 12%; rotate: 1.5deg; animation: float 6.5s ease-in-out -4s infinite; }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

.chip-list .dot { background: rgba(101, 181, 110, 0.16); color: var(--primary-deep); }
.chip-cost .dot { background: rgba(141, 110, 99, 0.15); color: var(--brown); }
.chip-score .dot { background: rgba(101, 181, 110, 0.16); color: var(--primary); }

/* ---------- Problem/Lösung ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.quote-bubbles { display: flex; flex-direction: column; gap: 0.9rem; }

.bubble {
  background: var(--surface);
  border: var(--border);
  box-shadow: var(--shadow);
  border-radius: 20px 20px 20px 6px;
  padding: 0.9rem 1.3rem;
  font-size: 0.98rem;
  color: var(--text-secondary);
  width: fit-content;
  max-width: 90%;
}

.bubble.is-reply {
  align-self: flex-end;
  border-radius: 20px 20px 6px 20px;
  background: var(--primary-dark);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
}

/* «tippt gerade»-Blase, erscheint nur während der Animation */
.bubble.is-typing {
  display: none;
  align-self: flex-end;
  gap: 5px;
  padding: 1.05rem 1.2rem;
  border-radius: 20px 20px 6px 20px;
}

.bubble.is-typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-secondary);
  animation: typing 1.1s ease-in-out infinite;
}

.bubble.is-typing i:nth-child(2) { animation-delay: 0.15s; }
.bubble.is-typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
  30% { transform: translateY(-4px); opacity: 0.85; }
}

.problem-answer { margin-top: 1rem; font-size: 1.15rem; font-weight: 500; }

/* ---------- Funktionen: Kompassrose ---------- */

/* Acht Funktionen = acht Himmelsrichtungen. Die Punkte sitzen per
   rotate/translate auf einem Kreis, die Mitte zeigt die gewählte Funktion. */
.kompass { --kp-r: 300px; --kp-dial: 456px; }

/* 300 px Radius ist das Minimum: Die Diagonal-Punkte (NO, SO, SW, NW) dürfen
   das höchste Panel (Rezepte, gut 400 px) nicht berühren. */
.kompass-stage {
  position: relative;
  height: 720px;
  text-align: left;
}

.kompass-dial {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--kp-dial);
  height: var(--kp-dial);
  margin: calc(var(--kp-dial) / -2) 0 0 calc(var(--kp-dial) / -2);
  border-radius: 50%;
}

/* Skalenstriche am Rand */
.kompass-dial::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(from -0.4deg, rgba(45, 45, 45, 0.24) 0 0.8deg, transparent 0.8deg 7.5deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 11px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 11px));
}

/* weiche Innenfläche */
.kompass-dial::after {
  content: "";
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  border: 1px solid rgba(101, 181, 110, 0.3);
  background: radial-gradient(circle, rgba(147, 205, 160, 0.34) 0%, rgba(232, 184, 75, 0.1) 55%, rgba(245, 245, 240, 0) 72%);
}

/* drehende Ebene: Spitze aussen, hervorgehobener Sektor, Nadel (nur mobil sichtbar) */
.kompass-needle { position: absolute; inset: 0; z-index: 1; }

.kompass-needle::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from -22.5deg, rgba(255, 112, 67, 0.28) 0 45deg, transparent 45deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 22px), #000 calc(100% - 21px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 22px), #000 calc(100% - 21px));
}

.kompass-needle-tip {
  position: absolute;
  left: 50%;
  top: -17px;
  margin-left: -8px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 13px solid var(--orange);
}

.kompass-needle-center {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 84px;
  translate: -50% -50%;
  color: var(--text);
}

.kompass-ring { position: absolute; inset: 0; z-index: 3; pointer-events: none; }

.kompass-point {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(calc(var(--i) * 45deg)) translateY(calc(var(--kp-r) * -1)) rotate(calc(var(--i) * -45deg));
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 96px;
  padding: 0.4rem 0.5rem;
  background: none;
  border: 0;
  border-radius: 16px;
  font: inherit;
  color: var(--text);
  cursor: pointer;
}

.kompass-dir {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.85rem;
  line-height: 1;
  color: var(--primary-dark);
}

.kompass-icon {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--primary-deep);
  box-shadow: var(--shadow);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.kompass-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.kompass-point:hover .kompass-icon { transform: scale(1.08); }

.kompass-point.is-active .kompass-icon {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 8px 22px rgba(74, 148, 82, 0.4);
}

.kompass-point.is-active .kompass-label { color: var(--text); }

/* Fortschrittsring der automatischen Tour (--p setzt landing.js) */
.kompass-point.is-active .kompass-icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) calc(var(--p, 0) * 1%), transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
}

/* Desktop: Panels liegen zentriert übereinander, jedes so hoch wie sein Inhalt.
   Zentriert per Grid, nicht per translate: GSAP übernimmt die CSS-Eigenschaft
   translate in sein eigenes transform, und die y-Animation beim Wechsel hat
   dann die vertikale Zentrierung überschrieben (Panel rutschte nach unten). */
.kompass-center {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.kompass-panel {
  grid-area: 1 / 1;
  width: 310px;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem 1.5rem 1.4rem;
}

.js .kompass-panel:not(.is-active) { visibility: hidden; opacity: 0; }

.kompass-panel h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 100;
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
}

.kompass-panel p { color: var(--text-secondary); font-size: 0.94rem; line-height: 1.55; }

.kompass-panel-dir {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--primary-dark);
  margin-bottom: 0.3rem;
}

/* Ohne JS: keine Rose, die acht Funktionen stehen als einfache Karten da */
html:not(.js) .kompass-dial,
html:not(.js) .kompass-ring { display: none; }
html:not(.js) .kompass-stage { height: auto; }
html:not(.js) .kompass-center {
  position: static;
  width: auto;
  height: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}
html:not(.js) .kompass-panel { grid-area: auto; width: auto; }

/* Laptops mit wenig Höhe: die ganze Rose verkleinern, damit sie samt Panel
   ohne Scrollen ins Bild passt (Bühne 720 px + Kopfzeile + etwas Luft) */
@media (min-width: 881px) and (max-height: 804px) { .js .kompass-stage { zoom: 0.9; } }
@media (min-width: 881px) and (max-height: 732px) { .js .kompass-stage { zoom: 0.8; } }
@media (min-width: 881px) and (max-height: 660px) { .js .kompass-stage { zoom: 0.72; } }

/* kleine UI-Vignetten in den Karten */

.f-visual {
  margin-top: auto;
  padding-top: 1.15rem;
}

/* Mini-Rezeptkarte (grosse Karte) */

.f-recipe {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  background: var(--bg);
  border: var(--border);
  border-radius: 16px;
  padding: 0.75rem;
}

.f-recipe .mock-thumb { flex: none; width: 58px; height: 58px; border-radius: 9px; object-fit: cover; }

.f-recipe-title { font-weight: 700; font-size: 0.92rem; }

.f-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.35rem; }

.f-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.f-chip.c-green { background: rgba(101, 181, 110, 0.16); color: var(--primary-deep); }
.f-chip.c-orange { background: rgba(255, 112, 67, 0.15); color: #C74A25; }
.f-chip.c-brown { background: rgba(141, 110, 99, 0.16); color: var(--brown); }
.f-chip.c-score { background: var(--primary); color: #fff; }
.f-chip.c-gold { background: rgba(232, 184, 75, 0.2); color: #93701A; }

/* Wochen-Streifen */

.f-week { display: flex; gap: 0.3rem; }

.f-week span {
  flex: 1;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(45, 45, 45, 0.05);
  border-radius: 10px;
  padding: 0.45rem 0 0.35rem;
  line-height: 1.5;
}

.f-week span::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin: 0.15rem auto 0;
  background: rgba(45, 45, 45, 0.12);
}

.f-week .is-planned { background: rgba(101, 181, 110, 0.16); color: var(--primary-deep); }
.f-week .is-planned::after { background: var(--primary); }

/* Checkliste */

.f-check { font-size: 0.85rem; }
.f-check .check-item { padding: 0.4rem 0; }

/* Avatar-Gruppe */

.f-people { display: flex; align-items: center; }

.f-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  margin-left: -10px;
  box-shadow: 0 2px 6px rgba(45, 45, 45, 0.12);
}

.f-avatar:first-child { margin-left: 0; }
.f-avatar.a1 { background: var(--primary-dark); }
.f-avatar.a2 { background: var(--gold); }
.f-avatar.a3 { background: var(--brown); }

.f-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.8rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-deep);
}

.f-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.25);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
  70% { box-shadow: 0 0 0 7px rgba(76, 175, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

/* Timer (Koch-Modus): Zeit mit linearem Fortschritt wie in der App */

.f-timer { display: flex; align-items: center; gap: 0.9rem; }

.f-timer-box {
  flex: none;
  width: 80px;
  background: var(--bg);
  border: 1.5px solid var(--primary);
  border-radius: 12px;
  padding: 0.4rem 0.55rem 0.5rem;
}

.f-timer-time { display: block; font-size: 1.05rem; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }

.f-timer-bar { display: block; height: 4px; margin-top: 0.3rem; border-radius: 999px; background: rgba(45, 45, 45, 0.1); overflow: hidden; }
.f-timer-bar i { display: block; width: var(--pct, 30%); height: 100%; border-radius: inherit; background: var(--primary); }

.f-timer small { display: block; color: var(--text-secondary); font-size: 0.76rem; }
.f-timer strong { font-size: 0.88rem; }

/* Chip-Reihen (Community-Signale, Achievement-Badges) */

.f-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.f-devices { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.f-device {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(101, 181, 110, 0.12);
  border: 1px solid rgba(101, 181, 110, 0.3);
  color: var(--primary-deep);
  white-space: nowrap;
}

/* ---------- Ablauf: Scroll-Storytelling ---------- */

.story { padding-bottom: 2rem; }

.story-intro .section-lead { margin-bottom: 0; }

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.story-steps { list-style: none; padding: 6vh 0 22vh; }

.story-step {
  min-height: 74vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 27rem;
  transition: opacity 0.5s var(--ease-out);
}

/* Nur mit JS werden inaktive Schritte gedimmt, ohne JS bleibt alles lesbar */
.js .story-step { opacity: 0.25; }
.js .story-step.is-active { opacity: 1; }

.story-num {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.story-num::after {
  content: "";
  width: 3rem;
  height: 1.5px;
  background: currentColor;
  opacity: 0.45;
}

.story-step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 100, "opsz" 72;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 0.9rem;
}

.story-step p { color: var(--text-secondary); font-size: 1.15rem; }

.story-stage {
  position: sticky;
  top: max(84px, calc(50vh - 320px));
  height: 660px;
}

.story-stage-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* weicher Lichthof hinter dem Handy */
.story-stage-inner::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 205, 160, 0.45) 0%, rgba(232, 184, 75, 0.12) 45%, rgba(245, 245, 240, 0) 70%);
  pointer-events: none;
}

.story-phone {
  width: 300px;
  flex: none;
}

/* Screenshots liegen übereinander, nur der aktive ist sichtbar */
.story-screens {
  position: relative;
  height: 100%;
  border-radius: 11% / 5.6%;
  overflow: hidden;
  background: var(--app-page);
}

.story-screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
}

.story-screen.is-active { opacity: 1; visibility: visible; }

/* Kompass neben dem Handy */
.story-compass {
  position: absolute;
  left: calc(50% - 236px);
  top: 70px;
  width: 96px;
  height: 96px;
  padding: 10px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  z-index: 2;
}

.story-compass svg { width: 100%; height: 100%; display: block; }

/* Fortschritt als Punkte */
.story-dots {
  position: absolute;
  right: calc(50% - 205px);
  top: 50%;
  translate: 0 -50%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.story-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(45, 45, 45, 0.15);
  transition: height 0.4s var(--ease-out), background-color 0.4s ease;
}

.story-dots span.is-active { height: 28px; background: var(--primary-dark); }

/* ---------- Checkliste (Funktionskarte «Einkauf») ---------- */

.check-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(45, 45, 45, 0.08);
  color: var(--text);
}

.check-item:last-child { border-bottom: none; }

.check-item .qty {
  color: var(--text-secondary);
  font-size: 0.8rem;
  min-width: 3.2rem;
}

.checkbox {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 2px solid rgba(45, 45, 45, 0.25);
  flex: none;
  margin-left: auto;
}

.checkbox.is-done {
  border-color: var(--success);
  background: var(--success) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center / 11px no-repeat;
}

.check-item.is-done { color: var(--text-secondary); text-decoration: line-through; }

/* ---------- CTA-Sektion ---------- */

.cta-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-deep) 100%);
  border-radius: calc(var(--radius) + 8px);
  color: #fff;
  padding: 5.5rem 2rem;
  text-align: center;
}

.cta-panel > *:not(.cta-rose) { position: relative; }

.cta-rose {
  position: absolute;
  width: 520px;
  height: 520px;
  left: -170px;
  bottom: -250px;
  color: rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.cta-panel::before,
.cta-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.cta-panel::before { width: 340px; height: 340px; top: -170px; right: -110px; }
.cta-panel::after { width: 220px; height: 220px; top: -60px; right: -40px; }

.cta-panel h2 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  line-height: 1.04;
  max-width: 19ch;
  margin: 0 auto 1rem;
}

.cta-panel p { opacity: 0.92; max-width: 540px; margin: 0 auto 2rem; }

.cta-panel .store-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ---------- Inhaltsseiten (Legal, Konto etc.) ---------- */

.page { padding: 3.5rem 0 4.5rem; }

.page h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 0.6rem; }

.page-lead { color: var(--text-secondary); margin-bottom: 2rem; }

.prose h2 { font-size: 1.35rem; margin: 2.2rem 0 0.6rem; font-family: var(--font-display); }
.prose h3 { font-size: 1.08rem; margin: 1.4rem 0 0.4rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0.6rem 0; }
.prose p { margin: 0.6rem 0; }

.notice {
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

.notice-info { background: rgba(101, 181, 110, 0.12); border: 1px solid rgba(101, 181, 110, 0.4); }
.notice-warn { background: rgba(232, 184, 75, 0.14); border: 1px solid rgba(232, 184, 75, 0.55); }
.notice-danger { background: rgba(214, 69, 69, 0.08); border: 1px solid rgba(214, 69, 69, 0.35); }

/* ---------- Delete-Account-Seite ---------- */

.auth-card { max-width: 470px; margin: 0 auto; text-align: center; }

.auth-card .btn { width: 100%; margin-top: 0.75rem; }

.auth-providers { margin-top: 1.5rem; }

.btn-provider {
  background: var(--surface);
  border: 1.5px solid rgba(45, 45, 45, 0.18);
  color: var(--text);
}
.btn-provider:hover { border-color: var(--text); background: var(--surface); }

.auth-status {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  min-height: 1.4em;
}

.auth-status.is-error { color: var(--danger); }
.auth-status.is-success { color: var(--primary-dark); font-weight: 600; }

.user-line { margin: 1rem 0 0.5rem; font-size: 0.98rem; }
.user-line strong { word-break: break-all; }

[hidden] { display: none !important; }

/* ---------- Modal (Löschbestätigung) ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(45, 45, 45, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 50;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 420px;
  width: 100%;
  padding: 1.85rem;
}

.modal h2 { font-size: 1.25rem; margin-bottom: 0.6rem; font-family: var(--font-display); }
.modal p { color: var(--text-secondary); font-size: 0.96rem; }

.modal-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.modal-actions .btn { flex: 1; }

/* ---------- Feedback-Board ---------- */

.form-row { text-align: left; margin-bottom: 1rem; }

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(45, 45, 45, 0.18);
  background: var(--surface);
  color: var(--text);
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary-dark);
}

.feedback-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.feedback-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  text-align: left;
  padding: 1.25rem 1.4rem;
}

.feedback-vote {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  width: 64px;
  padding: 0.55rem 0.4rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(45, 45, 45, 0.18);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.feedback-vote:hover:not(:disabled) { border-color: var(--primary-dark); }

.feedback-vote:disabled { opacity: 0.5; cursor: not-allowed; }

.feedback-vote.is-active {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

.feedback-vote-count { font-size: 1.15rem; font-weight: 800; line-height: 1.1; }
.feedback-vote-label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.75; }

.feedback-item-body { min-width: 0; }

.feedback-item-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 0.3rem;
}

.feedback-item-head h3 { font-size: 1.02rem; }

.feedback-item-body p { color: var(--text-secondary); font-size: 0.92rem; }

.feedback-status {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(45, 45, 45, 0.08);
  color: var(--text-secondary);
  white-space: nowrap;
}

.feedback-status-planned,
.feedback-status-in_progress { background: rgba(232, 184, 75, 0.2); color: #93701A; }
.feedback-status-done { background: rgba(101, 181, 110, 0.18); color: var(--primary-deep); }
.feedback-status-declined { background: rgba(214, 69, 69, 0.12); color: var(--danger-dark); }

/* ---------- Fallback-Seiten (recipe / join) ---------- */

.fallback-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
  background:
    radial-gradient(circle at 15% 20%, rgba(147, 205, 160, 0.28) 0%, rgba(147, 205, 160, 0) 45%),
    radial-gradient(circle at 85% 85%, rgba(232, 184, 75, 0.2) 0%, rgba(232, 184, 75, 0) 45%),
    var(--bg);
}

.fallback-card { max-width: 500px; width: 100%; text-align: center; }

.fallback-card .app-icon {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: linear-gradient(140deg, var(--primary) 0%, var(--primary-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.4rem;
  color: #fff;
  box-shadow: 0 10px 26px rgba(74, 148, 82, 0.4);
}

/* Recipe-Fallback: echtes App-Icon statt Symbol auf Verlaufskachel. */
.fallback-card .app-icon--logo {
  background: none;
  border-radius: 22.5%;
  box-shadow: 0 10px 26px rgba(34, 112, 58, 0.35);
}

.fallback-card .app-icon--logo img { display: block; width: 100%; height: 100%; }

.fallback-card h1 { font-size: 1.6rem; margin-bottom: 0.6rem; font-family: var(--font-display); }
.fallback-card p { color: var(--text-secondary); margin-bottom: 1.6rem; }

.fallback-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; gap: 4rem; }
  .hero { padding-top: 3rem; }
  .hero-visual { order: 1; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .hero-rose { width: 520px; height: 520px; right: -240px; top: auto; bottom: -60px; margin-top: 0; }

  /* Storytelling mobil: Handy klebt oben, Text läuft darunter durch */
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .story-stage {
    order: -1;
    top: 60px;
    height: 400px;
    z-index: 5;
    margin: 0 -1.5rem;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 86%, rgba(245, 245, 240, 0) 100%);
  }
  .story-stage-inner { align-items: flex-start; padding-top: 14px; }
  .story-stage-inner::before { width: 340px; height: 340px; top: 20px; }
  .story-phone { transform: scale(0.6); transform-origin: top center; }
  .story-compass { width: 64px; height: 64px; padding: 6px; left: calc(50% - 150px); top: 40px; }
  .story-dots { right: calc(50% - 130px); top: 190px; }
  .story-steps { padding: 1rem 0 30vh; }
  .story-step { min-height: 58vh; justify-content: flex-start; padding-top: 1.5rem; max-width: none; }
  .story-step h3 { font-size: 1.9rem; }
  .story-step p { font-size: 1.05rem; }

  /* Kompassrose mobil: kleine Rose, Icon-Leiste, Karten als Wisch-Karussell */
  .kompass { --kp-dial: 150px; }
  .kompass .section-lead { margin-bottom: 1.2rem; }
  .kompass-stage { height: auto; display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
  .kompass-dial { position: relative; left: auto; top: auto; margin: 0.9rem 0 0.3rem; }
  .kompass-dial::before { -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)); mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)); }
  .kompass-dial::after { inset: 12px; }
  .kompass-needle::before { -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 11px)); mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 11px)); }
  .kompass-needle-tip { top: -13px; margin-left: -6px; border-left-width: 6px; border-right-width: 6px; border-bottom-width: 10px; }
  .kompass-needle-center { display: block; width: 22px; height: 66px; }

  .kompass-ring {
    position: static;
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 420px;
    pointer-events: auto;
  }
  .kompass-point { position: static; transform: none; flex: 1 1 0; min-width: 0; min-height: 44px; justify-content: center; padding: 3px 0; gap: 0; }
  .kompass-icon { width: 36px; height: 36px; }
  .kompass-icon svg { width: 18px; height: 18px; }
  .kompass-point.is-active .kompass-icon::after { inset: -4px; }
  /* Beschriftung nur für Screenreader, die Karte nennt Richtung und Name */
  .kompass-dir,
  .kompass-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .kompass-center {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    align-self: stretch;
    margin: 0 -1.5rem;
    padding: 0.4rem 1.5rem 1.4rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    overflow-x: auto;
    pointer-events: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .kompass-center::-webkit-scrollbar { display: none; }
  .kompass-panel {
    position: static;
    translate: none;
    flex: 0 0 86%;
    width: auto;
    min-width: 0; /* sonst dehnen lange Chips die Karte über die Bildschirmbreite */
    scroll-snap-align: center;
    padding: 1.3rem 1.25rem 1.25rem;
    box-shadow: var(--shadow);
    transition: opacity 0.35s ease;
  }
  .js .kompass-panel:not(.is-active) { visibility: visible; opacity: 0.5; }
  .kompass-panel h3 { font-size: 1.35rem; }
  .kompass-panel .f-chip { white-space: normal; }
  html:not(.js) .kompass-center { display: flex; }
  html:not(.js) .kompass-panel { position: static; width: auto; }
  section { padding: 3.5rem 0; }
  .chip-list { left: -0.25rem; }
  .chip-cost { right: -0.25rem; }
}

@media (max-width: 560px) {
  .hero-kicker { display: none; }
}

@media (max-width: 480px) {
  .float-chip { font-size: 0.72rem; padding: 0.55rem 0.75rem; }
  /* Textlinks im Header ausblenden, nur der CTA-Button bleibt */
  .site-nav a:not(.btn) { display: none; }
  .hero { padding-top: 2.25rem; }
  .card { padding: 1.5rem 1.25rem; }
  .cta-panel { padding: 3rem 1.25rem; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 2rem; }
  .hero h1 em { white-space: normal; }
}

@media (max-width: 880px) and (max-height: 700px) {
  .story-stage { height: 330px; }
  .story-phone { transform: scale(0.5); }
  .story-dots { top: 160px; }
}

@media (min-width: 881px) and (max-height: 780px) {
  .story-stage { top: 76px; }
  .story-stage-inner { transform: scale(0.84); transform-origin: top center; }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-chip,
  .bubble.is-typing i,
  .f-live::before { animation: none; }
  .story-step,
  .story-dots span,
  .kompass-icon { transition: none; }
}
