/* Akademie christianschoch.de — hell, sachlich, eine Akzentfarbe.
   Zielgruppe liest auch am Telefon: große Schrift, große Klickflächen. */

/* Outfit (SIL Open Font License), selbst gehostet — Variable Font,
   deckt die Gewichte 400/500/600 ab. Kein Aufruf an Google-Domains. */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --akzent: #0f4c81;
  --akzent-dunkel: #0b3a63;
  --gruen: #1a7f37;
  --text: #1f2933;
  --text-leise: #5f6b76;
  --rand: #e2e6ea;
  --flaeche: #f6f8fa;
  --weiss: #ffffff;
  --schatten: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.1);
  /* Am 20.08.2026 an der Vorlage gemessen: Karten tragen einen weichen,
     leicht nach rechts unten versetzten Schatten statt eines Randes. */
  --schatten-karte: 2px 4px 12px rgba(0, 0, 0, 0.08);
  --gruen-knopf: #2eb174;
  --gruen-knopf-dunkel: #269862;
  --gruen-hell: #e5f5ee;
  --dunkel: #0b2f52;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Outfit, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--flaeche);
}

.innen { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

main.innen { padding-top: 28px; padding-bottom: 64px; }

/* Zweispaltiges Layout: feste linke Spalte, Inhalt rechts */
.layout { display: flex; align-items: stretch; }
.haupt { flex: 1; min-width: 0; }
.haupt-innen { max-width: 1080px; margin: 0 auto; padding: 28px 32px 64px; }

/* Linke Spalte. Masse und Schriftgrade am 20.08.2026 an der Vorlage gemessen:
   271 px breit, kein Trennstrich, gleicher Grund wie der Inhalt. Die Spalte
   traegt die Fuehrung allein, darum steht die Marke oben in ihr. */
.seitenleiste {
  width: 271px;
  flex-shrink: 0;
  background: transparent;
  min-height: 100vh;
  padding: 22px 16px 40px;
}
.marke-spalte { display: block; font-size: 1.15rem; margin: 0 12px 18px; }

.nutzer-karte {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #eceef2;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 26px;
}
.nutzer-kreis {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--akzent);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.95rem;
}
.nutzer-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.nutzer-name { font-weight: 600; font-size: 0.95rem; }
.nutzer-rolle { color: var(--text-leise); font-size: 0.82rem; }

.nav-gruppe { margin-bottom: 24px; }
.nav-gruppen-titel {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  font-weight: 600;
  color: #79828c;
  padding: 0 12px;
  margin-bottom: 4px;
}
/* Flache Liste statt Kachelreihe: 38 px hoch, Gewicht 400 wie gemessen.
   Der Kasten erscheint erst beim Zeigen und im aktiven Zustand. */
.nav-eintrag {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
}
.nav-symbol { flex-shrink: 0; display: block; }
.nav-eintrag:hover { background: #e9ecf0; }
.nav-eintrag.aktiv { background: #e4e8ee; color: var(--akzent); font-weight: 600; }
.nav-eintrag.gesperrt { color: #9aa4ad; }
.nav-eintrag.gesperrt:hover { background: #e9ecf0; }
.nav-abmelden { color: var(--text-leise); }
.nav-schloss { flex-shrink: 0; }
.menue-knopf { display: none; }
.seitenleiste-schleier { display: none; }

/* Schlichte Textseite (Platzhalter, gesperrte Kurse) */
.seite-karte {
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-radius: 12px;
  box-shadow: var(--schatten);
  padding: 26px 28px;
  max-width: 640px;
}

/* Überschriften leiser (Gewicht 500), dafür größer — kein Formular-Fettdruck */
h1 { font-size: 32px; line-height: 1.25; font-weight: 500; margin: 0 0 8px; }
h2 { font-size: 24px; line-height: 1.3; font-weight: 500; margin: 36px 0 14px; }
a { color: var(--akzent); }

.meta { color: var(--text-leise); font-size: 0.94rem; }
.untertitel { color: var(--text-leise); margin-top: 0; }

/* Kopfzeile — nur auf schmalen Schirmen, siehe Medienabfrage unten */
.kopf { background: var(--weiss); border-bottom: 1px solid var(--rand); }
.kopf-nur-schmal { display: none; }
.kopf-zeile { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 20px; }
.marke { font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.05rem; }
.marke span { color: var(--akzent); font-weight: 500; }

/* Knöpfe */
.knopf {
  display: inline-block;
  background: var(--akzent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.knopf:hover { background: var(--akzent-dunkel); }
.knopf-zweit { background: var(--weiss); color: var(--akzent); border: 1px solid var(--akzent); padding: 8px 16px; }
.knopf-zweit:hover { background: #eef4fa; }

/* Anmeldung */
.login-karte {
  max-width: 440px;
  margin: 48px auto 0;
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-radius: 12px;
  box-shadow: var(--schatten);
  padding: 32px 28px;
}
.login-karte label { display: block; font-weight: 600; margin-bottom: 6px; }
.login-karte input {
  width: 100%;
  font-size: 1.05rem;
  padding: 12px 14px;
  border: 1px solid var(--rand);
  border-radius: 8px;
  margin-bottom: 18px;
}
.login-karte .knopf { width: 100%; }
.hinweis {
  background: #eef4fa;
  border: 1px solid #c8dcee;
  border-radius: 8px;
  padding: 12px 14px;
}

/* "Mache direkt weiter"-Leiste, mit Vorschaubild links wie in der Vorlage */
.weiter-leiste {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--dunkel);
  color: #fff;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 24px 0 8px;
  text-decoration: none;
}
.weiter-bild {
  width: 132px; aspect-ratio: 16/9; border-radius: 8px; object-fit: cover;
  flex-shrink: 0; background: rgba(255, 255, 255, 0.08);
}
.weiter-text { flex: 1; min-width: 0; }
.weiter-leiste .meta { color: #a9c2d8; }
.weiter-label { text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.06em; font-weight: 600; color: #9fbcd8; }
.weiter-titel { font-size: 1.15rem; font-weight: 600; margin: 2px 0; }
.weiter-leiste .knopf { background: #fff; color: var(--dunkel); flex-shrink: 0; margin-left: auto; }
.weiter-leiste .knopf:hover { background: #e8eef4; }

/* Kurskacheln */
.kachel-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.kurs-kachel {
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-radius: 12px;
  box-shadow: var(--schatten);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
}
.kurs-kachel:hover { border-color: var(--akzent); }
.kachel-bild {
  background: linear-gradient(0deg, var(--akzent), var(--akzent));
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 34px 20px;
  font-size: 1.05rem;
}
.kachel-body { padding: 16px 20px 20px; }
.kachel-titel { font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.kachel-prozent { font-size: 0.94rem; color: var(--text-leise); margin-bottom: 10px; }
.nicht-gestartet { text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.82rem; }
.balken { height: 6px; border-radius: 3px; background: var(--rand); }
.balken-fuellung { height: 6px; border-radius: 3px; background: var(--gruen); }

/* Kurs-/Modulkopf */
.ruecklink { margin: 0 0 12px; }
.ruecklink a {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--text-leise);
}

/* Dunkler Kopfbalken fuer Kurs, Modul und Lektion. Form von der Vorlage
   gemessen (Radius 16, Bild 16:9 links, Ring rechts), Farbe ist unsere. */
.balken-kopf {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--dunkel);
  color: #fff;
  border-radius: 16px;
  padding: 18px 22px;
  text-decoration: none;
}
.balken-bild {
  width: 176px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
}
.balken-text { flex: 1; min-width: 0; }
.balken-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  font-weight: 600;
  color: #9fbcd8;
  margin-bottom: 2px;
}
.balken-titel { font-size: 1.6rem; font-weight: 500; line-height: 1.25; margin: 0; }
.balken-meta { color: #a9c2d8; font-size: 0.95rem; margin-top: 4px; }
.balken-kopf .ring-text { fill: #fff; }
.balken-kopf .ring-bg { stroke: rgba(255, 255, 255, 0.22); }
.balken-kopf .nicht-gestartet-badge,
.lektion-kopfbalken .nicht-gestartet-badge { color: #cfe0ee; border-color: rgba(255, 255, 255, 0.32); }
/* Im Modulbalken der Lektionsseite traegt die Karte den Haupttitel, der
   Balken nennt das Modul nur, deshalb kleiner. */
.lektion-kopfbalken .balken-titel { font-size: 1.2rem; }

/* Abschnittsueberschrift mit senkrechtem Akzentstrich wie in der Vorlage */
.abschnitt-titel {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.32rem; font-weight: 600; margin: 28px 0 14px;
}
.abschnitt-titel::before {
  content: ""; width: 4px; height: 1.1em;
  border-radius: 2px; background: var(--akzent);
}

/* Strichsymbole sitzen mit dem Text auf einer Linie */
.sym { flex-shrink: 0; vertical-align: -0.16em; }

.kurs-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--weiss);
  border-radius: 16px;
  box-shadow: var(--schatten-karte);
  padding: 24px 28px;
}
.nicht-gestartet-badge {
  color: var(--text-leise);
  border: 1px solid var(--rand);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Fortschrittsring */
.ring { flex-shrink: 0; }
.ring-bg, .ring-fg { fill: none; stroke-width: 3.6; }
.ring-bg { stroke: var(--rand); }
.ring-fg {
  stroke: var(--gruen);
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 18px 18px;
}
.ring-text { font-size: 9px; font-weight: 700; fill: var(--text); text-anchor: middle; }

/* Modulliste. Vorschaubild links, Titel, darunter die Zaehlzeile in
   Versalien, rechts entweder Fortschrittsring oder Start-Kreis. */
.modul-liste { display: flex; flex-direction: column; gap: 12px; }
.modul-zeile {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--weiss);
  border-radius: 12px;
  box-shadow: var(--schatten-karte);
  padding: 12px 18px 12px 12px;
  text-decoration: none;
  color: var(--text);
}
.modul-zeile:hover { box-shadow: 2px 6px 16px rgba(0, 0, 0, 0.12); }
.modul-bild {
  width: 132px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--dunkel);
}
.modul-bild-leer {
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.04em;
}
.modul-text { flex: 1; min-width: 0; }
.modul-titel { font-weight: 600; font-size: 1.08rem; margin-bottom: 3px; }
.modul-zaehl {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-leise);
}
.modul-rechts { margin-left: auto; flex-shrink: 0; display: flex; align-items: center; }

/* Start-Kreis: dort, wo bei begonnenen Modulen der Ring steht */
.start-kreis {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--rand);
  background: var(--weiss);
  display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1px;
  color: var(--text-leise);
  flex-shrink: 0;
}
.start-kreis span {
  text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 0.58rem; font-weight: 600;
}
.modul-zeile.gesperrt { background: var(--flaeche); box-shadow: none; }
.modul-zeile.gesperrt .modul-titel { color: var(--text-leise); }
.modul-zeile.gesperrt .modul-bild { background: #b9c2cb; }
.schloss { margin-right: 4px; }
.schloss-datum {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-leise);
  border: 1px solid var(--rand);
  background: var(--weiss);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.88rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Sektionen und Lektionszeilen. Jede Sektion ist eine eigene weisse Karte
   mit Kopf (Symbolkreis, Titel, Dauer, Beschreibung); die Lektionen darin
   sind flache Zeilen mit Rand statt eigener Schattenkarten. */
.sektion {
  background: var(--weiss);
  border-radius: 16px;
  box-shadow: var(--schatten-karte);
  padding: 24px;
  margin-top: 20px;
}
.sektion-kopf { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.sektion-kreis {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--dunkel);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.sektion-kopf-text { min-width: 0; }
.sektion-titelzeile { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sektion-kopf h2 { margin: 0; font-size: 1.32rem; font-weight: 500; }
.sektion-beschreibung { color: var(--text-leise); font-size: 0.95rem; margin-top: 2px; }

.lektions-liste { display: flex; flex-direction: column; gap: 10px; }
.lektions-zeile {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-radius: 10px;
  padding: 10px;
  text-decoration: none;
  color: var(--text);
}
.lektions-zeile:hover { border-color: #b9c9d8; background: #fbfcfd; }
.lektions-text { flex: 1; min-width: 0; }
.lektions-titel { font-weight: 500; font-size: 1.05rem; }
.lektions-meta {
  display: flex; align-items: center; gap: 14px;
  color: var(--text-leise); font-size: 0.9rem; margin-top: 3px;
}
.lektions-meta span { display: inline-flex; align-items: center; gap: 5px; }
.lektions-rechts { margin-left: auto; }

/* Erledigt-Zeichen, Masse von der Vorlage: 34 px, heller gruener Grund */
.haken-kreis {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 8px;
  background: var(--gruen-hell);
  color: var(--gruen-knopf);
  display: inline-flex; align-items: center; justify-content: center;
}

/* Vorschaubereich links in der Lektionszeile: 16:9, zeigt bild aus
   kurs.yaml, sonst graue Fläche mit der Lektionsnummer */
.lektions-bild {
  width: 178px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
  background: #e9edf1;
}
.lektions-bild-leer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-leise);
  font-weight: 500;
  font-size: 0.94rem;
}

/* Auf schmalen Schirmen zurueck auf 96 px: bei 160 px bleiben dem Titel
   nur noch 92 px und er bricht auf vier Zeilen (gemessen bei 390 px). */
@media (max-width: 700px) {
  .lektions-bild { width: 96px; }
}

.lektions-rechts { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.haken {
  color: #fff;
  background: var(--gruen);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.erledigt-hinweis { display: inline-flex; align-items: center; gap: 8px; color: var(--gruen); font-weight: 600; }

/* Lektionsseite */
.brotkrumen { display: flex; flex-wrap: wrap; gap: 8px; color: var(--text-leise); font-size: 0.94rem; }
.brotkrumen a { color: var(--text-leise); }
.brotkrumen-aktiv { color: var(--text); font-weight: 600; }

/* Modulbalken der Lektionsseite: Modulbild, Label + Titel, Übersicht, Ring.
   Gleiche Bauform wie der Kopfbalken auf der Modulseite, dunkler Grund. */
.lektion-kopfbalken {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--dunkel);
  color: #fff;
  border-radius: 16px;
  padding: 14px 20px;
  margin-bottom: 18px;
}
.lektion-kopfbalken .ring-text { fill: #fff; }
.lektion-kopfbalken .ring-bg { stroke: rgba(255, 255, 255, 0.22); }
.uebersicht { position: relative; flex-shrink: 0; margin-left: auto; }
.uebersicht summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}
.uebersicht summary::-webkit-details-marker { display: none; }
.uebersicht summary:hover { border-color: rgba(255, 255, 255, 0.6); }
.uebersicht-panel { color: var(--text); }
.uebersicht[open] .uebersicht-pfeil { transform: rotate(180deg); }
.uebersicht-pfeil { display: inline-block; }
.uebersicht-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  width: 360px;
  max-width: calc(100vw - 40px);
  max-height: 60vh;
  overflow-y: auto;
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(31, 41, 51, 0.12);
}

.lektion-haupt {
  background: var(--weiss);
  border-radius: 16px;
  box-shadow: var(--schatten-karte);
  padding: 36px 40px;
}
/* Titel wie gemessen: 26 px, Gewicht 500 statt der sonst kraeftigen Ueberschrift */
.lektion-haupt h1 { font-size: 1.62rem; font-weight: 500; line-height: 1.3; margin: 0; }
.video, .video-platzhalter { width: 100%; border-radius: 12px; margin: 16px 0 6px; }
.video-platzhalter {
  background: var(--flaeche);
  border: 1px dashed #c4ccd4;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.video-platzhalter-text { font-size: 1.2rem; font-weight: 700; color: var(--text-leise); }
.beschreibung { margin-top: 14px; white-space: pre-line; }

.befehl-block {
  margin-top: 22px;
  border-top: 1px solid var(--rand);
  padding-top: 18px;
}
.befehl-code-rahmen { position: relative; }
.befehl-code {
  background: #10151b;
  color: #e8edf2;
  font-family: "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.5;
  border-radius: 10px;
  padding: 18px 20px;
  padding-right: 120px;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}
#befehl-kopieren { position: absolute; top: 12px; right: 12px; background: #fff; }

.anhang { margin-top: 18px; font-weight: 500; }

/* Fuss der Lektionskarte: Zustand links, Abschluss-Knopf rechts.
   Gruen ist hier Zustandssignal, deshalb wie in der Vorlage uebernommen. */
.lektion-fuss {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--rand);
  margin-top: 26px;
  padding-top: 20px;
}
.lektion-fuss form { flex-shrink: 0; margin-left: auto; }
.knopf-fertig {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gruen-knopf);
  padding: 10px 18px;
  font-size: 0.94rem;
  font-weight: 500;
}
.knopf-fertig:hover { background: var(--gruen-knopf-dunkel); }

/* "Naechste Lektion" sitzt abgesetzt unter der Karte, nicht in ihr */
.naechste-leiste {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: 20px;
  text-decoration: none;
  color: var(--text);
}
.naechste-leiste:hover { border-color: #b9c9d8; }
.naechste-bild {
  width: 132px; aspect-ratio: 16/9; border-radius: 8px; object-fit: cover;
  flex-shrink: 0; background: var(--dunkel);
}
.naechste { min-width: 0; flex: 1; }
.naechste-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-leise);
}
.naechste-titel { font-weight: 600; font-size: 1.05rem; margin-top: 2px; }
.naechste-leiste .knopf-zweit { margin-left: auto; flex-shrink: 0; }

/* Lektionsliste im Übersicht-Aufklapper */
.seiten-kopf { padding: 4px 8px 12px; }
.seiten-titel { font-weight: 700; }
.seiten-zeile {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
}
.seiten-zeile:hover { background: var(--flaeche); }
.seiten-zeile.aktiv { border-color: var(--akzent); background: #eef4fa; font-weight: 600; }

/* Telefon */
@media (max-width: 860px) {
  .kurs-kopf { flex-direction: row; padding: 20px; }
  .weiter-leiste { flex-wrap: wrap; }
  .weiter-leiste .knopf { width: 100%; text-align: center; margin-left: 0; }
  .weiter-bild, .naechste-bild { width: 96px; }
  .naechste-leiste { flex-wrap: wrap; }
  .naechste-leiste .knopf-zweit { width: 100%; text-align: center; margin-left: 0; }
  /* Schmal brechen Kopfbalken und Modulzeile um: Bild und Text in der
     ersten Reihe, Ring beziehungsweise Zustands-Pille in der zweiten.
     Ohne den Umbruch drueckt die Pille den Titel auf ein Wort je Zeile. */
  .balken-bild { width: 108px; }
  .balken-titel { font-size: 1.25rem; }
  .balken-kopf { flex-wrap: wrap; }
  .balken-kopf .balken-text { flex: 1 1 45%; }
  .balken-kopf .ring,
  .balken-kopf .nicht-gestartet-badge { order: 3; margin-left: auto; }
  .modul-zeile { flex-wrap: wrap; }
  .modul-text { flex: 1 1 45%; }
  .modul-rechts { order: 3; margin-left: auto; }
  .sektion { padding: 16px 14px; }
  .modul-bild { width: 96px; }
  .modul-zeile { gap: 12px; padding: 10px 12px 10px 10px; }
  .start-kreis { width: 48px; height: 48px; }
  .befehl-code { padding-right: 20px; padding-top: 56px; }
  .lektion-haupt { padding: 22px 18px; }
  /* 26 px Titel brechen bei 390 px auf drei Zeilen und druecken den Player weg */
  .lektion-haupt h1 { font-size: 1.32rem; }
  .haupt-innen { padding: 20px 16px 48px; }
  .kopf-zeile { padding: 0 16px; }

  /* Auf schmalen Schirmen kommt die Kopfzeile zurück und traegt Marke plus
     Menüzeichen; die Marke in der Spalte waere dann doppelt. */
  .kopf-nur-schmal { display: block; }
  .marke-spalte { display: none; }

  /* Spalte klappt hinter das Menüzeichen oben links */
  .menue-knopf {
    display: inline-flex;
    align-items: center;
    background: none;
    border: 0;
    padding: 6px;
    margin-left: -6px;
    color: var(--text);
    cursor: pointer;
  }
  .seitenleiste {
    position: fixed;
    left: 0;
    top: 61px;
    bottom: 0;
    z-index: 40;
    min-height: 0;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    background: var(--weiss);
    border-right: 1px solid var(--rand);
    width: 272px;
  }
  body.nav-offen .seitenleiste { transform: none; }
  body.nav-offen .seitenleiste-schleier {
    display: block;
    position: fixed;
    inset: 61px 0 0 0;
    z-index: 35;
    background: rgba(31, 41, 51, 0.35);
  }
  /* Schmal steht Bild und Modultitel in der ersten Reihe, Übersicht und
     Ring rutschen in eine zweite. Sonst quetscht der Aufklapper den
     Titel auf vier Zeilen und legt sich darüber. */
  .lektion-kopfbalken { flex-wrap: wrap; gap: 12px; padding: 12px 14px; }
  .lektion-kopfbalken .balken-bild { width: 84px; }
  .lektion-kopfbalken .balken-text { flex: 1 1 40%; }
  .lektion-kopfbalken .balken-titel { font-size: 1.05rem; }
  .uebersicht { order: 3; margin-left: 0; }
  .lektion-kopfbalken .ring { order: 4; margin-left: auto; }
  /* Der Lektionstitel steht gleich darunter in der Karte */
  .brotkrumen-aktiv, .brotkrumen span:nth-last-child(2) { display: none; }
  .uebersicht-panel { right: auto; left: 0; }
  .lektion-fuss { flex-wrap: wrap; }
  .lektion-fuss form { width: 100%; margin-left: 0; }
  .knopf-fertig { width: 100%; justify-content: center; }
}
