/* Tetto — Website.
   Dieselben Tokens wie die App (src/index.css), damit Website und Produkt
   nicht wie zwei verschiedene Firmen aussehen. Kein Framework, kein
   Build-Schritt: eine CSS-Datei, die auch in fünf Jahren noch funktioniert. */

:root {
  --cream: #FAF6F1;
  --cream-deep: #F2EBE1;
  --paper: #FFFFFF;
  --ink: #1D1815;
  --ink-soft: #6E635B;
  --ink-faint: #9C9089;
  --line: #E9E0D4;
  --terra: #D9563B;
  --terra-deep: #B8412A;
  --terra-soft: #FCEAE4;
  --moss: #3E5F4A;
  --moss-soft: #E4EDE6;
  --amber: #E09B33;
  --amber-soft: #FBEFD9;
  --yes: #2F7D57;
  --yes-soft: #E1F0E7;
  --no: #B4534A;
  --no-soft: #F8E7E5;

  /* Keine Webschrift, also holen wir aus jedem System seine beste eigene
     heraus: `system-ui` liefert unter Windows 11 Segoe UI Variable, auf
     Apple-Geräten San Francisco, auf Android Roboto — alle drei sind
     variabel, also greifen auch Zwischengewichte wie 640 wirklich.
     Der Rest der Liste ist nur noch Notnagel für alte Systeme. */
  --sans: system-ui, "Segoe UI Variable Text", -apple-system, "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Für Überschriften nimmt Windows den Display-Schnitt: engere Punzen,
     weniger Abstand — genau das, was grosse Zeilen brauchen. */
  --display: "Segoe UI Variable Display", system-ui, -apple-system,
             "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --schatten: 0 2px 4px rgba(56,38,26,.06), 0 18px 40px -14px rgba(56,38,26,.22);
  --schatten-weich: 0 1px 2px rgba(56,38,26,.05), 0 6px 18px -6px rgba(56,38,26,.10);
  --feder: cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-optical-sizing: auto;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;          /* keine einsame Silbe auf der letzten Zeile */
}
h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); font-weight: 700; letter-spacing: -.038em; }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.7rem); font-weight: 650; letter-spacing: -.028em; }
h3 { font-size: 1.18rem; font-weight: 640; letter-spacing: -.015em; }

/* Fliesstext liest sich mit etwas mehr Luft und ohne Silbenwüsten besser. */
p { margin: 0; text-wrap: pretty; }
.vorspann { text-wrap: pretty; }
a { color: inherit; }

.huelle { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }
.band { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.band--tief { background: var(--cream-deep); }
.band--dunkel { background: var(--ink); color: var(--cream); }

/* ── Kopf ──────────────────────────────────────────────────────────────── */

.kopf {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250,246,241,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.kopf__inhalt { display: flex; align-items: center; justify-content: space-between; padding: .85rem 0; }
.marke { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--display);
         font-weight: 660; font-size: 1.3rem; letter-spacing: -.02em; }
.kopf__links { display: flex; align-items: center; gap: 1.6rem; }
.kopf__links a { text-decoration: none; color: var(--ink-soft); font-size: .95rem; }
.kopf__links a:hover { color: var(--ink); }

@media (max-width: 720px) { .kopf__links a:not(.knopf) { display: none; } }

/* ── Knöpfe ────────────────────────────────────────────────────────────── */

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem; border: 0; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1rem;
  background: var(--terra); color: #fff; cursor: pointer; text-decoration: none;
  transition: transform .18s var(--feder), background .18s ease;
}
.knopf:hover { background: var(--terra-deep); transform: translateY(-1px); }
.knopf:active { transform: translateY(0); }
.knopf--stumm { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.knopf--stumm:hover { background: var(--cream-deep); }

/* ── Held ──────────────────────────────────────────────────────────────── */

.held { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.held__raster { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 880px) { .held__raster { grid-template-columns: 1fr; } }

.augenbraue {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--terra-soft); color: var(--terra-deep);
  padding: .35rem .85rem; border-radius: 999px;
  font-size: .82rem; font-weight: 600; letter-spacing: .01em;
  margin-bottom: 1.4rem;
}
.held p.vorspann { font-size: 1.16rem; color: var(--ink-soft); margin-top: 1.3rem; max-width: 34rem; }
.held__knoepfe { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.fussnote { font-size: .85rem; color: var(--ink-faint); margin-top: 1rem; }

/* ── Telefon-Attrappe ──────────────────────────────────────────────────── */

.telefon {
  width: 300px; margin-inline: auto; aspect-ratio: 9 / 18.5;
  background: var(--paper); border-radius: 38px; border: 1px solid var(--line);
  box-shadow: var(--schatten); padding: 1.15rem 1rem; position: relative; overflow: hidden;
}
.telefon::before {
  content: ''; position: absolute; top: .7rem; left: 50%; transform: translateX(-50%);
  width: 84px; height: 5px; border-radius: 3px; background: var(--line);
}
.telefon__titel { font-family: var(--display); font-weight: 640; font-size: 1rem; margin: 1.2rem 0 .15rem; }
.telefon__unterzeile { font-size: .8rem; color: var(--ink-faint); margin-bottom: .9rem; }

.zimmer {
  height: 118px; border-radius: 18px; margin-bottom: .85rem; position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--amber-soft), var(--terra-soft));
}
.zimmer svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.stimmzeile { display: flex; align-items: center; gap: .55rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.stimmzeile:first-of-type { border-top: 0; }
.gesicht {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: .78rem; font-weight: 660; color: #fff;
}
.stimmzeile__name { font-size: .88rem; font-weight: 560; flex: 1; }
.zettel {
  font-size: .72rem; font-weight: 640; padding: .2rem .6rem; border-radius: 999px;
  background: var(--cream-deep); color: var(--ink-faint);
}
.zettel--ja { background: var(--yes-soft); color: var(--yes); }
.zettel--nein { background: var(--no-soft); color: var(--no); }
.zettel--offen { background: var(--amber-soft); color: #9A6A16; }

/* ── Gegenüberstellung ─────────────────────────────────────────────────── */

.gegenueber { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 2.6rem; }
@media (max-width: 760px) { .gegenueber { grid-template-columns: 1fr; } }

.spalte { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 1.7rem; }
.spalte--alt { background: transparent; border-style: dashed; }
.spalte__marke { font-size: .8rem; font-weight: 660; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.spalte--neu .spalte__marke { color: var(--terra); }
.spalte h3 { margin: .55rem 0 1rem; }
.liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.liste li { display: flex; gap: .65rem; align-items: flex-start; font-size: .97rem; color: var(--ink-soft); }
.liste li::before { content: '—'; color: var(--ink-faint); flex: none; }
.spalte--neu .liste li::before { content: '✓'; color: var(--moss); font-weight: 700; }

/* ── Schritte ──────────────────────────────────────────────────────────── */

.schritte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.8rem; }
@media (max-width: 820px) { .schritte { grid-template-columns: 1fr; } }

.schritt { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 1.7rem; }
.schritt__nummer {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: var(--ink); color: var(--cream); font-family: var(--display); font-weight: 660; font-size: .95rem;
  margin-bottom: 1rem;
}
.schritt p { color: var(--ink-soft); font-size: .97rem; margin-top: .5rem; }

/* ── Merkmale ──────────────────────────────────────────────────────────── */

.merkmale { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: 2.6rem; }
@media (max-width: 760px) { .merkmale { grid-template-columns: 1fr; } }

.merkmal { display: flex; gap: 1rem; align-items: flex-start; }
.merkmal__zeichen {
  width: 42px; height: 42px; border-radius: 13px; flex: none; display: grid; place-items: center;
  background: var(--moss-soft); color: var(--moss);
}
.merkmal p { color: var(--ink-soft); font-size: .97rem; margin-top: .3rem; }

/* ── Abstimmungs-Demo ──────────────────────────────────────────────────── */

.demo {
  background: var(--paper); border: 1px solid var(--line); border-radius: 26px;
  padding: 1.8rem; box-shadow: var(--schatten-weich); max-width: 460px;
}
.demo__kopf { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem; }
.demo__frist { margin-left: auto; font-size: .78rem; color: var(--ink-faint); }
.demo__knoepfe { display: flex; gap: .6rem; margin-top: 1.2rem; }
.stimmknopf {
  flex: 1; padding: .7rem; border-radius: 14px; border: 1px solid var(--line);
  background: var(--cream); font: inherit; font-weight: 620; font-size: .92rem; cursor: pointer;
  transition: all .16s var(--feder);
}
.stimmknopf:hover { transform: translateY(-1px); }
.stimmknopf[data-wert="ja"]:hover, .stimmknopf[data-wert="ja"].aktiv { background: var(--yes-soft); color: var(--yes); border-color: var(--yes-soft); }
.stimmknopf[data-wert="vielleicht"]:hover, .stimmknopf[data-wert="vielleicht"].aktiv { background: var(--amber-soft); color: #9A6A16; border-color: var(--amber-soft); }
.stimmknopf[data-wert="nein"]:hover, .stimmknopf[data-wert="nein"].aktiv { background: var(--no-soft); color: var(--no); border-color: var(--no-soft); }
.demo__ergebnis {
  margin-top: 1.1rem; padding: .9rem 1rem; border-radius: 14px; background: var(--cream-deep);
  font-size: .9rem; color: var(--ink-soft); min-height: 3.2rem;
}
.demo__ergebnis strong { color: var(--ink); }

/* ── Warteliste ────────────────────────────────────────────────────────── */

.warteliste { text-align: center; }
.warteliste h2 { max-width: 22ch; margin-inline: auto; }
.warteliste p.vorspann { color: rgba(250,246,241,.72); margin: 1.1rem auto 0; max-width: 42ch; }

.formular { display: grid; gap: .7rem; max-width: 480px; margin: 2.2rem auto 0; text-align: left; }
.feldzeile { display: flex; gap: .6rem; }
@media (max-width: 560px) { .feldzeile { flex-direction: column; } }

.feld {
  flex: 1; padding: .85rem 1.1rem; border-radius: 14px; border: 1px solid rgba(250,246,241,.22);
  background: rgba(250,246,241,.07); color: var(--cream); font: inherit; font-size: 1rem;
}
.feld::placeholder { color: rgba(250,246,241,.45); }
.feld:focus { outline: 2px solid var(--terra); outline-offset: 1px; background: rgba(250,246,241,.12); }

.rollen { display: flex; gap: .5rem; }
.rolle { flex: 1; }
.rolle input { position: absolute; opacity: 0; pointer-events: none; }
.rolle span {
  display: block; text-align: center; padding: .7rem .4rem; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(250,246,241,.22); font-size: .9rem; font-weight: 560;
  color: rgba(250,246,241,.75); transition: all .16s var(--feder);
}
.rolle input:checked + span { background: var(--terra); border-color: var(--terra); color: #fff; }
.rolle input:focus-visible + span { outline: 2px solid var(--cream); outline-offset: 2px; }

.formular__fuss { font-size: .82rem; color: rgba(250,246,241,.5); text-align: center; margin-top: .3rem; }
.formular__fuss a { color: rgba(250,246,241,.75); }
.meldung { font-size: .92rem; text-align: center; padding: .6rem; border-radius: 12px; }
.meldung--gut { background: rgba(47,125,87,.24); color: #BFE6CE; }
.meldung--schlecht { background: rgba(180,83,74,.22); color: #F2C7C2; }

/* ── Fragen ────────────────────────────────────────────────────────────── */

.fragen { max-width: 720px; margin: 2.4rem auto 0; display: grid; gap: .7rem; }
.frage { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem 1.4rem; }
.frage summary {
  cursor: pointer; font-weight: 620; font-size: 1.02rem; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.frage summary::-webkit-details-marker { display: none; }
.frage summary::after { content: '+'; color: var(--terra); font-size: 1.4rem; font-weight: 400; line-height: 1; }
.frage[open] summary::after { content: '−'; }
.frage p { color: var(--ink-soft); font-size: .97rem; margin-top: .8rem; }

/* ── Fuss ──────────────────────────────────────────────────────────────── */

.fuss { border-top: 1px solid var(--line); padding: 2.5rem 0; font-size: .9rem; color: var(--ink-faint); }
.fuss__inhalt { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; justify-content: space-between; }
.fuss a { color: var(--ink-soft); text-decoration: none; margin-right: 1.2rem; }
.fuss a:hover { color: var(--ink); text-decoration: underline; }

/* ── Rechtstexte ───────────────────────────────────────────────────────── */

.text { max-width: 720px; }
.text h2 { margin-top: 2.4rem; font-size: 1.4rem; }
.text h1 + p { margin-top: 1rem; }
.text p, .text li { color: var(--ink-soft); margin-top: .9rem; }
.text ul { padding-left: 1.2rem; }
.hinweis {
  background: var(--amber-soft); border: 1px solid #EFD9AE; border-radius: 16px;
  padding: 1rem 1.2rem; margin-top: 1.6rem; font-size: .93rem; color: #7A5410;
}

@media (prefers-reduced-motion: reduce) {
  /* Bewusst KEIN pauschales `animation: none !important` mehr. Die Regel
     wirkt harmlos, ist aber eine Falle: Sie trifft auch Animationen mit
     fill-mode: both, die etwas erst sichtbar machen — und lässt damit
     ausgerechnet denjenigen Inhalt verschwinden, die reduzierte Bewegung
     eingestellt haben. In bewegung.css wird stattdessen gar nichts erst
     zugewiesen; hier bleiben nur die Übergänge, die reine Zierde sind. */
  .knopf, .knopf:hover, .frage, .rolle span, .kopf, .kopf__inhalt, .sprung,
  .stimmknopf, .streifen__bild, .telefon__schritt, .telefon__untertitel {
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* ══ Ergänzungen für die neue Seite ══════════════════════════════════════ */

/* Sprungmarke für Tastaturbedienung — sichtbar erst beim Fokus. */
.sprung {
  position: fixed; top: .6rem; left: .6rem; z-index: 80;
  background: var(--ink); color: var(--cream);
  padding: .7rem 1.1rem; border-radius: 12px; text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s var(--feder);
}
.sprung:focus { transform: none; }

/* Sichtbarer Fokus überall — der Standardring verschwindet auf Creme. */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, .rolle input:focus-visible + span {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Kopf, der sich beim Scrollen verdichtet */
.kopf { transition: padding .3s var(--feder), background .3s ease, box-shadow .3s ease; }
.kopf--dicht {
  background: rgba(250,246,241,.94);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(56,38,26,.5);
}
.kopf--dicht .kopf__inhalt { padding: .55rem 0; }
.kopf__inhalt { transition: padding .3s var(--feder); }

/* ── Drei Zahlen ───────────────────────────────────────────────────────── */

.zahlen__raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 4vw, 3rem); }
@media (max-width: 780px) { .zahlen__raster { grid-template-columns: 1fr; gap: 2rem; } }

.zahl__wert {
  font-family: var(--display);
  font-size: clamp(2.8rem, 7vw, 4.4rem);
  font-weight: 680;
  line-height: 1;
  letter-spacing: -.035em;
  color: var(--terra);
  font-variant-numeric: tabular-nums;
}
.zahl__einheit { font-size: .38em; color: var(--ink-faint); letter-spacing: -.01em; }
.zahl__text { margin-top: .9rem; color: var(--ink-soft); font-size: .97rem; max-width: 30ch; }

/* ── Listen ────────────────────────────────────────────────────────────── */

.liste--gross li { font-size: 1.02rem; }
.liste--gross li::before { content: '✓'; color: var(--moss); font-weight: 700; }

/* ── Demo-Karte ────────────────────────────────────────────────────────── */

.gesicht.gross { width: 42px; height: 42px; font-size: 1rem; }
.demo__name { font-weight: 640; }
.demo__rolle { font-size: .82rem; color: var(--ink-faint); }
.demo__zitat { font-size: .96rem; color: var(--ink-soft); }
.stimmknopf[aria-pressed="true"] { box-shadow: inset 0 0 0 1px currentColor; }

/* ── Entscheid-Szene ───────────────────────────────────────────────────── */

.entscheid__seite { display: grid; gap: 1.3rem; }
.brief__von { font-weight: 640; font-size: .92rem; }
.brief__wann { font-size: .78rem; color: var(--ink-faint); }

/* ── Formular ──────────────────────────────────────────────────────────── */

.feld--kurz { max-width: 9.5rem; }
@media (max-width: 560px) { .feld--kurz { max-width: none; } }
.knopf--breit { width: 100%; }

/* ── Kleinkram ─────────────────────────────────────────────────────────── */

.mittig { text-align: center; }
.fuss__marke { font-size: 1.1rem; }

/* Sicherheitsnetz gegen waagrechtes Scrollen: Auftritte kommen von links
   herein und ragen dabei kurz aus dem Bild. `clip` statt `hidden`, weil
   `hidden` einen Scrollbereich erzeugt und damit position: sticky in der
   gepinnten Szene aushebeln würde. */
body { overflow-x: clip; }

/* Auf sehr schmalen Geräten darf die Demo-Karte schrumpfen. Ohne
   min-width: 0 bleiben Flex-Kinder auf ihrer Inhaltsbreite stehen. */
.demo { padding: clamp(1.1rem, 4.5vw, 1.8rem); min-width: 0; max-width: min(460px, 100%); }
/* Raster- und Flex-Kinder stehen sonst auf ihrer Inhaltsbreite still und
   sprengen auf schmalen Geräten die Spalte. */
.held__raster > *, .gegenueber > *, .merkmale > * { min-width: 0; }
.demo__knoepfe { flex-wrap: wrap; }
.stimmknopf { min-width: 0; flex: 1 1 5rem; }

/* Nur für Screenreader: aus dem Bild genommen, aber vorgelesen. Nicht
   display:none — das würde die Vorlesegeräte ebenfalls überspringen. */
.nur-vorlesen {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
