/*
 * Die App: alles, was über die Startseite hinausgeht. Die Bauteile der Startseite (Karte, Liste, Tafel, Beleg, Knopf,
 * Leiste, Fuß) kommen aus mockup/assets/css/seite.css und gelten hier unverändert. Beschrieben in DESIGN.md.
 * Farben nur über tokens.css: In dieser Datei steht kein Farbwert.
 */

/* ---------- Sprung zum Inhalt (Tastatur) ---------- */
.sprung { position: fixed; z-index: 70; left: 12px; top: -80px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: var(--r-voll); background: var(--weiss); color: var(--tinte); font-size: 15px; font-weight: 500; text-decoration: none; }
.sprung:focus { top: 8px; }

/* ---------- Leiste: rechts der Start-Knopf und das Menü ---------- */
.nav__rechts { display: flex; align-items: center; gap: 8px; }
.nav__menue { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; color: var(--weiss); font-size: 23px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--weiss) 36%, transparent); transition: background-color .2s; }
/* Hover nur mit Maus (am Handy bliebe er nach dem Antippen stehen), am Handy antwortet :active */
@media (hover: hover) and (pointer: fine) { .nav__menue:hover { background: color-mix(in srgb, var(--weiss) 16%, transparent); } }
.nav__menue:active { background: color-mix(in srgb, var(--weiss) 16%, transparent); }
.seite .nav__menue:focus-visible, .seite .menue a:focus-visible, .seite .menue button:focus-visible { outline: 2px solid var(--weiss); outline-offset: 3px; }
@media (max-width: 345px) { .nav__start { display: none; } }

/* ---------- Menü: ein dunkles, kantiges Blatt von rechts ---------- */
.menue { position: fixed; inset: 0 0 0 auto; display: none; flex-direction: column; width: min(430px, 100%); max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; overflow-y: auto; background: var(--leiste); color: var(--weiss); }
.menue[open] { display: flex; }
.menue::backdrop { background: color-mix(in srgb, var(--schwarz) 58%, transparent); }
.menue__kopf { display: flex; flex: none; align-items: center; justify-content: space-between; height: 60px; padding: 0 var(--rand) 0 28px; }
.menue__konto { padding: 10px 28px 0; font-size: 14.5px; overflow-wrap: anywhere; }
.menue__konto[hidden], .menue [hidden] { display: none; }
.menue__wege { display: grid; gap: 2px; padding: 22px 12px; }
.menue__wege a { display: flex; align-items: center; min-height: 62px; padding: 0 16px; border-radius: var(--r-voll); font-family: var(--titelschrift); font-size: 30px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; transition: background-color .2s; }
.menue__wege a:active, .menue__wege a[aria-current="page"] { background: color-mix(in srgb, var(--weiss) 13%, transparent); }
@media (hover: hover) and (pointer: fine) { .menue__wege a:hover { background: color-mix(in srgb, var(--weiss) 13%, transparent); } }
.menue__fuss { display: grid; justify-items: start; gap: 14px; margin-top: auto; padding: 20px 28px 26px; }
.menue__fuss nav { display: flex; gap: 4px; margin-left: -8px; font-size: 14.5px; }
.menue__fuss nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
@media (prefers-reduced-motion: no-preference) {
  .menue[open] { animation: blatt .34s var(--ease); }
  .menue[open]::backdrop { animation: dunkel .3s ease; }
}
@keyframes blatt { from { translate: 100% 0; } to { translate: 0 0; } }
@keyframes dunkel { from { opacity: 0; } to { opacity: 1; } }
html:has(.menue[open]) { overflow: hidden; }

/* ---------- Seite der App: ein Grund, wenige Karten ---------- */
.app { display: flex; flex-direction: column; min-height: 100svh; }
.app > main { flex: 1; }
.inhalt { width: min(1120px, 100%); margin: 0 auto; padding: 104px var(--rand) 72px; }
.inhalt--schmal { width: min(580px, 100%); }
.inhalt--text { width: min(800px, 100%); }
.kopfzeile { display: grid; gap: 14px; margin-bottom: 28px; }
.kopfzeile .titel { --gr: clamp(38px, 5vw, 72px); }
.kopfzeile .satz { max-width: 34em; }
.stapel { display: grid; gap: 16px; }
.spalten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 860px) { .spalten { grid-template-columns: minmax(0, 1fr); } }
.tafel > h2, .tafel__titel { font-family: var(--titelschrift); font-size: clamp(26px, 2.6vw, 38px); font-weight: 500; letter-spacing: -.01em; line-height: 1.05; }
.tafel > h2 + *, .tafel__titel + * { margin-top: 16px; }
.tafel p { font-size: 16px; line-height: 1.45; }
.tafel p + p { margin-top: 10px; }
.klein { font-size: 14.5px; line-height: 1.4; }
.verweis { text-decoration: underline; text-underline-offset: 3px; }
.reihe { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
[hidden] { display: none !important; }

/* ---------- Knöpfe: je Ansicht ein schwarzer Hauptweg, alles andere ist leiser ---------- */
.knopf { cursor: pointer; }
.knopf--breit { width: 100%; justify-content: space-between; }
.knopf--leise { padding: 0 24px; background: transparent; color: var(--tinte); box-shadow: inset 0 0 0 1.5px var(--tinte); }
.knopf--leise b { background: var(--schwarz); color: var(--weiss); }
.knopf--leise:has(b) { padding-right: 9px; }
.knopf[disabled], .knopf[aria-disabled="true"] { opacity: .42; pointer-events: none; }
.knopf[data-laeuft] { pointer-events: none; }
.knopf[data-laeuft] b i { animation: drehen 1s linear infinite; }
@keyframes drehen { to { rotate: 360deg; } }

/* ---------- Formular: kantige Felder auf grauem Grund in der weißen Karte ---------- */
.formular { display: grid; gap: 18px; }
.feld { display: grid; gap: 7px; }
.feld > span, .feld > label { font-size: 15px; font-weight: 500; }
.feld small { font-size: 14px; line-height: 1.35; }
.eingabe { width: 100%; min-height: 54px; padding: 0 16px; border: 0; border-radius: 0; background: var(--grund); color: var(--tinte); font: inherit; font-size: 17px; box-shadow: inset 0 -1.5px 0 var(--tinte); }
textarea.eingabe { min-height: 132px; padding: 14px 16px; line-height: 1.45; resize: vertical; }
.eingabe:focus-visible { outline: 2px solid var(--tinte); outline-offset: 2px; border-radius: 0; }
.eingabe::placeholder { color: color-mix(in srgb, var(--tinte) 62%, transparent); }
.feld__zeile { position: relative; }
.feld__zeile .eingabe { padding-right: 56px; }
.feld__auge { position: absolute; right: 5px; top: 5px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: 20px; }
.haken { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; font-size: 15px; line-height: 1.4; cursor: pointer; }
.haken input { width: 24px; height: 24px; margin: 0; accent-color: var(--tinte); }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.meldung { padding: 14px 16px; background: var(--grund); box-shadow: inset 3px 0 0 var(--tinte); font-size: 15.5px; line-height: 1.4; }
.grund-karte .meldung { background: var(--weiss); }
.wahl { display: flex; flex-wrap: wrap; gap: 8px; }
.wahl label { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--r-voll); box-shadow: inset 0 0 0 1px var(--karte-ring); font-size: 15.5px; cursor: pointer; transition: background-color .2s; }
.wahl input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.wahl label:active { background: color-mix(in srgb, var(--tinte) 8%, transparent); }
.wahl label:has(input:checked) { background: var(--schwarz); color: var(--weiss); box-shadow: none; }
.wahl label:has(input:focus-visible) { outline: 2px solid var(--tinte); outline-offset: 3px; }
.wahl label:has(input:disabled) { opacity: .45; cursor: default; }
.reiter { display: flex; gap: 6px; margin-bottom: 22px; }
.reiter a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--r-voll); box-shadow: inset 0 0 0 1px var(--karte-ring); font-size: 15.5px; text-decoration: none; }
.reiter a[aria-current="page"] { background: var(--schwarz); color: var(--weiss); box-shadow: none; }

/* ---------- Aufnahme: Schritte, Ablage, Fortschritt ---------- */
.schritte li { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: baseline; gap: 4px 12px; padding: 14px 0 12px; }
.schritte li + li { box-shadow: inset 0 1px 0 var(--karte-linie); }
.schritte .ziffer { font-size: 28px; }
.schritte b { font-weight: 500; }
.schritte p { font-size: 15.5px; line-height: 1.4; }
.ablage { position: relative; display: grid; place-items: center; align-content: center; gap: 8px; min-height: 190px; padding: 24px; background: var(--grund); outline: 1.5px dashed var(--tinte); outline-offset: -1.5px; text-align: center; cursor: pointer; }
.ablage input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ablage i { font-size: 30px; }
.ablage b { font-family: var(--titelschrift); font-size: 24px; font-weight: 600; }
.ablage span { font-size: 14.5px; }
.ablage.ist-drueber { background: var(--celeste); }
.ablage:has(input:focus-visible) { outline: 2.5px solid var(--tinte); }
.datei { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 8px 12px 16px; background: var(--grund); font-size: 15.5px; }
.datei span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rund { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--karte-ring); font-size: 18px; cursor: pointer; transition: scale .16s var(--ease); }
button.rund:active, a.rund:active { scale: .92; }
.balken { height: 10px; background: var(--karte-linie); }
.balken > i { display: block; width: 0; height: 100%; background: var(--schwarz); transition: width .5s var(--ease); }
.lauf { display: grid; gap: 18px; }
.lauf__zeile { display: flex; align-items: baseline; gap: 8px; }
.lauf__zeile .ziffer { font-size: clamp(56px, 9vw, 96px); }
.lauf__zeile small { font-size: 20px; }
.moment { background: var(--celeste); box-shadow: none; }
/* Spiel für die Wartezeit (js/spiel.js): ein weißes Feld auf der Celeste-Karte. Wischen nach oben und unten rollt weiter die Seite. */
.spiel__flaeche { display: block; width: 100%; height: 200px; background: var(--weiss); touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; cursor: pointer; }
@media (min-width: 761px) { .spiel__flaeche { height: 220px; } }

/* ---------- Ergebnis ---------- */
.ergebnis { display: grid; gap: 16px; }
.ergebnis__kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 6px; }
.abschnitt { --gr: clamp(30px, 3.6vw, 52px); margin: 34px 0 4px var(--einzug); }
.abschnitt + .satz { margin: 6px 0 6px var(--einzug); }
.hauptwert { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 0 clamp(20px, 4vw, 56px); align-items: center; }
.hauptwert__zahl { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 12px; }
.hauptwert__zahl .ziffer { font-size: clamp(64px, 10vw, 118px); }
.hauptwert__zahl small { font-size: 20px; }
@media (max-width: 760px) { .hauptwert { grid-template-columns: minmax(0, 1fr); gap: 18px; } }

/* Standbild aus dem Video, darauf das Netz: weiße Linien, Punkte nur als Umriss, der gewählte gefüllt */
.bildfeld { position: relative; overflow: hidden; background: var(--schwarz); line-height: 0; }
.bildfeld img, .bildfeld video { display: block; width: 100%; height: auto; }
.bildfeld svg, .bildfeld canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bildfeld--leer { display: grid; place-items: center; aspect-ratio: 16 / 9; color: var(--weiss); font-size: 15px; line-height: 1.4; text-align: center; padding: 20px; }
.gerippe line { stroke: var(--weiss); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.gerippe .gerippe__schatten line { stroke: var(--schwarz); stroke-opacity: .42; stroke-width: 5; }
.gerippe circle { fill: var(--schwarz); fill-opacity: .25; stroke: var(--weiss); stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.gerippe circle.ist-wahl { fill: var(--weiss); fill-opacity: 1; stroke: var(--tinte); }
.gerippe .gerippe__hof { fill: var(--weiss); fill-opacity: .8; stroke: none; }
.bahn { fill: none; stroke: var(--weiss); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.bahn--saum { stroke: var(--celeste-satt); stroke-width: 4; stroke-opacity: .7; }
.bahn--punkte { stroke: none; fill: var(--weiss); }

/* Messwert mit Skala: grau die Spur, Celeste das Ziel, schwarz die Marke */
.werte { margin-top: 6px; }
.wert { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 16px; padding: 15px 0 16px; }
.wert + .wert { box-shadow: inset 0 1px 0 var(--karte-linie); }
.wert__name { font-size: 16px; }
.wert__name small { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.35; }
.wert .ziffer { font-size: 30px; }
.wert__zahl small { margin-left: 3px; font-size: 13px; }
.wert .skala { grid-column: 1 / -1; }
.skala { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13.5px; }
.skala__spur { position: relative; height: 10px; background: var(--karte-linie); }
.skala__ziel { position: absolute; top: 0; bottom: 0; background: var(--celeste); }
.skala__marke { position: absolute; top: -6px; bottom: -6px; width: 3px; margin-left: -1.5px; background: var(--tinte); }
.skala__spanne { position: absolute; top: 3px; bottom: 3px; background: var(--tinte); opacity: .34; }

/* Stellschraube: kleines Rad, Pfeil an der Stelle, die gemeint ist */
.stell { display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: start; gap: 6px 18px; padding: 18px 0; }
.stell + .stell { box-shadow: inset 0 1px 0 var(--karte-linie); }
.stell svg { grid-row: span 3; width: 128px; height: auto; background: var(--grund); }
.stell h3 { font-family: var(--titelschrift); font-size: 24px; font-weight: 600; line-height: 1.1; }
.stell p { font-size: 15.5px; line-height: 1.4; }
.rad line, .rad circle, .rad path { fill: none; stroke: var(--tinte); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.rad .rad__pfeil { stroke: var(--celeste-satt); stroke-width: 5; }
@media (max-width: 520px) { .stell { grid-template-columns: 84px minmax(0, 1fr); gap: 6px 14px; } .stell svg { width: 84px; } }

/* Die schriftliche Auswertung: Schritte mit Nummer im Punktraster, gebaut wie die Stellschrauben darunter.
   Nur unter #bewertung-schritte: .schritt heißen auch die Ansichten des Einstiegs (/start), die kein Raster haben dürfen. */
#bewertung-schritte .schritt { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: start; gap: 6px 18px; padding: 18px 0; }
#bewertung-schritte .schritt:first-child { margin-top: 8px; }
#bewertung-schritte .schritt + .schritt { box-shadow: inset 0 1px 0 var(--karte-linie); }
#bewertung-schritte .schritt .ziffer { grid-row: span 3; font-size: 46px; line-height: .9; }
#bewertung-schritte .schritt h3 { font-family: var(--titelschrift); font-size: 24px; font-weight: 600; line-height: 1.1; }
#bewertung-schritte .schritt p { font-size: 15.5px; line-height: 1.4; }
#bewertung-schritte:empty { display: none; }
/* Konto: die drei Schritte zum Eintragen der Adresse in der eigenen KI */
.ki__schritte { display: grid; gap: 8px; margin-top: 18px; padding-left: 1.3em; list-style: decimal; font-size: 15.5px; line-height: 1.4; }
#ki-neu { margin-top: 16px; }
#ki-neu .prompt__text { margin-top: 12px; overflow-wrap: anywhere; white-space: pre-wrap; }
#bewertung-schritte + p { margin-top: 10px; }

/* Streuung der Einzeltritte */
.streu { display: block; width: 100%; height: auto; overflow: visible; }
.streu__ziel { fill: var(--celeste); }
.streu__spur { fill: var(--karte-linie); }
.streu circle { fill: var(--tinte); }
.streu text { font-family: var(--schrift); font-size: 12.5px; fill: var(--tinte); }
.streu__mittel { stroke: var(--tinte); stroke-width: 2; }

/* Vorher und nachher: zwei Standbilder, ein Schieber */
.vergleich { position: relative; overflow: hidden; background: var(--schwarz); line-height: 0; --teil: 50%; }
.vergleich img { display: block; width: 100%; height: auto; }
.vergleich__oben { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--teil)); }
.vergleich__oben img { height: 100%; object-fit: cover; }
.vergleich__linie { position: absolute; top: 0; bottom: 0; left: var(--teil); width: 2px; margin-left: -1px; background: var(--weiss); pointer-events: none; }
.vergleich__linie::after { content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: var(--weiss); box-shadow: 0 0 0 1px var(--tinte); }
.vergleich input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.vergleich__schild { position: absolute; top: 10px; padding: 5px 12px 4px; border-radius: var(--r-voll); background: var(--weiss); color: var(--tinte); font-size: 13.5px; line-height: 1.2; pointer-events: none; }
.vergleich__schild--links { left: 10px; }
.vergleich__schild--rechts { right: 10px; }
.vergleich:has(input:focus-visible) { outline: 2px solid var(--tinte); outline-offset: 3px; }

.tabelle { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.tabelle th { padding: 0 8px 8px 0; font-weight: 500; text-align: left; font-size: 14px; }
.tabelle td { padding: 10px 8px 8px 0; box-shadow: inset 0 1px 0 var(--karte-linie); }
.tabelle td.ziffer, .tabelle th.rechts { text-align: right; font-size: 22px; }
.tabelle th.rechts { font-size: 14px; }

/* Prompt für die eigene KI: ganz unten und leise. Drei Knöpfe, der Text selbst ist eingeklappt. */
.prompt__text { max-height: 420px; overflow: auto; }
.mitnahme > h2 { font-size: clamp(22px, 2vw, 28px); }
.mitnahme > .aufklapp { margin-top: 10px; }
.mitnahme > .klein { margin-top: 10px; }
.aufklapp > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; cursor: pointer; list-style: none; font-family: var(--titelschrift); font-size: clamp(24px, 2.4vw, 34px); font-weight: 500; }
.aufklapp > summary::-webkit-details-marker { display: none; }
.aufklapp > summary i { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--karte-ring); font-size: 16px; transition: transform .35s var(--ease), scale .16s var(--ease); }
.aufklapp[open] > summary i { transform: rotate(45deg); }
.aufklapp > summary:active i { scale: .9; }
.aufklapp > div { padding-top: 14px; }
/* kleine Klappe: Fließtext statt Titelschrift, für Nebensachen (Prompt ansehen) */
.aufklapp--klein > summary { justify-content: flex-start; gap: 12px; min-height: 44px; font-family: var(--schrift); font-size: 16px; font-weight: 400; }
.aufklapp--klein > summary i { order: -1; width: 32px; height: 32px; font-size: 13px; }
.aufklapp--klein > summary small { font-size: 14.5px; }
.aufklapp--klein > div { padding-top: 6px; }
/* Klappe als Kartentitel (Anleitung auf /fitting): so groß wie die Überschrift der Karte daneben */
.aufklapp--titel > summary { font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.01em; line-height: 1.05; }
/* offen neben „Dein Video“: Die Zeile ist 52px hoch, die Schrift steht mittig darin. So weit hoch, dass beide Titel auf einer Linie stehen. */
.spalten:not(.ist-bekannt) .aufklapp--titel > summary { margin-top: calc((1.05em - 52px) / 2); }
/* /fitting, wer schon gemessen hat: Anleitung zu, beide Karten untereinander statt einer leeren Spalte */
.spalten.ist-bekannt { grid-template-columns: minmax(0, 1fr); }
.masse { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }

/* ---------- Liste der Messungen ---------- */
.messliste { display: grid; }
.messliste a { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 12px 8px 12px 0; text-decoration: none; }
.messliste li + li a { box-shadow: inset 0 1px 0 var(--karte-linie); }
.messliste img, .messliste .daumen { width: 96px; aspect-ratio: 16 / 10; object-fit: cover; background: var(--grund); }
.messliste .ziffer { font-size: 30px; }
.messliste small { display: block; font-size: 14px; }
@media (hover: hover) and (pointer: fine) { .messliste a:hover .rund { background: var(--schwarz); color: var(--weiss); } }
.messliste a:active { background: var(--karte-wahl); }
@media (max-width: 520px) { .messliste a { grid-template-columns: 72px minmax(0, 1fr) auto; } .messliste img, .messliste .daumen { width: 72px; } .messliste .rund { display: none; } }

/* ---------- Kauf ---------- */
.preis { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 4px; }
.preis .ziffer { font-size: clamp(64px, 10vw, 104px); }
.punkte { display: grid; gap: 10px; margin-top: 16px; }
.punkte li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; font-size: 16px; line-height: 1.4; }
.punkte i { margin-top: 3px; font-size: 18px; }
/* Messung wiederholen: die eine Stelle mit Rot (Wunsch vom 4.12.2026). Sonst bleibt es bei Schwarz, Weiß und Grün. */
.naechster--warnung { --warnrot: #C4281C; box-shadow: inset 0 6px 0 var(--warnrot), var(--kante-karte); }
.naechster--warnung .tafel__kopf { color: var(--warnrot); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.naechster--warnung .naechster__grund i { color: var(--warnrot); }
/* Die große Zahl einer unsicheren Messung tritt zurück */
.hauptwert__zahl.unsicher { opacity: .35; }

/* ---------- Stufen (teile/stufen.html): Basis, Plus, Saison. Plus ist empfohlen und vorgewählt. ---------- */
/* Klassen heißen tarif/tarife: .stufe und .stufen gehören dem Ablauf auf der Startseite (seite.css). */
/* Nebeneinander, sobald der Rahmen breit genug ist; im schmalen Rahmen (Handy, /kauf) untereinander */
.tarife-rahmen { container-type: inline-size; }
.tarife { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.tarif { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; align-content: start; gap: 2px 16px; padding: 18px 20px 20px; box-shadow: inset 0 0 0 1px var(--karte-ring); cursor: pointer; transition: box-shadow .2s, transform .16s var(--ease); }
/* Das Auswahlfeld liegt unsichtbar über der ganzen Karte: Tippen irgendwo wählt die Stufe */
.tarif input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
/* Der Punkt vor dem Namen wie die Gelenkpunkte: nicht gewählt nur als Umriss, gewählt gefüllt mit äußerem Kreis */
.tarif__name { display: flex; align-items: center; gap: 12px; font-family: var(--titelschrift); font-size: clamp(25px, 2.4vw, 30px); font-weight: 600; letter-spacing: -.005em; line-height: 1.05; }
.tarif__name::before { content: ''; flex: none; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--tinte); transition: background-color .2s, box-shadow .2s; }
.tarif:has(input:checked) .tarif__name::before { background: var(--tinte); box-shadow: 0 0 0 3px var(--weiss), 0 0 0 4.5px var(--tinte); }
.tarif__preis { justify-self: end; font-size: 17px; white-space: nowrap; }
.tarif__preis .ziffer { font-size: clamp(36px, 3.4vw, 44px); }
.tarif__punkte { grid-column: 1 / -1; display: grid; gap: 6px; margin-top: 10px; font-size: 15.5px; line-height: 1.35; }
.tarif__punkte > span { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; }
.tarif__punkte i { margin-top: 2px; font-size: 16px; }
.tarif__schon { grid-column: 1 / -1; margin-top: 10px; font-size: 14px; font-weight: 600; }
/* Empfohlen: kantiger schwarzer Balken oben, Rand in Celeste */
.tarif__marke { grid-column: 1 / -1; margin: -18px -20px 12px; padding: 8px 20px; background: var(--schwarz); color: var(--weiss); font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.tarif--empfohlen { box-shadow: inset 0 0 0 3px var(--celeste); }
.tarif:has(input:checked) { box-shadow: inset 0 0 0 2px var(--tinte); }
.tarif--empfohlen:has(input:checked) { box-shadow: inset 0 0 0 2px var(--tinte), inset 0 0 0 6px var(--celeste); }
.tarif:has(input:focus-visible) { outline: 2px solid var(--tinte); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .tarif:not(.ist-aus):hover .tarif__name::before { box-shadow: inset 0 0 0 2.5px var(--tinte); } }
.tarif:not(.ist-aus):active { transform: scale(.99); }
.tarif.ist-aus { opacity: .5; cursor: default; }
.tarif.ist-aus input { cursor: default; }
.tarife__alle { margin-top: 14px; }
.tarife__verein { margin-top: 6px; }
/* Direkt über dem Kaufknopf: was gekauft wird, zu welchem Preis, wie lange */
.tarife__wahl { font-size: 16px; line-height: 1.45; font-weight: 500; }
.tarife__wahl:empty { display: none; }
/* Seite /preise: die Stufen, darunter der Weg weiter und vier kurze Fragen */
.preise { width: min(980px, 100%); }
.preise__weiter { display: grid; justify-items: start; gap: 14px; margin-top: 26px; }
.preise__fragen { margin-top: clamp(48px, 7vw, 88px); }
.preise__fragen .spalten { margin-top: 18px; }
.preise__fragen .tafel__titel + p { margin-top: 10px; }
.preise__fragen h3.tafel__titel { font-size: clamp(22px, 2vw, 27px); }
.preise__vergleich { margin-top: 18px; }
@container (min-width: 720px) {
  .tarife { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
  .tarif { grid-template-columns: minmax(0, 1fr); min-height: 230px; padding: 22px 24px 26px; }
  .tarif__marke { margin: -22px -24px 14px; padding: 9px 24px; }
  .tarif__preis { justify-self: start; margin-top: 10px; }
  /* Plus steht über die anderen hinaus: der Balken kommt oben dazu */
  .tarif--empfohlen { min-height: 268px; }
}

/* ---------- Lesetext: Ratgeber und Rechtliches ---------- */
.text { font-size: clamp(16.5px, 1.25vw, 18px); line-height: 1.62; }
.text > * + * { margin-top: 1em; }
.text h2 { margin-top: 1.9em; font-family: var(--titelschrift); font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -.01em; line-height: 1.08; text-wrap: balance; }
.text h3 { margin-top: 1.6em; font-family: var(--titelschrift); font-size: clamp(22px, 2.1vw, 27px); font-weight: 600; line-height: 1.15; }
.text h2 + *, .text h3 + * { margin-top: .55em; }
.text ul, .text ol { padding-left: 1.25em; }
.text ul { list-style: disc; }
.text ol { list-style: decimal; }
.text li + li { margin-top: .4em; }
.text a { text-decoration: underline; text-underline-offset: 3px; }
.text table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.4; }
.text th { padding: 10px 12px 10px 0; font-weight: 500; text-align: left; box-shadow: inset 0 -1.5px 0 var(--tinte); }
.text td { padding: 10px 12px 10px 0; vertical-align: top; box-shadow: inset 0 -1px 0 var(--karte-linie); }
.text .ziffer { font-size: 1.15em; }
.rollen { overflow-x: auto; }
.artikel__kopf { display: grid; gap: 16px; margin-bottom: 30px; }
.artikel__kopf .titel { --gr: clamp(36px, 5vw, 68px); }
.artikel__kopf .satz { max-width: 36em; font-size: clamp(17px, 1.4vw, 20px); }
.artikel__daten { font-size: 14.5px; }
.kasten { padding: clamp(20px, 2.3vw, 32px); }
.kasten > * + * { margin-top: .7em; }
.kasten h2, .kasten h3 { margin-top: 0; }
.krumen { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; font-size: 14.5px; }
.krumen a { text-decoration: underline; text-underline-offset: 3px; }
.artikelliste a { display: grid; gap: 8px; padding: clamp(20px, 2.3vw, 32px); text-decoration: none; }
.artikelliste h2, .artikelliste h3 { font-family: var(--titelschrift); font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; line-height: 1.08; }
.artikelliste.spalten a { height: 100%; align-content: start; }
.inhalt--text .abschnitt, .inhalt--text .abschnitt + .satz { margin-left: 0; }
.artikelliste p { font-size: 16px; line-height: 1.45; }

/* Der Fuß steht auf App-Seiten am Ende, wie auf der Startseite */
.app .fuss { margin-top: auto; }

/* ---------- Einstieg (/start): eine Frage je Ansicht, dann Beispiel, Angebot, Konto ---------- */
/* Der Start-Knopf in der Leiste würde hierher zurückführen */
.einstieg .nav__start { display: none; }
.einstieg .inhalt { padding-top: 88px; }
.weg { display: flex; align-items: center; gap: 14px; width: min(640px, 100%); margin: 0 auto clamp(22px, 4vw, 44px); }
.weg__spur { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.weg__spur li { height: 6px; background: var(--karte-ring); transition: background-color .35s var(--ease); }
.weg__spur li.ist-voll { background: var(--tinte); }
.weg__konto { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.weg .rund { background: var(--weiss); }
.weg .ist-weg { display: none; }
html:not(.js) [data-nur-js] { display: none; }

.js [data-schritt]:not([data-da]) { display: none; }
.schritt { width: min(640px, 100%); margin: 0 auto; }
.schritt + .schritt { margin-top: 56px; }
.js .schritt + .schritt { margin-top: 0; }
.schritt--breit { width: 100%; }
.schritt .titel { --gr: clamp(34px, 4.6vw, 62px); outline: 0; }
.schritt .titel + .satz { margin-top: 12px; max-width: 30em; }
.schritt__warum { margin-top: 18px; }
.schritt__einschub { margin-top: 12px; }
.schritt__karte { margin-top: 24px; }
.schritt__wahl { margin-top: 16px; }
.schritt__spalten { margin-top: 22px; }
.schritt__vergleich { margin-top: 18px; padding-top: 16px; box-shadow: inset 0 1px 0 color-mix(in srgb, var(--tinte) 22%, transparent); }
.schritt .chip { background: var(--weiss); box-shadow: inset 0 0 0 1px var(--karte-ring); }
/*
 * Die neue Ansicht kommt kurz herein: 260 ms, damit sie beim schnellen Durchtippen nicht bremst. Jede Ansicht ist ein
 * eigenes Element, das vorher verborgen war, deshalb reicht hier ein Keyframe (es wird nichts mitten im Lauf umgelenkt).
 */
@media (prefers-reduced-motion: no-preference) {
  .js [data-schritt][data-da] { animation: schritt .26s var(--ease); }
}
@keyframes schritt { from { opacity: 0; translate: 0 10px; } }

/* Antwort: eine ganze Karte zum Antippen. Gewählt wird sie schwarz, wie der Hauptknopf. */
.auswahl { display: grid; gap: 10px; margin-top: 26px; }
.auswahl__weg { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 16px; width: 100%; min-height: 78px; padding: 15px 14px 15px 22px; text-align: left; cursor: pointer; transition: background-color .2s, color .2s, transform .16s var(--ease); }
.auswahl__weg b { font-family: var(--titelschrift); font-size: clamp(21px, 2.1vw, 26px); font-weight: 600; letter-spacing: -.005em; line-height: 1.1; }
.auswahl__weg span { grid-column: 1; font-size: 15px; line-height: 1.35; }
.auswahl__weg i { grid-column: 2; grid-row: 1 / span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--karte-ring); font-size: 18px; transition: background-color .2s, color .2s, transform .3s var(--ease); }
.auswahl__weg[aria-pressed="true"] { background: var(--schwarz); color: var(--weiss); }
.auswahl__weg[aria-pressed="true"] i { background: var(--weiss); color: var(--schwarz); box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .auswahl__weg:hover { background: var(--schwarz); color: var(--weiss); }
  .auswahl__weg:hover i { background: var(--weiss); color: var(--schwarz); box-shadow: none; transform: translateX(3px); }
}
.auswahl__weg:active { transform: scale(.985); }

/* Bildband im Angebot: vier Trickfilme nebeneinander, von Rand zu Rand, sie wandern von selbst durch das Bild (js/bildband.js) */
.band { position: relative; width: 100vw; margin: 20px 0 0 calc(50% - 50vw); overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.band.ist-gezogen { cursor: grabbing; }
.band__spur { display: flex; width: max-content; will-change: transform; }
.band__bild { flex: none; width: clamp(288px, 27vw, 400px); margin: 0; background: var(--weiss); }
/* Rad, KI, Rad, KI: die Szenen mit dem Fahrer stehen auf Celeste, die mit der KI auf Weiß */
.band__bild:nth-child(odd) { background: var(--celeste); }
.band__bild canvas { display: block; width: 100%; aspect-ratio: 4 / 5; }
.band__bild figcaption { display: grid; align-content: start; gap: 4px; min-height: 104px; padding: 14px 20px 20px; box-shadow: inset 0 1px 0 var(--karte-linie); }
.band__bild b { font-family: var(--titelschrift); font-size: 23px; font-weight: 600; letter-spacing: -.005em; line-height: 1.08; }
.band__bild span { font-size: 15px; line-height: 1.35; }
.band__halt { position: absolute; top: 12px; right: max(20px, var(--rand)); background: var(--weiss); }
.schritt__preis { width: min(640px, 100%); margin-top: 16px; }
.schritt__stufen { width: min(980px, 100%); margin-top: 30px; }
.schritt__stufen .tafel__titel + .tarife-rahmen { margin-top: 16px; }
.schritt__preis .tarife__wahl + .schritt__kauf { margin-top: 18px; }
/*
 * Startseite, KI-Screen: die Überschrift über die ganze Breite, darunter die zwei Wege zur eigenen KI als gleich hohe Karten
 * (Prompt und Konnektor, je ein Beispiel), darunter leise der Prüf-Prompt. Am Handy stehen die Karten untereinander.
 */
.startseite > .ki { justify-items: stretch; gap: 28px; padding-inline: var(--rand); }
/*
 * Der Grund dieses Screens liegt vor dem Fahrer (sonst hinter ihm): Die Überschrift steht frei auf dem Grund und käme
 * beim Hochscrollen auf den Fahrer zu liegen, der erst in diesem Screen hinausfährt. So schneidet ihn der Screen von unten an.
 */
.startseite > .ki > .hinten { z-index: 0; }
.ki__kopf { display: grid; gap: 14px; margin-left: var(--einzug); }
.ki__kopf .satz { max-width: 30em; }
.ki__wege { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.ki__weg { display: grid; grid-template-rows: auto auto 1fr auto; }
.ki__weg .titel { --gr: clamp(26px, 2.5vw, 38px); margin-top: 14px; }
.ki__weg > small { margin-top: 18px; font-size: 14px; line-height: 1.5; }
/* auf sehr breiten Fenstern wächst die Schrift der Beispiele ein Stück mit, sonst werden die Zeilen zu lang */
.ki__beispiel, .ki__chat { font-size: clamp(14.5px, 1.05vw, 17px); line-height: 1.55; }
.ki__beispiel { align-self: start; max-height: none; margin-top: 18px; }
.ki__chat { display: grid; align-content: start; gap: 10px; margin-top: 18px; }
.ki__frage { justify-self: end; max-width: 26em; padding: 12px 16px; background: var(--schwarz); color: var(--weiss); }
.ki__liest { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.ki__liest i { font-size: 18px; }
.ki__antwort { justify-self: start; max-width: 30em; padding: 16px 18px; background: var(--grund); }
.ki__antwort b { font-weight: 600; }
/* der Prüf-Prompt: ein Satz, drei leise Knöpfe, der Text selbst in einer Klappe */
.ki__pruefen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-left: var(--einzug); }
.ki__pruefen > p { font-size: 17px; }
.ki__oeffnen { display: flex; flex-wrap: wrap; gap: 10px; }
.ki__oeffnen .knopf { min-height: 46px; padding: 0 18px; }
.ki__prompt { flex-basis: 100%; }
.ki__prompt .prompt__text { max-width: 640px; margin-top: 0; background: var(--weiss); }
/* ohne Konnektor (KONNEKTOR=aus) bleibt der Weg über den Prompt allein stehen */
.ki[data-konnektor="aus"] .ki__weg--konnektor, .ki[data-konnektor="aus"] .ki__mit-konnektor { display: none; }
.ki[data-konnektor="aus"] .ki__wege { grid-template-columns: minmax(0, 720px); }
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
  .startseite > .ki { gap: 22px; }
  .ki__wege { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  /* am Handy ist das Beispiel um drei Zeilen kürzer, sonst wird der Screen zwei Bildschirme lang */
  .ki__lang { display: none; }
  /* Kopieren über die ganze Breite, darunter die beiden KI gleich breit nebeneinander */
  .ki__oeffnen { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .ki__oeffnen [data-kopieren] { grid-column: 1 / -1; }
  .ki__oeffnen .knopf { padding: 0 12px; }
}
/* Startseite: das Band im Abschnitt „So funktioniert's“, die Überschrift oben, das Band am unteren Rand des Screens */
.ablauf--band .band { margin-top: 0; }
/*
 * Startseite, letzter Screen: das Hinterrad steht fest im Screen und scrollt mit ihm herein, der Fahrer fährt nicht mehr.
 * Lage wie früher die Szene „los“ in fahrt.js: Breite b, Nabe (.32/.71 des Bildes) rechts neben dem Pfeil des Knopfs,
 * im Querformat endet das Rad (Halbmesser .119 b) 76 px über dem unteren Rand, damit die Fußzeile lesbar bleibt.
 */
/*
 * Größe aus der Fensterhöhe (svh), Höhe vom unteren Rand des Screens aus gerechnet: der Screen ist 60 px kürzer als das
 * Fenster (siehe unten), ganz unten angekommen steht das Rad trotzdem genau dort, wo es im ganzen Fenster stand.
 */
.los__rad { --b: max(200cqw, 300svh); position: absolute; left: calc(84cqw - .32 * var(--b)); top: calc(100cqh - 76px - .5923 * var(--b)); width: var(--b); max-width: none; height: auto; }
@media (orientation: portrait) { .los__rad { --b: max(340cqw, 160svh); left: calc(74cqw - .32 * var(--b)); top: calc(100cqh - 52.5svh - .4733 * var(--b)); } }
/*
 * Startseite: zwischen zwei Blöcken überall dieselbe Luft (--luft). Ein Block ist eine Karte, eine Überschrift, das Laufband
 * oder der ganze Celeste-Screen „Video gelöscht“. Das Maß ist die helle Fläche zwischen Laufband und diesem Celeste-Screen,
 * die der Nutzer mag: am Handy rund 60 px, am Desktop rund 75 px.
 * KI, Ablauf und Fragen sind so hoch wie ihr Inhalt, oben und unten je die halbe Luft. Der Celeste-Screen hält die halbe
 * Luft als Außenabstand, innen bleibt er ein ganzes Bild. Start und Messwerte tragen den Fahrer und bleiben, wie sie sind.
 */
.startseite { --luft: calc(clamp(40px, 9vh, 96px) / 2 + 36px); }
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) { .startseite { --luft: calc(clamp(40px, 9vh, 96px) / 2 + 24px); } }
.startseite > .ki, .startseite > .ablauf, .startseite > .fragen { min-height: 0; align-content: start; padding-block: calc(var(--luft) / 2); scroll-margin-top: 60px; }
/* unter den Karten des Mess-Screens steht schon dessen unterer Rand (.messen in seite.css) */
.startseite > .ki { padding-top: max(0px, calc(var(--luft) - clamp(26px, 6vh, 56px))); }
.startseite > .privat { margin-block: calc(var(--luft) / 2); padding-top: calc(60px + var(--luft)); padding-bottom: var(--luft); }
.startseite .privat__karte { margin-bottom: 0; }
/*
 * Abschluss: der letzte Screen ist 60 px kürzer als das Fenster. Ganz unten angekommen bleibt so oben Platz für die Leiste,
 * und der Satz steht trotzdem nur die halbe Luft unter den Fragen.
 */
.startseite > .los { min-height: calc(100svh - 60px); padding-top: calc(var(--luft) / 2); }

/* Der Weg weiter bleibt am unteren Rand stehen, auch wenn die Ansicht länger ist als der Bildschirm */
.schritt__weiter { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 22px calc(var(--rand) * -1) 0; padding: 12px var(--rand) 14px; background: var(--grund); box-shadow: inset 0 1px 0 var(--karte-linie); }
@media (max-width: 520px) { .schritt__weiter .knopf { width: 100%; justify-content: space-between; } }

/* Kauf ohne vorheriges Konto, in der Angebots-Karte */
.schritt__kauf { margin-top: 22px; padding-top: 20px; box-shadow: inset 0 1px 0 color-mix(in srgb, var(--tinte) 22%, transparent); }
.schritt__kauf .meldung { background: var(--weiss); }
button.verweis { padding: 0; color: inherit; font: inherit; cursor: pointer; min-height: 44px; }
/* Formulare wachsen nie über ihre Karte hinaus, auch nicht mit einem langen Knopf am schmalen Handy */
.formular { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 430px) { .knopf--breit { padding-left: 22px; font-size: 16px; white-space: normal; text-align: left; line-height: 1.15; } }
