/* Kursbereich „KI im Kleinunternehmen“ – gleiche Farben und Schriften wie Kurs und Verkaufsseite. */
:root {
  /* Design v3 „Studio-Kulisse“ (19.10.2026): Tinte, warmes Papier, Sandlinien, Orange als einziger Akzent;
     Bricolage Grotesque + Inter. --tone (je Ausgabe) nur für Bild, Emblem und Band unten. */
  --bg: #FBF8F3; --surface: #FFFFFF; --sunk: #F4EFE7; --ink: #1E2A32; --ink-2: #4C5A65; --ink-3: #6B7883;
  --line: #EAE3D7; --accent: #E8692E; --accent-ink: #B4491A; --accent-tint: #FDEBE1; --btn-ink: #1E2A32; /* dunkle Schrift auf Orange: 4,5:1 (weiß war 3,2:1), 20.10.2026 */
  --good: #2F7D5B; --good-tint: #E3F2EA; --bad: #B23A2E; --bad-tint: #F8E1DE; --warn: #B17B1F; --warn-tint: #FBEFD9;
  --stage: #1E2A32; --on-stage: #F3F5F6; --on-stage-2: #B5C0C7; --stage-line: #3A4852;
  --display: "Bricolage Grotesque", Arial, sans-serif;
  --body: "Inter", Arial, sans-serif;
  --r: 16px;
  --shadow: 0 1px 0 #EAE3D7, 0 18px 40px -28px rgba(60,40,20,.35);
  --tone: #E8692E; --scene-fade: 251,248,243;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141C21; --surface: #1C262D; --sunk: #232F37; --ink: #ECEFF1; --ink-2: #A9B4BC; --ink-3: #8F9BA4;
    --line: #2C3943; --accent: #F07E46; --accent-ink: #F59B6E; --accent-tint: #3A2418; --btn-ink: #11181D;
    --good: #6CC49A; --good-tint: #183326; --bad: #E58A8A; --bad-tint: #3A1C1C; --warn: #E3B567; --warn-tint: #352A15;
    --stage: #0B1115; --stage-line: #2C3943;
    --shadow: 0 1px 0 #10171B, 0 18px 40px -28px rgba(0,0,0,.7); --scene-fade: 20,28,33;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16.5px/1.6 var(--body); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--accent-ink); }
img, video { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 980px; margin-inline: auto; padding-inline: 16px; }
.wrap.wide { max-width: 1180px; }
@media (min-width: 720px) { .wrap { padding-inline: 28px; } }
main.wrap { flex: 1; padding-block: 32px 56px; display: grid; gap: 22px; align-content: start; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 4px; }
.lead { font-size: 18px; color: var(--ink-2); }
.small { font-size: 14px; color: var(--ink-2); }
.notice { background: var(--accent-tint); color: var(--accent-ink); border-radius: 10px; padding: 10px 14px; font-weight: 700; }

/* Kopf und Fuß */
.top { background: var(--stage); color: var(--on-stage); border-bottom: 4px solid var(--accent); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.mark { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); position: relative; flex: none; }
.mark::after { content: ""; position: absolute; inset: 9px; border: 3px solid #fff; border-radius: 3px; }
.brand b { font-family: var(--display); font-weight: 800; font-size: 16.5px; display: block; line-height: 1.2; }
.brand small { color: var(--on-stage-2); font-size: 12.5px; }
.nav { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; font-size: 15px; }
.nav a { color: var(--on-stage-2); text-decoration: none; }
.nav a[aria-current="page"], .nav a:hover { color: var(--on-stage); }
.nav .linkbtn { color: var(--on-stage-2); }
.foot { font-size: 14px; color: var(--ink-2); }
.foot::before { content: ""; display: block; height: 6px; background: linear-gradient(90deg, var(--accent) 0 30%, var(--tone) 30% 100%); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-block: 18px 28px; }
.legal { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.legal a { color: var(--ink-2); }

/* Bausteine */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.card.narrow { max-width: 560px; width: 100%; justify-self: center; margin-top: 4vh; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: 999px; border: 2px solid transparent; background: var(--accent); color: var(--btn-ink); font: 700 16px var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink-3); }
.btn.small { min-height: 38px; padding: 6px 14px; font-size: 15px; }
.btn[disabled] { opacity: .4; cursor: default; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-ink); cursor: pointer; text-decoration: underline; }
.linkbtn[disabled] { opacity: .4; cursor: default; text-decoration: none; }
form.inline { display: inline; }
.stack { display: grid; gap: 10px; }
label { font-weight: 700; font-size: 15px; }
input[type=email], input[type=text], input[type=number], input:not([type]), input[name=name] { font: inherit; padding: 11px 13px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); width: 100%; }
input:focus { border-color: var(--accent); outline: none; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { font: 700 11px var(--body); letter-spacing: .08em; text-transform: uppercase; background: var(--sunk); color: var(--ink-2); border-radius: 999px; padding: 3px 9px; vertical-align: middle; margin-left: 6px; }
.progress { height: 10px; background: var(--sunk); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

/* Übersicht */
.hero-card { background: var(--stage); color: var(--on-stage); border-radius: 18px; padding: 26px; display: grid; gap: 20px; align-items: end; }
.hero-card .eyebrow { color: #F07E46; }
.hero-card .lead { color: var(--on-stage-2); margin-block: 6px 12px; }
.hero-card .progress { background: var(--stage-line); max-width: 460px; }
@media (min-width: 760px) { .hero-card { grid-template-columns: 1fr auto; } }
.module { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.module header { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-items: baseline; padding: 18px 20px 12px; }
.mod-no { font: 800 13px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.module h2 { font-size: 19px; }
.mod-count { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 560px) { .module header { grid-template-columns: 1fr auto; } .module h2 { grid-column: 1 / -1; grid-row: 2; } }
.lessons { list-style: none; margin: 0; padding: 0; }
.lesson-row { display: grid; grid-template-columns: 44px 1fr auto 28px; gap: 12px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.lesson-row:hover { background: var(--sunk); }
.lno { font: 700 13px var(--body); color: var(--ink-2); font-variant-numeric: tabular-nums; justify-self: start; min-width: 38px; text-align: center; padding: 4px 7px; border-radius: 999px; background: var(--sunk); background: color-mix(in srgb, var(--tone) 14%, var(--surface)); }
@media (max-width: 560px) { .lno { min-width: 32px; padding: 3px 5px; font-size: 12.5px; } }
.lesson-row.locked .lno { background: var(--sunk); color: var(--ink-3); }
.lt { min-width: 0; }
.lt b { display: block; font-size: 16px; line-height: 1.35; }
.lt small { display: block; font-size: 13.5px; color: var(--ink-3); line-height: 1.4; }
.lm { font-size: 13.5px; color: var(--ink-3); white-space: nowrap; }
.check { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 14px; font-weight: 700; color: transparent; }
.lesson-row.done .check { background: var(--good); border-color: var(--good); color: #fff; }
@media (max-width: 560px) { .lesson-row { grid-template-columns: 36px 1fr 26px; } .lm { display: none; } }

/* Lektion */
.crumb { font-size: 14px; color: var(--ink-3); }
.crumb a { color: var(--ink-2); }
.lesson-grid { display: grid; gap: 22px; align-items: start; }
@media (min-width: 980px) { .lesson-grid { grid-template-columns: minmax(0, 1fr) 300px; } }
.lesson-main { min-width: 0; }
.lesson-side { display: grid; gap: 16px; }
.player { display: grid; gap: 12px; }
.stage { background: var(--stage); border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; display: grid; place-items: center; box-shadow: 0 20px 40px -26px rgba(0,0,0,.5); }
.stage img, .stage video, .stage iframe { width: 100%; height: 100%; object-fit: contain; background: #fff; border: 0; }
.controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.counter { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.notes { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.notes summary { cursor: pointer; font-weight: 700; }
.notes div { white-space: pre-line; color: var(--ink-2); margin-top: 8px; font-size: 16px; }
.hint { font-size: 13.5px; color: var(--ink-3); }
.done-note { color: var(--good); font-weight: 700; }
.quiz fieldset { border: 0; margin: 0; padding: 14px 0 6px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.quiz legend { font-weight: 700; padding: 0; margin-bottom: 6px; }
.opt { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 16px; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.opt:hover { background: var(--sunk); }
.opt input { margin-top: 5px; accent-color: var(--accent); }
.opt.right { background: var(--good-tint); }
.opt.wrong { background: var(--bad-tint); }
.feedback { font-size: 15px; color: var(--ink-2); }
.feedback b.ok { color: var(--good); }
.feedback b.no { color: var(--bad); }
.lesson-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; font-size: 15px; }
.lesson-nav a { color: var(--ink-2); text-decoration: none; max-width: 48%; }
.lesson-nav a:hover { color: var(--accent-ink); }
@media (max-width: 560px) { .lesson-nav a { max-width: 100%; } }

/* Verwaltung */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; display: grid; gap: 2px; }
.tile b { font: 800 26px var(--display); font-variant-numeric: tabular-nums; }
.tile span { font-size: 14px; color: var(--ink-2); }
.grid-form { display: grid; gap: 12px; }
@media (min-width: 760px) { .grid-form { grid-template-columns: repeat(3, 1fr); align-items: end; } }
.grid-form label { display: grid; gap: 6px; }
.check-label { display: flex !important; align-items: center; gap: 8px; font-weight: 400; }
.table-card { padding: 22px 0 8px; }
.table-card h2, .table-card > p { padding-inline: 22px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
td small { display: block; color: var(--ink-3); font-size: 13px; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
td.actions { white-space: nowrap; }
td.actions form + form { margin-left: 12px; }
td pre { white-space: pre-wrap; font-size: 13px; color: var(--ink-2); max-width: 520px; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.pill.ok { background: var(--good-tint); color: var(--good); }
.pill.off { background: var(--bad-tint); color: var(--bad); }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

.card > .btn { justify-self: start; }

/* Lektion: Folien in 16:9 */
.stage img { background: #fff; }

/* Erinnerungen */
.reminder-card { grid-template-columns: 1fr; }
.reminder-card form { justify-self: start; }

/* Kaufen */
.buy-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .buy-grid { grid-template-columns: minmax(0, 1fr) 440px; } }
.buy-info { display: grid; gap: 14px; padding-top: 8px; }
.included { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 10px; }
.included li { position: relative; padding: 12px 14px 12px 50px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.included li::before { content: "✓"; position: absolute; left: 14px; top: 12px; width: 24px; height: 24px; border-radius: 7px; background: var(--accent-tint); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.included b { font-weight: 700; }
.included span { color: var(--ink-2); }
.buy-card { gap: 12px; box-shadow: 0 24px 50px -32px rgba(30,42,50,.45); }
.price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.price b { font: 800 46px/1 var(--display); letter-spacing: -.03em; color: var(--ink); }
.price span { color: var(--ink-2); font-size: 15px; }
.opt-label { font-weight: 400; color: var(--ink-3); }
.field-hint { margin-top: -4px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 15px; line-height: 1.5; background: var(--sunk); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.consent:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.consent a { white-space: nowrap; }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 12px; }
.total b { font: 800 22px var(--display); }
.total small { font: 400 13px var(--body); color: var(--ink-2); }
.btn.buy { width: 100%; min-height: 52px; font-size: 17px; }
.closed { background: var(--warn-tint); border: 1px solid var(--warn); border-radius: 12px; padding: 12px 14px; }
.closed b { display: block; color: var(--warn); }
.closed p { font-size: 15px; color: var(--ink-2); }
.notice.error { background: var(--bad-tint); color: var(--bad); }

/* Rechtstexte */
.legal-text { max-width: 760px; width: 100%; justify-self: center; }
.legal-text h3 { font: 700 17px var(--body); margin-top: 10px; }
.legal-text p { color: var(--ink-2); }

/* Verwaltung: Bestellungen */
.pill.wait { background: var(--sunk); color: var(--ink-2); }
b.warn { color: var(--warn); }
.withdraw-form { display: grid; gap: 6px; min-width: 220px; }
.withdraw-form input { font: inherit; font-size: 14px; padding: 7px 10px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); }
.btn.danger { background: var(--bad); color: #fff; }
.withdraw-form { white-space: normal; }

/* Ausgaben: Pflicht-Hinweis, Kurswechsel, gesperrte Lektionen, Probe, Prompts, Team */
.disclaimer { background: var(--warn-tint); border: 1px solid var(--warn); border-radius: 12px; padding: 12px 16px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.disclaimer b { display: block; color: var(--ink); margin-bottom: 2px; }
.disclaimer p { margin: 0; }
.switcher { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; justify-content: flex-end; font-size: 14px; }
.switcher select { font: inherit; padding: 7px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); max-width: 100%; }
.lesson-row.locked { color: var(--ink-3); cursor: default; }
.lesson-row.locked:hover { background: transparent; }
.lesson-row.locked .lt b { color: var(--ink-2); }
.lock { width: 26px; text-align: center; font-size: 15px; opacity: .7; }
.module.branch { border-color: var(--accent); }
.upgrade { border-color: var(--accent); background: var(--accent-tint); }
.tabs { display: flex; gap: 6px; background: var(--sunk); border-radius: 999px; padding: 4px; }
.tabs a { flex: 1; text-align: center; padding: 8px 10px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: 14.5px; }
.tabs a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(30,42,50,.15); }
.prompts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.prompt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 18px; display: grid; gap: 6px; min-width: 0; }
.prompt h2 { font-size: 17px; }
.prompt small { color: var(--ink-3); font-size: 13px; }
.prompt pre { white-space: pre-wrap; word-break: break-word; background: var(--sunk); border-radius: 10px; padding: 12px 14px; margin: 0; font: 15px/1.55 var(--body); color: var(--ink); }
.card-pad { padding: 4px 22px 14px; }
.invite-form { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: end; }
.invite-form label { flex-basis: 100%; font-weight: 700; }
.invite-form input { flex: 1 1 240px; min-width: 0; }

/* Vertrag widerrufen (§ 356a BGB): gut lesbar, hervorgehoben, auf jeder Seite */
.revoke-link { font-weight: 700; color: var(--accent-ink); border: 1.5px solid currentColor; border-radius: 999px; padding: 4px 14px; text-decoration: none; white-space: nowrap; }
.revoke-link:hover, .revoke-link:focus-visible { background: var(--accent-tint); }
.facts { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 6px 14px; margin: 14px 0 18px; }
.facts dt { color: var(--ink-2); font-size: 14.5px; }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: 6px; } }

/* ---------------------------------------------------------------- Design v3 „Studio-Kulisse“
   Kulisse (Wand + Gegenstände, Motiv rechts) und Emblem je Ausgabe; Ton nur hier und im Band unten. */
.emblem { width: 48px; height: 48px; flex: none; display: block; border-radius: 50%; }
.emblem.sm { width: 28px; height: 28px; }
.emblem.lg { width: 64px; height: 64px; }
.tone-band { display: block; height: 7px; background: linear-gradient(90deg, var(--accent) 0 30%, var(--tone) 30% 100%); }
.scene-img { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: right center; pointer-events: none; user-select: none; }

/* Übersicht: dunkle Kulisse hinter „Hallo …“, Text links bleibt lesbar */
.hero-card.has-scene { position: relative; overflow: hidden; min-height: 280px; padding-bottom: 33px; box-shadow: var(--shadow); }
.hero-card.has-scene::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20,28,33,.95) 0, rgba(20,28,33,.7) 45%, rgba(20,28,33,.05) 75%); }
.hero-card.has-scene > :not(.scene-img):not(.tone-band) { position: relative; z-index: 2; }
.hero-card.has-scene .tone-band { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; }
.hero-card .emblem { margin-bottom: 14px; box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
@media (max-width: 759px) {
  .hero-card.has-scene { min-height: 0; }
  .hero-card.has-scene::before { background: linear-gradient(180deg, rgba(20,28,33,.72) 0, rgba(20,28,33,.92) 55%, rgba(20,28,33,.96) 100%); }
  .hero-card .emblem { width: 40px; height: 40px; }
}

/* Helle Kulisse als ruhiges Bild: Band oben in Karten und Seitenköpfen */
.scene-banner { position: relative; overflow: hidden; height: 168px; border-radius: var(--r) var(--r) 0 0; background: var(--sunk); }
.scene-banner::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(var(--scene-fade),.96) 0, rgba(var(--scene-fade),.55) 35%, rgba(var(--scene-fade),0) 62%); }
.scene-banner .emblem { position: absolute; z-index: 2; left: 22px; bottom: 26px; box-shadow: 0 0 0 4px var(--surface), 0 10px 22px -12px rgba(60,40,20,.45); }
.scene-banner .tone-band { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; }
.card.has-scene { padding-top: 0; overflow: hidden; }
.card.has-scene > .scene-banner { margin: 0 -22px 6px; border-radius: 0; }
.scene-banner.page-scene { border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.page-scene.tall { height: 200px; }
@media (max-width: 560px) {
  .scene-banner, .page-scene.tall { height: 104px; }
  .scene-banner .emblem { width: 40px; height: 40px; left: 16px; bottom: 20px; }
}

/* Lektion: Emblem + schmaler Kulissenstreifen über dem Titel */
.lesson-head { position: relative; overflow: hidden; min-height: 112px; display: flex; align-items: center; gap: 14px; padding: 14px 20px 21px; background: rgb(var(--scene-fade)); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.lesson-head::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(var(--scene-fade),1) 0, rgba(var(--scene-fade),1) 42%, rgba(var(--scene-fade),0) 68%); }
.lesson-head .scene-img { left: auto; width: 58%; object-position: right 38%; }
.lesson-head > :not(picture):not(.scene-img):not(.tone-band) { position: relative; z-index: 2; }
.lesson-head .tone-band { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 6px; }
.lesson-head .emblem { width: 40px; height: 40px; }
.lesson-head .crumb { margin: 0; }
@media (max-width: 560px) { .lesson-head { min-height: 76px; } .lesson-head .scene-img { width: 70%; opacity: .5; } .lesson-head .emblem { width: 32px; height: 32px; } }

/* Kaufen / Probe: Kulisse über der Kursbeschreibung */
.buy-info .page-scene { margin-bottom: 6px; }

/* Kaufseite schlank (20.10.2026): Bild statt Kulisse, Vertrauenszeile unter dem Knopf, Verkäuferzeile im Fuß */
.buy-hero { display: block; width: 100%; height: auto; aspect-ratio: 6 / 5; max-height: 360px; object-fit: cover; object-position: 60% 40%; border-radius: var(--r); background: var(--sunk); box-shadow: var(--shadow); margin-bottom: 6px; }
.buy-trust { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--sunk); color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.buy-trust img { flex: none; width: 56px; height: 56px; border-radius: 10px; }
.foot .seller-line { flex-basis: 100%; font-size: 12px; color: var(--ink-3); }
@media (prefers-color-scheme: dark) { .buy-hero, .buy-hero img, .buy-trust img { filter: brightness(.92); } }

/* Kaufseite Conversion (20.10.2026): Handy = Titel → Preis + Formular → Inhalt, Bild nur am Rechner.
   Rechner: links Bild, Titel, Inhalt; rechts das Formular über alle drei Zeilen. */
.buy-grid { grid-template-areas: "head" "card" "info"; gap: 18px; }
.buy-hero { grid-area: hero; display: none; aspect-ratio: auto; max-height: none; background: none; box-shadow: none; border-radius: 0; }
.buy-hero img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; max-height: 360px; object-fit: cover; object-position: 50% 40%; border-radius: var(--r); background: var(--sunk); box-shadow: var(--shadow); }
.buy-head { grid-area: head; display: grid; gap: 6px; }
.buy-grid > .buy-info { grid-area: info; padding-top: 0; } /* nur Kaufseite – sonst rutscht der KI-Schnelltest in eine schmale Spalte */
.buy-card { grid-area: card; }
@media (min-width: 900px) {
  .buy-grid { grid-template-areas: "hero card" "head card" "info card"; grid-template-rows: auto auto 1fr; gap: 14px 28px; }
  .buy-hero { display: block; margin-bottom: 6px; }
  .buy-head { padding-top: 8px; }
}
.buy-seller { font-size: 13px; line-height: 1.5; margin: 0; }
.buy-card .notice.error { scroll-margin-top: 16px; }

/* Einwilligungs-Banner Meta-Pixel (20.10.2026, nur öffentliche Seiten mit KIKURS_META_PIXEL_ID). Wie svaha-digital.de:
   „Ablehnen“ und „Akzeptieren“ exakt gleich gestaltet, nichts vorausgewählt; Text unverändert (Rechtscheck 19.10.). */
.cc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; background: var(--stage); color: var(--on-stage); border-top: 4px solid var(--accent); box-shadow: 0 -10px 30px -12px rgba(0,0,0,.35); padding-bottom: env(safe-area-inset-bottom, 0px); }
.cc[hidden] { display: none; }
.cc-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 16px; font-size: 15px; line-height: 1.5; }
.cc p { flex: 1 1 320px; min-width: 0; max-width: 72ch; }
.cc a { color: var(--on-stage); }
.cc-b { display: flex; gap: 10px; flex-wrap: wrap; }
.cc-btn { min-height: 44px; min-width: 9.5em; padding: 8px 20px; border-radius: 999px; border: 2px solid var(--on-stage); background: var(--on-stage); color: var(--stage); font: 700 15px var(--body); cursor: pointer; }
.cc-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.foot .cc-open[hidden] { display: none; }
@media (max-width: 600px) {
  .cc-in { padding-block: 10px; gap: 8px; font-size: 13px; line-height: 1.4; }
  .cc p { flex-basis: 100%; }
  .cc-b { width: 100%; flex-wrap: nowrap; }
  .cc-btn { flex: 1; min-width: 0; }
}

/* KI-Schnelltest (20.10.2026, nach Expertenrunde): eigener Seitenkopf mit Branchenfoto (nicht .buy-info, das gehört
   der Kaufseite), Antworten als große Klickflächen, Fortschritt ohne JavaScript (CSS-Zähler), Ergebnis mit Stufen-Balken,
   Kursangebot mit ungeschnittenem Standbild aus einer Lektion. */
.kc-hero { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.kc-photo { width: 100%; height: 150px; object-fit: cover; object-position: 60% 30%; background: var(--sunk); }
.kc-hero-text { display: grid; gap: 12px; align-content: center; padding: 18px 18px 22px; }
.kc-hero-text .eyebrow { margin-bottom: 0; }
.kc-hero .btn { justify-self: start; }
.kc-intro { color: var(--ink-2); }
@media (min-width: 820px) {
  .kc-hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
  .kc-photo { order: 2; height: 100%; min-height: 400px; }
  .kc-hero-text { padding: 36px 34px; gap: 14px; }
  .kc-hero.kc-result .kc-photo { min-height: 380px; }
}
.kc-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kc-facts li { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 10px; border-radius: 999px; background: var(--sunk); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.kc-facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.kc-gain { font-size: 15.5px; color: var(--ink-2); border-left: 3px solid var(--accent); padding-left: 12px; }
.kc-gain b { color: var(--ink); }

/* Fragen: Zähler über angehakte Antworten → „x von 8 beantwortet“ in der mitlaufenden Leiste unten */
.kc-quiz { gap: 0; scroll-margin-top: 12px; counter-reset: kcdone; padding-bottom: 0; }
.kc-quiz > h2 { margin-bottom: 6px; }
.kc-quiz fieldset { padding: 0; margin-top: 32px; gap: 0; border-top: 0; scroll-margin-bottom: 96px; }
.kc-quiz fieldset:first-of-type { margin-top: 14px; }
.kc-quiz legend { display: flex; gap: 12px; align-items: flex-start; font: 700 17.5px/1.4 var(--body); margin-bottom: 12px; padding: 0; }
.kc-num { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-ink); font: 800 15px var(--display); margin-top: -2px; }
.kc-opts { display: grid; gap: 8px; }
@media (min-width: 640px) { .kc-opts { grid-template-columns: 1fr 1fr; padding-left: 42px; } }
.kc-quiz .opt { align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; font-size: 17px; line-height: 1.35; border: 1.5px solid color-mix(in srgb, var(--ink-3) 55%, var(--line)); border-radius: 12px; background: var(--surface); transition: border-color .12s, background .12s; }
.kc-quiz .opt:hover { border-color: var(--ink-2); background: var(--surface); }
.kc-quiz .opt input { margin: 0; width: 20px; height: 20px; flex: none; }
.kc-quiz .opt:has(input:checked) { counter-increment: kcdone; }
.kc-quiz .opt:has(input:checked) { border: 2px solid var(--accent); padding: 9.5px 13.5px; background: var(--accent-tint); font-weight: 600; }
.kc-quiz .opt:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
@supports not selector(:has(a)) { .kc-progress { display: none; } }
html:has(.kc-bar) { scroll-padding-bottom: 96px; }
.kc-bar { position: sticky; bottom: 0; z-index: 5; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; margin: 10px -22px 0; padding: 12px 22px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(6px); border-top: 1px solid var(--line); }
.kc-progress { font-size: 14px; font-weight: 700; color: var(--ink-2); line-height: 1.25; }
.kc-progress::before { content: counter(kcdone) " von 8"; display: block; font: 800 18px var(--display); color: var(--ink); }
.kc-progress::after { content: "beantwortet"; }
.kc-bar .btn.buy { margin: 0; }
.kc-quiz > .small { padding: 4px 0 20px; }

.kc-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kc-score { display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; background: var(--sunk); border: 1px solid var(--line); }
.kc-score span { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.kc-score b { font: 800 22px/1.2 var(--display); }
.kc-score b::first-letter { text-transform: uppercase; }
.kc-meter { display: flex; gap: 5px; margin-top: 4px; }
.kc-meter i { flex: 1; height: 7px; border-radius: 4px; background: color-mix(in srgb, var(--ink-3) 35%, var(--line)); }
.kc-meter i.on { background: var(--accent); }
.kc-next a { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.kc-steplist { margin: 0; padding: 0; list-style: none; counter-reset: kcstep; display: grid; gap: 12px; }
.kc-steplist li { counter-increment: kcstep; position: relative; padding: 2px 0 2px 46px; min-height: 32px; }
.kc-steplist li::before { content: counter(kcstep); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--btn-ink); display: grid; place-items: center; font: 800 16px var(--display); }
.kc-more { border-top: 1px solid var(--line); padding-top: 12px; }
.kc-more summary { cursor: pointer; font-weight: 700; color: var(--accent-ink); }
.kc-more[open] summary { margin-bottom: 10px; }
.kc-more p { margin-bottom: 8px; }

.kc-offer { gap: 18px; border: 2px solid var(--accent); scroll-margin-top: 12px; }
.kc-lesson { margin: 0; display: grid; gap: 6px; }
.kc-lesson img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: var(--sunk); }
.kc-lesson figcaption { font-size: 13px; color: var(--ink-2); }
.kc-offer-text { display: grid; gap: 12px; align-content: start; }
.kc-offer-text .eyebrow { margin-bottom: 0; }
.kc-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15.5px; color: var(--ink-2); }
.kc-points li { position: relative; padding-left: 24px; }
.kc-points li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent-ink); font-weight: 800; }
@media (min-width: 820px) {
  .kc-offer { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: center; padding: 26px; }
}
@media (prefers-color-scheme: dark) {
  .kc-photo, .kc-lesson img { filter: brightness(.92); }
  .kc-quiz .opt { border-color: #4A5560; }
}
/* Schnelltest-Knöpfe: Text mittig, gleichmäßig umbrechen */
main:has(.kc-hero) .btn { text-align: center; text-wrap: balance; }

/* KI-Schnelltest Schritt für Schritt (nur mit JavaScript, Klasse .kc-js setzt app.js): eine Frage sichtbar,
   Fortschrittsbalken „Frage x von 8“, Zurück / Weiter, bei der letzten Frage „Ergebnis anzeigen“. */
.kc-btnrow { display: flex; gap: 10px; }
.kc-btnrow .btn.buy { flex: 1; }
.kc-btnrow [hidden] { display: none; }
.kc-btnrow .btn[disabled] { opacity: .45; cursor: not-allowed; filter: none; }
.kc-stepinfo { display: grid; gap: 8px; font-weight: 700; font-size: 15px; color: var(--ink-2); }
.kc-stepinfo[hidden] { display: none; }
.kc-track { display: block; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--ink-3) 30%, var(--line)); overflow: hidden; }
.kc-track i { display: block; height: 100%; width: 12.5%; background: var(--accent); border-radius: 4px; transition: width .25s ease; }
.kc-quiz.kc-js fieldset.q { display: none; margin-top: 14px; }
.kc-quiz.kc-js fieldset.q.is-current { display: grid; animation: kc-in .22s ease-out; }
.kc-quiz.kc-js legend:focus { outline: none; }
.kc-quiz.kc-js legend:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.kc-quiz.kc-js .kc-progress { display: none; }
.kc-quiz.kc-js .kc-bar { position: static; grid-template-columns: 1fr; gap: 14px; margin: 22px 0 0; padding: 18px 0 0; background: none; backdrop-filter: none; }
.kc-quiz.kc-js > h2 { display: none; }
.kc-quiz.kc-js .kc-opts { grid-template-columns: 1fr; padding-left: 42px; }
@media (max-width: 639px) { .kc-quiz.kc-js .kc-opts { padding-left: 0; } }
@keyframes kc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .kc-quiz.kc-js fieldset.q.is-current { animation: none; } .kc-track i { transition: none; } }
.kc-quiz.kc-js .kc-opts { max-width: 620px; }
.kc-btnrow .btn { white-space: nowrap; padding-inline: 18px; }
/* Handy: Frage 1 soll schon im ersten Bildschirm anfangen → Kopf kürzer (Knopf „Test starten“ und „Sie erfahren“ nur ab Tablet) */
@media (max-width: 639px) { .kc-hero:not(.kc-result) .kc-gain, .kc-hero:not(.kc-result) .btn { display: none; } }
@media (max-width: 639px) { .kc-hero:has(+ .kc-quiz.kc-js) .kc-intro { display: none; } }
main:has(.kc-hero) .kc-btnrow .btn { text-wrap: nowrap; white-space: nowrap; }
/* Rechner: eine Frage = schmale, mittige Karte; Antworten und Knöpfe gleich breit */
@media (min-width: 640px) {
  .kc-quiz.kc-js { max-width: 720px; width: 100%; justify-self: center; padding: 28px 32px 6px; }
  .kc-quiz.kc-js .kc-opts { padding-left: 0; max-width: none; }
}
/* Runde 3 (Expertenrunde): Fortschritt oben in der Karte, kein doppelter Nummernkreis, Hinweis statt grauem Knopf */
.kc-quiz.kc-js > .kc-stepinfo { margin: 0 0 4px; }
.kc-quiz.kc-js .kc-num { display: none; }
.kc-quiz.kc-js legend { font-size: 19px; }
.kc-quiz.kc-js fieldset.q { margin-top: 18px; }
.kc-btnrow .btn.is-off { opacity: .55; filter: saturate(.6); }
.kc-hint { margin: 0; font-size: 15px; font-weight: 700; color: var(--accent-ink); }
.kc-hint[hidden] { display: none; }
.kc-quiz.kc-js > .small { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
/* Handy: Knöpfe kleben unten am Bildschirm, damit „Weiter“ nach dem Antippen immer sichtbar ist */
@media (max-width: 639px) {
  .kc-quiz.kc-js .kc-bar { position: sticky; bottom: 0; margin: 14px -22px 0; padding: 12px 22px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 20px -16px rgba(0,0,0,.35); }
  .kc-quiz.kc-js > .small { border-top: 0; margin-top: 4px; }
  .kc-photo { height: 120px; }
}
/* Fokusrahmen auf orangen Knöpfen dunkel statt orange (sonst unsichtbar), 20.10.2026 */
.btn:not(.ghost):focus-visible { outline-color: var(--ink); }
