/* Kompagno Warteliste: Design-Werte aus 02-brand/brand-design-kompagno.md (EINGEFROREN, Fassung 3.5).
   Nicht interpretieren: Hex-Werte, Radius, Schrift-Regeln sind Kanon.
   07.10.2026: EN-Hauptseite + DE-Spiegel, Leitfaden-Seitenkopf, zwei Formular-Instanzen, Fragenblock,
   Leitfaden-Seite. 08.10.2026: Farbfassung B fest (Owner 07.10. 18:17): Anmelde-Karten in Moos, Footer hell. */
:root {
  --kalkputz: #F4F1EB;
  --karton: #ECE8E0;
  --leinen: #E2DDD3;
  --dunkel: #2A2521;
  --tinte: #1F1B17;
  --gedaempft: #655D54;
  --gedaempft-dunkel: #C9BBA6;
  --akzent: #2F6B4F;
  --akzent-hover: #234F3B;
  --akzent-hell: #3F8A67;
  --akzent-dunkelflaeche: #7FBF9C;
  --rahmen: rgba(31, 27, 23, 0.10);
  --akzent-border: rgba(47, 107, 79, 0.22);
  --fehler: #AE3F2C;
  --radius: 6px;
  --font-serif: "Fraunces", "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--kalkputz);
  color: var(--tinte);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 640px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Kopf: Logo links, Sprachlink rechts. Mobil kompakt (<= 64 px, CLOSE 07.10.).
   Logo-Lockup extern als <img>, NICHT inline (Masken-IDs). */
header { padding: 20px 0; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wortzeichen { display: block; text-decoration: none; }
.wortzeichen img { display: block; height: 46px; width: auto; }
footer .wortzeichen img { height: 40px; }
.sprachlink {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px;
  color: var(--akzent); font-weight: 600; font-size: 0.95rem; text-decoration: none;
}
.sprachlink:hover { text-decoration: underline; }
.sprachlink:focus-visible, .wortzeichen:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
@media (max-width: 520px) {
  header { padding: 10px 0; }
  .wortzeichen img { height: 36px; }
  footer .wortzeichen img { height: 34px; }
}

/* Typo: Serif NUR h1 (Design-Blatt) */
h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 17ch;
}
h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  line-height: 1.3;
  margin-bottom: 0.9rem;
}
h3 { font-family: var(--font-sans); font-weight: 600; font-size: 1.05rem; }

section { padding: 56px 0; }

.kicker {
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-caps: small-caps;
  color: var(--akzent);
  margin-bottom: 0.6rem;
}

.muted { color: var(--gedaempft); }

/* Seitenkopf = Leitfaden-Angebot. Mobil: Cover klein ueber dem Titel, Button im ersten Bildschirm.
   Desktop: Cover gross rechts. */
.hero { padding: 24px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center; }
.hero-cover { display: block; height: 140px; width: auto; border-radius: var(--radius); }
.hero .unterzeile, .begleitzeile {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--gedaempft);
  margin-top: 0.9rem;
  max-width: 34ch;
}
.hero .cta-block { margin-top: 1.6rem; }
.kopplungszeile { font-size: 0.9rem; color: var(--gedaempft); margin-top: 0.7rem; }
.hero .positionierung { margin-top: 1.4rem; font-size: 1.05rem; max-width: 44ch; }
@media (min-width: 880px) {
  .hero { padding: 40px 0 72px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 48px; }
  .hero-cover { grid-column: 2; grid-row: 1; height: auto; width: 100%; max-width: 380px; justify-self: end; }
}

/* Button */
.btn {
  display: inline-block;
  background: var(--akzent);
  color: var(--kalkputz);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  box-shadow: none;
}
.btn:hover { background: var(--akzent-hover); }
.btn:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
@media (max-width: 520px) {
  .btn { display: block; width: 100%; }
}

/* Listen mit Moos-Strich (Inhaltspunkte, Versprechen) */
.vorteile { list-style: none; margin: 1rem 0 1.4rem; max-width: 560px; }
.vorteile li { padding-left: 1.4rem; position: relative; margin-bottom: 0.5rem; }
.vorteile li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 14px; height: 2px; background: var(--akzent); }
.voraussetzung { color: var(--gedaempft); max-width: 560px; margin-bottom: 1.6rem; }

/* Trust-Karte (Karte A, Block, nicht kuerzbar) */
.trust { background: var(--karton); }
.trust-karte {
  background: var(--kalkputz);
  border: 1px solid var(--akzent-border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 640px;
}
.trust-karte h2 { margin-bottom: 1rem; }
.trust-karte ol { list-style: none; counter-reset: t; }
.trust-karte li { counter-increment: t; padding-left: 2.2rem; position: relative; margin-bottom: 0.7rem; }
.trust-karte li::before {
  content: counter(t, decimal-leading-zero);
  position: absolute; left: 0; top: 0.1rem;
  font-weight: 600; font-size: 0.85rem; color: var(--akzent);
  font-variant-numeric: tabular-nums;
}
.trust-zeile { display: flex; gap: 28px; align-items: center; }
.trust-detail { display: none; }

/* Kompagno und die Warteliste: Text links, Ben rechts (mobil darunter). Badge = Overlay, nie ins Bild. */
.warteliste-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.warteliste-grid .text > p { max-width: 560px; margin-top: 1rem; }
.ben-bild { position: relative; max-width: 420px; margin: 0 auto; }
.ben-bild img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
@media (min-width: 880px) {
  .warteliste-grid { grid-template-columns: 1.1fr 0.9fr; }
  .ben-bild { margin: 0; justify-self: end; }
  .trust-detail { display: block; width: 200px; height: auto; border-radius: var(--radius); flex: none; }
}

/* Ablauf 1-2-3 */
.schritte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 1.5rem; }
.schritt .nr { font-weight: 600; font-size: 0.85rem; color: var(--akzent); font-variant-numeric: tabular-nums; }
.schritt h3 { margin: 0.3rem 0 0.4rem; }
.schritt p { font-size: 0.98rem; color: var(--gedaempft); }
.nutzen-schluss { margin-top: 1.6rem; font-weight: 600; }

/* Chat-Vergleich */
.chat-vergleich .einstieg { color: var(--gedaempft); margin-bottom: 1.6rem; max-width: 640px; }
.chat-bloecke { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.chat-bloecke h3 { margin-bottom: 0.35rem; }
.chat-bloecke p { font-size: 0.98rem; color: var(--gedaempft); }

/* Abgrenzung */
.grenzen { background: var(--karton); }
.grenzen ul { list-style: none; max-width: 640px; }
.grenzen li { border-top: 1px solid var(--rahmen); padding: 1rem 0; }
.grenzen li:last-child { border-bottom: 1px solid var(--rahmen); }
.grenzen .abo-zeile { margin-top: 1.4rem; max-width: 640px; }

/* Fragen vor dem Eintragen: <details> ohne JS, Tippflaeche >= 44 px */
.fragen { max-width: 680px; }
.fragen details { border-top: 1px solid var(--rahmen); }
.fragen details:last-of-type { border-bottom: 1px solid var(--rahmen); }
.fragen summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 44px; padding: 12px 0; cursor: pointer; font-weight: 600; list-style: none;
}
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; color: var(--akzent); font-weight: 600; font-size: 1.3rem; line-height: 1; flex: none; }
.fragen details[open] summary::after { content: "\2212"; }
.fragen summary:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.fragen details p { color: var(--gedaempft); padding-bottom: 1rem; }
.fragen a, .faq a, .legal a, .danke a, .leitfaden a, .anmeldung a { color: var(--akzent); }
.anmeldung a:focus-visible, .danke a:focus-visible, .leitfaden a:focus-visible, .fragen a:focus-visible, .legal a:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

/* Formular-Bauteil (zwei Instanzen je Seite, form.js) */
.formular-sektion h2 { margin-bottom: 0.6rem; }
.anmeldung { max-width: 520px; margin-top: 0.6rem; }
form { max-width: 460px; }
.feld { margin-bottom: 1rem; }
.feld label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.3rem; }
.feld input[type="text"], .feld input[type="email"] {
  width: 100%; padding: 12px 14px;
  font: inherit; color: var(--tinte);
  /* BREACH P2-1: kein reines Weiss als Flaeche (Design-Blatt), Karton-Token statt #fff */
  background: var(--karton); border: 1px solid var(--rahmen); border-radius: var(--radius);
}
.feld input:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; border-color: var(--akzent); }
.feld-hinweis { font-size: 0.85rem; color: var(--gedaempft); margin-top: 0.3rem; }
.feld-check { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 12px; }
.feld-check input { flex: none; width: 22px; height: 22px; margin-top: 3px; accent-color: var(--akzent); cursor: pointer; }
.feld-check label { flex: 1; font-weight: 400; font-size: 0.95rem; margin: 0; cursor: pointer; }
.feld-check .feld-fehler { flex-basis: 100%; }
.feld-fehler { display: none; color: var(--fehler); font-size: 0.9rem; margin-top: 0.3rem; }
.feld.invalid .feld-fehler { display: block; }
.feld.invalid input[type="text"], .feld.invalid input[type="email"] { border-color: var(--fehler); }
/* Honeypot: offscreen, nie display:none (Bots) */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* Kleingedrucktes unter dem Button (Owner 09.10. "Schrift kleiner"): kleinste Stufe der Skala (wie Kicker/Badge), nicht darunter */
.einwilligung { font-size: 0.8rem; line-height: 1.5; color: var(--gedaempft); margin-top: 0.8rem; max-width: 460px; }
.form-erfolg, .form-netzfehler { display: none; max-width: 560px; }
.form-erfolg { border: 1px solid var(--akzent-border); border-radius: var(--radius); padding: 24px; background: var(--karton); }
.form-erfolg p { margin-top: 0.5rem; }
.form-erfolg:focus { outline: none; }
.form-netzfehler { color: var(--fehler); margin-top: 1rem; }

/* Danke-Seiten */
.danke .direktlink { font-size: 0.9rem; margin-top: 0.6rem; }
.danke .ig-zeile { margin-top: 1rem; }
.faq { max-width: 640px; }
.faq h3 { margin-top: 1.4rem; }
.faq p { color: var(--gedaempft); }

/* Ben-Video (Danke-Seiten): Badge als Overlay-Layer, nie ins Bild gerendert */
.ben-video { position: relative; max-width: 380px; margin: 2rem 0; }
.ben-video video { width: 100%; height: auto; border-radius: var(--radius); display: block; background: var(--karton); }
.ki-badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  font-weight: 600; font-size: 0.8rem;
  color: var(--akzent);
  background: rgba(244, 241, 235, 0.85);
  padding: 4px 10px; border-radius: var(--radius);
}

/* Leitfaden-Seite */
.leitfaden { padding-top: 24px; }
.leitfaden-cover { display: block; width: 105px; height: auto; border-radius: var(--radius); margin-bottom: 1.2rem; }
.leitfaden h1 { max-width: 20ch; }
.leitfaden .unterzeile { font-size: clamp(1.05rem, 2.5vw, 1.3rem); color: var(--gedaempft); margin-top: 0.9rem; }
.leitfaden .faktenzeile { font-weight: 600; margin-top: 0.8rem; }
.leitfaden .einstieg { margin-top: 1.6rem; }
.leitfaden p + p { margin-top: 1rem; }
.leitfaden .messzeile { font-size: 0.92rem; color: var(--gedaempft); }
.leitfaden h2 { margin-top: 2.6rem; }
.schritt-titel .schritt-nr { color: var(--akzent); font-variant-numeric: tabular-nums; }
.zeit-chip {
  display: inline-block; margin-left: 6px; vertical-align: 0.15em;
  font-size: 0.8rem; font-weight: 600; line-height: 1.5; font-variant-numeric: tabular-nums; color: var(--akzent);
  border: 1px solid var(--akzent-border); border-radius: var(--radius); padding: 0 8px; white-space: nowrap;
}
/* Lange deutsche Komposita in der Fraunces-h1 nicht am Bindestrich brechen (Design-Blatt: manueller Umbruch) */
.nobr { white-space: nowrap; }
.leitfaden ul { margin: 0.8rem 0 0 1.2rem; }
.leitfaden li { margin-bottom: 0.4rem; }
.leitfaden ul.vorteile { margin-left: 0; }
.vorlage-kasten { background: var(--karton); border: 1px solid var(--rahmen); border-radius: var(--radius); margin: 1.4rem 0; }
.vorlage-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 8px 6px 16px; border-bottom: 1px solid var(--rahmen); }
.vorlage-kopf h3 { font-size: 0.95rem; }
.kopier-knopf {
  min-height: 44px; min-width: 44px; padding: 0 18px;
  background: var(--akzent); color: var(--kalkputz); border: none; border-radius: var(--radius);
  font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer;
}
.kopier-knopf:hover { background: var(--akzent-hover); }
.kopier-knopf:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.vorlage { font-family: var(--font-sans); font-size: 0.95rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px; margin: 0; }
.kopier-hinweis { display: none; padding: 0 16px 14px; font-size: 0.9rem; color: var(--tinte); }
.kopier-hinweis.sichtbar { display: block; }
/* Aufklappbares Beispiel (WRITER Leitfaden v2, 09.10.): <details> ohne JS, standardmaessig zu, Tippflaeche >= 44 px */
.leitfaden .beispiel { border: 1px solid var(--rahmen); border-radius: var(--radius); padding: 0 16px; margin: 1.4rem 0; }
.leitfaden .beispiel summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 44px; padding: 12px 0; cursor: pointer; font-weight: 600; color: var(--akzent); list-style: none;
}
.leitfaden .beispiel summary::-webkit-details-marker { display: none; }
.leitfaden .beispiel summary::after { content: "+"; font-weight: 600; font-size: 1.3rem; line-height: 1; flex: none; }
.leitfaden .beispiel[open] summary::after { content: "\2212"; }
.leitfaden .beispiel summary:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.leitfaden .beispiel[open] { padding-bottom: 16px; }
.leitfaden .beispiel-titel { font-weight: 600; margin-top: 1.4rem; }
.leitfaden .beispiel .vorlage-kasten { margin-top: 0.6rem; }

/* Footer hell (Farbfassung B): Moos neben Dunkel haette nur 2,41:1 (CLOSE 07.10.) */
footer {
  background: var(--karton);
  color: var(--tinte);
  border-top: 1px solid var(--rahmen);
  padding: 48px 0;
  margin-top: 40px;
}
footer p { color: var(--gedaempft); font-size: 0.95rem; margin-top: 0.6rem; max-width: 44ch; }
footer nav { margin-top: 1.2rem; }
footer nav a, footer .footer-meta a { display: inline-block; padding: 4px 0; }
footer a { color: var(--akzent); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer a:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
footer .footer-meta { max-width: none; }

/* Legal-Seiten */
.legal h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.2rem; margin-top: 1.8rem; }
.legal p, .legal li { color: var(--tinte); font-size: 0.98rem; }
.legal p + p { margin-top: 0.6rem; }
.legal ul { padding-left: 1.2rem; margin: 0.5rem 0; }

@media (max-width: 720px) {
  .schritte, .chat-bloecke { grid-template-columns: 1fr; gap: 20px; }
  section { padding: 40px 0; }
  .hero { padding: 24px 0 40px; }
}

/* [Codex 28.08. #4] Ersatz fuer Inline-Styles: CSP style-src 'self' verbietet style="" */
.trust--kompakt { padding-top: 40px; }
.abstand-oben-doppelt { margin-top: 2rem; }

/* ---------- Anmelde-Karten in Moos (Farbfassung B, fest seit 08.10.) ----------
   Kontraste (CLOSE 07.10., WCAG-Formel): Kalk auf Moos 5,58 · heller Button mit Moos-Schrift 5,58, Hover 8,27 ·
   Fehler nur in heller Box (5,25) · gedaempfte Toene nie auf Moos. */
.anmelde-karte { background: var(--akzent); color: var(--kalkputz); border-radius: var(--radius); padding: 28px 24px; max-width: 560px; }
.anmelde-karte .feld label,
.anmelde-karte .feld-hinweis,
.anmelde-karte .einwilligung { color: var(--kalkputz); }
.anmelde-karte a { color: var(--kalkputz); text-decoration: underline; }
.anmelde-karte .btn { background: var(--kalkputz); color: var(--akzent); }
.anmelde-karte .btn:hover { background: var(--kalkputz); color: var(--akzent-hover); }
.anmelde-karte .btn:focus-visible,
.anmelde-karte input:focus-visible,
.anmelde-karte a:focus-visible { outline-color: var(--kalkputz); }
.anmelde-karte .feld-check input { accent-color: var(--kalkputz); }
.anmelde-karte .feld-fehler,
.anmelde-karte .form-netzfehler { background: var(--kalkputz); color: var(--fehler); padding: 6px 10px; border-radius: var(--radius); }
.anmelde-karte .form-erfolg { background: var(--kalkputz); color: var(--tinte); border-color: transparent; }
