/* lernen.css - Seiten und Abspieler des Lernbereichs (Y-1638, BS-1731; neu gestaltet Y-1660, BS-1774; WCAG 2.2 AA).
   Setzt voraus: stil/glieks.css (Farbrollen --g-*). Alle Klassen mit Vorsatz .l-; nichts anderes wird verändert.
   Aufbau: (1) gemeinsame Teile und Textseiten (Leichte Sprache, Handbuch), (2) Übersicht als Kachelraster nach Themen,
   (3) Folgenseite mit Film, kompakter Symbolleiste, Vollbild und Kapitelspalte. Konzept: doku/arbeit/lernbereich-konzept.md. */

/* ---- (1) gemeinsame Teile, Textseiten ---- */
.l-seite { max-width: 80ch; }
.l-krume { font-size: 15px; margin-bottom: 8px; color: var(--g-muted); }
.l-krume a { color: var(--g-petrol); }
.l-klein { font-size: 15px; color: var(--g-muted); }
.l-hinweis { border-left: 6px solid var(--g-apricot); background: var(--g-apricot-soft); padding: 10px 14px; margin: 16px 0; border-radius: 0 var(--g-rund-klein) var(--g-rund-klein) 0; }
.l-nur-leser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.l-sym { flex: none; display: block; }
.l-knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 16px; border: 2px solid var(--g-petrol); border-radius: var(--g-rund-klein); background: #fff; color: var(--g-petrol); font-family: var(--g-titel); font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer; }
.l-knopf:hover { background: var(--g-apricot-soft); }
.l-knopf--gross { background: var(--g-petrol); color: #fff; padding: 0 20px; }
.l-knopf--gross:hover { background: var(--g-petrol-hover); color: #fff; }
.l-seite a.l-knopf--gross, .l-seite a.l-knopf--gross:hover, .l-breit a.l-knopf--gross, .l-breit a.l-knopf--gross:hover { color: #fff; }
.l-seite a.l-knopf, .l-breit a.l-knopf { text-decoration: none; }
.l-seite a:focus-visible, .l-breit a:focus-visible, .l-breit button:focus-visible, .l-knopf:focus-visible, .l-video:focus-visible, .l-stelle input:focus-visible { outline: 3px solid var(--g-petrol); outline-offset: 2px; box-shadow: 0 0 0 6px var(--g-apricot); }
.l-liste { padding-left: 22px; margin: 0 0 16px; }
.l-liste li { margin-bottom: 8px; }
.l-schritte { padding-left: 22px; }
.l-schritte li { margin-bottom: 10px; }
.l-leicht p { font-size: 19px; line-height: 1.7; margin-bottom: 10px; }
.l-schlosszeile { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 0; }
.l-schloss { flex: none; }
.l-schlosskarte { margin: 20px 0; max-width: 560px; border: 1px solid var(--g-line); border-radius: var(--g-rund); overflow: hidden; background: #fff; box-shadow: var(--g-schatten-weich); }
.l-schlosskarte[hidden] { display: none; }
.l-schlosskarte img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; filter: grayscale(1) brightness(.85); }
.l-schlosskarte p { margin: 12px 16px; }
.l-schlosskarte .l-knopf + .l-knopf { margin-left: 8px; }
[data-gast-zeigen][hidden], [data-angemeldet-zeigen][hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .l-seite *, .l-breit * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Breite Seiten (Übersicht und Folgen): volle Inhaltsbreite statt Textspalte. */
.l-breit { padding-block: 28px 56px; }
.l-breit a { color: var(--g-petrol); }
.l-breit h1 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.03em; line-height: 1.15; margin: 4px 0 8px; }
.l-breit h2 { font-family: var(--g-titel); letter-spacing: -.02em; }
.l-kreis { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--g-petrol); color: #fff; font: 600 16px/1 var(--g-titel); }
.l-stimme { font-size: 14px; color: var(--g-muted); margin: 8px 0 0; }
.l-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--g-line); border-radius: 999px; background: #fff; color: var(--g-petrol); font: 500 15px/1.2 var(--g-titel); text-decoration: none; cursor: pointer; white-space: nowrap; }
.l-chip:hover { border-color: var(--g-petrol); background: var(--g-sage-hell); }
.l-chip[aria-expanded="true"] { background: var(--g-petrol); border-color: var(--g-petrol); color: #fff; }
.l-breit a.l-chip { text-decoration: none; }

/* ---- (2) Übersicht ---- */
.l-start { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: start; margin-bottom: 44px; }
.l-start__marke { margin: 0; font: 600 14px/1 var(--g-titel); letter-spacing: .06em; text-transform: uppercase; color: var(--g-muted); }
.l-uebersicht h1 { font-size: clamp(30px, 3.4vw, 42px); margin: 8px 0 10px; }
.l-start__satz { font-size: 18px; max-width: 54ch; margin: 0 0 16px; }
.l-zahlen { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--g-petrol); font: 500 15px/1.3 var(--g-titel); }
.l-zahlen li { display: inline-flex; align-items: center; gap: 6px; }
.l-zahlen .l-sym { color: var(--g-muted); }
.l-start__wege { margin: 0 0 14px; }
.l-fortschritt { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--g-muted); }
.l-fortschritt[hidden] { display: none; }
.l-fortschritt__balken { flex: 0 0 180px; height: 8px; border-radius: 4px; background: var(--g-line); overflow: hidden; }
.l-fortschritt__balken span { display: block; height: 100%; width: 0; background: var(--g-petrol); border-radius: 4px; }
.l-pfad { border: 1px solid var(--g-line); border-radius: var(--g-rund-gross); background: var(--g-sage-hell); padding: 16px; }
.l-pfad__kopf { margin: 0 0 10px; font: 600 15px/1.2 var(--g-titel); color: var(--g-muted); }
.l-pfad ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; position: relative; }
.l-pfad__thema { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 12px; border-radius: var(--g-rund); background: #fff; border: 1px solid var(--g-line); text-decoration: none; }
.l-pfad__thema:hover { border-color: var(--g-petrol); }
.l-breit a.l-pfad__thema { text-decoration: none; }
.l-pfad__text { display: grid; gap: 2px; }
.l-pfad__titel { font: 600 17px/1.2 var(--g-titel); color: var(--g-petrol); }
.l-pfad__zahl { font-size: 14px; color: var(--g-muted); }

.l-thema { margin: 0 0 44px; scroll-margin-top: calc(var(--g-kopf-versatz, 0px) + 16px); }
.l-thema__kopf { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--g-line); }
.l-thema__kopf h2 { font-size: 24px; margin: 0; }
.l-thema__zahl { font-size: 15px; color: var(--g-muted); margin-left: auto; }
.l-kacheln { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.l-kachel__link { display: flex; flex-direction: column; gap: 10px; height: 100%; text-decoration: none; color: var(--g-ink, var(--g-petrol)); border-radius: var(--g-rund); }
.l-breit a.l-kachel__link { text-decoration: none; }
.l-kachel__bild { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--g-rund); overflow: hidden; background: var(--g-sage-hell); border: 1px solid var(--g-line); }
.l-kachel__bild img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.l-kachel__link:hover .l-kachel__bild img { transform: scale(1.04); }
.l-kachel__link:hover .l-kachel__titel { text-decoration: underline; text-underline-offset: 3px; }
.l-kachel__nr { position: absolute; left: 8px; top: 8px; display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 14px; background: var(--g-petrol); color: #fff; font: 600 14px/1 var(--g-titel); }
.l-kachel__dauer { position: absolute; right: 8px; bottom: 8px; padding: 3px 7px; border-radius: 6px; background: rgb(11 18 32 / 82%); color: #fff; font: 600 13px/1.2 var(--g-titel); font-variant-numeric: tabular-nums; }
.l-kachel__spielen, .l-kachel__schloss { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgb(255 255 255 / 92%); color: var(--g-petrol); box-shadow: 0 4px 14px rgb(11 18 32 / 25%); opacity: 0; transition: opacity .2s ease; }
.l-kachel__link:hover .l-kachel__spielen, .l-kachel__link:focus-visible .l-kachel__spielen { opacity: 1; }
.l-kachel__schloss { opacity: 1; }
.l-kachel--zu .l-kachel__bild img { filter: saturate(.35) brightness(.92); }
.l-kachel__gesehen { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 6px; border-radius: 6px; background: var(--g-apricot); color: var(--g-petrol); font: 600 13px/1.2 var(--g-titel); }
.l-kachel__gesehen[hidden] { display: none; }
.l-kachel__text { display: grid; gap: 4px; }
.l-kachel__titel { font: 600 17px/1.3 var(--g-titel); color: var(--g-petrol); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.l-kachel__kurz { font-size: 14px; line-height: 1.45; color: var(--g-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.l-kachel__zeilen { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.l-kachel__zeile { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--g-muted); }
.l-kachel__zeile--frei { color: #1d6b45; }
.l-kachel--folgt .l-kachel__bild--folgt { display: grid; place-items: center; border: 2px dashed var(--g-line); background: transparent; color: var(--g-muted); }
.l-kachel--folgt { display: flex; flex-direction: column; gap: 10px; }
.l-kachel--folgt .l-kachel__titel { color: var(--g-muted); }

.l-handbuch { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; padding: 18px 20px; border: 1px solid var(--g-line); border-radius: var(--g-rund-gross); background: var(--g-sage-hell); }
.l-handbuch__symbol { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: #fff; color: var(--g-petrol); border: 1px solid var(--g-line); }
.l-handbuch__text { flex: 1 1 260px; }
.l-handbuch__text h2 { font-size: 20px; margin: 0 0 2px; }
.l-handbuch__text p { margin: 0; color: var(--g-muted); font-size: 15px; }
.l-handbuch__wege { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.l-handbuch__wege > span { display: contents; }
.l-handbuch__wege > span[hidden] { display: none; }

@media (max-width: 1100px) { .l-kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) { .l-start { grid-template-columns: 1fr; gap: 24px; } .l-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Telefon: Kachel als Zeile - Miniatur links (136 x 77), Titel und Dauer rechts; der Kurzsatz steht auf der Folgenseite. */
@media (max-width: 560px) {
  .l-breit { padding-block: 16px 40px; }
  .l-start__satz { font-size: 16px; }
  .l-zahlen { gap: 6px 14px; font-size: 14px; }
  /* Lernpfad auf dem Telefon als eine Zeile aus drei kleinen Feldern, damit die Folgen schnell im Blick sind. */
  .l-pfad { padding: 10px; }
  .l-pfad__kopf { margin-bottom: 8px; font-size: 14px; }
  .l-pfad ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .l-pfad__thema { flex-direction: column; align-items: flex-start; gap: 6px; min-height: 0; height: 100%; padding: 8px; }
  .l-pfad .l-kreis { width: 26px; height: 26px; font-size: 14px; }
  .l-pfad__titel { font-size: 14.5px; }
  .l-pfad__zahl { font-size: 12.5px; }
  .l-thema { margin-bottom: 32px; }
  .l-thema__kopf h2 { font-size: 20px; }
  .l-thema__zahl { margin-left: 44px; width: 100%; font-size: 14px; }
  .l-kacheln { grid-template-columns: 1fr; gap: 12px; }
  .l-kachel__link, .l-kachel--folgt { flex-direction: row; align-items: center; gap: 12px; }
  .l-kachel__bild { flex: 0 0 136px; width: 136px; }
  .l-kachel__kurz { display: none; }
  .l-kachel__titel { font-size: 16px; }
  .l-kachel__nr { left: 5px; top: 5px; min-width: 22px; height: 22px; font-size: 12px; }
  .l-kachel__dauer { right: 5px; bottom: 5px; font-size: 12px; padding: 2px 5px; }
  .l-kachel__schloss, .l-kachel__spielen { width: 32px; height: 32px; }
  .l-kachel__schloss .l-schloss { width: 16px; height: 16px; }
  .l-kachel__gesehen { left: 5px; bottom: 5px; font-size: 0; padding: 3px; gap: 0; }
  .l-handbuch__wege { width: 100%; }
}

/* ---- (3) Folgenseite ---- */
.l-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 0 20px; font: 500 15px/1.3 var(--g-titel); color: var(--g-muted); }
.l-meta__nr { padding: 3px 10px; border-radius: 999px; background: var(--g-petrol); color: #fff; font-weight: 600; font-size: 14px; }
.l-meta__teil { display: inline-flex; align-items: center; gap: 5px; }
.l-krume [aria-current] { color: var(--g-muted); }
.l-folge { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.l-folge__film { min-width: 0; }
.l-kurz { margin: 14px 0 14px; font-size: 17px; max-width: 70ch; }
.l-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.l-folge__seite { border: 1px solid var(--g-line); border-radius: var(--g-rund-gross); background: var(--g-sage-hell); padding: 14px 10px 10px; }
.l-folge__seite h2 { font-size: 17px; margin: 0 6px 8px; }
.l-kapitel { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.l-kap { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 40px; padding: 6px 8px; border: 0; border-radius: var(--g-rund-klein); background: transparent; color: var(--g-petrol); font: 500 15px/1.3 var(--g-titel); text-align: left; cursor: pointer; }
.l-kap:hover { background: #fff; }
.l-kap__zeit { flex: none; min-width: 40px; font-variant-numeric: tabular-nums; color: var(--g-muted); font-size: 14px; }
.l-kap[aria-current="true"] { background: #fff; box-shadow: inset 3px 0 0 var(--g-apricot); font-weight: 600; }
.l-kap[aria-current="true"] .l-kap__zeit { color: var(--g-petrol); }

/* Abspieler: Film, Bildbeschreibung, dunkle Symbolleiste (Knöpfe 40 x 40, Symbol 22 px - WCAG 2.5.8 mindestens 24 px). */
.l-abspieler { position: relative; border-radius: var(--g-rund); overflow: hidden; background: #0b1220; box-shadow: var(--g-schatten-weich); }
.l-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0b1220; cursor: pointer; }
.l-video::cue { font-family: var(--g-titel); font-size: 110%; background: rgb(11 18 32 / 88%); color: #fff; }
.l-abspieler--hoch .l-video { aspect-ratio: 9 / 16; width: auto; max-width: 100%; max-height: min(78vh, 680px); margin: 0 auto; }
.l-beschreibung { margin: 0; padding: 10px 14px; background: var(--g-apricot-soft); color: var(--g-petrol); font-size: 15px; }
.l-beschreibung[hidden] { display: none; }
.l-leiste { padding: 2px 6px 6px; background: #0b1220; color: #fff; }
.l-leiste[hidden] { display: none; }
.l-stelle { display: flex; align-items: center; min-height: 24px; padding: 0 6px; }
.l-stelle input { width: 100%; height: 24px; margin: 0; accent-color: var(--g-apricot); cursor: pointer; }
.l-leiste__knoepfe { display: flex; align-items: center; gap: 2px; }
.l-leiste__luecke { flex: 1; }
.l-sk { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; font: 600 13px/1 var(--g-titel); }
.l-sk:hover { background: rgb(255 255 255 / 14%); }
.l-sk:focus-visible { outline: 2px solid #fff; outline-offset: -2px; box-shadow: 0 0 0 3px var(--g-apricot); }
.l-sk--wort { width: auto; min-width: 48px; padding: 0 8px; }
.l-sk[aria-pressed="true"] { background: rgb(255 255 255 / 16%); }
.l-sk[aria-pressed="true"]::before { content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 3px; border-radius: 2px; background: var(--g-apricot); }
.l-sk--haupt .l-sym-anhalten, .l-sk--haupt.l-sk--spielt .l-sym-spielen { display: none; }
.l-sk--haupt.l-sk--spielt .l-sym-anhalten { display: block; }
.l-sk[data-ton] .l-sym-stumm, .l-sk[data-ton][aria-pressed="true"] .l-sym-welle { display: none; }
.l-sk[data-ton][aria-pressed="true"] .l-sym-stumm { display: inline; }
.l-sym-zu, .l-abspieler--voll .l-sym-auf { display: none; }
.l-abspieler--voll .l-sym-zu { display: inline; }
/* Tipp beim Zeigen und beim Tastaturfokus: das Wort zum Symbol (WCAG 1.4.13: bleibt beim Zeigen stehen, verschwindet mit Esc über blur). */
.l-sk[data-tipp]:hover::after, .l-sk[data-tipp]:focus-visible::after { content: attr(data-tipp); position: absolute; bottom: calc(100% + 8px); left: 50%; translate: -50% 0; padding: 5px 8px; border-radius: 6px; background: #fff; color: var(--g-petrol); font: 500 13px/1.2 var(--g-titel); white-space: nowrap; box-shadow: 0 4px 14px rgb(11 18 32 / 30%); pointer-events: none; z-index: 2; }
.l-leiste__knoepfe > :first-child[data-tipp]:hover::after, .l-leiste__knoepfe > :first-child[data-tipp]:focus-visible::after { left: 0; translate: 0 0; }
.l-leiste__knoepfe > :last-child[data-tipp]:hover::after, .l-leiste__knoepfe > :last-child[data-tipp]:focus-visible::after { left: auto; right: 0; translate: 0 0; }
.l-zeit { font-variant-numeric: tabular-nums; font-size: 14px; padding: 0 6px; color: #e6e9f2; white-space: nowrap; }
/* Vollbild: der ganze Abspieler (Film, Untertitel, Leiste) füllt den Schirm. */
.l-abspieler:fullscreen { display: flex; flex-direction: column; width: 100%; height: 100%; border-radius: 0; background: #000; }
.l-abspieler:fullscreen .l-video { flex: 1 1 auto; min-height: 0; width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: contain; background: #000; }
.l-abspieler:-webkit-full-screen { display: flex; flex-direction: column; width: 100%; height: 100%; border-radius: 0; background: #000; }
.l-abspieler:-webkit-full-screen .l-video { flex: 1 1 auto; min-height: 0; width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: contain; background: #000; }

.l-jetzt { margin: 32px 0 0; max-width: calc(100% - 348px); padding: 20px 22px; border: 1px solid var(--g-line); border-left: 6px solid var(--g-apricot); border-radius: var(--g-rund); background: #fff; }
.l-jetzt h2 { font-size: 20px; margin: 0 0 6px; }
.l-jetzt p { margin: 0 0 10px; }
.l-jetzt p:last-child { margin: 4px 0 0; }
.l-jetzt__titel { font-weight: 600; }
.l-bitte { font-size: 18px; font-style: italic; color: var(--g-petrol); }

.l-abschrift { margin-top: 32px; max-width: calc(100% - 348px); }
.l-abschrift[hidden] { display: none; }
.l-abschrift h2 { font-size: 20px; margin: 0 0 6px; }
.l-zeile { margin: 0 0 8px; }
.l-zeile .l-zeit { display: inline-block; min-width: 44px; min-height: 24px; padding: 0 4px; border: 0; border-radius: 4px; background: var(--g-sage-hell); color: var(--g-petrol); font: 500 14px/24px var(--g-titel); cursor: pointer; }
.l-zeile .l-zeit:hover { background: var(--g-apricot-soft); }
.l-zeile--bild { color: var(--g-muted); font-style: italic; }
.l-art { font-weight: 600; font-style: normal; }

/* Folge mit Schloss: Miniatur mit Schloss als Form, daneben das Wort und der Weg zur Anmeldung. */
.l-schlossbild { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: center; }
.l-schlossbild[hidden] { display: none; }
.l-schlossbild__bild { position: relative; border-radius: var(--g-rund); overflow: hidden; border: 1px solid var(--g-line); }
.l-schlossbild__bild img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(.35) brightness(.8); }
.l-schlossbild__symbol { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: rgb(255 255 255 / 94%); color: var(--g-petrol); }
.l-schlossbild__text p { margin: 0 0 12px; }
.l-schlossbild__wege { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.l-textweg { font-weight: 600; }

@media (max-width: 899px) {
  .l-folge, .l-schlossbild { grid-template-columns: 1fr; gap: 20px; }
  .l-jetzt, .l-abschrift { max-width: none; }
}
@media (max-width: 560px) {
  .l-breit h1 { font-size: 24px; }
  .l-meta { margin-bottom: 14px; gap: 6px 12px; font-size: 14px; }
  .l-abspieler { margin-inline: -4px; border-radius: 10px; }
  .l-kurz { font-size: 16px; }
  .l-chip { font-size: 14px; padding: 0 10px; }
  .l-zeit { font-size: 13px; padding: 0 2px; }
  .l-sk { width: 36px; height: 40px; }
  .l-sk--wort { min-width: 44px; padding: 0 4px; }
  .l-zeit__ges { display: none; }
  .l-jetzt { padding: 16px; }
}
