/*
 * emojirate.de – Landingpage
 *
 * Gleiche Bausteine wie die Gäste-App (feedback.emojirate.de/assets/app.css): Instrument Sans,
 * Emoji-Gelb als Fläche, weißes Sheet mit 28px-Ecken darüber, die fünf Gesichter als Tasten.
 * Die Seite selbst ist so gebaut wie die App: oben die gelbe Fläche mit der Botschaft, rechts
 * (bzw. darunter) das Sheet mit einer antippbaren Bewertung. Unten läuft das Sheet wieder in Gelb aus.
 */

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin-wght.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --sun: #FFC83D;
  --sun-soft: #FFF5D6;
  --paper: #FFFFFF;
  --ink: #1C1F26;
  --ink-on-sun: #4B4632;   /* Nebentext auf Gelb, Kontrast 6.4:1 */
  --muted: #5B6170;
  --line: #E2E4EA;
  --field: #F5F6F8;
  --ok: #22B573;
  --danger: #C2261A;

  --mood-low: #FFE7E0;
  --mood-mid: #FFF3D1;
  --mood-high: #DFF6E8;
  --mood-low-ink: #B3361C;
  --mood-mid-ink: #8A5A00;
  --mood-high-ink: #157347;

  --r-sheet: 28px;
  --r-field: 14px;
  --gutter: max(1.25rem, env(safe-area-inset-left), env(safe-area-inset-right));
  --wrap: 74rem;
  /* Linke Kante des Inhalts bei voller Breite: Rand oder zentrierte Spalte */
  --edge: max(var(--gutter), (100% - var(--wrap)) / 2);

  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.no-js .js-only, .js .no-js-only { display: none !important; }

html { background: var(--sun); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  overflow-x: clip;
  font: 400 1.0625rem/1.55 "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--sun);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
button, input { font: inherit; color: inherit; }
button { touch-action: manipulation; cursor: pointer; }
section[id] { scroll-margin-top: 1.5rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.face-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.625rem 1rem;
  font-weight: 650;
  color: #fff;
  background: var(--ink);
  border-radius: var(--r-field);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.5rem 1.5rem;
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 0;
  border-radius: var(--r-field);
  transition: transform 90ms ease-out, background-color 120ms, box-shadow 120ms;
}
.button:active { transform: translateY(1px) scale(0.99); }
/* Wie die Primärtaste der App: dunklere Kante unten, damit sie sich drückbar anfühlt */
.button-ink { color: #fff; background: var(--ink); box-shadow: inset 0 -3px 0 rgb(0 0 0 / 0.55); }
.button-line { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1.5px rgb(28 31 38 / 0.3); }
.button-small { min-height: 2.75rem; padding: 0.375rem 1rem; font-size: 0.9375rem; }
.button-quiet { color: var(--muted); background: transparent; font-weight: 600; padding-inline: 0.75rem; }
.button[aria-busy="true"] { cursor: progress; opacity: 0.75; }
@media (hover: hover) and (pointer: fine) {
  .button-ink:hover { background: #343844; }
  .button-line:hover { background: rgb(28 31 38 / 0.07); box-shadow: inset 0 0 0 1.5px var(--ink); }
  .button-quiet:hover { color: var(--ink); }
}

/* ---------- Gelbe Fläche: Navigation + Hero ---------- */

.stage { position: relative; color: var(--ink); background: var(--sun); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: calc(env(safe-area-inset-top) + 1rem) var(--edge) 0;
}
.nav > .button { margin-left: auto; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-size: 1.3125rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  text-decoration: none;
}
.brand .brand-face { width: 1.875rem; flex: none; }
.brand-face .face-edge { fill: #C77406; }

.nav-login { margin-left: auto; padding-block: 0.5rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav-login:hover { text-decoration: underline; }
.nav > .nav-login + .button { margin-left: 0; white-space: nowrap; }
@media (max-width: 39.99rem) {
  .nav { gap: 1rem; }
  .dash-shot { grid-template-columns: minmax(0, 1fr); }
  .dash-side { display: none; }
}
@media (max-width: 25.99rem) {
  .nav .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.nav-links { display: none; gap: 1.75rem; font-weight: 600; }
.nav-links a { text-decoration: none; padding-block: 0.5rem; }
.nav-links a:hover { text-decoration: underline; }

.hero-copy { padding: clamp(2.25rem, 7vw, 3.5rem) var(--gutter) 2.25rem; }

.hero h1 {
  max-width: 15ch;
  font-size: clamp(2.35rem, 1.45rem + 4.4vw, 3.4rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.038em;
  text-wrap: balance;
  hyphens: manual;
}
.hero-lede { max-width: 40ch; margin-top: 1.25rem; font-size: 1.125rem; line-height: 1.5; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ---------- Demo: Mini-Bewertungsseite im Sheet ---------- */

.demo {
  padding: 1.75rem var(--gutter) var(--r-sheet);
  background: var(--paper);
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
}
.demo-hint { margin-bottom: 1.5rem; font-size: 0.9375rem; color: var(--muted); }

.guest-host { display: flex; align-items: center; gap: 0.75rem; }
.guest-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--sun);
  border-radius: 12px;
}
.guest-name { font-weight: 650; line-height: 1.2; }
.guest-place { font-size: 0.875rem; line-height: 1.3; color: var(--muted); }

.guest-q {
  margin-top: 1.5rem;
  font-size: clamp(1.75rem, 1.35rem + 1.8vw, 2.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.guest-lede { margin-top: 0.5rem; color: var(--muted); }

/* Gesichter-Tasten – wie in der App */
.face { display: block; width: 100%; height: auto; overflow: visible; }
.face-top { transition: transform 90ms ease-out; }

.keys { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.25rem; margin-top: 1.5rem; }

.key {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0 0.375rem;
  background: none;
  border: 0;
  border-radius: 18px;
  transition: opacity 200ms, filter 200ms;
  animation: key-in 560ms cubic-bezier(.3, 1.5, .5, 1) both;
  animation-delay: calc(var(--i, 0) * 70ms + 250ms);
}
.key .face {
  max-width: 4.75rem;
  transition: transform 220ms cubic-bezier(.3, 1.6, .5, 1);
  filter: drop-shadow(0 6px 8px rgb(217 130 11 / 0.18));
}
.key-label { font-size: 0.875rem; font-weight: 600; line-height: 1.2; color: var(--muted); transition: color 160ms; }
.key:active .face-top { transform: translateY(3px); }
@media (hover: hover) and (pointer: fine) {
  .key:hover .face { transform: rotate(-7deg) scale(1.08); }
  .key:hover .key-label { color: var(--ink); }
}
.key[aria-pressed="true"] .face { transform: scale(1.12); }
.key[aria-pressed="true"] .key-label { color: var(--ink); }
.keys:has([aria-pressed="true"]) .key:not([aria-pressed="true"]) { opacity: 0.5; filter: saturate(0.35); }
.key.is-picked .face { animation: pick 420ms cubic-bezier(.3, 1.7, .5, 1); }

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.375rem 1.125rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.trust li { display: inline-flex; align-items: center; gap: 0.375rem; }
.trust li::before, .checks li::before {
  content: "";
  flex: none;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* Ergebnis nach dem Tippen: Reaktion für den Gast + Mail für das Geschäft */
.outcome { margin-top: 1.75rem; }

.reaction {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1rem 0.75rem 0.75rem;
  background: var(--mood-mid);
  border-radius: 20px;
}
[data-mood="low"] .reaction { background: var(--mood-low); }
[data-mood="high"] .reaction { background: var(--mood-high); }
.reaction-face { flex: none; width: 3rem; }
.reaction-title { font-weight: 650; line-height: 1.25; color: var(--mood-mid-ink); }
[data-mood="low"] .reaction-title { color: var(--mood-low-ink); }
[data-mood="high"] .reaction-title { color: var(--mood-high-ink); }
.reaction-next { font-size: 0.9375rem; line-height: 1.35; }

.mail {
  margin-top: 0.75rem;
  padding: 0.875rem 1.125rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 14px 30px -18px rgb(28 31 38 / 0.45);
}
.mail-head { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.8125rem; color: var(--muted); }
.mail-from { display: inline-flex; align-items: center; gap: 0.375rem; font-weight: 650; color: var(--ink); }
.mail-from::before { content: ""; width: 0.5rem; height: 0.5rem; background: #2F7BF6; border-radius: 50%; }
.mail-time { font-variant-numeric: tabular-nums; }
.mail-subject { margin-top: 0.25rem; font-weight: 650; line-height: 1.3; }
.mail-body { font-size: 0.9375rem; line-height: 1.4; color: var(--muted); }

/* Vorschau vor dem ersten Tipp: dieselben Karten, nur gestrichelt und ohne Farbe */
.outcome-idle .reaction { background: var(--field); }
.outcome-idle .reaction-title { color: var(--ink); }
.outcome-idle .reaction-next { color: var(--muted); }
.outcome-idle .mail { background: transparent; border-style: dashed; border-color: #C9CDD6; box-shadow: none; }
.outcome-idle .mail-from::before { background: #C9CDD6; }
.idle-face {
  display: grid;
  place-items: center;
  height: 3rem;
  color: var(--muted);
  border: 2px dashed #C9CDD6;
  border-radius: 50%;
}
.idle-face svg { width: 1.25rem; height: 1.25rem; animation: nudge 1.6s ease-in-out 1.2s 3; }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateY(-4px); } }

.outcome-filled.is-entering .reaction { animation: rise 320ms ease-out both; }
.outcome-filled.is-entering .mail { animation: drop-in 520ms cubic-bezier(.2, .9, .3, 1.25) 260ms both; }

/* ---------- Weißes Sheet ---------- */

.sheet {
  position: relative;
  z-index: 1;
  margin-top: calc(var(--r-sheet) * -1);
  margin-bottom: calc(var(--r-sheet) * -1);
  background: var(--paper);
  border-radius: var(--r-sheet);
}

.section { padding: clamp(3.5rem, 8vw, 6.5rem) var(--edge); }
.section + .section { padding-top: 0; }

.section-head { max-width: 42rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.section-lede { max-width: 46ch; margin-top: 0.875rem; font-size: 1.125rem; color: var(--muted); text-wrap: pretty; }
.section h3 { font-size: 1.1875rem; font-weight: 650; line-height: 1.25; letter-spacing: -0.01em; }

/* Ablauf: echte Reihenfolge, daher nummeriert und mit Verbindungslinie */
.track { display: grid; gap: 2.25rem; counter-reset: step; }
.track-step { position: relative; padding-left: 3.5rem; counter-increment: step; }
.track-step::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: var(--sun);
  border-radius: 50%;
}
.track-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2.75rem;
  bottom: -1.75rem;
  left: calc(1.125rem - 1px);
  border-left: 2px dashed var(--line);
}
.track-art { display: block; width: 4.5rem; height: 4.5rem; margin-bottom: 0.875rem; }
.track-face { padding: 0.5rem; }
.track-face .face { filter: drop-shadow(0 6px 8px rgb(217 130 11 / 0.18)); }
.track-step p { margin-top: 0.375rem; color: var(--muted); max-width: 34ch; }

/* Zwei Zielgruppen, zwei Tönungen */
.split { display: grid; gap: 1rem; }
.split-col { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 24px; background: var(--field); }
.split-col:first-of-type { background: var(--sun-soft); }
.section .split-col h3 { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); font-weight: 700; letter-spacing: -0.025em; }
.checks { display: grid; gap: 0.875rem; margin-top: 1.25rem; }
.checks li { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; line-height: 1.45; text-wrap: pretty; }
.checks li::before { width: 1.25rem; height: 1.25rem; margin-top: 0.1rem; }

/* Dashboard (Kunden-App): Text + stilisierte Vorschau, nur dekorativ */
.dash { display: grid; gap: 2.5rem; align-items: center; }
.dash-list { display: grid; gap: 1.25rem; margin-top: 1.75rem; }
.dash-list dt { font-weight: 650; }
.dash-list dd { margin-top: 0.25rem; color: var(--muted); max-width: 52ch; text-wrap: pretty; }
.dash-shot {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  overflow: hidden;
  font-size: 0.75rem;
  background: #F3F4F6;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 48px -24px rgb(28 31 38 / 0.25);
}
.dash-side { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.875rem 0.625rem; background: #fff; border-right: 1px solid var(--line); }
.dash-brand { display: flex; align-items: center; gap: 0.375rem; margin-bottom: 0.75rem; font-size: 0.875rem; font-weight: 700; }
.dash-brand .face { width: 1.125rem; }
.dash-nav { padding: 0.375rem 0.5rem; color: var(--muted); font-weight: 550; border-radius: 6px; }
.dash-nav.is-on { color: var(--ink); background: var(--sun-soft); box-shadow: inset 2px 0 0 var(--sun); }
.dash-main { display: grid; gap: 0.625rem; padding: 0.875rem; min-width: 0; }
.dash-title { font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.dash-kpis div, .dash-chart, .dash-rows { padding: 0.5rem 0.625rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.dash-kpis span { display: block; color: var(--muted); }
.dash-kpis b { display: flex; align-items: center; gap: 0.25rem; font-size: 1.25rem; letter-spacing: -0.03em; }
.dash-avg .face { width: 1.125rem; }
.dash-chart { display: flex; align-items: flex-end; gap: 4px; height: 6.5rem; }
.dash-chart i { flex: 1; background: #2A78D6; border-radius: 3px 3px 0 0; }
.dash-rows { display: grid; gap: 0.5rem; }
.dash-rows p { display: grid; grid-template-columns: minmax(0, 1fr) 45%; align-items: center; gap: 0.5rem; }
.dash-dist { display: flex; gap: 2px; height: 0.5rem; }
.dash-dist i { border-radius: 2px; }

/* Markenfarben */
.colors { display: grid; gap: 2.5rem; align-items: center; }
.swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.75rem 0 0; padding: 0; border: 0; min-width: 0; }
.swatches legend { width: 100%; margin-bottom: 0.75rem; padding: 0; font-weight: 600; }
.swatch { position: relative; display: inline-flex; }
.swatch input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.swatch span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1rem 0 0.75rem;
  font-weight: 550;
  background: var(--field);
  border-radius: 999px;
  transition: background-color 140ms, color 140ms;
}
.swatch i { width: 1.125rem; height: 1.125rem; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12); }
.swatch input:checked + span { color: #fff; background: var(--ink); }
.swatch input:checked + span i { box-shadow: 0 0 0 2px #fff; }
.swatch input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .swatch input:not(:checked):hover + span { background: var(--line); }
}

.mini {
  width: min(100%, 22rem);
  justify-self: center;
  overflow: hidden;
  background: var(--paper);
  border-radius: var(--r-sheet);
  box-shadow: 0 0 0 1px var(--line), 0 40px 70px -40px rgb(28 31 38 / 0.45);
}
.mini-head {
  padding: 1.25rem 1.25rem 2.75rem;
  color: var(--on);
  background: var(--b);
  transition: background-color 300ms ease, color 300ms ease;
}
.mini-host { display: flex; align-items: center; gap: 0.625rem; font-size: 0.875rem; font-weight: 650; }
.mini-logo {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  border-radius: 10px;
}
.mini-q { max-width: 12ch; margin-top: 1.75rem; font-size: 1.625rem; font-weight: 700; line-height: 1; letter-spacing: -0.035em; text-wrap: balance; }
.mini-sheet { margin-top: -1.5rem; padding: 1.5rem 1rem 1.5rem; background: var(--paper); border-radius: 22px 22px 0 0; }
.mini-keys { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.375rem; }
.mini-keys .face { filter: drop-shadow(0 4px 5px rgb(217 130 11 / 0.18)); }
.mini-bar { width: 62%; height: 0.5rem; margin: 1.25rem auto 0; background: var(--field); border-radius: 999px; }

/* Einsatzorte: Liste mit Trennlinien, Ort links, Art rechts */
.place-list { border-top: 1px solid var(--line); }
.place { display: grid; gap: 0.25rem; padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.place dt { font-size: 1.1875rem; font-weight: 650; letter-spacing: -0.01em; }
.place dd { color: var(--muted); max-width: 52ch; }
.place strong { font-weight: 650; color: var(--ink); }

/* Fragen */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding-block: 1.125rem;
  font-size: 1.125rem;
  font-weight: 650;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 2rem;
  height: 2rem;
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4v8M4 8h8' fill='none' stroke='%231C1F26' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 1rem no-repeat;
  border-radius: 50%;
  transition: transform 200ms ease, background-color 200ms;
}
.faq-item[open] summary::after { transform: rotate(45deg); background-color: var(--sun); }
.faq-item summary:focus-visible { outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .faq-item summary:hover::after { background-color: var(--line); }
  .faq-item[open] summary:hover::after { background-color: var(--sun); }
}
.faq-item p { max-width: 62ch; padding-bottom: 1.375rem; color: var(--muted); text-wrap: pretty; }

/* ---------- Abschluss auf Gelb ---------- */

.closing {
  padding: calc(var(--r-sheet) + clamp(3.5rem, 8vw, 6rem)) var(--gutter) clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}
.closing-faces { display: flex; justify-content: center; gap: 0.375rem; margin-bottom: 1.75rem; }
.closing-faces .face { width: 3rem; filter: drop-shadow(0 6px 8px rgb(140 80 0 / 0.2)); }
.closing-faces .face-edge { fill: #C77406; }
.closing h2 {
  max-width: 17ch;
  margin-inline: auto;
  font-size: clamp(2.1rem, 1.35rem + 3.2vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.038em;
  text-wrap: balance;
}
.closing-lede { max-width: 44ch; margin: 1.125rem auto 0; font-size: 1.125rem; text-wrap: pretty; }

/* Einstieg in den Funnel: Schritt 1 schon hier, jede Branche ist ein Link nach /demo */
.closing-start { margin-top: 2rem; }
.closing-q { font-weight: 650; }
.chips-center { justify-content: center; max-width: 44rem; margin: 0.875rem auto 0; }
.chip-link {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0 1.25rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--paper);
  border-radius: 999px;
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / 0.1);
  transition: background-color 140ms, color 140ms;
}
@media (hover: hover) and (pointer: fine) {
  .chip-link:hover { color: #fff; background: var(--ink); }
}

/* ---------- Fuß ---------- */

.foot { padding: 0 var(--edge) calc(1.75rem + env(safe-area-inset-bottom)); }
.foot-inner {
  display: grid;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgb(28 31 38 / 0.14);
}
.foot-brand { display: grid; gap: 0.5rem; align-content: start; max-width: 30rem; }
.foot-brand .brand { font-size: 1.0625rem; }
.foot-brand .brand .brand-face { width: 1.5rem; }
.foot-brand p { font-size: 0.875rem; color: var(--ink-on-sun); }
.foot-head { margin-bottom: 0.5rem; font-size: 0.875rem; font-weight: 650; }
.foot-col ul { display: grid; gap: 0.125rem; font-size: 0.9375rem; }
.foot-col a { display: inline-block; padding-block: 0.3rem; text-decoration: none; }
.foot-col a:hover { text-decoration: underline; }


/* ---------- Brotkrumen ---------- */

.crumbs { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 1rem; font-size: 0.875rem; font-weight: 550; color: var(--ink-on-sun); }
.crumbs a { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink-on-sun); }

/* ---------- Startseite: Branchen ---------- */

.industry-list { display: grid; border-top: 1px solid var(--line); }
.industry-link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.125rem 0.875rem;
  align-items: center;
  padding-block: 1.125rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.industry-dot { grid-row: span 2; width: 1.75rem; height: 1.75rem; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.1); }
.industry-name { font-size: 1.1875rem; font-weight: 650; letter-spacing: -0.01em; }
.industry-q { color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .industry-link:hover .industry-name { text-decoration: underline; text-underline-offset: 0.18em; }
}

/* ---------- Branchenseiten ---------- */

.branch-hero { display: grid; gap: 2rem; padding: clamp(2rem, 6vw, 3.5rem) var(--edge) calc(var(--r-sheet) + clamp(2.5rem, 6vw, 4rem)); }
.branch-copy h1 {
  max-width: 18ch;
  font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.036em;
  text-wrap: balance;
}
.branch-copy .hero-lede { max-width: 44ch; }
.branch-figure { display: grid; justify-items: center; gap: 0.875rem; margin: 0; }
.branch-figure figcaption { max-width: 24rem; font-size: 0.875rem; text-align: center; color: var(--ink-on-sun); }

.followup-list { display: grid; gap: 0.75rem; }
.followup {
  display: grid;
  gap: 0.625rem;
  padding: 1rem 1.25rem;
  background: var(--field);
  border-radius: 20px;
}
.followup-faces { display: grid; grid-template-columns: repeat(5, 1.5rem); gap: 0.125rem; }
.followup-faces .is-off { opacity: 0.25; filter: grayscale(1); }
.followup-text { display: grid; gap: 0.125rem; min-width: 0; }
.followup-q { font-weight: 650; line-height: 1.35; }
.followup-meta { font-size: 0.875rem; color: var(--muted); }

.why-inner { max-width: 44rem; padding: clamp(1.75rem, 4vw, 2.75rem); background: var(--sun-soft); border-radius: 24px; }
.why-inner p { margin-top: 0.875rem; text-wrap: pretty; }

.related-head { margin-bottom: 1rem; }
.section .related-head { font-size: 1.1875rem; font-weight: 650; letter-spacing: -0.01em; }
.related-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.related-list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1.125rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--field);
  border-radius: 999px;
}
@media (hover: hover) and (pointer: fine) {
  .related-list a:hover { background: var(--line); }
}

.closing-cta { margin-top: 2rem; }

/* ---------- Ratgeber ---------- */

.page-meta { margin-top: 1.25rem; font-size: 0.875rem; color: var(--ink-on-sun); }
.toc { margin-bottom: 2.5rem; padding: 1.25rem 1.5rem; background: var(--field); border-radius: 20px; }
.toc-head { margin: 0 0 0.5rem; font-weight: 650; }
.prose .toc ol { margin: 0; padding-left: 1.25rem; list-style: decimal; }
.prose .toc li { margin: 0.25rem 0 0; }
.article h2 { scroll-margin-top: 1.5rem; font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); font-weight: 700; letter-spacing: -0.025em; }
.article > ol { padding-left: 1.25rem; list-style: decimal; }
.table-wrap { margin: 1.25rem 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.table-wrap:focus-visible { outline-offset: 2px; }
.table-wrap table { width: 100%; min-width: 40rem; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.4; }
.table-wrap th, .table-wrap td { padding: 0.75rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap thead th { font-size: 0.8125rem; font-weight: 650; color: var(--muted); background: var(--field); }
.table-wrap tbody th { font-weight: 650; color: var(--ink); }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }
.table-wrap tbody tr:last-child { background: var(--sun-soft); }
.prose .article-cta { margin-top: 2.5rem; padding: 1.5rem; background: var(--sun-soft); border-radius: 20px; }
.prose .article-cta p + p { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1rem; }

/* ---------- Unterseiten (Datenschutz, 404) ---------- */

.page-head { padding: clamp(2.25rem, 7vw, 4rem) var(--edge) calc(var(--r-sheet) + clamp(2rem, 5vw, 3.5rem)); }
.page-head h1 {
  max-width: 18ch;
  font-size: clamp(2.35rem, 1.45rem + 4.4vw, 3.6rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.038em;
  text-wrap: balance;
}
.page-head p { max-width: 46ch; margin-top: 1rem; font-size: 1.125rem; }

.prose { padding: clamp(2.5rem, 6vw, 4.5rem) var(--edge) calc(var(--r-sheet) + clamp(2.5rem, 6vw, 4.5rem)); }
.prose > * { max-width: 44rem; }
.prose h2 { margin: 2.25rem 0 0.5rem; font-size: 1.3125rem; font-weight: 650; letter-spacing: -0.015em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #3A3F4B; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 0.75rem; }
.prose ul { padding-left: 1.15rem; list-style: disc; }
.prose li + li { margin-top: 0.375rem; }
.prose a:not(.button) { font-weight: 600; color: var(--ink); }
.prose .note { margin-top: 2.5rem; font-size: 0.875rem; color: var(--muted); }

.closing-spacer { height: calc(var(--r-sheet) + 1rem); }

.lost { display: grid; justify-items: start; gap: 1.25rem; }
.lost .face { width: 6rem; }


/* ---------- Funnel /demo: Aufbau wie die Gäste-App (Gelb links, Sheet rechts) ---------- */

.funnel-intro { padding-bottom: calc(var(--r-sheet) + 1.5rem); }
.funnel-intro .nav { padding-inline: var(--gutter); }
.funnel-copy { padding: clamp(1.75rem, 6vw, 3rem) var(--gutter) 0; }
.funnel-copy h1 {
  font-size: clamp(2.35rem, 1.45rem + 4.4vw, 3.4rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.038em;
}
.funnel-copy .hero-lede { max-width: 36ch; }
.funnel-trust { display: grid; gap: 0.5rem; margin-top: 1.5rem; font-weight: 550; }
.funnel-trust li { display: flex; align-items: center; gap: 0.625rem; }
.funnel-trust li::before {
  content: "";
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%23FFC83D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.funnel-sheet {
  position: relative;
  z-index: 1;
  margin: calc(var(--r-sheet) * -1) 0 calc(var(--r-sheet) * -1);
  padding: 2rem var(--gutter) calc(var(--r-sheet) + 2.5rem);
  background: var(--paper);
  border-radius: var(--r-sheet);
}
.is-funnel .foot { padding-top: calc(var(--r-sheet) + 1rem); }

.funnel { width: 100%; max-width: 36rem; scroll-margin-top: 1rem; }

.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.375rem; margin-bottom: 1.75rem; }
.progress span { height: 0.375rem; background: var(--line); border-radius: 999px; transition: background-color 250ms; }
.progress .is-done { background: var(--ink); }
.progress .is-current { background: var(--sun); }

.form-error {
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--mood-low-ink);
  background: var(--mood-low);
  border-radius: var(--r-field);
}

.fstep { margin: 0 0 3rem; padding: 0; border: 0; min-width: 0; }
.funnel.is-stepped .fstep { display: none; margin-bottom: 0; }
.funnel.is-stepped .fstep.is-active { display: block; animation: rise 280ms ease-out; }
.fstep legend { display: grid; gap: 0.375rem; margin-bottom: 1.25rem; padding: 0; }
.fstep-count { font-size: 0.9375rem; font-weight: 600; color: var(--muted); }
.fstep-q {
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.125rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.fstep-q:focus { outline: none; }
.fstep-hint { margin: -0.5rem 0 1rem; color: var(--muted); }

/* Auswahl-Chips – wie in der App */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.25rem;
  font-weight: 550;
  background: var(--field);
  border-radius: 999px;
  transition: background-color 140ms, color 140ms, transform 140ms cubic-bezier(.3, 1.6, .5, 1);
}
.chip input:checked + span { background: var(--sun); transform: scale(1.03); }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .chip input:not(:checked):hover + span { background: color-mix(in oklab, var(--sun) 18%, var(--field)); }
}
/* Mehrfachauswahl bekommt ein Kästchen, damit klar ist, dass mehrere gehen */
.chip-check span { padding-left: 0.875rem; }
.chip-check span::before {
  content: "";
  width: 1.125rem;
  height: 1.125rem;
  background: var(--paper);
  border-radius: 5px;
  box-shadow: inset 0 0 0 1.5px #A3A9B5;
}
.chip-check input:checked + span::before {
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.5 2.5L12 5.2' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  box-shadow: none;
}

.fstep-actions { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-top: 2rem; }
.fstep-actions .button-ink { margin-left: auto; min-width: 9rem; }
.funnel:not(.is-stepped) .fstep-actions .js-only { display: none; }

.fields { display: grid; gap: 1.25rem; }
.field { margin: 0; min-width: 0; }
/* Abstand nur zwischen den Blöcken eines Schritts – im Raster (.fields) regelt das gap */
.fstep > .field + .field, .fstep > .fields + .field { margin-top: 1.5rem; }
.fields { align-items: start; }
fieldset.field { padding: 0; border: 0; }
.field-label { display: block; margin-bottom: 0.5rem; padding: 0; font-weight: 600; line-height: 1.3; }
.optional { margin-left: 0.25rem; font-size: 0.875rem; font-weight: 400; color: var(--muted); }

.funnel input[type="text"], .funnel input[type="email"], .funnel input[type="tel"], .funnel textarea {
  display: block;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.8rem 1rem;
  font-size: 1.0625rem; /* ≥ 16px: kein Auto-Zoom auf iOS */
  line-height: 1.4;
  background: var(--field);
  border: 1.5px solid transparent;
  border-radius: var(--r-field);
  transition: border-color 120ms, background-color 120ms;
}
.funnel textarea { min-height: 6rem; resize: vertical; }
.funnel input::placeholder { color: #868C98; }
.funnel input:focus-visible, .funnel textarea:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--sun) 55%, transparent);
  outline-offset: 0;
  background: var(--paper);
  border-color: #B07A00;
}
.funnel input[aria-invalid="true"], .funnel textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-error { margin-top: 0.5rem; font-size: 0.9375rem; line-height: 1.35; color: var(--danger); }

.check { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; font-size: 0.9375rem; line-height: 1.45; cursor: pointer; }
.check input { width: 1.375rem; height: 1.375rem; margin: 0.05rem 0 0; accent-color: var(--ink); }
.check a { font-weight: 600; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Danke */
.thanks-stage { position: relative; width: 6.5rem; margin-bottom: 2rem; }
.thanks-stage > .face { filter: drop-shadow(0 10px 14px rgb(217 130 11 / 0.22)); animation: pop 600ms cubic-bezier(.3, 1.6, .5, 1) both; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 13px;
  margin: -6px 0 0 -4px;
  background: var(--c);
  border-radius: 2px;
  opacity: 0;
  animation: burst 1100ms cubic-bezier(.15, .7, .3, 1) 150ms both;
}
.next { display: grid; gap: 1rem; margin: 0.75rem 0 2rem; padding: 0; list-style: none; counter-reset: next; }
.prose .next li { position: relative; margin: 0; padding-left: 2.75rem; counter-increment: next; }
.next li::before {
  content: counter(next);
  position: absolute;
  top: -0.1rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.875rem;
  height: 1.875rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--sun);
  border-radius: 50%;
}
.next strong { color: var(--ink); }

/* Anfragen-Übersicht */
.lead { padding-block: 1.75rem; border-top: 1px solid var(--line); }
.lead:first-child { border-top: 0; padding-top: 0; }
.prose .lead-head h2 { margin: 0; font-size: 1.375rem; }
.lead-meta { font-size: 0.875rem; color: var(--muted); }
.lead-warn { color: var(--danger); }
.lead-data { display: grid; gap: 0.5rem 2rem; margin-top: 1rem; }
.lead-data div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; }
.lead-data dt { font-size: 0.875rem; color: var(--muted); }
.lead-data dd { min-width: 0; overflow-wrap: anywhere; }
.lead-message { margin-top: 1rem; padding: 0.875rem 1rem; background: var(--field); border-radius: var(--r-field); white-space: normal; }

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

@keyframes key-in { from { opacity: 0; transform: translateY(14px) scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes pick { 0% { transform: scale(0.88); } 55% { transform: scale(1.22) rotate(-6deg); } 100% { transform: scale(1.12); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(0.5); } 100% { transform: none; } }
@keyframes burst {
  0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(0.4); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) rotate(220deg) scale(1); }
}
@keyframes drop-in { from { opacity: 0; transform: translateY(-14px) scale(0.96); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .confetti { display: none; }
}

/* ---------- Mittel ---------- */

@media (min-width: 40rem) {
  .track { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; row-gap: 3rem; }
  .track-step:not(:last-child)::after { display: none; }
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
  .industry-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
  .followup { grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center; }
  .lead-data { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .place { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 2rem; align-items: baseline; }
}

/* ---------- Groß: Botschaft links auf Gelb, Bewertung rechts im Sheet – wie die App ---------- */

@media (min-width: 60rem) {
  .nav-links { display: flex; margin-left: auto; }
  .nav-links + .button { margin-left: 0.5rem; }

  .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); margin-top: 1rem; }
  .hero-copy {
    align-self: center;
    padding: 3rem clamp(2rem, 4vw, 4rem) calc(var(--r-sheet) + 4rem) max(var(--gutter), (100vw - var(--wrap)) / 2);
  }
  .hero h1 { font-size: clamp(3.1rem, 1.2rem + 3.3vw, 4.6rem); }
  .hero-lede { font-size: 1.1875rem; }

  .demo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: min(46rem, calc(100dvh - 5rem));
    padding: 3rem max(var(--gutter), (100vw - var(--wrap)) / 2 + 1rem) calc(var(--r-sheet) + 3rem) clamp(2.5rem, 5vw, 5rem);
    border-radius: var(--r-sheet) 0 0 0;
  }
  .demo > * { width: 100%; max-width: 32rem; }
  .outcome { min-height: 12.5rem; }
  .key .face { max-width: 5.5rem; }

  /* Linke obere Ecke rundet über Gelb, rechts schließt das Sheet nahtlos an die Demo an */
  .sheet { border-radius: var(--r-sheet) 0 var(--r-sheet) var(--r-sheet); }

  .track { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 2rem; }
  .track-step { padding: 3.5rem 0 0; }
  .track-step:not(:last-child)::after {
    display: block;
    top: calc(1.125rem - 1px);
    bottom: auto;
    left: 3rem;
    right: -1.25rem;
    border-left: 0;
    border-top: 2px dashed var(--line);
  }
  .track-art { width: 5.5rem; height: 5.5rem; }

  .colors { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; }
  .dash { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 4rem; }
  .nav-links + .nav-login { margin-left: 0.25rem; }
  .mini { width: min(100%, 24rem); }

  .faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 4rem; align-items: start; }
  .faq .section-head { position: sticky; top: 2rem; }

  .branch-hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 4rem; }
  .industries { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 4rem; align-items: start; }
  .industries .industry-list { grid-template-columns: 1fr; }

  .funnel-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .funnel-intro {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    padding: 0 clamp(2rem, 4vw, 4rem) 3rem max(var(--gutter), (100vw - var(--wrap)) / 2);
  }
  .funnel-intro .nav { padding-inline: 0; }
  .funnel-copy { margin-block: auto; padding: 2rem 0; }
  .funnel-copy h1 { font-size: clamp(3rem, 1.4rem + 3vw, 4.25rem); }
  .funnel-sheet {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100dvh;
    margin: 0;
    padding: 4rem clamp(2.5rem, 6vw, 6rem) 4rem;
    border-radius: var(--r-sheet) 0 0 var(--r-sheet);
  }
  .is-funnel .foot { padding-top: 0; }
  .is-funnel .foot-inner { border-top: 0; }
}
