/* =====================================================================================
   Vorlage 43 Kursplattform · Lernwerk, Linz
   Aufbau: 0 Basis · 1 Kopf · 2 Start · 3 Regal · 4 Kursseite · 5 Zwei Wege und Kauf-Fenster · 6 Zahlen
           7 Klebender Abschnitt · 8 Lehrende · 9 Stimmen, Fragen, Kontakt, Fuß · 10 Auftritte und Stufen
   ===================================================================================== */

/* ---------- 0 · Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.6 var(--schrift); text-rendering: optimizeLegibility; padding-bottom: var(--leiste); }
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--schrift-titel); font-weight: 700; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--kobalt); outline-offset: 3px; border-radius: 4px; }
.seg--kobalt :focus-visible, .seg--tinte :focus-visible, .seg--pflaume :focus-visible, .seg--zinnober :focus-visible, .fuss :focus-visible { outline-color: #ffe9a8; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.sprung { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--tinte); color: #fff; border-radius: 8px; }
.sprung:focus { top: 8px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.behaelter { width: 100%; max-width: calc(var(--breite) + 2 * var(--rand)); margin-inline: auto; padding-inline: var(--rand); }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.nur-js { display: none !important; }
.js .nur-js { display: revert !important; }
.js .nur-ohne-js { display: none; }
.klein { font-size: .88rem; color: var(--muted); }
.klein--hell, .seg--kobalt .klein { color: rgb(255 255 255 / .88); }
.kicker { font: 700 .78rem/1 var(--schrift); letter-spacing: .14em; text-transform: uppercase; color: var(--zinnober-tief); margin-bottom: 12px; }
.kicker--hell { color: var(--ocker-hell); }
.lead { font-size: clamp(1.05rem, .9rem + .5vw, 1.25rem); line-height: 1.55; max-width: 60ch; margin-top: 16px; }
.lead--klein { font-size: 1.05rem; }

.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border: 2px solid transparent; border-radius: var(--radius-rund); font: 700 1rem/1.2 var(--schrift); cursor: pointer; text-decoration: none; transition: translate .2s cubic-bezier(.3, 1.6, .5, 1), box-shadow .2s, background-color .2s; box-shadow: 0 4px 0 rgb(0 0 0 / .22); }
.knopf:hover { translate: 0 -2px; box-shadow: 0 6px 0 rgb(0 0 0 / .22); }
.knopf:active { translate: 0 3px; box-shadow: 0 1px 0 rgb(0 0 0 / .22); }
.knopf--kobalt { background: var(--kobalt); color: #fff; }
.knopf--zinnober { background: var(--zinnober); color: #fff; }
.knopf--ocker { background: var(--ocker); color: var(--tinte); }
.knopf--hell { background: #fff; color: var(--kobalt-tief); }
.knopf--rand { background: var(--surface); color: var(--tinte); border-color: var(--tinte); box-shadow: 0 3px 0 rgb(20 33 61 / .35); }
.knopf--rand-hell { background: transparent; color: #fff; border-color: rgb(255 255 255 / .8); box-shadow: none; }
.knopf--text { background: none; color: var(--muted); box-shadow: none; text-decoration: underline; padding-inline: 10px; min-height: 44px; }
.knopf--text:hover { box-shadow: none; }

.haken li { position: relative; padding-left: 26px; }
.haken li + li { margin-top: 6px; }
.haken li::before { content: ""; position: absolute; left: 0; top: .5em; width: 13px; height: 7px; border-left: 3px solid var(--smaragd); border-bottom: 3px solid var(--smaragd); rotate: -48deg; }
.haken--hell li::before { border-color: var(--ocker-hell); }

.formular { display: grid; gap: 14px; }
.feld-zeile { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.feld { display: grid; gap: 6px; }
.feld label { font-weight: 600; font-size: .95rem; }
.feld input, .feld select, .feld textarea { min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 2px solid rgb(20 33 61 / .35); background: #fff; color: var(--tinte); }
.feld textarea { min-height: 110px; resize: vertical; }
.haken-feld { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.haken-feld input { width: 24px; height: 24px; margin: 1px 0 0; flex: none; accent-color: var(--kobalt); }
.formular--dunkel .feld label, .seg--kobalt .formular .feld label { color: #fff; }
.formular-meldung { min-height: 1.4em; font-weight: 600; }
.formular-meldung.ist-fehler { color: var(--error); }
.seg--kobalt .formular-meldung, .formular--dunkel .formular-meldung { color: #ffe9a8; }
.seg--kobalt .formular-meldung.ist-fehler, .formular--dunkel .formular-meldung.ist-fehler { color: #ffd0c9; }
.seg--kobalt .formular h3 { color: #fff; }

input[type="range"] { width: 100%; height: 44px; accent-color: var(--kobalt); background: none; cursor: pointer; }

/* ---------- 1 · Kopf ---------- */
.kopf { position: sticky; top: 0; z-index: 50; min-height: var(--kopf); background: var(--maserung), linear-gradient(180deg, #ecd9ac, #dcc08a); box-shadow: 0 1px 0 rgb(255 255 255 / .5) inset, 0 3px 0 rgb(120 80 30 / .35), 0 10px 20px -10px rgb(20 33 61 / .45); }
.kopf-innen { display: flex; align-items: center; gap: 18px; min-height: var(--kopf); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.45rem/1 var(--schrift-titel); letter-spacing: -.02em; color: var(--tinte); }
.logo-zeichen { width: 38px; height: 30px; }
.faecher ul { display: flex; gap: 4px; }
.faecher a { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--tinte); transition: background-color .2s, translate .25s cubic-bezier(.3, 1.6, .5, 1); }
.faecher a:hover { background: rgb(255 255 255 / .45); translate: 0 -2px; }
.faecher a[aria-current="true"] { background: var(--tinte); color: #fff; box-shadow: 0 3px 0 rgb(0 0 0 / .25); }
html.abseits .faecher a[aria-current="true"] { background: none; color: var(--tinte); box-shadow: none; }
.kopf-links { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.kopf-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 10px; font-size: .95rem; text-decoration: none; color: var(--tinte); }
.kopf-links a:hover { background: rgb(255 255 255 / .45); }
.kopf-links .kopf-tel { font-weight: 700; background: var(--tinte); color: #fff; border-radius: var(--radius-rund); padding-inline: 16px; margin-left: 6px; }
.kopf-links .kopf-tel:hover { background: var(--tinte-mittel); }

@media (max-width: 1180px) { .kopf-links a:not(.kopf-tel):nth-child(3) { display: none; } .faecher a { padding-inline: 10px; } }
@media (max-width: 1060px) { .kopf-tel { display: none !important; } }
@media (max-width: 900px) {
  :root { --leiste: 68px; }
  .kopf-innen { gap: 10px; }
  .kopf-links { gap: 0; }
  .faecher { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; height: var(--leiste); padding-bottom: env(safe-area-inset-bottom); background: var(--maserung), linear-gradient(180deg, #dcc08a, #cfae6c); box-shadow: 0 -2px 0 rgb(255 255 255 / .5), 0 -8px 18px -8px rgb(20 33 61 / .5); }
  .faecher ul { height: 100%; justify-content: space-around; align-items: stretch; padding: 6px 4px; gap: 2px; }
  .faecher li { flex: 1; min-width: 0; }
  .faecher a { flex-direction: column; justify-content: center; gap: 3px; width: 100%; height: 100%; padding: 4px 2px; font-size: .74rem; border-radius: 12px; }
  .faecher .ic { width: 20px; height: 20px; }
}
@media (max-width: 520px) { .kopf-links a:nth-child(2) { display: none; } .logo { font-size: 1.3rem; } }

/* ---------- 2 · Start ---------- */
.held { background: var(--kalk); padding-block: clamp(16px, 2.2vw, 26px) clamp(12px, 1.6vw, 18px); }
.held-raster { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 40px; align-items: center; }
.held .kicker { margin-bottom: 8px; }
.held h1 { font-size: clamp(1.7rem, 1rem + 1.7vw, 2.4rem); max-width: 40ch; text-wrap: balance; }
.held .lead { margin-top: 8px; max-width: 72ch; font-size: clamp(1rem, .9rem + .3vw, 1.12rem); }
.versprechen { display: grid; gap: 6px; }
.versprechen li { display: flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border-radius: var(--radius-rund); background: var(--surface); font-weight: 600; font-size: .95rem; box-shadow: 0 2px 0 rgb(20 33 61 / .2), inset 0 0 0 1px var(--border); }
.versprechen li:nth-child(1) .ic { color: var(--smaragd); }
.versprechen li:nth-child(2) .ic { color: var(--zinnober); }
.versprechen li:nth-child(3) .ic { color: var(--kobalt); }
@media (max-width: 900px) { .held-raster { grid-template-columns: 1fr; } .versprechen { display: flex; flex-wrap: wrap; } .held h1 { max-width: none; } }

/* ---------- 3 · Mediathek: Regal links, Kursseite rechts ---------- */
.mediathek { background: linear-gradient(180deg, var(--kalk) 0, var(--birke-hell) 100%); padding-block: 6px 70px; position: relative; }
.mt-raster { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
@media (min-width: 1000px) {
  .mt-raster { grid-template-columns: minmax(400px, 470px) minmax(0, 1fr); gap: 40px; }
}
@media (min-width: 1000px) and (min-height: 820px) { .mt-regal { position: sticky; top: calc(var(--kopf) + 12px); } }

.regal { position: relative; padding: 14px 14px 16px; border-radius: 18px; background: var(--maserung) 0 0 / 600px 240px, linear-gradient(135deg, #dcbd85, #c29d5c); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .28), inset 0 -4px 0 rgb(90 55 15 / .22), 0 26px 40px -18px rgb(20 33 61 / .5); }
.regal-titel { padding: 0 6px 8px; display: flex; flex-wrap: wrap; gap: 0 10px; align-items: baseline; color: var(--tinte); font: 700 1.2rem/1.3 var(--schrift-titel); }
.regal-titel span { font: 500 .84rem var(--schrift); color: #3b3020; }
.regal-korpus { border-radius: 10px; padding: 4px 0 2px; background: linear-gradient(180deg, #b48d50 0, #cca96c 14%, #dcc08a 62%, #c9a76a 100%); box-shadow: inset 0 14px 22px -8px rgb(70 40 8 / .6), inset 14px 0 18px -10px rgb(70 40 8 / .45), inset -14px 0 18px -10px rgb(70 40 8 / .45); }
.regal-hinweis { min-height: 0; margin-top: 10px; font-weight: 700; font-size: .9rem; color: #fff; background: var(--tinte); padding: 0; border-radius: 12px; opacity: 0; max-height: 0; overflow: hidden; transition: opacity .3s, max-height .3s, padding .3s; }
.regal-hinweis.ist-sichtbar { opacity: 1; max-height: 5em; padding: 9px 14px; }

.brett { position: relative; padding: 4px 14px 0; }
.brett::before { content: ""; position: absolute; inset: 0; border-radius: 8px; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(70% 90% at 50% 100%, rgb(255 236 170 / .75), transparent 70%); }
.brett.glueht::before { opacity: 1; }
.brett-ruecken { display: flex; align-items: flex-end; gap: 6px; padding-top: 8px; }
.brett-ruecken > li { display: block; flex: none; padding-inline: 3px; margin-inline: -3px; }
.brett-ruecken > li.requisit { margin-left: auto; width: 54px; height: 82px; flex: 0 1 54px; min-width: 0; opacity: .95; }
.requisit svg { width: 100%; height: 100%; filter: drop-shadow(3px 5px 4px rgb(60 35 8 / .45)); }
.brett-platte { position: relative; display: flex; align-items: center; height: 24px; margin-inline: -14px; background: var(--maserung) 0 0 / 600px 240px, linear-gradient(180deg, #f2dfae 0, #e2c88c 42%, #c6a063 100%); box-shadow: inset 0 2px 0 rgb(255 255 255 / .5), 0 7px 10px -4px rgb(60 35 8 / .65); }
.brett-name { display: flex; align-items: center; gap: 7px; margin-left: 22px; font: 700 .72rem/1 var(--schrift); letter-spacing: .1em; text-transform: uppercase; color: var(--tinte); }
.brett-name .ic { width: 14px; height: 14px; }
.brett-name span { font-weight: 500; letter-spacing: .04em; text-transform: none; opacity: .8; }

.ruecken { --c: var(--kobalt); --neig: 0deg; position: relative; display: flex; align-items: center; justify-content: center; width: calc(var(--b) * 1.2); height: calc(var(--h) + 10px); padding: 16px 0; border-radius: 3px 3px 1px 1px; color: #fff; text-decoration: none; rotate: var(--neig); transform-origin: 50% 100%;
  background:
    linear-gradient(to bottom, transparent 9px, rgb(255 224 150 / .95) 9px 11px, transparent 11px 14px, rgb(255 224 150 / .8) 14px 15px, transparent 15px calc(100% - 15px), rgb(255 224 150 / .8) calc(100% - 15px) calc(100% - 14px), transparent calc(100% - 14px) calc(100% - 11px), rgb(255 224 150 / .95) calc(100% - 11px) calc(100% - 9px), transparent calc(100% - 9px)),
    linear-gradient(90deg, rgb(255 255 255 / .26), transparent 20%, transparent 68%, rgb(0 0 0 / .32)),
    var(--c);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .22), 3px 0 0 rgb(0 0 0 / .16), 0 12px 14px -8px rgb(40 22 4 / .7);
  transition: translate .38s cubic-bezier(.3, 1.5, .5, 1), rotate .38s cubic-bezier(.3, 1.5, .5, 1), box-shadow .3s; }
.ruecken[style*="--ocker"] { color: var(--tinte); }
.rk-titel { display: block; writing-mode: vertical-rl; font: 700 .96rem/1.25 var(--schrift-titel); letter-spacing: .02em; white-space: nowrap; text-shadow: 0 1px 0 rgb(0 0 0 / .28); }
.ruecken[style*="--ocker"] .rk-titel { text-shadow: 0 1px 0 rgb(255 255 255 / .35); }
.ruecken:hover { translate: 0 -9px; rotate: calc(var(--neig) - 1.5deg); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .22), 3px 0 0 rgb(0 0 0 / .16), 0 20px 16px -8px rgb(40 22 4 / .6); }
.ruecken.gezogen, .ruecken[aria-current="true"] { translate: 0 -16px; rotate: 0deg; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .22), 3px 0 0 rgb(0 0 0 / .16), 0 0 0 3px rgb(255 247 214 / .95), 0 24px 18px -8px rgb(40 22 4 / .6); }
.ruecken.gezogen { translate: 0 -20px; }
.ruecken::after { content: ""; position: absolute; right: 7px; top: 0; width: 11px; height: 0; background: #ffe7a8; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); transition: height .45s cubic-bezier(.3, 1.4, .5, 1); }
.ruecken.ist-frei::after { height: 30px; }
.ruecken--leer { --c: rgb(255 255 255 / .22); flex-direction: column; gap: 8px; background: rgb(255 255 255 / .16); color: #3b3020; box-shadow: inset 0 0 0 2px rgb(60 35 8 / .45); border-radius: 4px; border: 0; background-image: repeating-linear-gradient(135deg, transparent 0 7px, rgb(60 35 8 / .08) 7px 8px); outline: 2px dashed rgb(60 35 8 / .55); outline-offset: -6px; padding: 10px 0; gap: 6px; }
.ruecken--leer .rk-titel { text-shadow: none; font-size: .66rem; font-family: var(--schrift); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.rk-plus { font: 700 1.5rem/1 var(--schrift); }
.ruecken--leer:hover { background-color: rgb(255 255 255 / .38); }
@media (max-width: 999px) { .regal { padding: 12px 10px 14px; } .brett { padding-inline: 10px; } .brett-platte { margin-inline: -10px; } }
@media (max-width: 420px) { .brett-ruecken > li.requisit { width: 44px; height: 68px; } .brett-ruecken { gap: 4px; } .ruecken { width: calc(var(--b) * 1.04); } }

/* ---------- 4 · Kursseite ---------- */
.mt-kurs { min-width: 0; display: grid; gap: 22px; }
.kursseiten { position: relative; }
.kursseite { display: grid; gap: 18px; padding: clamp(18px, 2.4vw, 30px); border-radius: 22px; background: var(--surface); box-shadow: 0 1px 0 #fff inset, 0 0 0 1px var(--border), 0 24px 40px -22px rgb(20 33 61 / .45); }
.kursseite + .kursseite { margin-top: 24px; }
.js .kursseite:not(.offen) { display: none; }
.js .kursseite + .kursseite { margin-top: 0; }
.ks-fach { font: 700 .76rem/1 var(--schrift); letter-spacing: .12em; text-transform: uppercase; color: var(--zinnober-tief); margin-bottom: 8px; }
.ks-kopf h3 { font-size: clamp(1.55rem, 1.1rem + 1.6vw, 2.3rem); }
.ks-lehrende { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.avatar { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--tinte); color: #fff; font: 700 .8rem/1 var(--schrift); letter-spacing: .04em; }
.ks-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 10px; font-size: .92rem; color: var(--muted); }
.sterne { display: inline-block; width: calc(5 * 1.05em); height: 1.05em; vertical-align: -.15em; background: linear-gradient(90deg, var(--ocker) var(--w, 100%), #d9ceb4 var(--w, 100%)); -webkit-mask: var(--stern) 0 0 / 1.05em 1.05em repeat-x; mask: var(--stern) 0 0 / 1.05em 1.05em repeat-x; --stern: url("data:image/svg+xml;utf8,%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.5 2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4 6.1 20.5l1.2-6.5L2.5 9.4l6.6-.9Z'/%3E%3C/svg%3E"); }
.ks-punkt { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }
.ks-text { max-width: 66ch; }
.ks-lernt { display: grid; gap: 6px; }
.ks-lernt li { position: relative; padding-left: 26px; }
.ks-lernt li::before { content: ""; position: absolute; left: 0; top: .5em; width: 13px; height: 7px; border-left: 3px solid var(--smaragd); border-bottom: 3px solid var(--smaragd); rotate: -48deg; }

/* Spieler */
.spieler { margin: 0; }
.sp-bild { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: var(--tinte-tief); box-shadow: 0 18px 30px -14px rgb(20 33 61 / .6), 0 0 0 1px rgb(20 33 61 / .25); }
.sp-bild img, .sp-bild video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-video { z-index: 1; }
.sp-marke { position: absolute; left: 12px; top: 12px; z-index: 3; padding: 6px 12px; border-radius: var(--radius-rund); background: var(--smaragd); color: #fff; font: 700 .8rem/1 var(--schrift); letter-spacing: .04em; box-shadow: 0 3px 0 rgb(0 0 0 / .25); }
.sp-standbild-hinweis { position: absolute; right: 12px; bottom: 14px; z-index: 3; padding: 6px 12px; border-radius: 10px; background: rgb(15 24 48 / .85); color: #fff; font-size: .82rem; display: none; }
.spieler:not([data-video=""]) .sp-standbild-hinweis { display: none; }
.spieler[data-video=""] .sp-standbild-hinweis { display: block; }
.spieler[data-video=""] .sp-video { display: none; }
.sp-knopf { position: absolute; z-index: 4; left: 50%; top: 50%; translate: -50% -50%; width: 74px; height: 74px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgb(255 255 255 / .94); color: var(--tinte); cursor: pointer; box-shadow: 0 8px 20px rgb(0 0 0 / .4); transition: opacity .3s, scale .25s cubic-bezier(.3, 1.6, .5, 1); }
.sp-knopf .ic { width: 34px; height: 34px; }
.sp-knopf:hover { scale: 1.08; }
.sp-pause { display: none; }
.spieler.laeuft .sp-play { display: none; }
.spieler.laeuft .sp-pause { display: block; }
.spieler.laeuft .sp-knopf { opacity: 0; }
.spieler.laeuft .sp-bild:hover .sp-knopf, .sp-knopf:focus-visible { opacity: 1; }
.spieler[data-video=""] .sp-knopf { display: none !important; }
.sp-leiste { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 5px; background: rgb(255 255 255 / .28); }
.sp-leiste i { display: block; height: 100%; background: var(--ocker); transform-origin: 0 50%; transform: scaleX(var(--f, 0)); }
.spieler figcaption { display: grid; gap: 2px; margin-top: 12px; }
.sp-titel { font-family: var(--schrift-titel); font-size: 1.15rem; }
.sp-hinweis { font-size: .88rem; color: var(--muted); }
.js .sp-video[controls] { }
.js .spieler .sp-video { pointer-events: none; }

/* Gliederung */
.gl-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 10px; }
.gl-kopf h4 { font-size: 1.3rem; }
.gl-sum { color: var(--muted); font-size: .92rem; }
.fortschritt { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: .9rem; font-weight: 600; }
.fortschritt[hidden] { display: none; }
.fb { flex: 1; height: 10px; border-radius: 99px; background: #e5dcc4; overflow: hidden; box-shadow: inset 0 1px 2px rgb(20 33 61 / .25); }
.fb i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--smaragd), #17a674); transform-origin: 0 50%; transform: scaleX(var(--f)); transition: transform .6s cubic-bezier(.3, 1, .4, 1); }
.lektionen { display: grid; gap: 8px; container-type: inline-size; }
.lektion { position: relative; }
.lekt-knopf { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 8px 14px 8px 8px; border: 0; border-radius: 14px; text-align: left; cursor: pointer; background: var(--papier); box-shadow: inset 0 0 0 1px var(--border); transition: background-color .25s, box-shadow .25s, translate .25s cubic-bezier(.3, 1.6, .5, 1); }
.lekt-knopf:hover { translate: 3px 0; box-shadow: inset 0 0 0 2px var(--tinte); }
.lekt-thumb { position: relative; width: 118px; aspect-ratio: 16 / 9; overflow: hidden; overflow: clip; border-radius: 9px; background: var(--tinte-mittel); flex: none; }
.lekt-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lt-u { image-rendering: auto; filter: blur(1.6px) saturate(1.1); }
.lt-s { clip-path: polygon(0 0, var(--w) 0, 0 var(--w)); }
.ist-frei .lt-s, .ist-offen .lt-s { clip-path: none; }
.ist-gesperrt .lt-s:not([src]) { visibility: hidden; }
.lt-schloss { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: rgb(15 24 48 / .28); }
.lt-schloss .ic { width: 22px; height: 22px; padding: 5px; box-sizing: content-box; border-radius: 50%; background: rgb(15 24 48 / .8); color: #fff; }
.lt-preis { padding: 2px 9px; border-radius: 99px; background: rgb(15 24 48 / .82); color: #fff; font: 700 .76rem/1.3 var(--schrift); }
.lt-haken { position: absolute; right: 4px; bottom: 4px; display: none; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--smaragd); color: #fff; box-shadow: 0 2px 4px rgb(0 0 0 / .35); }
.lt-haken .ic { width: 15px; height: 15px; stroke-width: 2.6; }
.lektion.ist-gesehen .lt-haken { display: grid; }
.lektion.ist-gesehen .lekt-knopf { background: #e9f4ec; }
.lektion.ist-aktiv .lekt-knopf { box-shadow: inset 0 0 0 3px var(--kobalt); background: #fff; }
.lekt-text { display: grid; gap: 1px; min-width: 0; }
.lekt-nr { font: 700 .72rem/1.2 var(--schrift); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lekt-titel { font: 700 1.05rem/1.25 var(--schrift-titel); }
.lekt-info { display: grid; justify-items: end; gap: 2px; font-size: .84rem; color: var(--muted); text-align: right; }
.lekt-art { font-weight: 700; color: var(--zinnober-tief); }
.ist-gesperrt .lekt-art { padding: 5px 12px; border-radius: 99px; background: var(--zinnober); color: #fff; box-shadow: 0 2px 0 rgb(0 0 0 / .25); white-space: nowrap; }
.ist-frei .lekt-art, .ist-offen .lekt-art { color: var(--smaragd); }
.gl-fuss { margin-top: 12px; font-size: .9rem; color: var(--muted); }
@container (max-width: 520px) {
  .lekt-knopf { grid-template-columns: auto minmax(0, 1fr); }
  .lekt-info { grid-column: 2; justify-items: start; grid-auto-flow: column; justify-content: start; gap: 12px; text-align: left; }
  .lekt-thumb { width: 92px; }
  .ist-gesperrt .lekt-art { white-space: normal; padding: 4px 10px; font-size: .8rem; }
}
/* Wisch: unscharf nach scharf von der linken oberen Ecke, wie ein Abzug im Entwicklerbad */
.lektion.wischt .lt-s { transition: --w 1.1s cubic-bezier(.4, .1, .3, 1); --w: 220%; }
.lektion.wischt .lt-u { transition: opacity .3s 1s; opacity: 0; }
.lektion.ist-offen .lt-u { display: none; }
.lektion.wischt .lt-schloss { opacity: 0; transition: opacity .25s; }
.lektion.ist-offen .lt-schloss { display: none; }

/* ---------- 5 · Zwei Wege, Rechner, Zugang, Kauf-Fenster ---------- */
.wege { padding: clamp(18px, 2.4vw, 30px); border-radius: 22px; background: var(--ocker-hell); box-shadow: 0 0 0 1px rgb(20 33 61 / .18), 0 24px 40px -22px rgb(20 33 61 / .45); }
.wege h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.wege-kurs { margin-top: 4px; font-size: .95rem; }
.wege-karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; margin-top: 16px; }
.weg { position: relative; container-type: inline-size; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 20px; border-radius: 18px; background: #fff; box-shadow: 0 6px 0 rgb(20 33 61 / .2), 0 18px 28px -14px rgb(20 33 61 / .4); }
.weg--abo { background: var(--tinte); color: #fff; }
.weg-art { font: 700 .78rem/1 var(--schrift); letter-spacing: .12em; text-transform: uppercase; color: var(--kobalt); }
.weg--abo .weg-art { color: var(--ocker-hell); }
.weg-band { position: absolute; top: -12px; right: 16px; padding: 5px 12px; border-radius: 9px; background: var(--zinnober); color: #fff; font: 700 .76rem/1 var(--schrift); letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 3px 0 rgb(0 0 0 / .25); }
.weg-preis { display: grid; gap: 2px; }
.weg-preis strong { font: 700 clamp(2.2rem, 12cqw, 3rem)/1 var(--schrift-titel); letter-spacing: -.02em; }
.weg-preis span { font-size: .88rem; opacity: .85; }
.weg .haken { font-size: .95rem; flex: 1; margin-bottom: 6px; }
.weg--abo .haken li::before { border-color: var(--ocker); }
.weg .knopf { width: 100%; }
.weg .knopf:disabled { opacity: .65; cursor: default; box-shadow: none; translate: none; }

.rechner { margin-top: 22px; padding: 16px 18px 14px; border-radius: 16px; background: rgb(255 255 255 / .55); box-shadow: inset 0 0 0 1px rgb(20 33 61 / .15); }
.rechner label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-weight: 600; }
.rechner output { font: 700 1.4rem/1 var(--schrift-titel); color: var(--kobalt-tief); }
.rechner-balken { display: grid; gap: 8px; margin-top: 4px; }
.rb-zeile { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 5.5em; align-items: center; gap: 10px; font-size: .9rem; }
.rb-name { font-weight: 600; }
.rb-bahn { display: block; height: 18px; border-radius: 99px; background: rgb(20 33 61 / .1); overflow: hidden; }
.rb-bahn i { display: block; height: 100%; border-radius: 99px; background: var(--kobalt); transform-origin: 0 50%; transform: scaleX(var(--f, .5)); transition: transform .45s cubic-bezier(.3, 1, .4, 1), background-color .3s; }
.rb-abo .rb-bahn i { background: var(--zinnober); }
.rb-zeile.ist-guenstig .rb-wert { font-weight: 800; color: var(--smaragd-tief); }
.rb-wert { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.rechner-ergebnis { margin-top: 10px; }
.rechner .klein { margin-top: 6px; }

.zugang { margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: var(--tinte); color: #fff; }
.zg-status { display: flex; align-items: center; gap: 10px; }
.zg-punkt { width: 12px; height: 12px; border-radius: 50%; background: #8d96ad; flex: none; box-shadow: 0 0 0 4px rgb(255 255 255 / .12); transition: background-color .3s, box-shadow .3s; }
.zugang[data-zustand="einzel"] .zg-punkt, .zugang[data-zustand="abo"] .zg-punkt { background: #3ddc97; box-shadow: 0 0 0 4px rgb(61 220 151 / .3); }
.zugang[data-zustand="gekuendigt"] .zg-punkt { background: var(--ocker); box-shadow: 0 0 0 4px rgb(224 160 43 / .3); }
.zg-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.zugang .knopf--rand { background: transparent; color: #fff; border-color: rgb(255 255 255 / .85); box-shadow: none; }
.zugang .knopf--rand:disabled { opacity: .5; cursor: not-allowed; }
.zugang .knopf--text { color: rgb(255 255 255 / .85); }
.zugang .klein { color: rgb(255 255 255 / .75); margin-top: 8px; }

.dialog { width: min(560px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0; border: 0; border-radius: 22px; background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgb(15 24 48 / .55); overflow: auto; }
.dialog::backdrop { background: rgb(15 24 48 / .62); }
.dialog[open] { animation: dialog-auf .35s cubic-bezier(.3, 1.3, .5, 1); }
@keyframes dialog-auf { from { opacity: 0; translate: 0 22px; scale: .96; } }
.dialog form { display: grid; gap: 14px; padding: clamp(20px, 3vw, 30px); }
.kd-kicker { font: 700 .76rem/1 var(--schrift); letter-spacing: .12em; text-transform: uppercase; color: var(--zinnober-tief); }
.dialog h2 { font-size: 1.6rem; }
.kd-zeilen { display: grid; gap: 0; border-block: 1px solid var(--border); }
.kd-zeilen div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; }
.kd-zeilen div + div { border-top: 1px solid var(--border); }
.kd-zeilen dt { color: var(--muted); }
.kd-zeilen dd { margin: 0; font-weight: 700; text-align: right; }
.kd-bedingung { font-size: .94rem; padding: 12px 14px; border-radius: 12px; background: var(--ocker-hell); }
.kd-fehler { color: var(--error); font-weight: 700; font-size: .92rem; padding: 8px 12px; border-radius: 10px; background: #fde8e6; }
.kd-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
@media (max-width: 520px) {
  .dialog form { gap: 10px; padding: 18px; }
  .dialog h2 { font-size: 1.35rem; }
  .kd-zeilen div { padding: 7px 0; }
  .kd-knoepfe { flex-direction: column-reverse; }
  .kd-knoepfe .knopf { width: 100%; }
}

/* ---------- 6 · Zahlen ---------- */
.seg { position: relative; padding-block: clamp(56px, 8vw, 100px); }
.seg--zinnober { background: var(--zinnober); color: #fff; padding-block: clamp(36px, 5vw, 56px); }
.seg--tinte { background: var(--tinte); color: #fff; padding-bottom: 0; }
.seg--kobalt { background: var(--kobalt); color: #fff; }
.seg--ocker { background: var(--ocker); color: var(--tinte); }
.seg--papier { background: var(--papier); }
.seg--pflaume { background: var(--pflaume); color: #fff; }
.seg-kopf h2 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3rem); max-width: 22ch; }
.seg--ocker .kicker { color: #5b2b00; }
.zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 20px 30px; }
.zahl { display: grid; gap: 4px; padding-left: 18px; border-left: 4px solid rgb(255 255 255 / .55); }
.zahl-wert { font: 700 clamp(2.6rem, 1.6rem + 3vw, 4rem)/1 var(--schrift-titel); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.zahl-text { font-weight: 500; max-width: 24ch; }
.zahlen-hinweis { margin-top: 20px; font-size: .86rem; opacity: .9; }

/* ---------- 7 · Klebender Abschnitt: Vom Handyvideo zum fertigen Kurs ---------- */
.werden-kopf { padding-bottom: 36px; }
.werden-kopf h2 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3rem); max-width: 20ch; }
.wd-karte { padding-block: 10px 40px; }
.wd-raster { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.wd-schritte { display: grid; gap: 10px; counter-reset: wd; }
.wd-schritt { position: relative; padding: 16px 18px 16px 68px; border-radius: 16px; background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16); transition: background-color .3s, box-shadow .3s, opacity .3s; }
.wd-schritt h3 { font-size: 1.25rem; }
.wd-schritt p { margin-top: 4px; color: rgb(255 255 255 / .86); font-size: .98rem; }
.wd-nr { position: absolute; left: 16px; top: 14px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgb(255 255 255 / .16); font: 700 1.1rem/1 var(--schrift-titel); }
.wd-schritt.ist-aktiv { background: rgb(255 255 255 / .14); box-shadow: inset 0 0 0 2px var(--ocker); }
.wd-schritt.ist-aktiv .wd-nr { background: var(--ocker); color: var(--tinte); }
.wd-szene { min-width: 0; }
.wd-fenster { position: relative; aspect-ratio: 1600 / 1000; overflow: hidden; border-radius: 22px; background: #cbbfae; box-shadow: 0 30px 50px rgb(0 0 0 / .5), 0 0 0 1px rgb(255 255 255 / .16); container-type: inline-size; }
.wd-kamera { position: absolute; inset: 0; transform-origin: 0 0; transform: translate(var(--cx, 0%), var(--cy, 0%)) scale(var(--cs, 1)); }
.wd-bild { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.wd-handy, .wd-laptop { position: absolute; overflow: hidden; container-type: size; background: #05070d; }
.wd-handy { left: 19.625%; top: 22.6%; width: 25.75%; height: 20.8%; border-radius: 1.4cqw; }
.wd-handy img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wh-rec { position: absolute; left: 4cqw; top: 5cqh; display: flex; align-items: center; gap: 2cqw; padding: 2cqh 3cqw; border-radius: 99px; background: rgb(0 0 0 / .55); color: #fff; font: 600 6cqh/1 var(--schrift); opacity: 0; transition: opacity .3s; }
.wh-rec i { width: 5cqh; height: 5cqh; border-radius: 50%; background: #ff3b30; animation: blink 1s steps(2) infinite; }
.wh-rec b { font-variant-numeric: tabular-nums; }
@keyframes blink { 50% { opacity: .15; } }
.wh-pegel { position: absolute; right: 4cqw; top: 6cqh; display: flex; gap: 1cqw; align-items: flex-end; height: 14cqh; opacity: 0; transition: opacity .3s; }
.wh-pegel i { width: 1.6cqw; height: 100%; background: #3ddc97; transform-origin: 50% 100%; animation: pegel .7s ease-in-out infinite alternate; }
.wh-pegel i:nth-child(2) { animation-delay: -.2s; } .wh-pegel i:nth-child(3) { animation-delay: -.5s; } .wh-pegel i:nth-child(4) { animation-delay: -.1s; } .wh-pegel i:nth-child(5) { animation-delay: -.35s; }
@keyframes pegel { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.wd-fenster[data-s="1"] .wh-rec, .wd-fenster[data-s="1"] .wh-pegel { opacity: 1; }
.wh-toast { position: absolute; left: 6cqw; right: 6cqw; bottom: 6cqh; display: grid; gap: 1cqh; padding: 4cqh 4cqw; border-radius: 3cqh; background: rgb(255 255 255 / .96); color: var(--tinte); font-size: 6.4cqh; line-height: 1.2; translate: 0 150%; transition: translate .5s cubic-bezier(.3, 1.4, .5, 1); }
.wh-toast i { font-style: normal; color: var(--smaragd-tief); font-weight: 700; }
.wd-fenster[data-s="5"] .wh-toast { translate: 0 0; }
.wd-laptop { left: 47.5%; top: 15%; width: 37.5%; height: 37.5%; border-radius: .5cqw; font-family: var(--schrift); color: #fff; }
.wl-tafel { position: absolute; inset: 0; padding: 4cqh 4cqw; display: grid; align-content: start; gap: 3cqh; background: linear-gradient(160deg, #16213f, #0c1226); opacity: 0; transition: opacity .35s; }
.wd-fenster[data-s="1"] .wl-s1, .wd-fenster[data-s="2"] .wl-s2, .wd-fenster[data-s="3"] .wl-s3, .wd-fenster[data-s="4"] .wl-s4, .wd-fenster[data-s="5"] .wl-s5 { opacity: 1; }
.wl-titel { font: 700 6cqh/1 var(--schrift); letter-spacing: .06em; text-transform: uppercase; color: var(--ocker-hell); }
.wl-zeile { display: flex; justify-content: space-between; align-items: baseline; font-size: 6cqh; color: rgb(255 255 255 / .85); border-top: 1px solid rgb(255 255 255 / .2); padding-top: 2.4cqh; }
.wl-zeile b { font: 700 10cqh/1 var(--schrift-titel); color: #fff; font-variant-numeric: tabular-nums; }
.wl-s1 { place-items: center; align-content: center; text-align: center; }
.wl-s1 b { font-size: 8cqh; } .wl-s1 i { font-style: normal; font-size: 6cqh; color: rgb(255 255 255 / .7); }
.wl-ordner { width: 16cqw; height: 12cqw; border-radius: 1cqw; background: linear-gradient(180deg, #f3c85a, #d79b1d); position: relative; }
.wl-ordner::before { content: ""; position: absolute; left: 0; top: -2.4cqw; width: 7cqw; height: 3cqw; border-radius: 1cqw 1cqw 0 0; background: #e6b035; }
.wl-kopie { display: block; width: 70cqw; height: 3cqh; border-radius: 99px; background: rgb(255 255 255 / .18); overflow: hidden; }
.wl-kopie i { display: block; height: 100%; width: calc(var(--sp) * 100%); background: var(--ocker); }
.wl-spur { position: relative; display: flex; height: 36cqh; border-radius: 1cqw; overflow: hidden; box-shadow: 0 0 0 2px rgb(255 255 255 / .3); }
.wl-spur img { flex: 1; min-width: 0; height: 100%; object-fit: cover; }
.wl-schnitt { position: absolute; top: -2cqh; bottom: -2cqh; width: .6cqw; background: #ff4d3d; opacity: clamp(0, calc((var(--sp) - var(--ab)) * 14), 1); }
.wl-c1 { left: 22%; --ab: .22; } .wl-c2 { left: 47%; --ab: .48; } .wl-c3 { left: 71%; --ab: .72; }
.wl-kopf { position: absolute; top: -4cqh; bottom: -4cqh; left: calc(var(--sp) * 100%); width: .8cqw; background: #fff; box-shadow: 0 0 1.5cqw rgb(255 255 255 / .8); }
.wl-chips { display: flex; flex-wrap: wrap; gap: 2cqw; font-size: 5.6cqh; }
.wl-chips li { padding: 1.4cqh 2.6cqw; border-radius: 99px; background: rgb(255 77 61 / .22); box-shadow: inset 0 0 0 1px #ff4d3d; opacity: clamp(.25, calc((var(--sp) - var(--ab) + .05) * 14), 1); }
.wl-titel-liste { display: grid; gap: 1.6cqh; font-size: 5.8cqh; }
.wl-titel-liste li { display: flex; align-items: center; gap: 2.4cqw; padding: 1.6cqh 2.4cqw; border-radius: 1cqw; background: rgb(255 255 255 / .08); }
.wl-titel-liste li b { display: grid; place-items: center; width: 8cqh; height: 8cqh; border-radius: 50%; background: var(--ocker); color: var(--tinte); font-size: 5.4cqh; }
.wl-titel-liste li i { margin-left: auto; font-style: normal; color: rgb(255 255 255 / .7); }
.wl-zahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; }
.wl-zahlen li { display: grid; gap: .6cqh; padding: 2.4cqh 2cqw; border-radius: 1.2cqw; background: rgb(255 255 255 / .1); }
.wl-zahlen b { font: 700 11cqh/1 var(--schrift-titel); font-variant-numeric: tabular-nums; }
.wl-zahlen span { font-size: 5cqh; color: rgb(255 255 255 / .75); }
.wl-bloecke { display: flex; gap: calc(var(--sp) * 2cqw + .4cqw); height: 36cqh; }
.wl-bloecke span { flex: 1; display: grid; place-items: center; border-radius: 1.2cqw; background: var(--c); font: 700 12cqh/1 var(--schrift-titel); translate: 0 calc(sin(var(--i) * 1.7 + var(--sp) * 6) * 1.4cqh * (1 - var(--sp))); }
.wl-bloecke span:nth-child(4) { color: var(--tinte); }
.wl-liste { display: grid; gap: 2.2cqh; font-size: 6.4cqh; }
.wl-liste li { display: flex; justify-content: space-between; align-items: center; gap: 2cqw; padding: 2.4cqh 3cqw; border-radius: 1cqw; background: rgb(255 255 255 / .1); }
.wl-liste .ic { width: 7cqh; height: 7cqh; color: var(--ocker-hell); }
.wl-liste .ist-vorschau { background: var(--smaragd); }
.wl-liste em { font-style: normal; font-weight: 700; background: #fff; color: var(--smaragd-tief); padding: .6cqh 2cqw; border-radius: 99px; font-size: 5.4cqh; }
.wl-kurs { display: flex; gap: 3cqw; align-items: center; }
.wl-kurs img { width: 30cqw; border-radius: 1cqw; aspect-ratio: 16 / 9; object-fit: cover; }
.wl-kurs span { display: grid; gap: 1cqh; }
.wl-kurs b { font: 700 8cqh/1.15 var(--schrift-titel); } .wl-kurs i { font-style: normal; font-size: 5.6cqh; color: rgb(255 255 255 / .8); }
.wd-stand { position: absolute; left: 14px; top: 14px; z-index: 5; padding: 6px 14px; border-radius: 99px; background: rgb(15 24 48 / .82); color: #fff; font: 700 .85rem/1 var(--schrift); font-variant-numeric: tabular-nums; }
.wd-balken { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; height: 6px; background: rgb(15 24 48 / .35); }
.wd-balken i { display: block; height: 100%; background: var(--ocker); transform-origin: 0 50%; transform: scaleX(var(--p-anteil, 1)); }
.wd-punkte { display: none; justify-content: center; gap: 2px; margin-top: 10px; }
.wd-punkte button { min-width: 44px; min-height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; padding: 0; }
.wd-punkte i { display: block; width: 14px; height: 14px; border-radius: 50%; border: 3px solid rgb(255 255 255 / .6); transition: background-color .2s, border-color .2s, scale .2s; }
.wd-punkte .ist-fertig i { background: rgb(224 160 43 / .5); border-color: var(--ocker); }
.wd-punkte .ist-aktiv i { background: var(--ocker); border-color: var(--ocker); scale: 1.35; }
/* Klebend nur, wenn JavaScript es einschaltet (html.wd-an) */
html.wd-an .wd-huelle { height: calc(var(--wd-schritte) * 100svh); }
html.wd-an .wd-karte { position: sticky; top: 0; display: flex; align-items: center; height: 100dvh; padding-block: calc(var(--kopf) + 8px) 12px; overflow: hidden; }
html.wd-an .wd-raster { width: 100%; }
html.wd-an .wd-schritt { opacity: .55; }
html.wd-an .wd-schritt.ist-aktiv { opacity: 1; }
html.wd-an .wd-schritt p { display: grid; max-height: 0; overflow: hidden; margin-top: 0; opacity: 0; transition: max-height .45s ease, opacity .3s, margin-top .3s; }
html.wd-an .wd-schritt.ist-aktiv p { max-height: 9em; opacity: 1; margin-top: 4px; }
html.wd-an .wd-punkte { display: flex; }
html.wd-an .wd-fenster { max-height: calc(100dvh - var(--kopf) - 48px); width: min(100%, calc((100dvh - var(--kopf) - 60px) * 1.6)); margin-inline: auto; }
@media (max-width: 900px) {
  .wd-raster { grid-template-columns: 1fr; }
  .wd-szene { order: -1; }
  html.wd-an .wd-karte { padding-block: calc(var(--kopf) + 4px) calc(var(--leiste) + 8px); align-items: flex-start; }
  html.wd-an .wd-raster { gap: 12px; }
  html.wd-an .wd-schritt { padding: 12px 14px 12px 60px; }
  html.wd-an .wd-schritt:not(.ist-aktiv) { display: none; }
  html.wd-an .wd-schritt h3 { font-size: 1.1rem; }
  html.wd-an .wd-fenster { width: 100%; max-height: 38dvh; }
}

/* ---------- 8 · Lehrende: Ihr Kurs in vier Schritten ---------- */
.lehrende .seg-kopf { margin-bottom: 34px; }
.ld-raster { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.ld-schritte { display: grid; gap: 16px; }
.ld-schritt { padding: clamp(16px, 2vw, 24px); border-radius: 20px; background: rgb(255 255 255 / .1); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22); }
.ld-schritt h3 { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; }
.ld-nr { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ocker); color: var(--tinte); font: 700 1.05rem/1 var(--schrift-titel); }
.ld-schritt > p { margin-top: 10px; }
.ld-schritt > label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-weight: 600; }
.ld-schritt output { font: 700 1.5rem/1 var(--schrift-titel); color: var(--ocker-hell); }
.ld-schritt input[type="range"], .ld-live input[type="range"] { accent-color: var(--ocker); }
.upload { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.upload .knopf { min-height: 48px; }
.up-balken { flex: 1 1 100%; height: 14px; border-radius: 99px; background: rgb(255 255 255 / .22); overflow: hidden; }
.up-balken i { display: block; height: 100%; background: linear-gradient(90deg, var(--ocker), #ffe08a); transform-origin: 0 50%; transform: scaleX(var(--f, 0)); border-radius: 99px; }
.up-text { flex: 1 1 100%; font-size: .94rem; min-height: 1.5em; }
.lkarten { display: grid; gap: 8px; margin-top: 14px; counter-reset: lk; position: relative; }
.lkarte { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px; min-height: 60px; padding: 6px 8px 6px 4px; border-radius: 14px; background: #fff; color: var(--tinte); box-shadow: 0 4px 0 rgb(0 0 0 / .22); counter-increment: lk; touch-action: pan-y; transition: translate .3s cubic-bezier(.3, 1.2, .5, 1), box-shadow .2s, background-color .2s; }
.lkarte::before { content: counter(lk); position: absolute; left: -10px; top: -8px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--tinte); color: #fff; font: 700 .85rem/1 var(--schrift); box-shadow: 0 2px 0 rgb(0 0 0 / .3); }
.lkarte.am-platz { background: #e3f5ea; }
.lk-griff { width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; cursor: grab; color: #6b7590; touch-action: none; }
.lk-griff:hover { background: #eef0f6; }
.lk-griff .ic { width: 26px; height: 26px; stroke-width: 2.4; }
.lk-text { display: grid; gap: 0; min-width: 0; }
.lk-text b { font: 700 1rem/1.2 var(--schrift-titel); }
.lk-text i { font-style: normal; font-size: .84rem; color: var(--muted); }
.lk-stern { width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; cursor: pointer; color: #b5bccd; transition: color .2s, scale .25s cubic-bezier(.3, 1.8, .5, 1); }
.lk-stern .ic { width: 28px; height: 28px; }
.lk-stern:hover { color: var(--ocker); }
.lk-stern[aria-pressed="true"] { color: var(--ocker); scale: 1.12; }
.lk-stern[aria-pressed="true"] .ic { fill: currentColor; }
.lkarte.gegriffen { z-index: 5; box-shadow: 0 0 0 3px var(--ocker), 0 18px 30px rgb(0 0 0 / .4); background: #fffbe8; }
.lkarte.zieht { z-index: 6; box-shadow: 0 0 0 3px var(--ocker), 0 24px 36px rgb(0 0 0 / .45); transition: box-shadow .2s; rotate: -1.2deg; scale: 1.02; }
.lk-griff:focus-visible { outline-color: var(--kobalt); background: #eef0f6; }
.ld-ansage { margin-top: 12px; font-weight: 700; }
.ld-vorschau { font-size: 1.02rem; }
.ld-live { display: grid; gap: 16px; position: sticky; top: calc(var(--kopf) + 16px); }
.ld-tafel { padding: clamp(16px, 2vw, 24px); border-radius: 20px; background: #fff; color: var(--tinte); box-shadow: 0 6px 0 rgb(0 0 0 / .25), 0 24px 40px -20px rgb(0 0 0 / .5); }
.ld-geld { background: var(--tinte); color: #fff; }
.ld-geld label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-weight: 600; color: #fff; }
.ld-geld output { font: 700 1.4rem/1 var(--schrift-titel); color: var(--ocker-hell); font-variant-numeric: tabular-nums; }
.ld-tafel-titel { font: 700 .76rem/1 var(--schrift); letter-spacing: .12em; text-transform: uppercase; color: var(--zinnober-tief); margin-bottom: 12px; }
.ld-geld .ld-tafel-titel { color: var(--ocker-hell); }
.ld-mini { padding: 14px 16px; border-radius: 14px; background: var(--papier); box-shadow: inset 0 0 0 1px var(--border); }
.ldm-titel { font: 700 1.2rem/1.2 var(--schrift-titel); }
.ldm-preis { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 10px; }
.ldm-preis strong { font: 700 1.9rem/1 var(--schrift-titel); color: var(--kobalt-tief); }
.ldm-preis span { font-size: .86rem; color: var(--muted); }
.ldm-liste { display: grid; gap: 4px; counter-reset: ldm; }
.ldm-liste li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; background: #fff; font-size: .94rem; box-shadow: inset 0 0 0 1px var(--border); transition: translate .3s; }
.ldm-liste li .ic { width: 16px; height: 16px; color: var(--muted); }
.ldm-liste li.ist-vorschau { background: #e3f5ea; box-shadow: inset 0 0 0 2px var(--smaragd); font-weight: 600; }
.ldm-liste li.ist-vorschau .ic { color: var(--smaragd); }
.ldm-liste li span { flex: 1; min-width: 0; }
.ldm-liste li em { font-style: normal; font-size: .76rem; font-weight: 700; color: var(--smaragd-tief); }
.ld-zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 6px; border-bottom: 1px solid rgb(255 255 255 / .16); }
.ld-zeile strong { font: 700 1.2rem/1 var(--schrift-titel); font-variant-numeric: tabular-nums; }
.ld-summe { margin-top: 14px; }
.ld-gesamt { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; }
.ld-gesamt strong { font: 700 clamp(2rem, 1.4rem + 1.6vw, 2.8rem)/1 var(--schrift-titel); color: var(--ocker-hell); font-variant-numeric: tabular-nums; }
.ld-balken { display: flex; height: 12px; margin-top: 10px; border-radius: 99px; overflow: hidden; background: rgb(255 255 255 / .16); }
.ld-balken i { display: block; height: 100%; transition: width .4s cubic-bezier(.3, 1, .4, 1); }
#ld-b-kauf { background: var(--ocker); } #ld-b-topf { background: #5ad6a1; }
.ld-bedingungen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(20px, 4vw, 56px); align-items: start; margin-top: clamp(34px, 5vw, 56px); padding-top: clamp(26px, 4vw, 40px); border-top: 1px solid rgb(255 255 255 / .3); }
.ld-bedingungen > h3 { grid-column: 1 / -1; font-size: 1.5rem; margin-bottom: -8px; }
.ld-bedingungen .haken { font-size: 1.02rem; }
@media (max-width: 960px) { .ld-raster, .ld-bedingungen { grid-template-columns: 1fr; } .ld-live { position: static; } .ld-bedingungen > h3 { margin-bottom: 0; } }

/* ---------- 9 · Stimmen, Fragen, Kontakt, Fuß ---------- */
.bew-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; margin-top: 34px; }
.bew { position: relative; padding: 22px 22px 20px; border-radius: 18px 18px 18px 4px; background: var(--papier); box-shadow: 0 6px 0 rgb(20 33 61 / .25), 0 20px 30px -16px rgb(20 33 61 / .45); }
.bew:nth-child(odd) { rotate: -.6deg; } .bew:nth-child(even) { rotate: .7deg; }
.bew blockquote { margin: 10px 0 0; }
.bew p { font: 500 1.08rem/1.5 var(--schrift-titel); }
.bew footer { margin-top: 12px; font-size: .86rem; color: var(--muted); }
.fragen-raster { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 70px); align-items: start; }
.fragen .seg-kopf { position: sticky; top: calc(var(--kopf) + 24px); }
.fa-liste { display: grid; gap: 10px; }
.fa-liste details { border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--border), 0 3px 0 rgb(20 33 61 / .12); }
.fa-liste summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 60px; padding: 12px 18px; cursor: pointer; font: 700 1.08rem/1.3 var(--schrift-titel); list-style: none; }
.fa-liste summary::-webkit-details-marker { display: none; }
.fa-liste summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 3px solid var(--kobalt); border-bottom: 3px solid var(--kobalt); rotate: 45deg; translate: 0 -3px; transition: rotate .25s; }
.fa-liste details[open] summary::after { rotate: 225deg; translate: 0 3px; }
.fa-liste details p { padding: 0 18px 18px; max-width: 62ch; }
.fa-liste details[open] { box-shadow: inset 0 0 0 2px var(--kobalt); }
@media (max-width: 900px) { .fragen-raster { grid-template-columns: 1fr; } .fragen .seg-kopf { position: static; } }
.kontakt-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 70px); align-items: start; }
.tel-gross { margin-top: 18px; font: 700 clamp(2rem, 1.2rem + 3vw, 3.2rem)/1 var(--schrift-titel); }
.tel-gross a { text-decoration: none; color: var(--ocker-hell); }
.kontakt address { margin-top: 18px; font-style: normal; }
.kontakt a { text-decoration-thickness: 2px; }
.formular--dunkel { padding: clamp(18px, 2.4vw, 28px); border-radius: 22px; background: rgb(255 255 255 / .1); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25); }
.formular--dunkel .formular-meldung { color: var(--ocker-hell); }
@media (max-width: 900px) { .kontakt-raster { grid-template-columns: 1fr; } }
.fuss { background: var(--tinte-tief); color: #e9ecf4; padding-top: 44px; }
.fuss-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px 40px; }
.fuss-logo { font: 800 1.5rem/1 var(--schrift-titel); margin-bottom: 8px; color: #fff; }
.fuss address { font-style: normal; margin-bottom: 8px; }
.fuss a { color: #fff; }
.fuss-links { display: flex; gap: 18px; margin-top: 10px; }
.fuss-demo { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / .2); font-size: .88rem; color: #c9cfdf; max-width: 100ch; }
.fuss-zeile { width: 100%; max-width: none; margin: 0; padding: 20px 16px 24px; text-align: center; font-size: .82rem; color: #aab2c8; }
.fuss-zeile a { color: #dfe4f2; }

/* ---------- 10 · Auftritte, Stufen, Wechsel ---------- */
/* Auftritt: wandert beim Hereinscrollen von unten herein. Mit scroll-getriebenen Animationen in CSS, sonst per IntersectionObserver. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rein-hoch { from { opacity: 0; translate: 0 30px; } to { opacity: 1; translate: 0 0; } }
  @supports ((animation-timeline: view()) and (animation-range: entry 0% entry 50%)) {
    html:not([data-bewegung="starr"]) .rein { animation: rein-hoch linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
  html.rein-io:not([data-bewegung="starr"]) .rein { opacity: 0; translate: 0 30px; transition: opacity .6s ease calc(var(--i, 0) * 70ms), translate .6s cubic-bezier(.3, 1, .4, 1) calc(var(--i, 0) * 70ms); }
  html.rein-io:not([data-bewegung="starr"]) .rein.ist-da { opacity: 1; translate: 0 0; }
}
/* dynamisch: die Buchrücken atmen leicht */
@media (prefers-reduced-motion: no-preference) {
  html[data-bewegung="dynamisch"] .brett:nth-child(odd) .ruecken:not(:hover):not([aria-current="true"]):not(.gezogen) { animation: atmen 7s ease-in-out infinite; }
  html[data-bewegung="dynamisch"] .brett:nth-child(even) .ruecken:not(:hover):not([aria-current="true"]):not(.gezogen) { animation: atmen 8.5s ease-in-out -2s infinite; }
  @keyframes atmen { 50% { translate: 0 -2px; } }
}
/* View Transition: Buchrücken wird zum Kursbild */
::view-transition-group(kurs-bild) { animation-duration: .55s; animation-timing-function: cubic-bezier(.3, .9, .3, 1); }
::view-transition-old(kurs-bild), ::view-transition-new(kurs-bild) { height: 100%; object-fit: cover; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }
.kursseite.sp-vt .sp-bild { view-transition-name: kurs-bild; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  html { scroll-behavior: auto; }
}
html[data-bewegung="starr"] *, html[data-bewegung="starr"] *::before, html[data-bewegung="starr"] *::after { animation: none !important; }
html[data-bewegung="starr"] { scroll-behavior: auto; }
html[data-bewegung="starr"] .lektion.wischt .lt-s { transition: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
