/* GROW-Mitgliederbereich. Tokens aus brand.css (GROW Design System, wie das Onboarding-Portal). */

:root {
  --seite-breite: 300px;
  --marke-dunkel: linear-gradient(160deg, #1b1030 0%, #3a1560 46%, #822ccd 100%);
  --erledigt: linear-gradient(135deg, var(--gw-orange), var(--gw-magenta));
}

html, body { margin: 0; }
body { background: var(--bg-page); color: var(--fg-default); -webkit-text-size-adjust: 100%; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--orange-500); outline-offset: 2px; border-radius: 4px; }
.icon { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Laden ---------- */
.laden-voll { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.laden-punkt { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--grau-100); border-top-color: var(--orange-500); animation: drehen .8s linear infinite; }
@keyframes drehen { to { transform: rotate(360deg); } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: var(--radius-pill); border: 1px solid var(--border-default); background: var(--bg-surface); font-family: var(--font-body); font-size: var(--fs-14); font-weight: 700; color: var(--fg-default); cursor: pointer; text-decoration: none; line-height: 1.2; transition: background .15s, transform .1s, box-shadow .15s, border-color .15s; }
.btn:hover { background: var(--bg-alt); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; box-shadow: 0 4px 14px rgba(236,121,16,.28); }
.btn--primary:hover { background: var(--brand-primary-hover); }
.btn--ghost { border-color: transparent; background: none; color: var(--fg-muted); }
.btn--ghost:hover { background: var(--grau-100); }
.btn--erledigt { background: var(--gruen-50); border-color: var(--gruen-500); color: var(--gruen-700); }
.btn--erledigt:hover { background: #dcf1e2; }
.btn--breit { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Fortschrittsbalken ---------- */
.balken { height: 6px; border-radius: var(--radius-pill); background: var(--grau-100); overflow: hidden; }
.balken .fuellung { height: 100%; width: 0; border-radius: inherit; background: var(--brand-gradient); transition: width .35s ease; }
.balken--hell { background: rgba(255,255,255,.16); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--radius-pill); font-size: var(--fs-11); font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.badge--D { background: var(--grau-100); color: var(--grau-600); }
.badge--E { background: var(--gelb-50); color: var(--gelb-600); }
.badge--folgt { background: var(--grau-50); color: var(--fg-subtle); border: 1px solid var(--border-default); }

/* ============================================================
   Anmeldung (gleiches Muster wie das GROW-Onboarding)
   ============================================================ */
.login { display: grid; grid-template-columns: 420px 1fr; min-height: 100vh; }
.marke-panel { position: relative; overflow: hidden; color: #fff; background: var(--marke-dunkel); padding: 40px 38px; display: flex; flex-direction: column; }
.marke-panel::before { content: ''; position: absolute; width: 460px; height: 460px; right: -180px; top: -120px; background: radial-gradient(circle at center, rgba(236,121,16,.55), rgba(213,67,171,.18) 45%, transparent 70%); filter: blur(6px); pointer-events: none; }
.marke-panel::after { content: ''; position: absolute; width: 380px; height: 380px; left: -160px; bottom: -140px; background: radial-gradient(circle at center, rgba(213,67,171,.42), transparent 68%); pointer-events: none; }
.marke-panel > * { position: relative; z-index: 1; }
.marke-logo { width: 150px; height: auto; display: block; }
.marke-panel .intro { margin-top: 64px; }
.eyebrow { font-size: var(--fs-12); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-caps); }
.marke-panel .eyebrow { opacity: .72; }
.marke-panel h1 { font-size: 32px; font-weight: 800; line-height: 1.16; margin-top: 12px; letter-spacing: -0.02em; }
.marke-panel p { font-size: var(--fs-14); line-height: 1.6; opacity: .82; margin: 14px 0 0; max-width: 32ch; }
.marke-panel .fuss { margin-top: auto; padding-top: 32px; font-size: var(--fs-12); opacity: .62; line-height: 1.5; }
.marke-panel .fuss a { color: #fff; text-decoration: underline; }

.login-haupt { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; }
.login-karte { width: 100%; max-width: 440px; }
.login-karte h2 { font-size: var(--fs-28); font-weight: 800; letter-spacing: -0.02em; }
.login-karte .beschr { font-size: var(--fs-14); color: var(--fg-muted); line-height: 1.6; margin: 10px 0 0; }
.feld { margin-top: 24px; }
.feld > label { display: block; font-size: var(--fs-13); font-weight: 600; margin-bottom: 7px; }
.eingabe { width: 100%; padding: 13px 14px; font-family: var(--font-body); font-size: 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--bg-surface); color: var(--fg-default); outline: none; transition: border-color .15s, box-shadow .15s; }
.eingabe::placeholder { color: var(--fg-subtle); }
.eingabe:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px var(--orange-50); }
.login-karte .btn--primary { margin-top: 16px; padding: 14px 22px; }
.hint { font-size: var(--fs-12); color: var(--fg-muted); line-height: 1.55; margin: 12px 0 0; }
.meldung { display: flex; gap: 12px; margin-top: 20px; padding: 14px 16px; border-radius: var(--radius-md); font-size: var(--fs-13); line-height: 1.55; }
.meldung .icon { margin-top: 1px; }
.meldung--info { background: var(--lila-50); color: var(--lila-700); }
.meldung--warn { background: var(--orange-50); color: var(--orange-700); }
.meldung--fehler { background: var(--rot-50); color: var(--rot-700); font-weight: 600; }
.meldung--ok { background: var(--gruen-50); color: var(--gruen-700); }
.meldung a { color: inherit; text-decoration: underline; font-weight: 700; }
.demo-box { margin-top: 20px; padding: 16px; border: 1.5px dashed var(--lila-500); border-radius: var(--radius-lg); background: var(--bg-surface); }
.demo-box .eyebrow { color: var(--lila-500); }
.demo-box p { font-size: var(--fs-13); color: var(--fg-muted); margin: 6px 0 12px; line-height: 1.55; }
.demo-box code { font-size: var(--fs-12); background: var(--grau-50); padding: 1px 5px; border-radius: 4px; }
.erfolg-kreis { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--gw-orange), var(--gw-magenta) 55%, var(--gw-lila)); box-shadow: var(--shadow-pop); margin-bottom: 22px; }
.erfolg-kreis .icon { width: 28px; height: 28px; }
.rechtliches { margin-top: 36px; font-size: var(--fs-12); color: var(--fg-subtle); display: flex; gap: 14px; justify-content: center; }
.rechtliches a { color: var(--fg-muted); }

/* ============================================================
   Portal: Seitenleiste + Inhalt
   ============================================================ */
.shell { display: grid; grid-template-columns: var(--seite-breite) minmax(0, 1fr); min-height: 100vh; }

.seite { position: sticky; top: 0; height: 100vh; overflow-y: auto; overflow-x: hidden; color: #fff; background: var(--marke-dunkel); display: flex; flex-direction: column; padding: 28px 18px 22px; z-index: 30; }
.seite::before { content: ''; position: absolute; width: 360px; height: 360px; right: -170px; top: -130px; background: radial-gradient(circle at center, rgba(236,121,16,.45), rgba(213,67,171,.14) 45%, transparent 70%); pointer-events: none; }
.seite > * { position: relative; }
.seite-kopf { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; }
.seite-kopf .marke-logo { width: 118px; }
.menue-zu { display: none; }
.kurs-name { padding: 26px 8px 0; }
.kurs-name .eyebrow { opacity: .65; }
.kurs-name .name { font-size: var(--fs-18); font-weight: 800; margin-top: 4px; letter-spacing: -0.01em; }
.gesamt { padding: 14px 8px 0; }
.gesamt .text { font-size: var(--fs-12); opacity: .75; margin-top: 8px; font-variant-numeric: tabular-nums; }

.nav { margin-top: 22px; display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: var(--fs-11); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-caps); opacity: .55; padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-md); color: rgba(255,255,255,.86); font-size: var(--fs-13); font-weight: 600; line-height: 1.3; text-decoration: none; transition: background .15s; }
.nav a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.nav a.aktiv { background: rgba(255,255,255,.14); color: #fff; }
.nav .nr { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: var(--fs-12); font-weight: 800; border: 1.5px solid rgba(255,255,255,.35); font-variant-numeric: tabular-nums; }
.nav .nr.fertig { background: var(--erledigt); border-color: transparent; }
.nav .nr .icon { width: 14px; height: 14px; stroke-width: 3; }
.nav .t { flex: 1; min-width: 0; }
.nav .p { font-size: var(--fs-11); opacity: .6; font-variant-numeric: tabular-nums; }
.nav .badge { margin-left: 4px; }

.seite-fuss { margin-top: auto; padding: 24px 10px 0; font-size: var(--fs-12); line-height: 1.5; }
.seite-fuss .wer { opacity: .85; word-break: break-all; }
.seite-fuss .gruppe { opacity: .6; margin-top: 2px; }
.seite-fuss .abmelden { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,.28); background: transparent; color: #fff; font-family: var(--font-body); font-size: var(--fs-12); font-weight: 700; cursor: pointer; }
.seite-fuss .abmelden:hover { background: rgba(255,255,255,.1); }
.seite-fuss .abmelden .icon { width: 14px; height: 14px; }
.seite-fuss .kontakt { margin-top: 16px; opacity: .7; }
.seite-fuss a { color: #fff; text-decoration: underline; }
.seite-fuss .recht { margin-top: 8px; display: flex; gap: 12px; opacity: .6; }

.kopfleiste { display: none; }
.abdunkler { display: none; }

.haupt { min-width: 0; }
.inhalt { max-width: 1080px; margin: 0 auto; padding: 36px 40px 64px; }

/* Admin-Leiste */
.admin-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 10px 40px; background: var(--lila-50); color: var(--lila-700); font-size: var(--fs-13); border-bottom: 1px solid rgba(130,44,205,.15); }
.admin-leiste strong { font-size: var(--fs-11); text-transform: uppercase; letter-spacing: var(--tracking-caps); }
.admin-leiste label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.admin-leiste input { accent-color: var(--lila-500); width: 16px; height: 16px; }
.admin-leiste select { font-family: var(--font-body); font-size: var(--fs-13); padding: 4px 8px; border-radius: 8px; border: 1px solid rgba(130,44,205,.3); background: #fff; color: var(--lila-700); }

/* Brotkrumen */
.brotkrumen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--fs-13); color: var(--fg-muted); margin-bottom: 18px; }
.brotkrumen a { color: var(--fg-muted); font-weight: 600; }
.brotkrumen a:hover { color: var(--lila-500); }
.brotkrumen .trenner { color: var(--fg-subtle); }
.brotkrumen .hier { color: var(--fg-default); font-weight: 600; }

/* ---------- Übersicht ---------- */
.hero { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--bg-surface); border: 1px solid var(--border-default); box-shadow: var(--shadow-card); padding: 32px 34px; }
.hero::before { content: ''; position: absolute; width: 420px; height: 420px; right: -170px; top: -210px; background: radial-gradient(circle at center, rgba(236,121,16,.16), rgba(213,67,171,.08) 45%, transparent 70%); pointer-events: none; }
.hero > * { position: relative; }
.hero .eyebrow { color: var(--brand-primary); }
.hero h1 { font-size: var(--fs-28); font-weight: 800; letter-spacing: -0.02em; margin-top: 8px; }
.hero p { font-size: var(--fs-14); color: var(--fg-muted); line-height: 1.6; margin: 10px 0 0; max-width: 58ch; }
.hero-fortschritt { margin-top: 22px; max-width: 520px; }
.hero-fortschritt .zahlen { display: flex; justify-content: space-between; font-size: var(--fs-13); font-weight: 600; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.hero-fortschritt .zahlen span:last-child { color: var(--fg-muted); font-weight: 500; }
.hero .btn { margin-top: 22px; max-width: 100%; }
.hero .btn .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.block-titel { font-size: var(--fs-18); font-weight: 800; letter-spacing: -0.01em; margin: 38px 0 16px; }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.modul-karte { display: flex; flex-direction: column; background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 20px 20px 18px; color: var(--fg-default); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.modul-karte:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); border-color: var(--border-strong); text-decoration: none; }
.modul-karte .kopf { display: flex; align-items: center; gap: 10px; }
.kreis { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: var(--fs-13); font-weight: 800; color: var(--lila-500); border: 1.5px solid rgba(130,44,205,.35); background: var(--lila-50); font-variant-numeric: tabular-nums; }
.kreis.fertig { background: var(--erledigt); border-color: transparent; color: #fff; }
.kreis .icon { width: 16px; height: 16px; stroke-width: 3; }
.modul-karte .kopf .eyebrow { color: var(--fg-subtle); }
.modul-karte h3 { font-size: var(--fs-18); font-weight: 800; letter-spacing: -0.01em; margin-top: 14px; }
.modul-karte .unter { font-size: var(--fs-13); color: var(--fg-muted); line-height: 1.5; margin: 4px 0 0; }
.modul-karte .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--fs-12); color: var(--fg-muted); margin-top: auto; padding-top: 16px; }
.modul-karte .meta span { display: inline-flex; align-items: center; gap: 5px; }
.modul-karte .meta .icon { width: 14px; height: 14px; }
.modul-karte .balken { margin-top: 12px; }
.modul-karte .fuss { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: var(--fs-12); font-weight: 600; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.modul-karte .fuss .icon { color: var(--brand-primary); }
.hinweis-klein { font-size: var(--fs-12); color: var(--fg-subtle); margin-top: 28px; }

/* ---------- Modulseite ---------- */
.modul-kopf { display: flex; gap: 18px; align-items: flex-start; }
.modul-kopf .kreis { width: 48px; height: 48px; font-size: var(--fs-16); }
.modul-kopf .eyebrow { color: var(--brand-primary); }
.modul-kopf h1 { font-size: var(--fs-28); font-weight: 800; letter-spacing: -0.02em; margin-top: 6px; }
.modul-kopf .unter { font-size: var(--fs-14); color: var(--fg-muted); margin: 6px 0 0; }
.modul-kopf .meta { font-size: var(--fs-13); color: var(--fg-muted); margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.modul-kopf .balken { margin-top: 14px; max-width: 420px; }
.modul-kopf .btn { margin-top: 18px; }

.abschnitt { margin-top: 26px; background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.abschnitt-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border-default); }
.abschnitt-kopf h2 { font-size: var(--fs-16); font-weight: 800; letter-spacing: -0.01em; }
.abschnitt-kopf .zahl { font-size: var(--fs-12); color: var(--fg-muted); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.liste { list-style: none; margin: 0; padding: 6px; }
.zeile { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-md); color: var(--fg-default); text-decoration: none; transition: background .12s; }
.zeile:hover { background: var(--bg-alt); text-decoration: none; }
.zeile.aktuell { background: var(--lila-50); box-shadow: inset 3px 0 0 var(--lila-500); }
.haken { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: flex; align-items: center; justify-content: center; color: transparent; background: var(--bg-surface); transition: background .2s, border-color .2s; }
.haken .icon { width: 13px; height: 13px; stroke-width: 3; }
.zeile.erledigt .haken { background: var(--erledigt); border-color: transparent; color: #fff; }
.zeile .t { flex: 1; min-width: 0; font-size: var(--fs-14); font-weight: 500; line-height: 1.4; }
.zeile.erledigt .t { color: var(--fg-muted); }
.zeile .r { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.zeile .dauer { font-size: var(--fs-12); color: var(--fg-subtle); font-variant-numeric: tabular-nums; min-width: 38px; text-align: right; }
.zeile .art { color: var(--fg-subtle); display: inline-flex; }
.zeile .art .icon { width: 15px; height: 15px; }

/* ---------- Lektion ---------- */
.lektion-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.lektion-titel { font-size: var(--fs-28); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.lektion-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; font-size: var(--fs-13); color: var(--fg-muted); }
.lektion-meta span { display: inline-flex; align-items: center; gap: 6px; }
.lektion-meta .icon { width: 15px; height: 15px; }
.video-rahmen { position: relative; width: 100%; aspect-ratio: 16 / 9; margin-top: 20px; border-radius: var(--radius-lg); overflow: hidden; background: #0e0a18; box-shadow: var(--shadow-card); }
.video-rahmen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.platzhalter { display: flex; align-items: center; justify-content: center; text-align: center; background: var(--marke-dunkel); color: #fff; padding: 24px; }
.platzhalter::before { content: ''; position: absolute; width: 340px; height: 340px; right: -120px; top: -140px; background: radial-gradient(circle at center, rgba(236,121,16,.4), transparent 68%); pointer-events: none; }
.platzhalter .p-inhalt { position: relative; max-width: 380px; }
.platzhalter .p-icon { width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); }
.platzhalter .p-icon .icon { width: 24px; height: 24px; }
.platzhalter strong { display: block; font-size: var(--fs-18); font-weight: 800; }
.platzhalter span { display: block; font-size: var(--fs-13); opacity: .8; line-height: 1.55; margin-top: 6px; }
.platzhalter--text { aspect-ratio: auto; min-height: 220px; }
.lektion-kurz { margin: 10px 0 0; max-width: 70ch; font-size: var(--fs-16); line-height: 1.55; color: var(--fg-muted); }
.lektion-text { margin-top: 24px; font-size: var(--fs-16); line-height: 1.7; max-width: 70ch; overflow-wrap: break-word; }
.lektion-text p { margin: 0 0 14px; }
.lektion-text ul, .lektion-text ol { margin: 0 0 14px; padding-left: 22px; }
.lektion-text li { margin: 0 0 6px; }
.lektion-text li > p { margin: 0; }
.lektion-text h2, .lektion-text h3, .lektion-text h4 { margin: 26px 0 10px; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; }
.lektion-text h2 { font-size: var(--fs-22); }
.lektion-text h3 { font-size: var(--fs-18); }
.lektion-text h4 { font-size: var(--fs-16); }
.lektion-text > :first-child { margin-top: 0; }
.lektion-text blockquote { margin: 0 0 14px; padding: 4px 0 4px 16px; border-left: 3px solid var(--lila-500); color: var(--fg-muted); }
.lektion-text a { text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }

.material { margin-top: 28px; max-width: 70ch; }
.material-titel { margin: 0 0 10px; font-size: var(--fs-13); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-subtle); }
.material-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.material-liste a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--bg-surface); color: var(--fg-default); text-decoration: none; box-shadow: var(--shadow-card); transition: border-color .15s, background .15s; }
.material-liste a:hover { border-color: var(--lila-500); background: var(--lila-50); text-decoration: none; }
.material-liste .m-icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--lila-50); color: var(--lila-500); }
.material-liste .m-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.material-liste .t { font-size: var(--fs-14); font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.material-liste .ziel { font-size: var(--fs-12); color: var(--fg-subtle); overflow-wrap: anywhere; }
.material-liste .m-pfeil { flex-shrink: 0; color: var(--fg-subtle); display: inline-flex; }

.aktionen { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-default); }
.aktionen .mitte { flex: 1; display: flex; justify-content: center; }
.aktionen .btn .kurz { display: none; }
.aktionen .btn { white-space: nowrap; }

.lektion-seitenliste { align-self: start; }
.lektion-seitenliste .kasten { background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.lektion-seitenliste .kasten-kopf { padding: 14px 16px; border-bottom: 1px solid var(--border-default); }
.lektion-seitenliste .kasten-kopf .eyebrow { color: var(--fg-subtle); }
.lektion-seitenliste .kasten-kopf a { display: block; font-size: var(--fs-14); font-weight: 800; color: var(--fg-default); margin-top: 3px; }
.lektion-seitenliste .kasten-kopf .balken { margin-top: 10px; }
.lektion-seitenliste .gruppe-titel { font-size: var(--fs-11); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--fg-subtle); padding: 12px 16px 4px; }
.lektion-seitenliste .liste { padding: 4px 6px 8px; }
.lektion-seitenliste .zeile { padding: 8px 10px; gap: 10px; }
.lektion-seitenliste .zeile .t { font-size: var(--fs-13); }
.lektion-seitenliste .haken { width: 20px; height: 20px; }
.lektion-seitenliste .haken .icon { width: 11px; height: 11px; }
.lektion-seitenliste .zeile .art, .lektion-seitenliste .badge--folgt { display: none; }
.lektion-seitenliste .zeile .dauer { min-width: 0; }

/* ---------- Admin: Status und Sichtbarkeits-Schalter ---------- */
.badge--V { background: var(--gruen-50); color: var(--gruen-700); }
.admin-info { font-size: var(--fs-12); opacity: .85; }
.schalter { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; font-size: var(--fs-12); font-weight: 700; color: var(--fg-muted); white-space: nowrap; }
.schalter input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.schalter .regler { position: relative; width: 34px; height: 20px; border-radius: var(--radius-pill); background: var(--grau-200); transition: background .2s; flex-shrink: 0; }
.schalter .regler::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(17,17,20,.25); transition: transform .2s; }
.schalter input:checked + .regler { background: var(--gruen-500); }
.schalter input:checked + .regler::after { transform: translateX(14px); }
.schalter input:focus-visible + .regler { outline: 2px solid var(--orange-500); outline-offset: 2px; }
.schalter input:disabled + .regler { opacity: .5; }
.schalter input:checked ~ .schalter-text { color: var(--gruen-700); }
.karte-huelle { display: flex; flex-direction: column; }
.karte-huelle .modul-karte { flex: 1; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.karte-huelle > .schalter { order: 2; padding: 10px 20px; border: 1px solid var(--border-default); border-top: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); background: var(--bg-alt); }
.karte-huelle > .schalter::before { content: 'Für Mitglieder'; margin-right: auto; color: var(--fg-subtle); font-weight: 600; order: -1; }
.karte-huelle > .schalter { justify-content: flex-end; }
.ausgeblendet > .modul-karte, .ausgeblendet > .zeile, .modul-kopf.ausgeblendet > div > h1, .abschnitt.ausgeblendet > .liste { opacity: .5; }
.ausgeblendet > .modul-karte { border-style: dashed; box-shadow: none; }
.abschnitt.ausgeblendet { border-style: dashed; box-shadow: none; }
.nav a.ausgeblendet { opacity: .5; }
.liste > li { display: flex; align-items: center; gap: 8px; }
.liste > li > .zeile { flex: 1; min-width: 0; }
.liste > li > .schalter { padding-right: 8px; }
.abschnitt-kopf .r { display: inline-flex; align-items: center; gap: 14px; }
.modul-kopf .schalter { margin-top: 10px; }

/* Leerer Zustand / Fehler */
.leer { text-align: center; padding: 64px 20px; }
.leer h1 { font-size: var(--fs-22); font-weight: 800; }
.leer p { color: var(--fg-muted); margin: 10px auto 22px; max-width: 46ch; line-height: 1.6; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--gw-ink); color: #fff; padding: 11px 18px; border-radius: var(--radius-pill); font-size: var(--fs-13); font-weight: 600; box-shadow: var(--shadow-pop); transition: opacity .2s, transform .2s; z-index: 80; max-width: calc(100vw - 32px); }
.toast.zeigen { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Breite Bildschirme: Kapitelliste rechts neben dem Video ---------- */
@media (min-width: 1280px) {
  .inhalt--breit { max-width: 1320px; }
  .lektion-raster { grid-template-columns: minmax(0, 1fr) 320px; }
  .lektion-seitenliste { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; border-radius: var(--radius-lg); }
}

/* ---------- Tablet und Handy ---------- */
@media (max-width: 959px) {
  .login { grid-template-columns: 1fr; }
  .marke-panel { padding: 24px 20px 28px; }
  .marke-panel::after { display: none; }
  .marke-panel .marke-logo { width: 120px; }
  .marke-panel .intro { margin-top: 26px; }
  .marke-panel h1 { font-size: 24px; }
  .marke-panel p { max-width: none; font-size: var(--fs-13); }
  .marke-panel .fuss { display: none; }
  .login-haupt { justify-content: flex-start; padding: 28px 16px 40px; }

  .shell { display: block; }
  .kopfleiste { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 40; height: 58px; padding: 0 16px; color: #fff; background: linear-gradient(100deg, #1b1030 0%, #3a1560 60%, #5e1f96 100%); box-shadow: 0 2px 12px rgba(17,17,20,.18); }
  .kopfleiste .menue { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: -8px; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; }
  .kopfleiste .menue:hover { background: rgba(255,255,255,.1); }
  .kopfleiste .icon { width: 22px; height: 22px; }
  .kopfleiste .marke-logo { width: 96px; }
  .kopfleiste .prozent { margin-left: auto; font-size: var(--fs-12); font-weight: 700; padding: 5px 10px; border-radius: var(--radius-pill); background: rgba(255,255,255,.12); font-variant-numeric: tabular-nums; }

  .seite { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); height: auto; transform: translateX(-102%); transition: transform .25s ease; box-shadow: var(--shadow-pop); z-index: 60; }
  .menue-offen .seite { transform: none; }
  .menue-zu { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; }
  .abdunkler { display: block; position: fixed; inset: 0; background: rgba(17,17,20,.45); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 50; }
  .menue-offen .abdunkler { opacity: 1; pointer-events: auto; }

  .admin-leiste { padding: 10px 16px; }
  .inhalt { padding: 22px 16px 48px; }
  .hero { padding: 24px 20px; }
  .hero h1 { font-size: var(--fs-22); }
  .hero .btn { width: 100%; }
  .block-titel { margin-top: 30px; }
  .raster { grid-template-columns: 1fr; gap: 14px; }

  .modul-kopf { gap: 14px; }
  .modul-kopf .kreis { width: 40px; height: 40px; font-size: var(--fs-14); }
  .modul-kopf h1 { font-size: var(--fs-22); }
  .modul-kopf .btn { width: 100%; }
  .abschnitt { margin-top: 18px; }
  .abschnitt-kopf { padding: 14px 16px; }
  .zeile { padding: 10px; }

  .lektion-titel { font-size: var(--fs-22); }
  .video-rahmen { margin-left: -16px; margin-right: -16px; width: auto; border-radius: 0; }
  .platzhalter span { font-size: var(--fs-12); }

  /* Aktionsleiste klebt unten, mit dem Daumen erreichbar (wie im Onboarding) */
  .aktionen { position: sticky; bottom: 0; z-index: 20; gap: 10px; margin: 24px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg-page); border-top: 1px solid var(--border-default); box-shadow: 0 -4px 16px rgba(17,17,20,.06); }
  .aktionen .btn { padding: 13px 14px; }
  .aktionen .mitte .btn { width: 100%; }
  .aktionen .btn .lang { display: none; }
  .aktionen .btn .kurz { display: inline; }
}

@media (max-width: 600px) {
  .liste > li > .schalter .schalter-text { display: none; }
  .abschnitt-kopf { flex-wrap: wrap; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 20px; }
  .zeile .art { display: none; }
}
