/* Kostbar · Produkt-Film. Richtung „geteilte Bühne“: links ein Bild oder das Handy, rechts eine ruhige Lesespalte.
   Farben und Schriften aus dem Kostbar-Designsystem (hell, warm). Fotos mit eckigen Kanten, nur die App-Teile (data-ui) runden. */
:root {
  --bg: #f7f2ea;        /* Creme, Grund */
  --field: #efe6d8;     /* eine Stufe dunkler, für Flächen */
  --surface: #ffffff;
  --soft: #faf6f0;
  --gold-soft: #f6eddc;
  --ink: #2e1d14;       /* Espresso */
  --ink-soft: #4a3b31;
  --muted: #7a6a5c;     /* muted-strong, 4,7:1 auf bg */
  --line: #e9dfd2;
  --gold: #b48a4a;
  --gold-text: #8a6a35;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Nunito Sans", system-ui, -apple-system, sans-serif;
  --m: clamp(20px, 2.4vw, 32px);   /* äußerer Rand, links und rechts gleich */
  --gap: clamp(120px, 16vh, 200px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  /* Fünf Schriftgrößen */
  --t-word: clamp(104px, 15vw, 248px);
  --t-h: clamp(34px, 3.4vw, 48px);
  --t-lead: clamp(21px, 1.7vw, 26px);
  --t-body: 18px;
  --t-small: 15px;
}
* { box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html { background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--t-body)/1.55 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, p, figure, blockquote, dl, dd { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
::selection { background: var(--gold-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h2 { font-family: var(--display); font-weight: 500; font-size: var(--t-h); line-height: 1.04; letter-spacing: -0.015em; text-wrap: balance; }
strong { font-weight: 700; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: 47% 1fr; grid-template-rows: auto 1fr auto; }
.hero-photo { grid-column: 1; grid-row: 1 / 4; margin: 20px 0 20px 20px; overflow: hidden; height: calc(100svh - 40px); position: sticky; top: 20px; }
.hero-photo img, .hero-photo video { width: 100%; height: 100%; object-fit: cover; object-position: 40% 55%; transform-origin: 50% 60%; }
.nav { grid-column: 2; grid-row: 1; justify-self: end; display: flex; gap: 28px; padding: 30px var(--m) 0 0; font-size: var(--t-small); }
.nav a { text-decoration: none; color: var(--ink); transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--gold-text); } }
.nav-action { white-space: nowrap; background: var(--ink); color: var(--bg) !important; padding: 9px 16px; margin-top: -9px; transition: transform 140ms var(--ease-out); }
.nav-action:active { transform: scale(0.97); }
.hero-line { grid-column: 2; grid-row: 2; align-self: center; justify-self: center; max-width: 25ch; font-family: var(--display); font-size: var(--t-lead); line-height: 1.3; color: var(--ink); padding: 0 var(--m); }
.wordmark {
  position: absolute; right: var(--m); bottom: 28px; z-index: 2;
  font-family: var(--display); font-weight: 500; font-size: var(--t-word); line-height: .8; letter-spacing: -0.04em;
  color: var(--ink); white-space: nowrap; transform-origin: 100% 100%;
}
.wordmark-bar { font-style: italic; color: var(--gold); }

/* ---------- Problem: quadratische Tafel ---------- */
.plate { display: grid; grid-template-columns: 1fr 1fr; min-height: 88svh; align-items: center; padding: var(--gap) var(--m) 0; gap: clamp(32px, 5vw, 80px); }
.plate-photo { aspect-ratio: 1; overflow: hidden; }
.plate-photo img { width: 100%; height: 100%; object-fit: cover; }
.plate-text { display: grid; gap: 28px; max-width: 34ch; }
.plate-text > p { font-size: var(--t-lead); line-height: 1.45; color: var(--ink); }
.quote { display: grid; gap: 8px; padding: 22px 0 0; }
.quote p { font-family: var(--display); font-style: italic; font-size: var(--t-lead); line-height: 1.25; }
.quote footer { font-size: var(--t-small); color: var(--muted); }
.figures-quote footer { font-size: var(--t-small); color: var(--ink-soft); }

/* ---------- Ablauf: Lesespalte mit Belegen ---------- */
.runin { padding: var(--gap) var(--m) 0; display: grid; justify-items: start; }
.runin > h2, .runin > .step { margin-left: clamp(0px, 28vw, 420px); width: min(580px, 100%); }
.runin > .heart { margin-left: clamp(0px, 28vw, 420px); }
.runin > h2 { margin-bottom: 48px; }
.step { display: grid; gap: 20px; margin-bottom: 72px; }
.step p { color: var(--ink-soft); line-height: 1.6; }
.step strong { color: var(--ink); }
.evidence-photo { aspect-ratio: 16 / 9; overflow: hidden; }
.evidence-photo img { width: 100%; height: 100%; object-fit: cover; }

/* App-Fragmente: Regeln der App (Ränder, Radien) gelten hier */
[data-ui] { font-family: var(--body); }
.ui-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 14px; }
.ui-match { display: flex; gap: 16px; align-items: center; }
.ui-pct { font-family: var(--display); font-size: 56px; line-height: 1; color: var(--ink); font-variant-numeric: lining-nums; }
.ui-pct small { font-size: 28px; color: var(--gold-text); }
.ui-match-text { font-size: var(--t-small); color: var(--ink-soft); line-height: 1.4; }
.ui-chips, .ph-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ui-chips span, .ph-chips span { font-size: 14px; padding: 5px 12px; border-radius: 999px; background: var(--gold-soft); border: 1px solid #d9bb86; color: var(--ink); }
.ui-title { font-family: var(--display); font-size: 22px; }
.ui-tiles, .ph-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ui-tiles div, .ph-tiles div { background: var(--soft); border-radius: 14px; padding: 12px; display: grid; gap: 2px; }
.ui-tiles b, .ph-tiles b { font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.ui-tiles span, .ph-tiles span { font-size: 13px; color: var(--muted); }
.ui-source { font-size: 13px; color: var(--muted); }

/* ---------- Ausprobieren: festes Handy, Steuerung rechts ---------- */
.live { display: grid; grid-template-columns: 1fr 1fr; margin-top: var(--gap); }
.live-stage { position: sticky; top: 0; height: 100svh; background: var(--field); display: grid; place-items: center; }
.live-col { padding: 72px var(--m) 30vh clamp(32px, 5vw, 80px); max-width: calc(44ch + 160px); }
.live-col h2 { margin-bottom: 20px; }
.live-intro { font-size: var(--t-lead); line-height: 1.45; margin-bottom: 18vh; max-width: 30ch; }
.block { min-height: 34vh; display: grid; align-content: start; gap: 16px; }
.block-q { font-family: var(--display); font-size: var(--t-lead); line-height: 1.15; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button {
  font: 600 var(--t-small)/1 var(--body); color: var(--ink); background: var(--surface); border: 0; padding: 14px 18px; min-height: 48px; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out);
}
.seg button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .seg button:hover { background: var(--gold-soft); } }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--bg); }
input[type="range"] { width: min(360px, 100%); accent-color: var(--ink); height: 32px; }
.range-ends { display: flex; justify-content: space-between; width: min(360px, 100%); font-size: var(--t-small); color: var(--muted); }
.note { font-size: var(--t-small); color: var(--muted); max-width: 40ch; }

.phone { width: min(340px, 78%); aspect-ratio: 9 / 19; background: var(--ink); border-radius: 46px; padding: 12px; }
.phone-screen { height: 100%; background: var(--bg); border-radius: 36px; padding: 26px 18px 18px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; color: var(--ink); }
.ph-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ph-brand { font-family: var(--display); font-size: 24px; }
.ph-brand i { color: var(--gold); }
.ph-profile { font-size: 11px; color: var(--muted); text-align: right; }
.ph-bean { display: flex; gap: 12px; align-items: center; background: var(--surface); border-radius: 16px; padding: 10px; }
.ph-pack { width: 46px; height: 58px; border-radius: 8px; background: var(--soft); border-top: 9px solid var(--gold); display: grid; place-items: center; font-family: var(--display); font-size: 26px; color: var(--gold); }
.ph-bean small { display: block; font-size: 11px; color: var(--muted); }
.ph-bean b { font-family: var(--display); font-weight: 500; font-size: 20px; }
.ph-match { display: flex; gap: 12px; align-items: center; font-size: 12px; line-height: 1.35; color: var(--ink-soft); }
.ph-pct { font-family: var(--display); font-size: 46px; line-height: 1; color: var(--ink); font-variant-numeric: lining-nums; }
.ph-pct small { font-size: 22px; color: var(--gold-text); }
.ph-chips span { font-size: 11px; padding: 4px 9px; }
.ph-roast { display: flex; gap: 8px; align-items: center; font-size: 11px; color: var(--muted); }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--gold); }
.dots i.on { background: var(--gold); }
.ph-start { background: var(--surface); border-radius: 16px; padding: 12px; display: grid; gap: 10px; }
.ph-start-title { font-size: 12px; font-weight: 700; }
.ph-tiles div { padding: 8px; border-radius: 10px; }
.ph-tiles b { font-size: 22px; }
.ph-tiles span { font-size: 10px; }
.ph-open { font-size: 12px; color: var(--ink-soft); line-height: 1.4; }
.ph-button { margin-top: auto; background: var(--ink); color: var(--bg); text-align: center; font-weight: 700; font-size: 14px; padding: 12px; border-radius: 14px; }

/* ---------- Band über die ganze Breite ---------- */
.band { margin-top: var(--gap); padding: 0 var(--m); display: grid; gap: 36px; }
.band-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.band-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.band-line { max-width: none; }

/* ---------- Erkenntnisse ---------- */
.figures { padding: var(--gap) var(--m) 0; display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.figures-list { display: grid; gap: 40px; }
.figures dl { display: grid; gap: 28px; }
.figures dl div { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: baseline; }
.figures dt { font-family: var(--display); font-weight: 600; font-size: var(--t-h); line-height: 1; text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.figures dd { max-width: 40ch; color: var(--ink-soft); }
.figures-quote { background: var(--field); padding: clamp(28px, 3vw, 44px); display: grid; gap: 16px; margin-top: 88px; }
.figures-quote p { font-family: var(--display); font-size: var(--t-lead); line-height: 1.3; }

/* ---------- Reaktionen ---------- */
.heart, .react button {
  justify-self: start; display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px 10px 13px; min-height: 44px;
  background: var(--field); color: var(--ink); border: 0; border-radius: 999px; font: 600 15px/1 var(--body); cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out);
}
.heart:active, .react button:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .heart:hover, .react button:hover { background: var(--gold-soft); } }
.heart svg, .react svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.heart[aria-pressed="true"], .react button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.heart[aria-pressed="true"] svg, .react button[aria-pressed="true"] svg { fill: currentColor; }
.count { font-variant-numeric: tabular-nums; opacity: .75; }

/* ---------- Schluss ---------- */
.cta { padding: 30svh var(--m) 20svh; display: grid; gap: 22px; justify-items: start; margin-left: clamp(0px, 28vw, 420px); max-width: calc(580px + var(--m) * 2); }
.cta-line { font-size: var(--t-lead); line-height: 1.45; max-width: 34ch; }
.react { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.foot { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: baseline; padding: 0 var(--m) 30px; font-size: var(--t-small); color: var(--muted); }
.foot-links { display: flex; gap: 24px; }
.foot-links a { color: var(--ink); text-decoration: none; }
.foot-right { text-align: right; }

.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 50;
  padding: 12px 18px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 15px;
  transform: translate(-50%, 160%); opacity: 0; transition: transform 260ms var(--ease-out), opacity 200ms ease;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Handy ---------- */
@media (max-width: 860px) {
  :root { --t-body: 17px; --m: 20px; }
  .hero { grid-template-columns: 1fr; grid-template-rows: auto auto auto; min-height: 0; padding-bottom: 32px; }
  .hero-photo { grid-row: 1; margin: 20px 20px 0; height: 58svh; position: relative; top: 0; }
  .nav { position: absolute; top: 32px; right: 32px; padding: 0; z-index: 3; }
  .nav-action { margin-top: 0; }
  .nav a:not(.nav-action) { display: none; }
  .wordmark { position: relative; right: auto; bottom: auto; grid-row: 2; margin: -4.2vw 0 0 16px; font-size: 25vw; }
  .hero-line { grid-column: 1; grid-row: 3; justify-self: start; padding: 22px 20px 0; font-size: 24px; max-width: 22ch; }
  .plate { grid-template-columns: 1fr; padding-top: 96px; min-height: 0; gap: 28px; }
  .plate-text > p { font-size: 20px; }
  .runin > h2, .runin > .step, .runin > .heart { margin-left: 0; }
  .step { margin-bottom: 56px; }
  .live { grid-template-columns: 1fr; }
  .live-stage { height: 58svh; z-index: 2; overflow: hidden; }
  .phone { width: calc(54svh * 9 / 19); max-width: 78vw; height: auto; }
  .live-col { padding: 32px 20px 12vh; position: relative; z-index: 1; }
  .live-intro { margin-bottom: 40px; font-size: 20px; }
  .block { min-height: 0; margin-bottom: 44px; }
  .band-photos { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .figures { grid-template-columns: 1fr; }
  .figures dl div { grid-template-columns: 92px 1fr; gap: 16px; }
  .figures dt { font-size: 30px; }
  .figures-quote { margin-top: 0; }
  .cta { margin-left: 0; padding: 20svh 20px 14svh; }
  .foot { grid-template-columns: 1fr; gap: 8px; }
  .foot-right { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .toast { transition: opacity 200ms ease; transform: translate(-50%, 0); }
}
