/* Orange Hat Guy (Kanal tecturtle, @tecturtle.ai): Anmeldeseite und Guide. Basis jeder OHG-Folge, neue-folge.sh kopiert
   die Datei als style.css nach landing/<slug>/. Look wie Reel und PDF (styles/ki-memes/STYLE.md, hf/kanal.css): dunkler
   Grund, Orange nur für das Schlüsselwort und die Handlung, Grün nur für Etikett und „geprüft“, harte Einsätze.
   Eigenständig: tecturtle.css (Prof.Claude) wird nicht geladen, Grundlagen stehen deshalb hier. Keine fremden Server,
   Schrift und Bilder liegen unter /g/_shared/ohg/. */

/* Nunito Black (OFL, /g/_shared/ohg/OFL.txt) statt Arial Rounded MT Bold, die nur auf Macs liegt */
@font-face {
  font-family: "OHG Rund";
  src: url("/g/_shared/ohg/nunito-latin-900-normal.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --grund: #111111;
  --flaeche: #1A1A1A;      /* Formular-Karte */
  --feld: #0D0D0D;         /* Eingabefelder */
  --linie: #2E2E2C;
  --linie-hell: #4A4A47;
  --text: #F2F2EE;
  --text-2: #CFCFC8;       /* Lead, Einwilligung */
  --leise: #9A9A94;        /* Beschriftungen, Fuß */
  --akzent: #E8743B;       /* Kappe = Schlüsselwort = Knopf */
  --akzent-hell: #F0824A;
  --akzent-tief: #D9662F;
  --gruen: #3ECF6E;        /* Etikett, Hallo, Häkchen */
  --gruen-tinte: #0C2A17;
  --rot: #EF4444;          /* nur Fehler */
  --rund: "OHG Rund", "Arial Rounded MT Bold", system-ui, sans-serif;
  --sys: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --spalte: 560px;
  --pad: 20px;
  --karte-rand: 14px;      /* Abstand der Formular-Karte zum Bildschirmrand (Handy) */
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Den Grund trägt nur html: ein eigener Body-Grund läge über der Vignette (body::before, z-index -1).
   scroll-padding: ein fokussierter Knopf landet nicht unter der Fortschrittsleiste */
html { -webkit-text-size-adjust: 100%; background: var(--grund); color-scheme: dark; scroll-padding-top: 72px; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 400 16px/1.5 var(--sys);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
/* leichte Vignette wie im Reel, bleibt beim Scrollen stehen */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 35%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .42) 100%);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap {
  width: 100%;
  max-width: calc(var(--spalte) + 2 * var(--pad));
  margin: 0 auto;
  padding-left: max(var(--pad), env(safe-area-inset-left));
  padding-right: max(var(--pad), env(safe-area-inset-right));
}
/* der Stempel (1,25 ×) und der Lichtschein dürfen kurz über den Rand, ohne dass die Seite seitlich scrollt;
   clip statt hidden, sonst klebt die Fortschrittsleiste nicht */
.page { overflow-x: clip; }

/* ---------- Kopf: nur das Konto, klein ---------- */
.kopf { display: flex; align-items: center; height: 40px; font: 900 13px/1 var(--rund); letter-spacing: .01em; color: var(--leise); }

/* ---------- Fortschrittsleiste (Guide) ---------- */
.g-leiste {
  position: sticky; top: 0; z-index: 5;
  padding: 11px 0 10px;
  background: rgba(17, 17, 17, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linie);
}
.g-leiste-zeile {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  font: 900 12px/1.2 var(--rund); letter-spacing: .06em; text-transform: uppercase;
}
.g-leiste b { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 900; }
#g-zahl { flex: none; color: var(--leise); font-variant-numeric: tabular-nums; }
.g-leiste progress {
  display: block; width: 100%; height: 4px; margin-top: 8px;
  -webkit-appearance: none; appearance: none; border: 0; border-radius: 2px;
  background: #262626; color: var(--akzent); overflow: hidden;
}
.g-leiste progress::-webkit-progress-bar { background: #262626; border-radius: 2px; }
.g-leiste progress::-webkit-progress-value { background: var(--akzent); border-radius: 2px; }
.g-leiste progress::-moz-progress-bar { background: var(--akzent); border-radius: 2px; }
/* mit Leiste braucht es den Kopf nicht mehr */
.g-leiste:not([hidden]) ~ .kopf { display: none; }

/* ---------- Einstieg: Etikett, Titel, Lead, Pose ---------- */
.intro { padding-top: 6px; }
.etikett {
  display: inline-block; margin-bottom: 12px; padding: 6px 10px 5px; border-radius: 8px;
  background: var(--gruen); color: var(--gruen-tinte);
  font: 900 12px/1 var(--rund); letter-spacing: .06em; text-transform: uppercase;
}
.hallo { margin-bottom: 10px; font: 900 13px/1.25 var(--rund); letter-spacing: .05em; text-transform: uppercase; color: var(--gruen); }
.hallo:empty { display: none; }

#title {
  font: 900 clamp(36px, 10.6vw, 64px)/1.02 var(--rund);
  letter-spacing: -.005em; text-transform: uppercase;
  text-wrap: balance; overflow-wrap: break-word;
  transform-origin: 0 60%;
}
#title:focus { outline: none; }
/* Schlüsselwort orange, darunter der Strich wie in den Textkarten des Reels (Balken 0,1 em unter der Grundlinie) */
.kw {
  color: var(--akzent);
  background: linear-gradient(var(--akzent), var(--akzent)) no-repeat 0 calc(100% - .1em) / 100% .1em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.lead { margin-top: 12px; max-width: 34em; font-size: 15.5px; line-height: 1.45; color: var(--text-2); text-wrap: pretty; }

/* PDF erst nach dem Freischalten (vorher hat der Link kein Ziel) */
.pdf {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px;
  font-size: 14px; color: var(--text-2); text-decoration: underline; text-decoration-color: var(--linie-hell); text-underline-offset: 3px;
}
.pdf:hover { color: var(--text); text-decoration-color: var(--akzent); }
.pdf svg { width: 17px; height: 17px; flex: none; color: var(--akzent); }
html.is-locked .pdf { display: none; }

/* Bühne: Orange Hat Guy mit Lichtschein, Höhe richtet sich nach dem sichtbaren Bild, damit das Formular nah bleibt */
.buehne {
  position: relative; display: flex; justify-content: center;
  height: clamp(128px, 22vh, 240px); height: clamp(128px, 22svh, 240px);
  margin-top: 6px; pointer-events: none;
}
.buehne::before {
  content: ""; position: absolute; left: 50%; top: 58%;
  width: min(520px, 100vw); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(232, 116, 59, .30), rgba(232, 116, 59, .10) 55%, rgba(232, 116, 59, 0));
}
.buehne img { position: relative; width: auto; height: 100%; transform-origin: 50% 100%; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5)); }

/* ---------- Sperre: Formular-Karte im Fluss, überdeckt den unteren Rand der Pose ---------- */
.gate {
  position: relative; z-index: 2; margin-top: -20px;
  padding-left: max(var(--karte-rand), env(safe-area-inset-left));
  padding-right: max(var(--karte-rand), env(safe-area-inset-right));
}
.karte {
  padding: 16px 16px 14px;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: 22px;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .45);
}
#gate-title:focus { outline: none; }
.nojs { padding: 4px 2px; color: var(--text-2); font-size: 15px; line-height: 1.45; }
html:not(.js) .lead-form { display: none; }

.field + .field { margin-top: 10px; }
.field label { display: block; margin: 0 0 5px 2px; font-size: 13px; line-height: 1.3; color: var(--leise); }
.field :is(input, select) {
  display: block; width: 100%; height: 48px; padding: 0 14px;
  border: 1.5px solid var(--linie-hell); border-radius: 12px;
  background: var(--feld); color: var(--text); caret-color: var(--akzent);
  font: 400 17px/1.2 var(--sys);
  -webkit-appearance: none; appearance: none;
}
.field :is(input, select):focus { outline: none; border-color: var(--akzent); box-shadow: 0 0 0 3px rgba(232, 116, 59, .28); }
.field :is(input, select)[aria-invalid="true"] { border-color: var(--rot); }
.field :is(input, select)[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(239, 68, 68, .25); }
/* Aufklappliste (Beruf): gleiche Maße wie das Feld, eigener Pfeil in Kappen-Orange statt des Systempfeils;
   ohne Auswahl steht „Bitte wählen“ in der leisen Textfarbe, die Liste selbst im dunklen Feldton (Handy: native Liste) */
.field select {
  padding-right: 42px; cursor: pointer; text-overflow: ellipsis;
  background: var(--feld) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E8743B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px 16px;
}
.field select:invalid { color: var(--leise); }
.field select option { background: var(--feld); color: var(--text); }
.field select option[value=""] { color: var(--leise); }
/* Autofill ohne helles Feld */
.field input:-webkit-autofill { -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 100px var(--feld) inset; }
.field input:-webkit-autofill:focus { box-shadow: 0 0 0 100px var(--feld) inset, 0 0 0 3px rgba(232, 116, 59, .28); }
.err { color: var(--rot); font-size: 14px; line-height: 1.35; }
.err:not(:empty) { margin-top: 6px; }

/* Newsletter: freiwillig und leer, aber als ganze Zeile antippbar */
.check {
  display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start;
  margin-top: 14px; padding: 12px; border: 1px solid var(--linie); border-radius: 14px; background: #151515;
  cursor: pointer;
}
.check:has(input:checked) { border-color: rgba(62, 207, 110, .55); }
.check input {
  -webkit-appearance: none; appearance: none; margin: 0;
  width: 24px; height: 24px; border: 1.5px solid #6A6A66; border-radius: 7px; background: var(--feld);
  display: grid; place-content: center; cursor: pointer;
}
.check input::before {
  content: ""; width: 11px; height: 6px;
  border-left: 2.5px solid var(--gruen-tinte); border-bottom: 2.5px solid var(--gruen-tinte);
  transform: translateY(-1px) rotate(-45deg); opacity: 0;
}
.check input:checked { background: var(--gruen); border-color: var(--gruen); }
.check input:checked::before { opacity: 1; }
.check input:focus-visible { outline-offset: 2px; }
.check span { font-size: 14px; line-height: 1.4; color: var(--text-2); }
.check small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.35; color: var(--leise); }

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

.form-err {
  margin-top: 14px; padding: 11px 13px; border: 1px solid rgba(239, 68, 68, .55); border-radius: 12px;
  background: rgba(239, 68, 68, .10); color: var(--text); font-size: 14.5px; line-height: 1.4;
}
.form-err:empty { padding: 0; margin: 0; border: 0; }

.submit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 54px; margin-top: 14px; padding: 0 16px;
  border: 0; border-radius: 14px; background: var(--akzent); color: var(--grund);
  font: 900 17px/1.1 var(--rund); letter-spacing: .04em; text-transform: uppercase;
  cursor: pointer;
}
.submit:hover { background: var(--akzent-hell); }
.submit:active { background: var(--akzent-tief); transform: translateY(1px); }
.submit:focus-visible { outline-color: var(--text); }
.submit[aria-busy="true"] { opacity: .78; cursor: progress; }
.spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(17, 17, 17, .3); border-top-color: var(--grund); animation: ohg-dreh .8s linear infinite; }
.submit[aria-busy="true"] .spin { display: block; }

.legal { margin-top: 12px; font-size: 12px; line-height: 1.5; color: var(--leise); }
.legal a { color: var(--text-2); text-underline-offset: 2px; }

/* ---------- Guide nachladen ---------- */
.loading { margin-top: 32px; font: 900 13px/1.3 var(--rund); letter-spacing: .06em; text-transform: uppercase; color: var(--leise); }
.guide-err { margin-top: 32px; padding: 14px 16px; border: 1px solid var(--linie); border-radius: 14px; background: var(--flaeche); color: var(--text-2); }
.guide-err button { min-height: 44px; padding: 0; border: 0; background: none; color: var(--akzent); font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Guide: Bausteine (Katalog: _vorlage/ohg/BAUSTEINE.md) ----------
   Klassen sind Vertrag mit app.js: .g-schritt[data-schritt] + .g-erledigt[aria-pressed] (app.js setzt .is-erledigt),
   .g-kopieren[data-copy] → pre#id (app.js hängt .g-daumen in .g-prompt und blendet ihn per hidden ein, darum hier
   nie display auf .g-daumen), .g-begriff[aria-expanded][aria-controls] → .g-begriff-text, .g-ende.is-fertig.
   Orange nur für die Handlung (Kopieren, Nummer), Grün nur für „erledigt/geprüft“, Rot nur für „vorher“. */
#guide { padding-bottom: 8px; }
/* Häkchen und Plus als Daten-URI (keine fremden Server); Farben wie --gruen-tinte, --gruen, --text */
.g-erledigt, .g-schritt, .g-pruefliste li, .g-begriff {
  --haken-dunkel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C2A17' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --haken-gruen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233ECF6E' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F2F2EE' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}

/* Abschnitte und Überschriften: runde Versalien wie die Textkarten im Reel */
.g-schritte, .g-abschnitt { margin-top: 40px; }
:where(.g-schritte, .g-abschnitt) > h2 {
  margin-bottom: 14px;
  font: 900 23px/1.08 var(--rund); letter-spacing: .005em; text-transform: uppercase; text-wrap: balance;
}
:where(.g-schritt, .g-abschnitt) > p { max-width: 36em; font-size: 15.5px; line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
:where(#guide) :is(p, li) a { color: var(--text); text-decoration-color: var(--akzent); text-underline-offset: 3px; }
/* mehrere Bausteine in einem Abschnitt (Satz, Vorher/Jetzt, Prüfliste, Prompt) mit Abstand; steht vor .g-notiz,
   damit die Notiz ihren kleineren Abstand behält */
.g-abschnitt > * + * { margin-top: 14px; }
/* Zwischenüberschrift im Abschnitt („Prüfkriterien“, „Prompt B …“): klein, leise, gehört zum Block darunter */
.g-abschnitt > h3 { margin-top: 24px; font: 900 13px/1.25 var(--rund); letter-spacing: .07em; text-transform: uppercase; color: var(--leise); }
.g-abschnitt > h3 + * { margin-top: 10px; }
.g-notiz { margin-top: 10px; font-size: 13px; color: var(--leise); }

/* Laptop-Hinweis: nur auf der Anmeldeseite (die Guide-Seite ist ja der Link aus dem Postfach) */
.g-laptop { margin-top: 22px; }
body[data-slug] .g-laptop { display: none; }
@media (hover: hover) and (pointer: fine) { .g-laptop { display: none; } }
.g-laptop-karte {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px;
  border: 1px dashed var(--linie-hell); border-radius: 16px;
}
.g-laptop svg { flex: none; width: 26px; height: 26px; color: var(--akzent); }
.g-laptop p { font-size: 14px; line-height: 1.45; color: var(--leise); }
.g-laptop strong { display: block; font-size: 15px; font-weight: 650; color: var(--text); }

/* Schritte: nummerierte Karten, die Nummer kommt aus data-schritt */
.g-schritt {
  display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px;
  margin-top: 12px; padding: 16px;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: 20px;
}
.g-schritt > * { grid-column: 1 / -1; }
.g-schritt::before {
  content: attr(data-schritt); grid-row: 1; grid-column: 1; align-self: start;
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: var(--akzent) no-repeat center / 21px; color: var(--grund); font: 900 20px/1 var(--rund);
}
.g-schritt > h3 { grid-row: 1; grid-column: 2; align-self: center; font: 900 19px/1.2 var(--rund); text-wrap: balance; }
.g-schritt.is-erledigt { border-color: rgba(62, 207, 110, .42); }
.g-schritt.is-erledigt::before { content: ""; background-color: var(--gruen); background-image: var(--haken-dunkel); }

.g-erledigt {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; margin-top: 2px; padding: 0 14px;
  border: 1.5px solid var(--linie-hell); border-radius: 14px; background: transparent; color: var(--text-2);
  font: 900 15px/1 var(--rund); letter-spacing: .06em; text-transform: uppercase; text-align: left; cursor: pointer;
}
.g-erledigt::before {
  content: ""; flex: none; width: 26px; height: 26px; border: 1.5px solid #6A6A66; border-radius: 8px;
  background: var(--feld) no-repeat center / 16px;
}
.g-erledigt[aria-pressed="true"] { border-color: var(--gruen); background: rgba(62, 207, 110, .08); color: var(--gruen); }
.g-erledigt[aria-pressed="true"]::before { border-color: var(--gruen); background-color: var(--gruen); background-image: var(--haken-dunkel); }

/* Beispiel: wie eine getippte Nachricht, Strich in Orange */
.g-beispiel {
  padding: 12px 14px; border-left: 3px solid var(--akzent); border-radius: 4px 12px 12px 4px;
  background: var(--feld); color: var(--text); font-size: 16px; line-height: 1.45;
}

/* Prompt zum Kopieren: Text wie im Chat-Feld, großer Knopf darunter; Daumen-Pose springt beim Kopieren auf */
.g-prompt { position: relative; padding: 14px 14px 12px; background: var(--feld); border: 1px solid var(--linie); border-radius: 16px; }
.g-prompt pre {
  margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2;
  font: 400 13.5px/1.6 ui-monospace, Menlo, "SF Mono", Consolas, monospace; color: #E4E4DE;
}
.g-kopieren {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 14px; padding: 0 16px;
  border: 0; border-radius: 14px; background: var(--akzent); color: var(--grund);
  font: 900 16px/1.1 var(--rund); letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
.g-kopieren:active { background: var(--akzent-tief); transform: translateY(1px); }
.g-prompt:has(.g-daumen:not([hidden])) .g-kopieren { background: var(--gruen); color: var(--gruen-tinte); }
.g-daumen {
  position: absolute; right: 2px; bottom: 6px; z-index: 1; width: 82px; height: auto;
  pointer-events: none; transform-origin: 50% 100%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .55));
}

/* Prüfliste: grüne Haken, nicht abhakbar (abgehakt wird der ganze Schritt). Die Browser-Ränder der Liste fallen über
   :where() (Spezifität 0) weg, damit .g-abschnitt > * + * nach einem Satz oder Vorher/Jetzt den Abstand setzt */
:where(.g-pruefliste) { margin: 0; }
.g-pruefliste { display: grid; gap: 9px; padding: 0; list-style: none; }
.g-pruefliste li { position: relative; padding-left: 32px; font-size: 15px; line-height: 1.45; color: var(--text); }
.g-pruefliste li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 7px;
  background: rgba(62, 207, 110, .14) var(--haken-gruen) no-repeat center / 14px;
}

/* Vorher/Jetzt (aus Richtung C): Rot nur für vorher, Grün nur für jetzt */
.g-vj { display: grid; gap: 10px; }
.g-vorher, .g-jetzt { padding: 14px 15px; border: 1.5px solid; border-radius: 16px; background: #161616; }
.g-vorher { border-color: rgba(239, 68, 68, .6); }
.g-jetzt { border-color: rgba(62, 207, 110, .6); }
.g-vj b { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; font: 900 13px/1 var(--rund); letter-spacing: .08em; text-transform: uppercase; }
.g-vorher b { color: var(--rot); }
.g-jetzt b { color: var(--gruen); }
/* Zeichen nur zur Zierde: Vorlesen bekommt das Wort, nicht das Zeichen */
.g-vorher b::before { content: "✕"; content: "✕" / ""; font-family: var(--sys); }
.g-jetzt b::before { content: "✓"; content: "✓" / ""; font-family: var(--sys); }
.g-vj p { font-size: 15px; line-height: 1.5; }
.g-vorher p { color: var(--text-2); }
.g-jetzt p { color: var(--text); }

/* Begriffe zum Antippen: Karte mit Knopf, der Text klappt darunter auf (app.js über aria-controls) */
.g-begriffe { display: grid; gap: 8px; align-items: start; }
.g-begriff-karte { border: 1px solid var(--linie); border-radius: 16px; background: var(--flaeche); }
.g-begriff-karte:has(.g-begriff[aria-expanded="true"]) { border-color: var(--akzent); }
.g-begriff {
  position: relative; display: block; width: 100%; min-height: 68px; padding: 14px 44px 14px 14px;
  border: 0; border-radius: 15px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.g-begriff b { display: block; font: 900 18px/1.1 var(--rund); letter-spacing: .02em; text-transform: uppercase; overflow-wrap: anywhere; }
.g-begriff span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.3; color: var(--leise); }
.g-begriff::after {
  content: ""; position: absolute; right: 12px; top: 13px; width: 24px; height: 24px; border-radius: 50%;
  background: #2A2A28 var(--plus) no-repeat center / 12px;
}
.g-begriff[aria-expanded="true"]::after { transform: rotate(45deg); background-color: var(--akzent); }
.g-begriff-text { padding: 0 14px 14px; font-size: 14px; line-height: 1.45; color: var(--text-2); }
/* zu, bis app.js übernimmt (kein Aufblitzen); ohne JS bleibt der Text lesbar */
html.js .g-begriff[aria-expanded="false"] + .g-begriff-text { display: none; }

/* Quellen: klein, am Ende des Inhalts */
.g-quellen > h2 { font-size: 15px; letter-spacing: .06em; color: var(--leise); }
.g-quellen > p { font-size: 13px; color: var(--leise); }
.g-quellen > p + p { margin-top: 6px; }

/* Knöpfe als Link (PDF) */
.g-knopf {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 16px;
  border-radius: 14px; background: var(--akzent); color: var(--grund); text-decoration: none;
  font: 900 16px/1.1 var(--rund); letter-spacing: .05em; text-transform: uppercase;
}
.g-knopf svg { flex: none; width: 19px; height: 19px; }
.g-knopf-leise { border: 1.5px solid var(--linie-hell); background: transparent; color: var(--text); }
.g-knopf-leise svg { color: var(--akzent); }
/* Kurzfassung: PDF-Knopf steht im ersten Schritt, der Link unter dem Titel wäre doppelt */
body:has(.g-kurz) .intro .pdf { display: none; }

/* Clip oben im Guide: stummer Ausschnitt aus dem Reel (Hochformat), Unterschrift klein darunter */
.g-clip { margin: 0 0 24px; display: grid; justify-items: center; gap: 8px; }
/* höchstens 30 % der Bildschirmhöhe breit (≈ 53 % hoch), damit auf kurzen Handys die Schritte nah bleiben */
.g-clip video {
  display: block; width: 100%; max-width: 270px; max-width: min(270px, 30vh); max-width: min(270px, 30svh);
  aspect-ratio: 9 / 16; object-fit: cover;
  border: 1px solid var(--linie); border-radius: 14px; background: var(--feld);
}
.g-clip figcaption { font: 400 13px/1.3 var(--sys); color: var(--leise); }

/* Schluss: sind alle Schritte erledigt, springt Orange Hat Guy rein und tanzt */
.g-ende { margin-top: 44px; }
.g-ende-karte {
  display: grid; justify-items: center; gap: 16px; padding: 24px 18px 18px; text-align: center;
  border: 1px solid var(--linie); border-radius: 22px;
  background: radial-gradient(90% 70% at 50% 0%, rgba(232, 116, 59, .14), rgba(232, 116, 59, 0) 70%), var(--flaeche);
}
.g-ende p { max-width: 26em; font-size: 15.5px; line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.g-ende strong { display: block; margin-bottom: 6px; font: 900 30px/1 var(--rund); text-transform: uppercase; color: var(--text); }
.g-ende .g-knopf { max-width: 340px; }
.g-ende-pose { width: auto; height: 180px; margin-bottom: -4px; transform-origin: 50% 100%; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5)); }
.g-ende:not(.is-fertig) .g-ende-pose { display: none; }
.g-ende.is-fertig .g-ende-karte { border-color: rgba(62, 207, 110, .5); }
/* alles erledigt: Zähler und Balken werden grün */
body:has(.g-ende.is-fertig) #g-zahl { color: var(--gruen); }
body:has(.g-ende.is-fertig) .g-leiste progress::-webkit-progress-value { background: var(--gruen); }
body:has(.g-ende.is-fertig) .g-leiste progress::-moz-progress-bar { background: var(--gruen); }

@media (hover: hover) {
  .g-erledigt:hover { border-color: var(--text-2); color: var(--text); }
  .g-erledigt[aria-pressed="true"]:hover { border-color: var(--gruen); color: var(--gruen); }
  .g-kopieren:hover, .g-knopf:not(.g-knopf-leise):hover { background: var(--akzent-hell); }
  .g-knopf-leise:hover { border-color: var(--text-2); }
  .g-begriff-karte:hover { border-color: var(--linie-hell); }
}
@media (min-width: 600px) {
  .g-vj { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; }
  .g-begriffe { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* ---------- Fuß ---------- */
.foot { margin-top: 40px; padding: 4px 0 calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linie); color: var(--leise); font-size: 12px; line-height: 1.5; }
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; }
.foot-legal p { padding: 12px 0; }
.foot-legal nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot-legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: none; }
.foot-legal a:hover { text-decoration: underline; }

/* ---------- Zustände (Klassen am <html>) ----------
   is-locked: Formular sichtbar, Pose zeigt darauf · is-opening: Freischalten läuft (app.js, 480 ms), harter Schnitt
   wie im Video: Karte, Pose und Etikett sind sofort weg, „Hi …“ steht · danach ohne is-locked: Guide */
html:not(.is-locked) .gate, html.is-opening .gate,
html:not(.is-locked) .buehne, html.is-opening .buehne,
html:not(.is-locked) .etikett, html.is-opening .etikett { display: none; }
html:not(.is-locked) .intro { padding-bottom: 8px; }
.g-leiste:not([hidden]) ~ #main .intro { padding-top: 20px; }

/* ---------- Einstieg wie im Schnitt (is-intro, nur Erstbesuch) ----------
   Werte aus styles/ki-memes/hf/kanal.js: Einblendungen hart (OHG.hart), Stempel 1,25 → 1 in 0,12 s (OHG.stempel),
   Pose-Sprung mit 2 Bildern Einrasten (OHG.posen), Strich 0,18 s. Ab Seitenstart: Etikett 0 s, Titel 0,12 s,
   Strich 0,4 s, Lead 0,55 s, Pose 0,8 s, Formular 1,05 s (hoch in 0,22 s, bedienbar nach 1,27 s), Puls ab 1,8 s.
   Vor seinem Einsatz hält ohg-da das Element unsichtbar (Füllmodus both); fehlt is-intro, steht alles sofort.
   Stufen mit jump-none: der letzte Schritt ist der Endzustand. step-end/steps(n, end) blieben am Ende wegen
   Rundung (Fortschritt 0,99999) eine Stufe zu früh stehen, die Karte blieb so unsichtbar (Chrome, 2026-10-29). */
@media (prefers-reduced-motion: no-preference) {
  html.is-intro.is-locked .etikett { animation: ohg-da 1ms linear 0s both; }
  html.is-intro.is-locked #title { animation: ohg-da 1ms linear .12s both, ohg-stempel .12s steps(3, jump-none) .12s both; }
  html.is-intro.is-locked .kw { animation: ohg-strich .18s steps(4, jump-none) .4s both; }
  html.is-intro.is-locked .lead { animation: ohg-da 1ms linear .55s both; }
  /* 2 Bilder (67 ms) tiefer, dann an ihrem Platz */
  html.is-intro.is-locked .buehne img { animation: ohg-da 1ms linear .8s both, ohg-sprung 133ms steps(2, jump-none) .8s both; }
  html.is-intro.is-locked .buehne::before { animation: ohg-da 1ms linear .8s both; }   /* Licht geht mit der Figur an */
  html.is-intro.is-locked .karte { animation: ohg-da 1ms linear 1.05s both, ohg-hoch .22s cubic-bezier(.2, .9, .25, 1) 1.05s both; }
  /* Knopf pulsiert leicht, dreimal (WCAG 2.2.2: nichts bewegt sich länger als 5 s von selbst), nicht beim Absenden */
  html.is-locked .submit { animation: ohg-puls 1.6s ease-out 1.8s 3; }
  html.is-locked .submit[aria-busy="true"] { animation: none; }
  /* Freischalten: „Hi …“ setzt auf wie ein Stempel */
  html.is-opening .hallo { transform-origin: 0 60%; animation: ohg-stempel .12s steps(3, jump-none) both; }
  /* Guide: Haken setzt auf wie ein Stempel, der Daumen springt rein (2 Bilder), am Schluss tanzt Orange Hat Guy
     höchstens 4 s (8 × 0,5 s, WCAG 2.2.2) */
  .g-erledigt[aria-pressed="true"]::before,
  .g-schritt.is-erledigt::before { animation: ohg-stempel .12s steps(3, jump-none) both; }
  .g-daumen { animation: ohg-sprung 133ms steps(2, jump-none) both; }
  .g-ende.is-fertig .g-ende-pose { animation: ohg-sprung 133ms steps(2, jump-none) both, ohg-tanz .5s steps(2, jump-none) 133ms 8; }
}

@keyframes ohg-da { from { opacity: 0; } to { opacity: 1; } }
@keyframes ohg-stempel { from { transform: scale(1.25) rotate(-2deg); } to { transform: none; } }
@keyframes ohg-strich { from { background-size: 0% .1em; } to { background-size: 100% .1em; } }
@keyframes ohg-sprung { from { transform: translateY(12px) scale(.95); } to { transform: none; } }
@keyframes ohg-hoch { from { transform: translateY(105%); } to { transform: none; } }
@keyframes ohg-puls {
  0% { box-shadow: 0 0 0 0 rgba(232, 116, 59, .55); }
  70%, 100% { box-shadow: 0 0 0 11px rgba(232, 116, 59, 0); }
}
@keyframes ohg-dreh { to { transform: rotate(360deg); } }
@keyframes ohg-tanz { from { transform: rotate(-6deg); } to { transform: translateY(-8px) rotate(6deg); } }

/* ---------- breiter Bildschirm: eine Spalte in der Mitte ---------- */
@media (min-width: 900px) {
  :root { --pad: 32px; --spalte: 600px; --karte-rand: 4px; }
  .kopf { height: 64px; font-size: 14px; }
  .intro { padding-top: 3vh; }
  .etikett { margin-bottom: 16px; font-size: 13px; padding: 7px 11px 6px; }
  .lead { margin-top: 16px; font-size: 18px; }
  .buehne { height: clamp(180px, 30vh, 270px); margin-top: 10px; }
  .karte { padding: 24px 28px 20px; border-radius: 26px; }
  /* Vorname und E-Mail nebeneinander, damit der Knopf auf einem Laptop-Bildschirm sichtbar bleibt */
  .lead-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
  .lead-form > :not(.field) { grid-column: 1 / -1; }
  .field + .field { margin-top: 0; }
  .field.field-job { grid-column: 1 / -1; margin-top: 10px; }   /* Beruf: eigene Zeile unter Vorname und E-Mail */
  .foot { margin-top: 64px; }
  :where(.g-schritte, .g-abschnitt) > h2 { font-size: 27px; }
  .g-schritte, .g-abschnitt { margin-top: 52px; }
  .g-schritt { padding: 20px 22px; column-gap: 14px; }
}

/* kurzer Handy-Bildschirm (Instagram-Browser, ~700 px hoch), nur solange das Formular steht: Kopf, Etikett, Lead und
   Pose rücken zusammen, damit der Knopf im ersten Bild steht. Im Formular selbst ändert sich nichts: Öffnet die
   Tastatur (resizes-content) und die Regel greift neu, verschiebt sich nur, was darüber steht; die Pose schrumpft
   über svh ohnehin mit. Ohne min-height-Grenze schaltet die Regel bei ~700 px Höhe auch mit Tastatur nicht ab.
   Titel und Lead etwas dichter: bei zwei Titelzeilen und vier Lead-Zeilen stand der Knopf sonst ~13 px unter dem Rand. */
@media (max-width: 899px) and (max-height: 760px) {
  html.is-locked .kopf { height: 30px; }
  html.is-locked .etikett { margin-bottom: 8px; }
  html.is-locked #title { font-size: clamp(32px, 9.8vw, 64px); }
  html.is-locked .lead { margin-top: 8px; line-height: 1.38; }
  html.is-locked .buehne { height: clamp(72px, 11svh, 150px); margin-top: 2px; }
}
/* Laptop mit wenig Höhe (z. B. 1280 × 800): Kopf und Pose kleiner, damit der Knopf im ersten Bild steht */
@media (min-width: 900px) and (max-height: 860px) {
  html.is-locked .kopf { height: 44px; }
  html.is-locked .buehne { height: clamp(140px, 19vh, 270px); }   /* mit dem Berufsfeld ~30 px kleiner, damit die Karte bis zum Satz unter dem Knopf im Bild steht */
}

@media (hover: none) {
  .submit:hover { background: var(--akzent); }
}

/* Bewegung reduzieren: alles steht sofort */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .submit[aria-busy="true"] .spin { display: none; }
}
