:root {
  --brand: #5b2bf0;
  --brand-2: #8b5cf6;
  --brand-soft: #f1edfe;
  --night: #120a2e;
  --night-2: #2a1470;
  --gold: #ffc35a;
  --ink: #1b1730;
  --muted: #6b6780;
  --line: #e8e4f3;
  --bg: #f6f4fc;
  --card: #ffffff;
  --ok: #138a52;
  --ok-soft: #e6f6ee;
  --bad: #c2332b;
  --bad-soft: #fdecea;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(27, 23, 48, .05), 0 10px 30px rgba(45, 25, 120, .08);
  --shadow-lift: 0 2px 4px rgba(27, 23, 48, .06), 0 18px 44px rgba(45, 25, 120, .16);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 "Segoe UI Variable Text", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.with-demo { padding-bottom: 56px; }
a { color: var(--brand); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-family: "Segoe UI Variable Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: -.02em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 750; margin-top: 1.6em; }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 1240px; }
main.wrap { padding-top: 32px; padding-bottom: 72px; min-height: 55vh; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.14rem; color: #3d3954; }
.eyebrow { text-transform: uppercase; font-size: .72rem; letter-spacing: .12em; color: var(--brand); font-weight: 700; margin: 0 0 .5em; }
.center { text-align: center; }
.narrow { max-width: 700px; margin: 0 auto; }
.panel { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: clamp(22px, 4vw, 40px); }
.crumbs { font-size: .875rem; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.textlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; text-decoration: none; }
.textlink:hover { text-decoration: underline; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin: 36px 0 16px; }
.section-head:first-child { margin-top: 4px; }
.section-head h2 { margin: 0; }

/* Kopf und Fuß */
.top { background: var(--night); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; max-width: 1240px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; min-width: 0; }
.brand img { border-radius: 10px; background: #fff; }
.brand span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand b { font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand small { color: #b9b1dc; font-size: .75rem; }
.top nav { display: flex; align-items: center; gap: 22px; font-size: .95rem; }
.top nav a { color: #e9e5fb; text-decoration: none; white-space: nowrap; font-weight: 500; }
.top nav a:hover { color: #fff; }
.top nav form { margin: 0; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: #a59dc9; cursor: pointer; }
.linkish:hover { color: #fff; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); font-weight: 700 !important; color: #fff !important; box-shadow: 0 0 0 2px rgba(255, 255, 255, .18); }
.foot { background: var(--night); padding: 26px 0; font-size: .875rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; max-width: 1240px; }
.foot a { color: #a59dc9; text-decoration: none; }
.foot a:hover { color: #fff; }

/* Dunkles Band unter dem Kopf */
.band {
  color: #fff; padding: 34px 0 44px;
  background:
    radial-gradient(900px 420px at 88% -20%, rgba(139, 92, 246, .55), transparent 62%),
    radial-gradient(700px 360px at -5% 120%, rgba(91, 43, 240, .55), transparent 60%),
    linear-gradient(160deg, var(--night), var(--night-2) 70%, #3a1d9e);
}
.band h1 { color: #fff; }
.band .lead { color: #d8d2f3; max-width: 56ch; }
.band .eyebrow { color: #c4b5fd; }
.band .crumbs { color: #b9b1dc; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  border: 0; border-radius: 12px; padding: 12px 20px; font: 650 .95rem/1.2 inherit; font-family: inherit;
  text-decoration: none; cursor: pointer; box-shadow: 0 6px 18px rgba(91, 43, 240, .32);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 10px 24px rgba(91, 43, 240, .38); }
.btn:focus-visible, a:focus-visible, input:focus-visible, button:focus-visible { outline: 3px solid rgba(139, 92, 246, .55); outline-offset: 2px; }
.btn-ghost { background: #fff; color: var(--brand); border: 1px solid #d8cffd; box-shadow: none; }
.btn-ghost:hover { box-shadow: none; background: var(--brand-soft); }
.btn-light { background: #fff; color: var(--brand); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.btn-glass { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .22); box-shadow: none; }
.btn-glass:hover { background: rgba(255, 255, 255, .18); box-shadow: none; }
.btn-done { background: rgba(46, 204, 133, .18); color: #7ff0b8; border: 1px solid rgba(46, 204, 133, .45); box-shadow: none; }
.btn-small { padding: 9px 16px; font-size: .875rem; }
.top nav .btn { color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 5px; background: var(--brand-soft); color: var(--brand); border-radius: 99px; padding: 3px 11px; font-size: .78rem; font-weight: 650; }
.pill-free { background: var(--ok-soft); color: var(--ok); }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-off { background: #eee; color: #888; text-decoration: line-through; }
.pill-glow { background: rgba(255, 195, 90, .16); color: var(--gold); border: 1px solid rgba(255, 195, 90, .4); padding: 5px 13px; font-size: .82rem; margin: 0 0 14px; }
.price { font-weight: 700; font-size: 1.15rem; }
.price.big { font-size: 1.8rem; }

.flash { background: var(--ok-soft); color: #0d5c37; padding: 10px 14px; border-radius: 12px; }
.flash-error { background: var(--bad-soft); color: var(--bad); }

/* Fortschritt */
progress.bar { appearance: none; width: 100%; height: 8px; border: 0; border-radius: 99px; background: var(--line); overflow: hidden; margin: 6px 0 4px; display: block; }
progress.bar::-webkit-progress-bar { background: var(--line); border-radius: 99px; }
progress.bar::-webkit-progress-value { background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 99px; }
progress.bar::-moz-progress-bar { background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 99px; }
.ring { transform: rotate(-90deg); display: block; }
.ring circle { fill: none; stroke-width: 3.4; }
.ring-bg { stroke: var(--line); }
.ring-fg { stroke: var(--brand); stroke-linecap: round; }
.ring text { transform: rotate(90deg); transform-origin: 18px 18px; font: 700 9px system-ui, sans-serif; fill: var(--ink); }
.band .ring-bg { stroke: rgba(255, 255, 255, .2); }
.band .ring-fg { stroke: var(--gold); }
.band .ring text { fill: #fff; }

/* Start: nicht eingeloggt */
.welcome { display: grid; grid-template-columns: 1.15fr minmax(300px, 420px); gap: 48px; align-items: center; padding: 22px 0 14px; }
.login-card { background: #fff; color: var(--ink); border-radius: 22px; padding: 28px; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); max-width: none; }
.login-card h2 { margin: 0; }
.login-card p { margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 14px; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; display: block; color: #fff; text-decoration: none; box-shadow: var(--shadow); aspect-ratio: 16 / 10; transition: transform .2s ease, box-shadow .2s ease; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile-text { position: absolute; inset: auto 0 0 0; padding: 44px 16px 14px; background: linear-gradient(transparent, rgba(18, 10, 46, .92)); display: flex; flex-direction: column; line-height: 1.3; }
.tile-text small { color: #cfc8ee; margin-top: 3px; }

/* Start: eingeloggt */
.dash { display: grid; grid-template-columns: 1fr minmax(320px, 520px); gap: 40px; align-items: center; padding: 14px 0 6px; }
.dash-hello h1 { margin-bottom: .3em; }
.stats { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 20px 0 0; }
.stats li { background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 8px 14px; color: #d8d2f3; font-size: .9rem; }
.stats b { color: #fff; font-size: 1.15rem; margin-right: 3px; }
.resume { display: grid; grid-template-columns: 44% 1fr; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 22px; overflow: hidden; color: #fff; text-decoration: none; backdrop-filter: blur(8px); box-shadow: 0 24px 60px rgba(0, 0, 0, .3); transition: transform .2s ease, background .2s ease; }
.resume:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .15); }
.resume-img { position: relative; display: block; }
.resume-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 11; }
.resume-text { padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; }
.resume-text small { color: #c4b5fd; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; font-weight: 700; }
.resume-text b { font-size: 1.2rem; line-height: 1.25; }
.resume-meta { display: flex; align-items: center; gap: 6px; color: #cfc8ee; font-size: .85rem; }
.playdot { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--brand); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); padding-left: 3px; transition: transform .2s ease; }
.resume:hover .playdot { transform: scale(1.08); }
.playdot-s { width: 30px; height: 30px; opacity: 0; padding-left: 2px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.grid-small { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card-img { position: relative; display: block; }
.card-img img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card-ring { position: absolute; right: 14px; bottom: -22px; background: #fff; border-radius: 50%; padding: 4px; box-shadow: 0 6px 16px rgba(27, 23, 48, .18); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-mine .card-body { padding-top: 22px; }
.card-body h3 { margin-right: 8px; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--brand); }
.card-body p { margin: 0 0 .5em; }
.card-actions { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.card-locked { box-shadow: none; border: 1px solid var(--line); background: rgba(255, 255, 255, .6); }
.card-locked .card-img img { filter: grayscale(.85) brightness(.75); transition: filter .25s ease; }
.card-locked:hover .card-img img { filter: grayscale(.2) brightness(.9); }
.card-lock { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(18, 10, 46, .8); color: #fff; font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; }
.card-locked h3 { font-size: 1.02rem; }
.strip { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: linear-gradient(135deg, #fff8e9, #fff); border: 1px solid #f5dfae; border-radius: var(--radius); padding: 18px 22px; margin-top: 26px; }
.strip > div { flex: 1; min-width: 220px; }
.strip p { margin: 2px 0 0; }
.strip-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: #5a3b00; display: grid; place-items: center; flex: none; }
.strip-icon svg { width: 22px; height: 22px; }

/* Kursübersicht */
.course-head { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 36px; align-items: center; }
.course-head img { border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
.course-head h1 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.head-meta { display: flex; align-items: center; gap: 7px; color: #cfc8ee; margin: 0 0 18px; font-size: .95rem; }
.head-progress { display: flex; align-items: center; gap: 16px; margin: 0 0 18px; }
.head-progress p { margin: 0; color: #cfc8ee; font-size: .9rem; }
.head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.module { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 22px 12px; margin-top: 22px; }
.module:first-child { margin-top: 0; }
.module-head { display: flex; align-items: center; gap: 14px; padding: 12px 0 10px; }
.module-head h2 { font-size: 1.15rem; margin: 0; flex: 1; }
.module-no { width: 34px; height: 34px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; flex: none; }
.lessons { list-style: none; margin: 0; padding: 0; }
.lessons li { border-top: 1px solid var(--line); }
.lesson-row { display: grid; grid-template-columns: 128px 1fr auto; gap: 16px; align-items: center; padding: 10px 8px; margin: 0 -8px; border-radius: 12px; color: var(--ink); text-decoration: none; transition: background .15s ease; }
.lesson-row:hover { background: #f7f5fe; }
.thumb { position: relative; display: block; border-radius: 9px; overflow: hidden; background: var(--line); }
.thumb img { width: 128px; height: 72px; object-fit: cover; }
.lesson-row:hover .playdot-s { opacity: 1; }
.lesson-row:hover .lesson-title { color: var(--brand); }
.lesson-title { font-weight: 600; }
.lesson-title small { display: block; color: var(--muted); font-size: .74rem; font-weight: 500; letter-spacing: .04em; }
.lesson-meta { color: var(--muted); font-size: .85rem; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.ok { color: #fff; background: var(--ok); border-radius: 50%; width: 22px; height: 22px; display: inline-grid; place-items: center; }
.ok svg { width: 13px; height: 13px; }
.todo { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #d6d0ea; display: inline-block; }
.locked { color: #a8a4b8; display: inline-flex; width: 22px; justify-content: center; }
.done .lesson-title { color: var(--muted); font-weight: 500; }
.is-locked .thumb img { filter: grayscale(.8) brightness(.8); }
.is-locked .lesson-title { color: #7a7690; font-weight: 500; }
.quiz-box { border: 2px solid #e3dafd; background: linear-gradient(135deg, #fbf9ff, #fff); }
.quiz-box .muted svg { vertical-align: -2px; }

/* Lektion */
.stage { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: stretch; }
.stage-main { min-width: 0; }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-missing { display: grid; place-items: center; color: #ccc; }
.lesson-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 0; }
.lesson-actions form { margin: 0; }
.side { position: relative; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 16px 8px 0 14px; font-size: .9rem; display: flex; flex-direction: column; min-height: 320px; }
.side-title { font-weight: 700; margin: 0 0 6px; padding-right: 6px; }
.side-title a { color: #fff; text-decoration: none; }
.side progress.bar { background: rgba(255, 255, 255, .16); width: calc(100% - 6px); }
.side progress.bar::-webkit-progress-bar { background: rgba(255, 255, 255, .16); }
.side progress.bar::-webkit-progress-value { background: var(--gold); }
.side progress.bar::-moz-progress-bar { background: var(--gold); }
.side-count { margin: 0 0 6px; color: #b9b1dc; font-size: .78rem; }
.side-scroll { flex: 1 1 0; height: 0; min-height: 0; margin-bottom: 8px; overflow: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent; }
.side-module { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #a59dc9; margin: 14px 0 4px 6px; font-weight: 700; }
.side-module:first-child { margin-top: 4px; }
.side ol { list-style: none; margin: 0; padding: 0; }
.side li a { display: grid; grid-template-columns: 16px 1fr auto; gap: 9px; align-items: baseline; padding: 7px 8px; border-radius: 10px; color: #e9e5fb; text-decoration: none; line-height: 1.35; }
.side li a svg { color: #8f86b8; position: relative; top: 2px; }
.side li a small { color: #8f86b8; font-size: .72rem; white-space: nowrap; }
.side li.done a { color: #b9b1dc; }
.side li.done a svg { color: #5fe0a2; }
.side li.is-locked a { color: #8f86b8; }
.side li.current a { background: #fff; color: var(--brand); font-weight: 650; }
.side li.current a svg, .side li.current a small { color: var(--brand); }
.side li a:hover { background: rgba(255, 255, 255, .12); }
.side li.current a:hover { background: #fff; }
.prose { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: clamp(22px, 4vw, 44px); }
.prose h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.prose h2 { font-size: 1.15rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .4em 0; }
.goals { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.goals li { display: flex; gap: 12px; align-items: flex-start; background: #f7f5fe; border-radius: 12px; padding: 10px 14px; margin: 0; }
.goals svg { flex: none; color: #fff; background: var(--brand); border-radius: 50%; padding: 3px; width: 20px; height: 20px; margin-top: 2px; }
.tip { background: linear-gradient(135deg, #fff8e9, #fffdf7); border: 1px solid #f5dfae; border-radius: 14px; padding: 16px 20px; margin: 22px 0 4px; }
.tip b { color: #8a5a00; text-transform: uppercase; font-size: .75rem; letter-spacing: .1em; }
.tip p { margin: .3em 0 0; }

/* Formulare */
.stack { display: flex; flex-direction: column; gap: 14px; max-width: 480px; }
.stack label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: .9rem; }
input, select { font: inherit; padding: 12px 14px; border: 1px solid #d6d2e2; border-radius: 12px; background: #fff; color: var(--ink); }
input:focus { border-color: var(--brand-2); }
input:disabled { background: #f3f2f7; color: var(--muted); }
.check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--brand); }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.inline-form input { flex: 1; min-width: 200px; }
form.inline { display: inline; }
.center .stack, .center form { margin-left: auto; margin-right: auto; }
.buy img { border-radius: var(--radius); margin-bottom: 18px; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.locked-wrap { position: relative; display: block; max-width: 440px; margin: 0 auto 22px; border-radius: var(--radius); overflow: hidden; }
.locked-img { filter: grayscale(.5) brightness(.6); width: 100%; }
.locked-wrap .playdot svg { width: 22px; height: 22px; }
.locked-wrap .playdot { padding-left: 0; }

/* Quiz */
.question { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 18px 20px; margin: 0 0 16px; }
.question legend { font-weight: 650; padding: 0; display: flex; gap: 12px; float: left; width: 100%; margin-bottom: 12px; }
.question legend + * { clear: both; }
.qno { flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .85rem; }
.option { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; margin: 7px 0; cursor: pointer; clear: both; transition: border-color .15s ease, background .15s ease; }
.option:hover { border-color: #cbbffb; background: #fbfaff; }
.option input { margin-top: 5px; flex: none; accent-color: var(--brand); padding: 0; }
.option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.result { text-align: center; border-radius: var(--radius); padding: 28px; margin-bottom: 22px; }
.result.pass { background: var(--ok-soft); }
.result.fail { background: var(--bad-soft); }
.result .big { font-size: 3.4rem; font-weight: 800; margin: 0; line-height: 1; }
.result.pass .big { color: var(--ok); }
.result.fail .big { color: var(--bad); }
.result h1 { font-size: 1.4rem; margin: 10px 0 0; }
.cert-check .pill { background: var(--ok-soft); color: var(--ok); font-size: .9rem; padding: 5px 14px; }

/* Admin */
.table { width: 100%; border-collapse: collapse; font-size: .875rem; display: block; overflow-x: auto; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
code { background: #f1eff7; padding: 1px 5px; border-radius: 4px; font-size: .85em; }

/* Demo-Leiste (nur lokal) */
.demo { position: fixed; inset: auto 0 0 0; z-index: 50; display: flex; align-items: center; gap: 8px; padding: 9px 16px; background: #1d1d1f; color: #fff; font-size: .82rem; overflow-x: auto; white-space: nowrap; }
.demo b { color: var(--gold); margin-right: 6px; }
.demo form { margin: 0; }
.demo button { font: inherit; background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .2); border-radius: 99px; padding: 5px 13px; cursor: pointer; }
.demo button:hover { background: rgba(255, 255, 255, .2); }
.demo button.on { background: var(--gold); color: #1d1d1f; border-color: var(--gold); font-weight: 700; }

@media (max-width: 980px) {
  .stage { grid-template-columns: 1fr; }
  .side { min-height: 0; padding-bottom: 10px; }
  .side-scroll { height: auto; flex: none; max-height: 320px; }
  .course-head, .dash, .welcome { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 560px) {
  .brand span { display: none; }
  .top nav { gap: 14px; font-size: .875rem; }
  .avatar { display: none !important; }
  .lesson-row { grid-template-columns: 88px 1fr; gap: 12px; }
  .thumb img { width: 88px; height: 50px; }
  .lesson-meta { grid-column: 2; }
  .resume { grid-template-columns: 1fr; }
  .band { padding: 24px 0 32px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Rechtstexte */
.prose.narrow { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.8em; }
.formular { background: #f7f5fe; border-radius: 12px; padding: 16px 18px; overflow-x: auto;
  font: .85rem/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; white-space: pre-wrap; }
