/* ==========================================================================
   Kursdetail (kiport/kursdetail) · Präfix kdet-
   Stand: 10.10.2026 · Gestaltung Variante 2 · Werte aus 07-Website/designsystem.md
   Kopf mit Kauf links und Bild rechts, Kennzahlen-Leiste, Lernziele mitlaufend neben der Beschreibung,
   Band zur Kursleitung mit Video, Kursinhalt, einrastende Kaufleiste
   ========================================================================== */

/* Grundgerüst */
.kdet { --kdet-navy: #1A2748; --kdet-navy-kopf: #203150; --kdet-blau: #2071B5; --kdet-blau-dunkel: #175a91; --kdet-blau-hell: #e8f1fa; --kdet-gelb: #FAB215; --kdet-gelb-rand: #e09e10; --kdet-tuerkis: #41B7AC; --kdet-gruen: #00B67A; --kdet-text: #2E384D; --kdet-grau: #6B7280; --kdet-grau-dunkel: #4B5563; --kdet-dunkel-text: #9aafc8; --kdet-dunkel-klein: #b8cce0; --kdet-flaeche: #F9FAFB; --kdet-rand: #e6e8eb; --kdet-leiste-oben: 0px; --kdet-ziele-oben: 24px; }
.kdet { color: var(--kdet-text); font-size: 16px; line-height: 1.6; }
.kdet *, .kdet *::before, .kdet *::after { box-sizing: border-box; }
.kdet-innen { max-width: 1140px; margin: 0 auto; padding: 0 15px; }
.kdet svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.kdet h2 { margin: 0 0 14px; color: var(--kdet-navy); font-size: 1.5rem; font-weight: 900; line-height: 1.25; }
.kdet-linie { display: block; width: 44px; height: 3px; margin: 0 0 14px; border-radius: 2px; background: var(--kdet-gelb); }
.kdet-eyebrow { margin: 0 0 6px; color: var(--kdet-tuerkis); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Kopf: Kauf links, Bild rechts ---------- */
.kdet-kopf { background: var(--kdet-navy); color: #fff; padding: 44px 0 52px; }
.kdet-kopf__raster { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas: "text bild" "kauf ."; column-gap: 56px; } /* zwei Zeilen: oben Text und Bild, darunter der Kaufkasten (08.11.2026) */
.kdet-kopf__text { grid-area: text; min-width: 0; }
.kdet-kopf__bild { grid-area: bild; min-width: 0; margin-top: calc(14px * 1.6 + 16px); margin-bottom: 28px; }
.kdet-kopf__bild:has(.kbw) { margin-top: 0; } /* mit vor und zurück steht deren Zeile im Abstand über dem Bild, auf Höhe der Brotkrumen */ /* Oberkante bündig mit dem Kurstitel: Höhe der Brotkrumen-Zeile plus Abstand */
.kdet-kopf__bild img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 3; object-fit: cover; border: 6px solid #fff; border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.28); } /* leichter weißer Rahmen, Stand 10.10.2026 */
.kdet-kopf__kauf { grid-area: kauf; display: flex; min-width: 0; }
.kdet-kaufkasten { flex: 1 1 auto; box-sizing: border-box; padding: 22px 24px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(255,255,255,.05); } /* Preis, Kaufknöpfe und Teamweg in einem Rahmen */
.kdet-kaufkasten .kdet-kauf { justify-content: space-between; }
.kdet-preis span { white-space: nowrap; }
.kdet-pfad { margin: 0 0 16px; color: var(--kdet-dunkel-text); font-size: 14px; }
.kdet-pfad a { color: var(--kdet-tuerkis); text-decoration: none; font-weight: 900; }
.kdet-titel { margin: 0 0 16px; color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 900; line-height: 1.15; hyphens: auto; hyphenate-limit-chars: 14 6 6; overflow-wrap: break-word; } /* lange Wörter wie „Entwicklungspsychologische“ am Handy trennen statt abschneiden */
.kdet-lead { margin: 0 0 28px; color: var(--kdet-dunkel-klein); font-size: 18px; line-height: 1.55; max-width: 34em; }
.kdet-kauf { display: flex; flex-wrap: nowrap; align-items: center; gap: 16px 28px; } /* Preis und Kaufbuttons nebeneinander */
.kdet-preis { display: flex; flex-direction: column; margin: 0; color: #fff; font-size: 34px; font-weight: 900; line-height: 1.05; }
.kdet-preis s { color: var(--kdet-dunkel-text); font-size: 18px; font-weight: 400; }
.kdet-preis span { margin-top: 6px; color: var(--kdet-dunkel-text); font-size: 13px; font-weight: 400; line-height: 1.3; }
.kdet-kauf__knoepfe { display: flex; flex-wrap: nowrap; gap: 10px; }

/* Buttons */
.kdet-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 22px; border: 1px solid transparent; border-radius: 10px; font: inherit; font-size: 16px; font-weight: 900; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.kdet-btn--gelb { background: var(--kdet-gelb); border-color: var(--kdet-gelb-rand); color: var(--kdet-text); }
.kdet-btn--blau { background: var(--kdet-blau); border-color: var(--kdet-blau-dunkel); color: #fff; }
.kdet-btn--symbol { padding: 12px 14px; }
.kdet-btn:focus-visible { outline: 2px solid var(--kdet-gelb); outline-offset: 2px; }
/* Hover wie im Kurskatalog: heller Grund, Schrift und Rand in der Buttonfarbe. Farbe immer mitsetzen, sonst greift die Link-Farbe aus theme.json */
@media (hover: hover) and (pointer: fine) {
	.kdet-btn--gelb:hover { background: #F0F2F5; color: var(--kdet-text); border-color: var(--kdet-gelb-rand); }
	.kdet-btn--blau:hover { background: #F0F2F5; color: var(--kdet-blau); border-color: var(--kdet-blau); }
}
.kdet-btn:active { transform: translateY(1px); }

/* ---------- Kennzahlen-Leiste ---------- */
.kdet-zahlen { background: var(--kdet-flaeche); border-bottom: 1px solid var(--kdet-rand); }
.kdet-zahlen ul { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0 auto; padding: 0 15px; list-style: none; }
.kdet-zahlen li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-content: start; column-gap: 12px; align-items: center; padding: 20px 18px; } /* Zahlen stehen auf einer Linie, auch wenn eine Zeile darunter umbricht */
.kdet-zahlen li + li { border-left: 1px solid var(--kdet-rand); }
.kdet-zahlen svg { grid-row: 1 / 3; width: 26px; height: 26px; color: var(--kdet-blau); }
.kdet-zahlen strong { color: var(--kdet-navy); font-size: 19px; font-weight: 900; line-height: 1.2; }
.kdet-zahlen span { min-width: 0; color: var(--kdet-grau); font-size: 13px; line-height: 1.3; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; } /* „Teilnahmebescheinigung“ ist am Handy breiter als das Feld */
.kdet-zahlen li > strong, .kdet-zahlen li > span { min-width: 0; }

/* ---------- Lernziele mitlaufend neben der Beschreibung ---------- */
.kdet-rumpf { padding: 56px 0 64px; background: #fff; }
.kdet-rumpf__raster { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 56px; align-items: start; }
.kdet-rumpf__raster--einspaltig { grid-template-columns: minmax(0, 760px); }
.kdet-links { align-self: stretch; min-width: 0; } /* volle Höhe der Zeile, damit die linke Spalte mitlaufen kann */
.kdet-links__mit.is-mitlaufend { position: sticky; top: var(--kdet-ziele-oben, 24px); } /* setzt view.js, wenn die Lernziel-Karte ganz ins Fenster passt */
.kdet-ziele { overflow: hidden; padding: 26px 26px 22px; border: 1px solid var(--kdet-rand); border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 12px 32px rgba(16,24,40,.07); }
.kdet-ziele h2 { font-size: 1.25rem; }
.kdet-ziele ul { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: .65em 0 1.2em; list-style: none; font-size: 15px; } /* Luft über und unter der Liste wächst mit der Schrift, zwischen den Punkten bleibt es eng (Michael, 27.10.2026). Padding statt Margin, weil Margins mit Überschrift und PDF-Leiste zusammenfallen */
.kdet-ziele ul:last-child { padding-bottom: 0; }
.kdet-ziele li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; color: var(--kdet-grau-dunkel); }
.kdet-ziele li strong { color: var(--kdet-text); }
.kdet-ziele li svg { width: 20px; height: 20px; margin-top: 1px; padding: 3px; border-radius: 50%; background: var(--kdet-gruen); color: #fff; stroke-width: 3; }

/* Beschreibung: gut lesbare Spalte */
.kdet-text { max-width: 720px; color: var(--kdet-grau-dunkel); font-size: 17px; line-height: 1.7; }
.kdet-text > :first-child { margin-top: 0; }
.kdet-text h2 { margin: 0 0 16px; font-size: 1.75rem; }
.kdet-text h3 { margin: 36px 0 10px; color: var(--kdet-navy); font-size: 1.25rem; font-weight: 900; line-height: 1.35; }
.kdet-text p { margin: 0 0 16px; }
.kdet-text ul, .kdet-text ol { margin: 0 0 18px; padding-left: 0; list-style: none; }
.kdet-text ul li { position: relative; margin: 0 0 10px; padding-left: 22px; }
.kdet-text ul li::before { content: ""; position: absolute; left: 4px; top: .68em; width: 8px; height: 8px; border-radius: 50%; background: var(--kdet-gelb); }
.kdet-text strong { color: var(--kdet-text); }
.kdet-text blockquote { margin: 24px 0; padding: 16px 20px; border-left: 3px solid var(--kdet-gelb); border-radius: 0; background: var(--kdet-flaeche); }
.kdet-text__leer { color: var(--kdet-grau); font-style: italic; }

/* ---------- Person im Kopf: eine kompakte Zeile mit Foto, Name, Kurzbezeichnung und Video-Vorschau ---------- */
.kdet-person { display: flex; align-items: center; gap: 14px; margin: 0 0 28px; } /* ohne Kasten, so breit wie der Kaufkasten: „Video ansehen“ schließt rechts mit ihm ab (Michael, 08.11.2026) */
.kdet-person__video { margin-left: auto; }
.kdet-person__foto { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--kdet-gelb); flex: none; }
.kdet-person__text { flex: 1 1 auto; min-width: 0; }
.kdet-person__name { margin: 0; color: #fff; font-size: 16px; font-weight: 900; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kdet-person__bio { margin: 2px 0 0; color: var(--kdet-dunkel-text); font-size: 13px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* immer eine Zeile, Rest per Mauszeiger */
/* Video-Knopf als Pille rechts in der Zeile */
.kdet-person__video { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 40px; padding: 6px 14px 6px 6px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: 14px; font-weight: 900; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s; }
.kdet-person__play { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--kdet-gelb); color: var(--kdet-navy); }
.kdet-person__play svg { width: 12px; height: 12px; fill: currentColor; stroke: none; margin-left: 2px; }
.kdet-person__video:focus-visible { outline: 2px solid var(--kdet-gelb); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .kdet-person__video:hover { background: #F0F2F5; border-color: var(--kdet-blau); color: var(--kdet-blau); } }
@media (max-width: 400px) { .kdet-person__video { padding: 6px; } .kdet-person__video { font-size: 0; gap: 0; } } /* sehr schmal: nur das Abspielzeichen */

/* ---------- Videofenster ---------- */
.kdet-fenster { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 32px); margin: auto; padding: 0; overflow-y: auto; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: var(--kdet-navy); box-shadow: 0 30px 80px rgba(0,0,0,.45); scrollbar-color: rgba(255,255,255,.35) transparent; }
.kdet-fenster::backdrop { background: rgba(17,29,54,.6); }
.kdet-fenster:not([open]) { display: none; } /* Browser ohne <dialog> blenden das geschlossene Fenster nicht selbst aus */
.kdet-fenster.is-ersatz { position: fixed; top: 50%; left: 50%; z-index: 100000; width: 760px; max-width: calc(100vw - 32px); margin: 0; transform: translate(-50%, -50%); box-shadow: 0 0 0 100vmax rgba(17,29,54,.6), 0 30px 80px rgba(0,0,0,.45); } /* Ersatz für showModal: mittig, Schatten statt ::backdrop */
.kdet-fenster__kopf { display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 18px; border-bottom: 1px solid var(--kdet-rand); background: #fff; }
.kdet-fenster__kopf img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--kdet-gelb); flex: none; }
.kdet-fenster__kopf > div { flex: 1; min-width: 0; }
.kdet-fenster__name { margin: 0; color: var(--kdet-navy); font-size: 17px; font-weight: 900; }
.kdet-fenster__bio { margin: 2px 0 0; color: var(--kdet-grau); font-size: 14px; line-height: 1.4; }
.kdet-fenster__zu { width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: #F0F2F5; color: var(--kdet-text); font-size: 24px; line-height: 1; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
@media (hover: hover) and (pointer: fine) { .kdet-fenster__zu:hover { background: var(--kdet-navy); color: #fff; transform: scale(1.08); } }
.kdet-fenster__zu:active { background: var(--kdet-navy); color: #fff; }
.kdet-fenster__zu:focus-visible { outline: 2px solid var(--kdet-blau); outline-offset: 2px; }
.kdet-video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--kdet-navy); }
.kdet-video:not(.is-geladen) { aspect-ratio: auto; } /* Abfrage bestimmt die Höhe, das Video bleibt 16:9 */
.kdet .kdet-kauf__technik { margin: 14px 0 0; color: var(--kdet-dunkel-text); font-size: 13px; line-height: 1.45; }
.kdet-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.kdet-video.is-datei { aspect-ratio: 16 / 9; background: #000; }
.kdet-video video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.kdet-video__fehler { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: 24px; color: #fff; font-size: 16px; line-height: 1.5; text-align: center; }
@media (max-width: 480px) { .kdet-video__fehler { padding: 12px 16px; font-size: 14px; } } /* am Handy passt der Hinweis sonst knapp nicht ins 16:9-Feld */
@supports not (aspect-ratio: 1 / 1) { .kdet-video.is-datei { height: 0; padding-top: 56.25%; } .kdet-video.is-datei video { position: absolute; top: 0; left: 0; } } /* 16:9 für Browser ohne aspect-ratio (Safari vor 15) */

/* ---------- Kursinfo-PDF als Fußzeile der Lernziel-Karte ---------- */
.kdet-pdf { display: flex; align-items: center; gap: 12px; margin: 8px -26px -22px; padding: 16px 22px 16px 26px; background: var(--kdet-navy-kopf); color: #fff; text-decoration: none; transition: background .15s, color .15s; } /* kräftig: Navy wie die Kapitelköpfe, Gelb als Akzent */
.kdet-ziele--nur-pdf .kdet-pdf { margin: -26px -26px -22px; }
.kdet-pdf__symbol { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border-radius: 10px; background: rgba(250,178,21,.18); color: var(--kdet-gelb); }
.kdet-pdf__symbol svg { width: 22px; height: 22px; }
.kdet-pdf__text { flex: 1 1 auto; min-width: 0; }
.kdet-pdf__titel { display: block; color: #fff; font-size: 15px; font-weight: 900; line-height: 1.3; }
.kdet-pdf__unter { display: block; margin-top: 2px; color: var(--kdet-dunkel-text); font-size: 13px; line-height: 1.35; }
.kdet-pdf__groesse { white-space: nowrap; }
.kdet-pdf__pfeil { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--kdet-gelb); color: var(--kdet-navy); }
.kdet-pdf__pfeil svg { width: 16px; height: 16px; stroke-width: 2.6; }
.kdet-pdf:focus-visible { outline: 2px solid var(--kdet-gelb); outline-offset: -3px; }
/* Hover wie bei den Buttons: heller Grund, Schrift in Navy */
@media (hover: hover) and (pointer: fine) { .kdet-pdf:hover { background: #F0F2F5; color: var(--kdet-navy); } .kdet-pdf:hover .kdet-pdf__titel { color: var(--kdet-navy); } .kdet-pdf:hover .kdet-pdf__unter { color: var(--kdet-grau); } .kdet-pdf:hover .kdet-pdf__symbol { background: rgba(250,178,21,.25); color: #c78a0d; } }

/* ---------- Passt dazu: drei kompakte Querkacheln ---------- */
.kdet-passend { padding: 36px 0 56px; border-top: 1px solid var(--kdet-rand); background: var(--kdet-flaeche); }
.kdet-passend h2 { font-size: 1.25rem; }
.kdet-passend__liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.kdet-passend__kurs { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 10px; border: 1px solid var(--kdet-rand); border-radius: 14px; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.kdet-passend__bild { width: 96px; height: 72px; flex: none; border-radius: 10px; object-fit: cover; }
.kdet-passend__text { flex: 1 1 auto; min-width: 0; }
.kdet-passend__thema { margin: 0 0 3px; overflow: hidden; color: var(--kdet-blau); font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; }
.kdet-passend__titel { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--kdet-navy); font-size: 15px; font-weight: 900; line-height: 1.3; text-decoration: none; }
.kdet-passend__titel::after { content: ""; position: absolute; inset: 0; border-radius: 14px; } /* ganze Zeile führt zum Kurs */
.kdet-passend__titel:focus-visible { outline: none; }
.kdet-passend__titel:focus-visible::after { outline: 2px solid var(--kdet-blau); outline-offset: 2px; }
.kdet-passend__preis { margin: 4px 0 0; color: var(--kdet-text); font-size: 15px; font-weight: 900; }
.kdet-passend__preis s { color: var(--kdet-grau); font-size: 13px; font-weight: 400; }
.kdet-passend__korb { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border: 1px solid var(--kdet-blau-dunkel); border-radius: 10px; background: var(--kdet-blau); color: #fff; transition: background .15s, color .15s, border-color .15s; }
.kdet-passend__korb svg { width: 20px; height: 20px; }
.kdet-passend__korb:focus-visible { outline: 2px solid var(--kdet-blau); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
	.kdet-passend__kurs:hover { border-color: var(--kdet-blau); box-shadow: 0 10px 24px rgba(16,24,40,.08); transform: translateY(-2px); }
	.kdet-passend__kurs:hover .kdet-passend__titel { color: var(--kdet-blau); }
	.kdet-passend__korb:hover { background: #F0F2F5; border-color: var(--kdet-blau); color: var(--kdet-blau); } /* Hover wie bei den Buttons */
}

/* ---------- Kursinhalt ---------- */
.kdet-haupt { min-width: 0; }
.kdet-lehrplan { max-width: 720px; margin-top: 48px; } /* rechts unter der Beschreibung */
.kdet-lehrplan__liste { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; } /* Kapitel untereinander */
.kdet-kapitel { border: 1px solid var(--kdet-rand); border-radius: 12px; overflow: hidden; background: #fff; }
.kdet-kapitel summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 20px; background: var(--kdet-navy-kopf); color: #fff; font-weight: 900; cursor: pointer; list-style: none; }
.kdet-kapitel summary::-webkit-details-marker { display: none; }
.kdet-kapitel summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--kdet-gelb); }
.kdet-kapitel[open] summary::after { content: "−"; }
.kdet-kapitel__zahl { margin-left: auto; color: var(--kdet-dunkel-text); font-size: 13px; font-weight: 400; }
.kdet-kapitel ol { margin: 0; padding: 6px 20px 10px 44px; }
.kdet-kapitel li { padding: 10px 0; border-bottom: 1px solid var(--kdet-rand); font-size: 15px; }
.kdet-kapitel li:last-child { border-bottom: 0; }
.kdet-kapitel li em { color: var(--kdet-grau); font-style: normal; }
.kdet-dauer { float: right; margin-left: 12px; color: var(--kdet-grau); font-size: 13px; font-variant-numeric: tabular-nums; }
/* Kursinhalt mit „Darum geht's“ (04.11.2026, Variante A): Nummer, Titel fett in Navy, kurzer Satz in dunklem Grau, Dauer in eigener Spalte rechts */
.kdet-kapitel ol.kdet-lz-liste { padding: 4px 20px 6px; list-style: none; }
.kdet-kapitel li.kdet-lz { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 14px; align-items: start; padding: 14px 0; font-size: 16px; }
.kdet-lz__nr { min-width: 18px; color: var(--kdet-grau); font-size: 15px; font-weight: 900; line-height: 1.45; text-align: right; }
.kdet-lz__text { display: flex; flex-direction: column; gap: 2px; }
.kdet-lz__titel { color: var(--kdet-navy); font-size: 16px; font-weight: 900; line-height: 1.35; }
.kdet-lz__satz { color: #4A5568; font-size: 15px; line-height: 1.45; }
.kdet-lz__dauer { color: var(--kdet-grau); font-size: 13px; line-height: 1.6; font-variant-numeric: tabular-nums; }
/* ---------- Häufige Fragen, Variante A wie die Fragen der Startseite (sk-frage), 04.11.2026 ---------- */
.kdet-fragen { max-width: 720px; margin-top: 48px; } /* gleiche Breite wie der Kursinhalt */
.kdet-fragen__unter { margin: -8px 0 18px; color: var(--kdet-grau); font-size: 15px; }
.kdet-frage { margin-bottom: 12px; border: 1px solid var(--kdet-rand); border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.kdet-frage[open] { border-color: var(--kdet-blau); box-shadow: 0 8px 24px rgba(16,24,40,.06); }
.kdet-frage summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 15px 18px; color: var(--kdet-navy); cursor: pointer; font-size: 16px; font-weight: 900; line-height: 1.3; list-style: none; } /* Abstände wie die Teamseite (Michael, 04.11.2026) */
.kdet-frage summary::-webkit-details-marker { display: none; }
.kdet-frage summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--kdet-blau-hell); color: var(--kdet-blau); font-size: 18px; line-height: 1; transition: transform .2s; }
.kdet-frage[open] summary::after { transform: rotate(45deg); background: var(--kdet-blau); color: #fff; }
.kdet-frage__antwort { padding: 0 18px 16px; }
.kdet-frage__antwort p { margin: -2px 0 0; color: #4B5563; font-size: 16px; line-height: 1.6; }
.kdet-frage__quelle { position: relative; display: block; margin-top: 16px; padding: 14px 0 0 18px; border-top: 1px solid var(--kdet-rand); color: var(--kdet-grau); font-size: 13.5px; font-weight: 600; line-height: 1.45; } /* aus welcher Lektion die Antwort stammt, dünne Linie darüber (Michael, 04.11.2026) */
.kdet-frage__quelle::before { content: ""; position: absolute; left: 1px; top: calc(14px + .725em - 5px); border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid var(--kdet-gelb); } /* gelbes Dreieck mittig zur ersten Zeile */
@media (max-width: 600px) { .kdet-frage summary { padding: 15px 16px; } .kdet-frage__antwort { padding: 0 16px 16px; } }
@media (max-width: 600px) { .kdet-kapitel ol.kdet-lz-liste { padding: 2px 14px 4px; } .kdet-lz__titel { font-size: 15.5px; } .kdet-lz__satz { font-size: 14.5px; } }

/* ---------- Einrastende Kaufleiste ---------- */
.kdet-leiste { position: fixed; left: 0; right: 0; top: var(--kdet-leiste-oben); z-index: 90; background: #fff; border-bottom: 1px solid var(--kdet-rand); box-shadow: 0 8px 24px rgba(16,24,40,.10); transform: translateY(-120%); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; }
.kdet-leiste.is-sichtbar { transform: none; visibility: visible; transition-delay: 0s; }
.kdet-leiste__innen { display: flex; align-items: center; gap: 20px; padding-top: 10px; padding-bottom: 10px; }
.kdet-leiste__titel { flex: 1; min-width: 0; margin: 0; overflow: hidden; color: var(--kdet-navy); font-size: 16px; font-weight: 900; white-space: nowrap; text-overflow: ellipsis; }
.kdet-leiste__preis { margin: 0; color: var(--kdet-text); font-size: 20px; font-weight: 900; white-space: nowrap; }
.kdet-leiste__preis s { color: var(--kdet-grau); font-size: 14px; font-weight: 400; }
.kdet-leiste__knoepfe { display: flex; gap: 8px; }
.kdet-leiste .kdet-btn { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.kdet-leiste .kdet-btn--symbol { padding: 10px 12px; }
/* Team-Knopf in der Leiste: auf Weiß mit türkisem Rand, gedrückt grün wie im Kopf (Variante A, 13.11.2026) */
.kdet-leiste__trenner { align-self: center; width: 1px; height: 28px; margin: 0 6px; background: var(--kdet-rand); }
.kdet-leiste__team:not([aria-pressed="true"]) { border-color: #1E8077; background: #fff; color: #17675F; }
@media (hover: hover) and (pointer: fine) { .kdet-leiste__team:not([aria-pressed="true"]):hover { background: #E3F3F1; } }

/* ---------- Umbrüche ---------- */
@media (max-width: 992px) {
	.kdet-kopf__raster { grid-template-columns: minmax(0, 1fr); grid-template-areas: "bild" "text" "kauf"; } /* Bild zuerst (mit vor und zurück darüber), dann Text und Kauf */
	.kdet-kopf__bild { margin-top: 0; }
	.kdet-zahlen ul { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kdet-zahlen li:nth-child(3) { border-left: 0; }
	.kdet-zahlen li:nth-child(n+3) { border-top: 1px solid var(--kdet-rand); }
	.kdet-rumpf__raster { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.kdet-links__mit.is-mitlaufend { position: static; }
	.kdet-passend__liste { grid-template-columns: minmax(0, 1fr); gap: 10px; max-width: 640px; }
}
@media (max-width: 600px) {
	.kdet-kopf { padding: 28px 0 36px; }
	.kdet-lead { font-size: 16px; }
	.kdet-kauf { flex-wrap: wrap; }
	.kdet-kaufkasten { padding: 18px 16px; }
	.kdet-kauf__knoepfe { width: 100%; }
	.kdet-kauf__knoepfe .kdet-btn { flex: 1 1 0; }
	.kdet-zahlen li { padding: 14px 10px; column-gap: 8px; }
	.kdet-zahlen svg { width: 22px; height: 22px; }
	.kdet-zahlen strong { font-size: 16px; }
	.kdet-text { font-size: 16px; }
	/* Kaufleiste unten am Daumen statt oben */
	.kdet-leiste { top: auto; bottom: 0; border-top: 1px solid var(--kdet-rand); border-bottom: 0; box-shadow: 0 -8px 24px rgba(16,24,40,.12); transform: translateY(120%); }
	.kdet-leiste__titel { display: none; }
	.kdet-leiste__innen { justify-content: space-between; }
	.kdet-leiste__trenner { display: none; }
	.kdet-leiste__team { padding: 10px 12px; }
	.kdet-leiste__team span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* am Handy nur das Symbol, der Text bleibt für Vorleseprogramme */
	body:has(.kdet-leiste.is-sichtbar) .tl-unten { bottom: calc(75px + env(safe-area-inset-bottom)); } /* Teamleiste über der Kaufleiste statt darauf */
}
@media (prefers-reduced-motion: reduce) { .kdet *, .kdet *::before, .kdet *::after { transition: none !important; } }
