/* =====================================================================
   /wissen/ki-starter/ und die Zustandsseiten der Strecke — Produktdesign des Guides.

   Quelle der Anmutung: der Guide selbst (Produkt 09, Stylesheet v03 vom 29.09.2026,
   02_Products/Digital_Products/09_ki-starter-de/_src/styles.css + app.css): warmes Papier,
   Tinte, EIN Petrol-Akzent, Serif-Ueberschriften, feine Linien, ruhige Kaesten. Das fruehere
   Lime/Oliv-System (k9-components.css, DESIGN_SYSTEM v01/v02) ist damit abgeloest.

   SCOPE. Jeder Selektor dieser Datei beginnt mit `.k9` (dem <main> der KI-Starter-Seiten).
   Kopf, Fuss und alle anderen Seiten bleiben damit unberuehrt; test/ki-starter-seite.test.mjs
   prueft das Selektor fuer Selektor. Einzige Ausnahme sind die @font-face-Regeln: Schriftnamen
   sind dokumentweit, deshalb tragen sie eigene Namen („K9 …") und nie „Inter" — sonst wuerde
   die Schrift auch im Kopf der Seite greifen, der „Inter Tight", Inter anfordert.

   SCHRIFTEN (alle SIL OFL 1.1, Lizenztexte in fonts/): byte-gleiche Kopien aus
   _src/assets/fonts des Guides. DS Serif = statische Instanzen aus Source Serif 4, umbenannt,
   weil „Source" Reserved Font Name ist. Jede Serif gibt es in genau einem Schnitt; Ueberschriften
   setzen deshalb font-weight 400 (sonst synthetisiert der Browser Fettdruck).
   ===================================================================== */

@font-face { font-family: "K9 Serif Display"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/DSSerif-Display.woff2") format("woff2"); }
@font-face { font-family: "K9 Serif Head"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/DSSerif-Head.woff2") format("woff2"); }
@font-face { font-family: "K9 Serif Text"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/DSSerif-Text.woff2") format("woff2"); }
@font-face { font-family: "K9 Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "K9 Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "K9 Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/JetBrainsMono-Regular-subset.woff2") format("woff2"); }

/* ---- Grundflaeche: Papierband zwischen dunklem Kopf und Fuss ----------------------------- */
.k9 {
  --k9-page:        #faf8f3;
  --k9-surface:     #ffffff;
  --k9-ink:         #16181d;
  --k9-ink-soft:    #3f444c;
  --k9-muted:       #5e646d;
  --k9-line:        #e5e0d5;
  --k9-line-strong: #cdc6b6;
  --k9-accent:      #0f5c57;
  --k9-accent-ink:  #0a3d39;
  --k9-accent-wash: #ebf2ef;
  --k9-accent-line: #a9c6c0;
  --k9-bad:         #a8432e;
  --k9-bubble:      #edeae3;
  --k9-code-wash:   #f3f0e8;
  --k9-serif-display: "K9 Serif Display", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --k9-serif-head:    "K9 Serif Head", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --k9-serif-text:    "K9 Serif Text", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --k9-sans: "K9 Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --k9-mono: "K9 Mono", ui-monospace, Menlo, Consolas, monospace;
  --k9-col: 42rem;   /* Founder 29.09.: nichts ist breiter als der Fliesstext */

  /* Innenabstand statt Breite: das Papier geht bis an den Rand, der Inhalt steht in der Spalte. */
  padding: 56px max(20px, calc((100% - var(--k9-col)) / 2)) 96px;
  background: var(--k9-page);
  color: var(--k9-ink);
  color-scheme: light;
  font-family: var(--k9-sans);
  font-size: 17px;
  line-height: 1.68;
  font-kerning: normal;
}
.k9 ::selection { background: var(--k9-accent-wash); color: var(--k9-ink); }
.k9 :focus-visible { outline: 2px solid var(--k9-accent); outline-offset: 3px; }
.k9 p { margin: 0 0 1.05em; }
.k9 strong,
.k9 b { font-weight: 600; color: var(--k9-ink); }
.k9 a { color: var(--k9-accent); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 3px; text-decoration-color: var(--k9-accent-line); }
.k9 a:hover { text-decoration-color: var(--k9-accent); }
.k9 :not(pre) > code { font-family: var(--k9-mono); font-size: .84em; padding: .08em .34em;
  border-radius: 4px; background: var(--k9-code-wash); color: var(--k9-ink); overflow-wrap: break-word;
  hyphens: none; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.k9 h1,
.k9 h2,
.k9 h3 { color: var(--k9-ink); font-weight: 400; letter-spacing: 0; }
.k9 h1 { max-width: 12em; margin: 0 0 .45em; font-family: var(--k9-serif-display);
  font-size: clamp(2.45rem, 1.6rem + 3.4vw, 3.8rem); line-height: 1.03; letter-spacing: -.018em; }
.k9 h2 { max-width: none; margin: 0 0 .7em; font-family: var(--k9-serif-head);
  font-size: clamp(1.45rem, 1.2rem + 1vw, 1.75rem); line-height: 1.22; letter-spacing: -.004em; }
.k9 h3 { margin: 0 0 .35em; font-family: var(--k9-serif-head); font-size: 1.2rem; line-height: 1.3; }

.k9 .eyebrow,
.k9 .meta { margin: 0 0 .9rem; font: 600 .72rem/1.4 var(--k9-sans); letter-spacing: .15em;
  text-transform: uppercase; color: var(--k9-accent); }
.k9 .meta { color: var(--k9-muted); }
.k9 .lead { max-width: none; margin: 0 0 1.6rem; font-family: var(--k9-serif-text);
  font-size: 1.3rem; line-height: 1.55; color: var(--k9-ink-soft); }
.k9 .text-link { color: var(--k9-accent); text-decoration: underline; }

.k9 .k9-pfad { margin: 0 0 2.2rem; font-size: .82rem; color: var(--k9-muted); }
.k9 .k9-pfad a { color: var(--k9-muted); }

/* ---- Knoepfe: Petrol gefuellt (primaer), Linie (sekundaer) ------------------------------- */
.k9 .button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  padding: 10px 24px; border: 1px solid var(--k9-accent); border-radius: 999px;
  background: transparent; color: var(--k9-accent); font: 600 .98rem/1.3 var(--k9-sans);
  text-align: center; text-decoration: none; transform: none; cursor: pointer; }
.k9 .button:hover,
.k9 .button:focus-visible { background: var(--k9-accent-wash); transform: none; }
.k9 .button.primary { background: var(--k9-accent); border-color: var(--k9-accent); color: #fff; }
.k9 .button.primary:hover,
.k9 .button.primary:focus-visible { background: var(--k9-accent-ink); border-color: var(--k9-accent-ink); }
.k9 .button[disabled] { opacity: .7; cursor: progress; }

/* ---- Kopf der Landingpage --------------------------------------------------------------- */
.k9 .k9-hero { padding: 8px 0 8px; }
.k9 .k9-hero .lead::after { content: ""; display: block; width: 56px; height: 2px; margin-top: 1.6rem;
  background: var(--k9-accent); }
.k9 .k9-kopf-aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 1.4rem; }
.k9 .k9-stand { margin: 0; font-size: .85rem; line-height: 1.55; color: var(--k9-muted); }

/* ---- Abschnitte ------------------------------------------------------------------------- */
.k9 .k9-abschnitt { margin-top: 4.2rem; }
.k9 .k9-abschnitt > p { color: var(--k9-ink-soft); }

/* Fahrplan-Leiste (wie im Guide: Kreise, Verbindungslinie, aktuelle Station gefuellt). */
.k9 .k9-route { margin: 1.4rem 0 2.4rem; }
.k9 .k9-route__status { margin: 0 0 .9rem; font: 600 .68rem/1.4 var(--k9-sans); letter-spacing: .14em;
  text-transform: uppercase; color: var(--k9-muted); }
.k9 .k9-route ol { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); list-style: none;
  margin: 0; padding: 0; }
.k9 .k9-route li { position: relative; display: flex; flex-direction: column; align-items: flex-start;
  gap: 7px; margin: 0; }
.k9 .k9-route li:not(:last-child)::after { content: ""; position: absolute; top: 11px; left: 24px; right: 0;
  height: 1px; background: var(--k9-line-strong); }
.k9 .k9-route__n { position: relative; z-index: 1; display: grid; place-items: center; width: 23px; height: 23px;
  border: 1px solid var(--k9-line-strong); border-radius: 50%; background: var(--k9-page);
  font-size: .7rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--k9-muted); }
.k9 .k9-route [aria-current="step"] .k9-route__n { border-color: var(--k9-accent); background: var(--k9-accent); color: #fff; }
.k9 .k9-route__t { padding-right: 6px; font-size: .74rem; line-height: 1.25; color: var(--k9-muted); overflow-wrap: anywhere; }
.k9 .k9-route [aria-current="step"] .k9-route__t { color: var(--k9-ink); font-weight: 600; }

/* Stationen: ruhige nummerierte Liste, Ziffer in Serif, Haarlinie zwischen den Stationen. */
.k9 .k9-steps { list-style: none; margin: 0 0 1.8rem; padding: 0; counter-reset: k9-station;
  border-top: 1px solid var(--k9-ink); }
.k9 .k9-steps > li { counter-increment: k9-station; position: relative; margin: 0;
  padding: 1.05rem 0 1rem 3rem; border-bottom: 1px solid var(--k9-line); }
.k9 .k9-steps > li::before { content: counter(k9-station); position: absolute; left: 0; top: .95rem;
  font: 400 1.5rem/1.2 var(--k9-serif-display); color: var(--k9-accent); font-variant-numeric: lining-nums; }
.k9 .k9-steps > li > h3 { margin: 0 0 .25rem; font-size: 1.2rem; }
.k9 .k9-steps > li > p { margin: 0; color: var(--k9-ink-soft); font-size: .97rem; }

/* ---- Auszug aus dem Guide: Nutzerblase und Antwortstil wie im Guide (styles.css v03) ----- */
.k9 .k9-auszug { margin: 2.6rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--k9-line); }
.k9 .k9-auszug__titel { margin: 0 0 .3rem; font-weight: 600; color: var(--k9-ink); }
.k9 .k9-auszug__marke { margin: 0 0 .2rem; font: 600 .64rem/1.4 var(--k9-sans); letter-spacing: .14em;
  text-transform: uppercase; color: #6d7179; }
.k9 .k9-box__label { display: block; margin: 0 0 .5rem; font: 600 .68rem/1.4 var(--k9-sans);
  letter-spacing: .14em; text-transform: uppercase; color: var(--k9-muted); }
/* „Schreib das an Claude": deine Nachricht in der Claude-App — Blase rechts. */
.k9 .k9-prompt { display: flex; flex-direction: column; align-items: flex-end; margin: 1.6rem 0 1.4rem; }
.k9 .k9-prompt > .k9-box__label { margin-bottom: .55rem; color: var(--k9-ink-soft); }
.k9 .k9-prompt__text { width: fit-content; max-width: min(88%, 34rem); margin: 0;
  padding: .72rem 1.05rem .76rem; border-radius: 16px 16px 5px 16px; background: var(--k9-bubble);
  color: var(--k9-ink); font-size: .97rem; line-height: 1.58; overflow-wrap: break-word; hyphens: manual; }
/* „Das solltest du sehen": Claudes Antwort — ohne Blase, links, Arbeitspunkt wie in der App. */
.k9 .k9-see { margin: 0 0 .4rem; padding: .15rem 0 .1rem 1.3rem; border-left: 1px solid var(--k9-line-strong); }
.k9 .k9-see > .k9-box__label { position: relative; color: var(--k9-accent); }
.k9 .k9-see > .k9-box__label::before { content: ""; position: absolute; left: calc(-1.3rem - 4px); top: .3em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--k9-accent); box-shadow: 0 0 0 3px var(--k9-page); }
.k9 .k9-checks { margin: 0; padding-left: 1.1em; color: var(--k9-ink-soft); font-size: .97rem; }
.k9 .k9-checks > li { margin: .3em 0; }
.k9 .k9-checks > li::marker { color: var(--k9-muted); }

/* ---- Videos: echtes Poster, Film vom eigenen Medien-Origin, preload none, Text zum Film ---- */
.k9 .k9-videos { list-style: none; margin: 1.6rem 0 0; padding: 0; border-top: 1px solid var(--k9-line); }
.k9 .k9-videos > li { margin: 0; padding: 1.3rem 0; border-bottom: 1px solid var(--k9-line); }
.k9 .k9-video { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 1.3rem; align-items: start; margin: 0; }
.k9 .k9-video__platz { position: relative; overflow: hidden; aspect-ratio: 16 / 9;
  border: 1px solid var(--k9-line); border-radius: 8px; background: #0b2f2c; }
.k9 .k9-video__platz img { display: block; width: 100%; height: 100%; object-fit: cover; }
.k9 .k9-video__platz video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.k9 .k9-video__text { margin-top: .6rem; font-size: .88rem; }
.k9 .k9-video__text summary { cursor: pointer; color: var(--k9-ink); }
.k9 .k9-video__text ol { margin: .4rem 0 0; padding-left: 1.2rem; }
.k9 .k9-video figcaption { color: var(--k9-ink-soft); font-size: .93rem; line-height: 1.55; }
.k9 .k9-video figcaption strong { display: block; margin-bottom: .25rem; font: 400 1.15rem/1.3 var(--k9-serif-head); color: var(--k9-ink); }
.k9 .k9-video__hinweis { display: block; margin-top: .5rem; font-size: .8rem; color: var(--k9-muted); }

/* ---- Kapiteluebersicht ------------------------------------------------------------------ */
.k9 .k9-kapitel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; margin: 1.4rem 0 1.6rem;
  border-top: 1px solid var(--k9-ink); }
.k9 .k9-kapitel h3 { margin: 1.3rem 0 .4rem; font: 600 .68rem/1.4 var(--k9-sans); letter-spacing: .15em;
  text-transform: uppercase; color: var(--k9-accent); }
.k9 .k9-kapitel ol { list-style: none; margin: 0; padding: 0; counter-reset: k9-kap; }
.k9 .k9-kapitel ol[start="7"] { counter-reset: k9-kap 6; }
.k9 .k9-kapitel li { counter-increment: k9-kap; display: grid; grid-template-columns: 2.1rem minmax(0, 1fr);
  margin: 0; padding: .45rem 0; border-bottom: 1px solid var(--k9-line); color: var(--k9-ink); line-height: 1.45; }
.k9 .k9-kapitel li::before { content: counter(k9-kap, decimal-leading-zero); padding-top: .12em;
  font-size: .78rem; font-variant-numeric: tabular-nums; color: var(--k9-accent); }

/* ---- Formular (Text und Markup erzeugt scripts/ki-starter.js; hier nur die Form) --------- */
.k9 .k9-optin { margin-top: 1.4rem; padding: 1.5rem 1.4rem .6rem; border: 1px solid var(--k9-line);
  border-radius: 10px; background: var(--k9-surface); }
.k9 .k9-optin__feld { display: grid; gap: 8px; margin: 0 0 1.2rem; }
.k9 .k9-optin__feld label { font-weight: 600; color: var(--k9-ink); }
.k9 .k9-optin input[type="email"] { width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--k9-line-strong); border-radius: 10px; background: var(--k9-surface); color: var(--k9-ink);
  font: 400 1rem/1.4 var(--k9-sans); }
.k9 .k9-optin input[type="email"]:focus-visible { outline: 2px solid var(--k9-accent); outline-offset: 1px; border-color: var(--k9-accent); }
.k9 .k9-optin input[type="email"][aria-invalid="true"] { border-color: var(--k9-bad); }
.k9 .k9-optin__fehler { margin: 0; padding-left: 10px; border-left: 2px solid var(--k9-bad); color: var(--k9-bad); font-size: .92rem; }
.k9 .k9-optin__fehler:empty { display: none; }
.k9 .k9-optin__hinweis { color: var(--k9-ink-soft); font-size: .95rem; line-height: 1.6; }
.k9 .k9-optin__wahl { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; margin: 1.1rem 0; }
.k9 .k9-optin__wahl input { width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--k9-accent); }
.k9 .k9-optin__wahl label { color: var(--k9-ink-soft); font-size: .95rem; line-height: 1.6; }
.k9 .k9-optin__klein { color: var(--k9-muted); font-size: .86rem; line-height: 1.6; }
/* Honigtopf: nicht dargestellt (Autofill fuellt keine display:none-Felder) und aus dem
   Vorlesebaum genommen (aria-hidden am Behaelter). Bots ohne CSS sehen ein normales Feld. */
.k9 .k9-optin__hp { display: none; }

/* ---- Vertragsschluss: Schritte mit Serif-Ziffer ----------------------------------------- */
.k9 .k9-vertrag { list-style: none; margin: 1.2rem 0 1.4rem; padding: 0; counter-reset: k9-vertrag; }
.k9 .k9-vertrag > li { counter-increment: k9-vertrag; position: relative; margin: 0 0 .9rem; padding-left: 2.3rem; color: var(--k9-ink-soft); }
.k9 .k9-vertrag > li::before { content: counter(k9-vertrag); position: absolute; left: 0; top: -.08em;
  font: 400 1.22rem/1.4 var(--k9-serif-display); color: var(--k9-accent); }

/* ---- Haeufige Fragen: ruhige Akkordeons ------------------------------------------------- */
.k9 .k9-faq details { border-bottom: 1px solid var(--k9-line); }
.k9 .k9-faq details:first-of-type { border-top: 1px solid var(--k9-ink); }
.k9 .k9-faq summary { display: flex; justify-content: space-between; gap: 1rem; padding: .95rem 0;
  cursor: pointer; list-style: none; font-weight: 600; color: var(--k9-ink); }
.k9 .k9-faq summary::-webkit-details-marker { display: none; }
.k9 .k9-faq summary::after { content: "+"; flex: none; font: 400 1.3rem/1 var(--k9-sans); color: var(--k9-accent); }
.k9 .k9-faq details[open] > summary::after { content: "\2212"; }
.k9 .k9-faq details > p { margin: 0 0 1.1rem; color: var(--k9-ink-soft); }

/* Werbung: gekennzeichneter Kasten, Reiter schneidet die Oberkante (wie .box.ad im Guide). */
.k9 .k9-ad-blatt { margin: .6rem 0 1.3rem; }
.k9 .k9-ad { position: relative; margin: 1.1rem 0 0; padding: 1.4rem 1.3rem .9rem; border: 1px solid var(--k9-line-strong);
  border-radius: 10px; background: var(--k9-surface); font-size: .94rem; color: var(--k9-ink-soft); }
.k9 .k9-ad__label { position: absolute; top: -.72em; left: 1.1rem; margin: 0; padding: 0 .6em; background: var(--k9-page);
  font: 600 .68rem/1.4 var(--k9-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--k9-ink); }
.k9 .k9-ad p { margin: 0 0 .6rem; }
.k9 .k9-ad .k9-ad__alt { font-size: .94rem; }   /* nie kleiner als der Werbelink */

/* ---- Eigenwerbung: dezent, Linie statt Kasten ------------------------------------------- */
.k9 .k9-werkstatt { margin-top: 4.2rem; padding-top: 1.1rem; border-top: 1px solid var(--k9-line-strong); }
.k9 .k9-werkstatt__label { margin: 0 0 .6rem; font: 600 .68rem/1.4 var(--k9-sans); letter-spacing: .14em;
  text-transform: uppercase; color: var(--k9-muted); }
.k9 .k9-werkstatt ul { list-style: none; margin: 0; padding: 0; }
.k9 .k9-werkstatt li { margin: 0; padding: .55rem 0; border-bottom: 1px solid var(--k9-line); color: var(--k9-ink-soft); font-size: .93rem; }
.k9 .k9-werkstatt li a { font-weight: 600; }

/* ---- Zustandsseiten der Strecke (fast geschafft, Bestaetigen, Willkommen, Abmelden) ------ */
.k9.k9-status { min-height: 52vh; }
.k9 .k9-status__form { margin: 1.8rem 0 1rem; }
.k9 .k9-status__aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.8rem 0 1.2rem; }
.k9 .k9-status__klein { font-size: .9rem; color: var(--k9-muted); }
.k9 .k9-status__code { margin-top: 2.4rem; font-size: .84rem; color: var(--k9-muted); }

/* ---- Schmal ------------------------------------------------------------------------------ */
@media (max-width: 620px) {
  .k9 { padding-top: 32px; padding-bottom: 64px; font-size: 16.5px; line-height: 1.66; }
  .k9 .lead { font-size: 1.16rem; }
  .k9 .k9-abschnitt,
  .k9 .k9-werkstatt { margin-top: 3.2rem; }
  /* Beschriftungen wuerden auf 45 px Spaltenbreite zerbroeseln. Die Statuszeile traegt sie. */
  .k9 .k9-route__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .k9 .k9-route li:not(:last-child)::after { left: 22px; }
  .k9 .k9-prompt__text { max-width: 94%; }
  .k9 .k9-video { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
  .k9 .k9-kapitel { grid-template-columns: minmax(0, 1fr); }
  .k9 .k9-optin { padding: 1.2rem 1rem .4rem; }
  .k9 .k9-ad { padding: 1.3rem 1rem .8rem; }
}
