/* FilmFoto Academy – Gestaltung
   Dunkel, kinohaft, große Bilder, klare Typografie. Schwarz/Weiß mit REC-Rot als Akzent (wie der Punkt im Logo). */

@font-face { font-family: 'Inter'; src: url('fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url('fonts/inter-tight.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0a0a0a;
  --flaeche: #141414;
  --flaeche-2: #1c1c1c;
  --flaeche-3: #262626;
  --linie: #2a2a2a;
  --text: #f4f4f2;
  --leise: #9a9a9a;
  --akzent: #e5484d;          /* REC-Rot – Text, Linien, Punkte auf dunklem Grund */
  --akzent-hell: #ff6b70;
  --akzent-flaeche: #d93a40;  /* rote Flächen mit weißer Schrift (Kontrast 4,5:1) */
  --akzent-tinte: #ffffff;
  --knopf: #f4f4f2;           /* Hauptknopf: hell auf dunkel */
  --knopf-hover: #ffffff;
  --knopf-tinte: #0a0a0a;
  --gruen: #4fbf7f;
  --rot: #e5534b;
  --radius: 10px;
  --radius-gross: 16px;
  --breite: 2400px; /* Inhalt nutzt die Browserbreite, erst auf sehr großen Bildschirmen begrenzt */
  --rand: clamp(16px, 4vw, 96px);
  --kopf-hoehe: 68px;
  --schrift: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --titel: 'Inter Tight', 'Inter', system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf-hoehe) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 var(--schrift); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
}
main { flex: 1; outline: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }
a:hover { color: var(--akzent-hell); }
h1, h2, h3 { font-family: var(--titel); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .4em; font-weight: 700; }
h1 { font-size: clamp(34px, 5.2vw, 68px); }
h2 { font-size: clamp(22px, 2.4vw, 30px); }
h3 { font-size: 18px; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--akzent-flaeche); color: var(--akzent-tinte); }

.leise { color: var(--leise); }
.klein { font-size: 13px; }
.gross { font-size: 19px; }
.zentriert { text-align: center; }
.rechts { text-align: right; }
.abstand { margin-top: 32px; }
.ueberzeile { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 600; color: var(--akzent); margin: 0 0 12px; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.sprunglink { position: absolute; left: -9999px; }
.sprunglink:focus { left: 16px; top: 16px; z-index: 100; background: var(--knopf); color: var(--knopf-tinte); padding: 8px 12px; border-radius: 6px; }

/* ------------------------------------------------------------ Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 8px; border: 1px solid transparent;
  background: var(--knopf); color: var(--knopf-tinte); font-weight: 650; font-size: 15px;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, transform .1s, opacity .15s;
}
.knopf:hover { background: var(--knopf-hover); color: var(--knopf-tinte); }
.knopf:active { transform: scale(.98); }
.knopf[disabled] { opacity: .5; cursor: default; }
.knopf.laedt { position: relative; color: transparent !important; }
.knopf.laedt::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid currentColor; border-color: var(--knopf-tinte) transparent var(--knopf-tinte) transparent; border-radius: 50%; animation: drehen .7s linear infinite; }
.knopf-gross { padding: 15px 28px; font-size: 16px; }
.knopf-klein { padding: 7px 13px; font-size: 13px; }
.knopf-breit { width: 100%; }
.knopf-leise { background: var(--flaeche-2); color: var(--text); border-color: var(--linie); }
.knopf-leise:hover { background: var(--flaeche-3); color: var(--text); }
.knopf-leise.laedt::after { border-color: var(--text) transparent var(--text) transparent; }
.knopf-glas { background: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: rgba(255,255,255,.18); }
.knopf-glas:hover { background: rgba(255,255,255,.2); color: #fff; }
.knopf-gefahr { background: var(--rot); color: #fff; }
.knopf-gefahr:hover { background: #f06a62; color: #fff; }
.knopf-gefahr.knopf-leise { background: transparent; color: var(--rot); border-color: rgba(229,83,75,.4); }
.knopf-erledigt { color: var(--gruen); border-color: rgba(79,191,127,.4); }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.symbol-knopf { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; border: 0; background: transparent; color: var(--leise); cursor: pointer; }
.symbol-knopf:hover { background: var(--flaeche-2); color: var(--text); }
.symbol-knopf[disabled] { opacity: .3; cursor: default; }

/* ------------------------------------------------------------ Kopf */
.kopf { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--kopf-hoehe); transition: background .25s, border-color .25s; border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(0,0,0,.75), transparent); }
.kopf.gescrollt, body:not([data-seite="start"]):not([data-seite="kurs"]):not([data-seite="paket"]) .kopf { background: rgba(10,10,10,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--linie); }
.kopf-innen { max-width: var(--breite); margin: 0 auto; height: 100%; padding: 0 var(--rand); display: flex; align-items: center; gap: 36px; }
body:not([data-seite="start"]):not([data-seite="kurs"]):not([data-seite="paket"]) main { padding-top: var(--kopf-hoehe); }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.logo-bild { display: block; height: 29px; width: auto; }
.logo-bild-gross { display: block; height: 56px; width: auto; }
@media (max-width: 640px) { .logo-bild { height: 38px; } }
.logo:hover { color: #fff; }

.hauptnav { display: flex; gap: 26px; }
.hauptnav a { text-decoration: none; color: rgba(255,255,255,.75); font-size: 15px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.hauptnav a:hover { color: #fff; }
.hauptnav a.aktiv { color: #fff; border-color: var(--akzent); }
.kopf-rechts { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.kopf-link { text-decoration: none; font-weight: 500; font-size: 15px; }
.menue-knopf { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; cursor: pointer; color: #fff; }
.menue-knopf .icon { width: 26px; height: 26px; }

.nutzermenue { position: relative; }
.nutzer-knopf { background: none; border: 0; padding: 0; cursor: pointer; border-radius: 50%; }
.nutzer-liste { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none; transition: opacity .15s, transform .15s, visibility 0s .15s; }
.nutzermenue.offen .nutzer-liste { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .15s, transform .15s; }
.nutzer-liste a, .nutzer-liste button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; background: none; border: 0; text-decoration: none; cursor: pointer; font-size: 14px; }
.nutzer-liste a:hover, .nutzer-liste button:hover { background: var(--flaeche-2); color: var(--text); }
.nutzer-kopf { padding: 10px 12px 12px; border-bottom: 1px solid var(--linie); margin-bottom: 6px; display: grid; }
.nutzer-kopf span { color: var(--leise); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }

.avatar { display: inline-grid; place-items: center; border-radius: 50%; object-fit: cover; flex: none; font-weight: 700; font-size: 13px; color: #fff;
  background: hsl(var(--h, 30) 35% 32%); }

/* ------------------------------------------------------------ Held (Hero) */
.held { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.held-bild { position: absolute; inset: 0; z-index: -2; }
.held-bild > * { width: 100%; height: 100%; object-fit: cover; }
.held-verlauf { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to right, rgba(10,10,10,.92) 0%, rgba(10,10,10,.55) 45%, rgba(10,10,10,.1) 75%),
              linear-gradient(to top, var(--bg) 0%, rgba(10,10,10,.4) 30%, transparent 55%); }
.held-inhalt { width: 100%; max-width: var(--breite); margin: 0 auto; padding: calc(var(--kopf-hoehe) + 60px) var(--rand) clamp(40px, 7vh, 90px); }
.held-inhalt > * { max-width: 680px; }
.held h1 { font-size: clamp(40px, 6.4vw, 88px); margin-bottom: 16px; text-wrap: balance; }
.held-unter { font-size: clamp(17px, 1.6vw, 21px); color: rgba(255,255,255,.82); margin-bottom: 10px; }
.held-unter p { margin: 0 0 .6em; }
.held-dozent { color: rgba(255,255,255,.7); margin-bottom: 26px; }
.held-dozent b { color: #fff; }
.held-kurs { min-height: min(78vh, 720px); }
.held-paket { min-height: 560px; }
.held .zurueck { margin-bottom: 26px; }
.eckdaten { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0 0 24px; color: rgba(255,255,255,.8); font-size: 15px; }
.eckdaten li { display: flex; align-items: center; gap: 7px; }
.held-fortschritt { display: grid; gap: 8px; margin-bottom: 24px; max-width: 420px; font-size: 14px; color: rgba(255,255,255,.75); }
.hinweis-paket { margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.7); }
.entwurf { background: var(--flaeche-3); color: var(--leise); padding: 2px 8px; border-radius: 4px; letter-spacing: .05em; }

.zurueck { display: inline-flex; align-items: center; gap: 6px; color: var(--leise); text-decoration: none; font-size: 14px; font-weight: 500; }
.zurueck:hover { color: var(--text); }

/* Platzhalter-Cover, wenn kein Bild hinterlegt ist */
.cover-bild { width: 100%; height: 100%; object-fit: cover; }
.cover-platzhalter { width: 100%; height: 100%; position: relative; overflow: hidden;
  background:
    radial-gradient(120% 80% at 80% 10%, hsl(var(--h) 32% 30% / .9), transparent 60%),
    radial-gradient(90% 70% at 10% 100%, hsl(calc(var(--h) + 40) 28% 18%), transparent 70%),
    linear-gradient(160deg, hsl(var(--h) 18% 13%), #0b0b0b); }
.cover-platzhalter span { position: absolute; right: 7%; top: 7%; font: 800 11px/1 var(--titel); letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.35); }

/* ------------------------------------------------------------ Reihen & Karten */
.reihen { position: relative; z-index: 1; margin-top: -40px; }
.reihe { max-width: var(--breite); margin: 0 auto 44px; padding: 0 var(--rand); }
.reihe-kopf { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.reihe-kopf h2 { margin: 0; font-size: 22px; }
.mehr { display: inline-flex; align-items: center; gap: 2px; text-decoration: none; color: var(--leise); font-size: 14px; font-weight: 500; }
.reihe-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 17vw, 360px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(var(--rand) * -1); padding: 4px var(--rand) 14px; scrollbar-width: none; }
.reihe-scroll::-webkit-scrollbar { display: none; }
.reihe-scroll > * { scroll-snap-align: start; }
.reihe-quer { grid-auto-columns: clamp(260px, 26vw, 520px); }

.karte { display: block; text-decoration: none; color: var(--text); }
.karte:hover { color: var(--text); }
.karte-bild { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--flaeche); }
.karte-quer .karte-bild { aspect-ratio: 16 / 9; }
.karte-bild > .cover-bild, .karte-bild > .cover-platzhalter { position: absolute; inset: 0; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.karte:hover .karte-bild > :first-child { transform: scale(1.04); }
.karte-verlauf { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.4) 38%, transparent 62%); }
.karte-oben { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; }
.karte-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; }
.karte-text h3 { font-size: 19px; margin: 0 0 6px; text-wrap: balance; }
.karte-dozent { margin: 0 0 4px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--akzent); }
.karte-meta { margin: 0; font-size: 12.5px; color: rgba(255,255,255,.7); }
.karte-play { position: absolute; left: 50%; top: 42%; translate: -50% -50%; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: .2s; }
.karte:hover .karte-play { opacity: 1; }
.karte-play .icon { width: 22px; height: 22px; }
.karte-fortschritt { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 12px; color: var(--leise); }
.karte-fortschritt .balken { flex: 1; }

.schild { display: inline-block; padding: 4px 9px; border-radius: 5px; font-size: 12px; font-weight: 650; background: rgba(0,0,0,.6); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.schild-frei { background: var(--akzent-flaeche); color: var(--akzent-tinte); }
.schild-zugang { background: rgba(79,191,127,.2); color: #8fe0b1; }
.schild-klein { padding: 2px 6px; font-size: 11px; background: var(--flaeche-3); }

.balken { height: 4px; border-radius: 2px; background: rgba(255,255,255,.14); overflow: hidden; }
.balken span { display: block; height: 100%; background: var(--akzent); border-radius: inherit; transition: width .4s; }
.balken-gross { height: 6px; border-radius: 3px; }

.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(200px, 15vw, 320px), 1fr)); gap: 28px 18px; max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand) 40px; }
.raster-quer { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.abschnitt-eng .raster { padding: 0; }

/* ------------------------------------------------------------ Abschnitte */
.abschnitt { max-width: var(--breite); margin: 0 auto; padding: 56px var(--rand); }
.abschnitt-eng { max-width: var(--breite); margin: 0 auto 32px; padding: 0 var(--rand); }
.abschnitt-kopf { margin-bottom: 24px; }
.zwischen { font-size: 22px; margin: 8px 0 18px; }
.seitenkopf { max-width: var(--breite); margin: 0 auto; padding: 48px var(--rand) 32px; }
.seitenkopf h1 { font-size: clamp(34px, 4.4vw, 56px); }
.seitenkopf.zentriert { text-align: center; padding-top: 72px; }
.seitenkopf.zentriert h1 { max-width: 800px; margin-left: auto; margin-right: auto; }

.versprechen { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; border-top: 1px solid var(--linie); }
.versprechen > div { padding: 8px 0; }
.versprechen span { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--flaeche-2); color: var(--akzent); margin-bottom: 14px; }
.versprechen .icon { width: 22px; height: 22px; }
.versprechen p { color: var(--leise); }
.aufruf { text-align: center; padding-top: 72px; padding-bottom: 96px; }
.aufruf h2 { font-size: clamp(28px, 3.6vw, 44px); max-width: 720px; margin: 0 auto 12px; }

.paket-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 18px; }
.paket { display: grid; grid-template-columns: 180px 1fr; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-gross); overflow: hidden; text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; }
.paket:hover { border-color: rgba(229,72,77,.5); color: var(--text); transform: translateY(-2px); }
.paket-bild { position: relative; min-height: 200px; }
.paket-bild > * { position: absolute; inset: 0; }
.paket-text { padding: 22px 24px; display: flex; flex-direction: column; }
.paket-text h3 { font-size: 22px; }
.paket-text .leise { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.paket-preis { margin-top: auto; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.paket-preis b { font-size: 24px; font-family: var(--titel); }
.paket-preis s { color: var(--leise); }
.paket-preis .spar { font-size: 13px; color: var(--akzent); font-weight: 600; }
.paket-preis.gross b { font-size: 38px; }
.held .paket-preis { margin: 18px 0 24px; }

/* ------------------------------------------------------------ Katalog-Filter */
.filter { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 22px; }
.suchfeld { display: flex; align-items: center; gap: 8px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 999px; padding: 0 16px; min-width: min(100%, 300px); color: var(--leise); }
.suchfeld input { background: none; border: 0; outline: none; padding: 11px 0; width: 100%; color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 18px calc(var(--rand) * -1) 0; padding: 0 var(--rand); }
.chips-scroll::-webkit-scrollbar { display: none; }
.chip { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--linie); background: transparent; font-size: 14px; cursor: pointer; white-space: nowrap; text-decoration: none; color: var(--text); }
.chip:hover { border-color: #444; color: var(--text); }
.chip.aktiv { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ------------------------------------------------------------ Kursseite */
.kurs-raster { max-width: var(--breite); margin: 0 auto; padding: 24px var(--rand) 40px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.block { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-gross); padding: 26px; margin-bottom: 20px; }
.kurs-haupt .block { background: none; border: 0; padding: 0; margin-bottom: 48px; }
.fliesstext { color: rgba(255,255,255,.82); max-width: 72ch; }
.fliesstext p:last-child { margin-bottom: 0; }
.lernziele { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px 28px; }
.lernziele li { display: flex; gap: 12px; align-items: flex-start; }
.lernziele .icon { color: var(--akzent); margin-top: 3px; }

.kapitel + .kapitel { margin-top: 22px; }
.kapitel-titel { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--leise); margin: 0 0 8px; font-family: var(--schrift); font-weight: 600; }
.lektionen { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.lektionen li { border-bottom: 1px solid var(--linie); }
.lektion { position: relative; display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: center; padding: 15px 8px; text-decoration: none; color: var(--text); border-radius: 8px; }
a.lektion:hover { background: var(--flaeche); color: var(--text); }
.lektion.aktiv { background: var(--flaeche-2); }
.lektion-nr { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--linie); color: var(--leise); font-size: 13px; }
.lektion-nr .icon { width: 15px; height: 15px; }
.lektion-nr .icon:not(:only-child) { display: none; }
a.lektion:hover .lektion-nr .nr, .lektion.aktiv .lektion-nr .nr { display: none; }
a.lektion:hover .lektion-nr .icon, .lektion.aktiv .lektion-nr .icon { display: block; color: var(--akzent); }
.lektion.erledigt .lektion-nr { background: var(--akzent-flaeche); border-color: var(--akzent-flaeche); color: var(--akzent-tinte); }
.lektion.erledigt .lektion-nr .icon { display: block; color: var(--akzent-tinte); }
.lektion.gesperrt { color: var(--leise); }
.lektion-titel { font-weight: 500; }
.lektion-dauer { color: var(--leise); font-size: 13px; font-variant-numeric: tabular-nums; }
.lektion-balken { position: absolute; left: 8px; bottom: 0; height: 2px; background: var(--akzent); border-radius: 1px; max-width: calc(100% - 16px); }
.vorschau { font-style: normal; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--akzent); margin-left: 6px; }

.dozent-kopf { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.dozent-kopf img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.dozent-kopf h3 { margin: 0; font-size: 20px; }
.dozent-kopf p { margin: 0; }
.dozent-kopf .ueberzeile { margin-bottom: 4px; font-size: 11px; }
.dozent .fliesstext { font-size: 15px; }

/* ------------------------------------------------------------ Lektion / Theater */
.theater { display: grid; grid-template-columns: minmax(0, 1fr) 380px; background: #000; border-bottom: 1px solid var(--linie); }
.theater-video { display: flex; align-items: center; justify-content: center; padding: 0; }
.video-rahmen { width: 100%; aspect-ratio: 16 / 9; position: relative; background: #000; }
.theater-video .video-rahmen { max-height: calc(100vh - var(--kopf-hoehe) - 60px); }
.player, .player-ziel, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-hinweis { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; background: #050505 center / cover no-repeat; }
.player-hinweis::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.7); }
.player-hinweis-box { position: relative; max-width: 460px; text-align: center; display: grid; gap: 14px; justify-items: center; font-size: 14px; color: rgba(255,255,255,.85); }
.player-hinweis-box p { margin: 0; }
.theater-liste { background: var(--flaeche); border-left: 1px solid var(--linie); display: flex; flex-direction: column; min-height: 0; max-height: calc((100vw - 380px) * 9 / 16); }
.theater-liste-kopf { padding: 18px 18px 14px; border-bottom: 1px solid var(--linie); display: grid; gap: 12px; }
.theater-liste-kopf > div { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--leise); }
.theater-liste-kopf .balken { flex: 1; }
.theater-scroll { overflow-y: auto; padding: 10px 10px 20px; flex: 1; }
.theater-scroll .lektionen { border-top: 0; }
.theater-scroll .lektionen li { border-bottom: 0; }
.theater-scroll .lektion { padding: 10px 8px; grid-template-columns: 30px 1fr auto; gap: 10px; font-size: 14px; }
.theater-scroll .lektion-nr { width: 28px; height: 28px; }
.theater-scroll .kapitel-titel { padding: 8px 8px 0; font-size: 11px; }
.lektion-info { max-width: var(--breite); margin: 0 auto; padding: 32px var(--rand) 60px; }
.lektion-info-kopf { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 20px; }
.lektion-info h1 { font-size: clamp(26px, 3vw, 38px); margin: 0; }
.material { display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; padding: 12px 16px; border: 1px solid var(--linie); border-radius: 10px; text-decoration: none; }
.hinweis-kasten { margin: 26px 0; padding: 20px 22px; border-radius: 12px; border: 1px solid rgba(229,72,77,.35); background: rgba(229,72,77,.07); display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.hinweis-kasten p { margin: 0; }

/* ------------------------------------------------------------ Formulare & Konto */
.konto-seite { min-height: calc(100vh - var(--kopf-hoehe) - 200px); display: grid; place-items: center; padding: 48px 16px; }
.konto-box { width: 100%; max-width: 440px; }
.konto-box h1 { font-size: 38px; }
.konto-wechsel { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--linie); color: var(--leise); font-size: 15px; }
.formular { display: grid; gap: 16px; margin-top: 24px; }
.formular label { display: grid; gap: 7px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.85); }
.formular small { color: var(--leise); font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=search]:not(.suchfeld input), input:not([type]), select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 9px; border: 1px solid var(--linie); background: var(--flaeche); color: var(--text); font-size: 15px; transition: border-color .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--akzent); }
textarea { resize: vertical; min-height: 44px; }
.haken { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; cursor: pointer; }
.haken input { margin-top: 3px; accent-color: var(--akzent); width: 17px; height: 17px; flex: none; }
.formfehler { color: #ff8a80; margin: 0; font-size: 14px; min-height: 0; }
.formfehler:empty { display: none; }
.feldreihe { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }

.schalter { display: flex !important; align-items: center; gap: 12px !important; cursor: pointer; font-weight: 400 !important; grid-template-columns: none !important; }
.schalter input { position: absolute; opacity: 0; width: 0; height: 0; }
.schalter span { width: 42px; height: 24px; border-radius: 12px; background: var(--flaeche-3); position: relative; transition: background .2s; flex: none; }
.schalter span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.schalter input:checked + span { background: var(--akzent); }
.schalter input:checked + span::after { transform: translateX(18px); }
.schalter input:focus-visible + span { outline: 2px solid var(--akzent); outline-offset: 2px; }

.kasse-box { max-width: 520px; }
.kasse-posten { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 18px 0; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); margin: 22px 0; }
.kasse-bild { position: relative; aspect-ratio: 4/5; border-radius: 8px; overflow: hidden; }
.kasse-bild > * { position: absolute; inset: 0; }
.kasse-summe { margin: 0; display: grid; gap: 8px; }
.kasse-summe div { display: flex; justify-content: space-between; color: var(--leise); }
.kasse-summe dd { margin: 0; font-variant-numeric: tabular-nums; }
.kasse-summe .gesamt { color: var(--text); font-weight: 700; font-size: 20px; padding-top: 10px; border-top: 1px solid var(--linie); margin-top: 4px; }
.erfolg-haken { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--akzent-flaeche); color: var(--akzent-tinte); }
.erfolg-haken .icon { width: 34px; height: 34px; stroke-width: 2.5; }

.profil-raster { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand) 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; align-items: start; }
.profil-raster .block { margin: 0; }
.avatar-zeile { display: flex; align-items: center; gap: 16px; }
.block-gefahr { border-color: rgba(229,83,75,.3); }

.tabelle { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabelle th { text-align: left; font-weight: 600; color: var(--leise); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 10px 12px; border-bottom: 1px solid var(--linie); }
.tabelle td { padding: 12px; border-bottom: 1px solid var(--linie); vertical-align: middle; }
.tabelle-klick tbody tr { cursor: pointer; }
.tabelle-klick tbody tr:hover { background: var(--flaeche); }
.mini-cover { width: 56px; }
.mini-cover > * { width: 44px !important; height: 56px !important; border-radius: 6px; position: static; }

/* ------------------------------------------------------------ Community */
.community { max-width: 760px; margin: 0 auto; padding: 0 var(--rand) 60px; }
.community-detail { padding-top: 32px; }
.community-detail .zurueck { margin-bottom: 18px; }
.verfassen { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-gross); padding: 16px; margin-bottom: 22px; }
.verfassen-zeile { display: flex; gap: 12px; align-items: flex-start; }
.verfassen-zeile textarea { border: 0; background: transparent; padding: 8px 0; resize: none; }
.verfassen-mehr { display: none; gap: 12px; margin-top: 10px; }
.verfassen.offen .verfassen-mehr { display: grid; }
.verfassen-leiste { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.verfassen-leiste select { width: auto; flex: 1; min-width: 140px; padding: 9px 12px; }
.verfassen-gast { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.verfassen-gast p { margin: 0; }
.bild-vorschau { position: relative; }
.bild-vorschau img { max-height: 240px; border-radius: 10px; }
.bild-vorschau .symbol-knopf { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.6); color: #fff; }
.beitrag { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-gross); padding: 18px 20px 10px; margin-bottom: 14px; }
.beitrag-kopf { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.beitrag-kopf > div:not(.mehr-menue) { display: grid; line-height: 1.35; flex: 1; min-width: 0; }
.beitrag-kopf .leise a { color: var(--akzent); text-decoration: none; }
.angepinnt { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--akzent); }
.beitrag-link { text-decoration: none; color: var(--text); display: block; }
.beitrag-link:hover { color: var(--text); }
.beitrag h3 { font-size: 19px; margin-bottom: 6px; }
.gekuerzt { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.beitrag-bild { margin-top: 12px; border-radius: 10px; max-height: 520px; width: 100%; object-fit: cover; }
.beitrag-fuss { display: flex; gap: 6px; margin-top: 10px; padding-top: 6px; border-top: 1px solid var(--linie); }
.reaktion { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px; border: 0; background: none; color: var(--leise); font-size: 14px; cursor: pointer; text-decoration: none; }
.reaktion:hover { background: var(--flaeche-2); color: var(--text); }
.reaktion.aktiv { color: #ff7a8a; }
.reaktion.aktiv .icon { fill: currentColor; }
.mehr-menue { position: relative; margin-left: auto; }
.mehr-liste { position: absolute; right: 0; top: 100%; z-index: 5; min-width: 190px; background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: 10px; padding: 5px; display: none; box-shadow: 0 14px 30px rgba(0,0,0,.45); }
.mehr-menue.offen .mehr-liste { display: block; }
.mehr-liste button { display: block; width: 100%; text-align: left; padding: 9px 12px; background: none; border: 0; border-radius: 7px; cursor: pointer; font-size: 14px; }
.mehr-liste button:hover { background: var(--flaeche-3); }
.mehr-liste .gefahr { color: #ff8a80; }
.kommentare { margin-top: 28px; }
.kommentare h2 { font-size: 18px; }
.kommentar { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.kommentar-inhalt { flex: 1; min-width: 0; }
.kommentar-kopf { display: flex; gap: 10px; align-items: center; margin-bottom: 2px; }
.kommentar-kopf .mehr-menue .symbol-knopf { width: 28px; height: 28px; }
.kommentar .fliesstext { font-size: 15px; }
.antworten { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; margin-top: 20px; }
.antworten .formfehler { grid-column: 2 / -1; }

/* ------------------------------------------------------------ Verwaltung */
.admin { max-width: var(--breite); margin: 0 auto; padding: 28px var(--rand) 60px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 36px; align-items: start; }
.admin-nav { display: grid; gap: 2px; position: sticky; top: calc(var(--kopf-hoehe) + 20px); }
.admin-nav a { padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--leise); font-weight: 500; font-size: 15px; }
.admin-nav a:hover { background: var(--flaeche); color: var(--text); }
.admin-nav a.aktiv { background: var(--flaeche-2); color: var(--text); }
.admin h1 { font-size: 34px; }
.admin-kopf { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-kopf h1, .admin-kopf h2, .admin-kopf h3 { margin: 0; }
.admin-zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 20px; align-items: start; }
.admin-zwei .block { margin: 0; }
.admin-zwei .formular { margin-top: 0; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 20px 0 28px; }
.kachel { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; padding: 18px; display: grid; gap: 4px; text-decoration: none; color: var(--text); }
.kachel span { color: var(--leise); font-size: 13px; }
.kachel b { font: 700 28px/1.1 var(--titel); }
.kachel small { color: var(--leise); }
.kachel-warn { border-color: rgba(229,83,75,.5); }
.status { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--flaeche-3); color: var(--leise); }
.status-ok { background: rgba(79,191,127,.15); color: #8fe0b1; }
.status-warn { background: rgba(229,72,77,.15); color: var(--akzent); }
.warn { color: var(--akzent); }
.admin-lektionen { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.admin-lektionen li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--flaeche-2); border-radius: 10px; }
.admin-lektion-text { flex: 1; display: grid; min-width: 0; }
.admin-lektion-knoepfe { display: flex; gap: 4px; align-items: center; }
.admin-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.admin-karte { margin: 0; }
.bildfeld { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.kursauswahl { border: 1px solid var(--linie); border-radius: 10px; padding: 12px 14px; display: grid; gap: 8px; max-height: 260px; overflow-y: auto; }
.kursauswahl legend { padding: 0 6px; color: var(--leise); font-size: 13px; }
.liste { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.liste li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; background: var(--flaeche-2); border-radius: 8px; }
.meldung blockquote { margin: 10px 0 14px; padding: 12px 14px; border-left: 3px solid var(--rot); background: var(--flaeche-2); border-radius: 0 8px 8px 0; }

/* ------------------------------------------------------------ Rechtliches, Leer, Laden */
.rechtstext { max-width: 760px; margin: 0 auto; padding: 48px var(--rand) 72px; color: rgba(255,255,255,.85); }
.rechtstext h1 { font-size: clamp(32px, 4vw, 48px); color: var(--text); }
.rechtstext h2 { font-size: 21px; margin-top: 2em; color: var(--text); }
.rechtstext h3 { font-size: 17px; margin-top: 1.5em; color: var(--text); }
.leer { max-width: 620px; margin: 0 auto; padding: 120px 16px; text-align: center; }
.leer.klein { padding: 40px 16px; }
.laden { display: grid; place-items: center; padding: 120px 0; }
.laden.klein { padding: 20px 0; }
.laden span { width: 32px; height: 32px; border: 3px solid var(--flaeche-3); border-top-color: var(--akzent); border-radius: 50%; animation: drehen .8s linear infinite; }
@keyframes drehen { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ Dialoge & Meldungen */
.dialog-hintergrund { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.7); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .2s; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.dialog-hintergrund.sichtbar { opacity: 1; }
.dialog { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-gross); padding: 28px; transform: translateY(10px); transition: transform .2s; }
.dialog-hintergrund.sichtbar .dialog { transform: none; }
.dialog-breit { max-width: 640px; }
.dialog h2 { padding-right: 32px; }
.dialog-zu { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 8px; border: 0; background: var(--flaeche-2); cursor: pointer; display: grid; place-items: center; z-index: 2; }
.dialog-frage { font-size: 17px; padding-right: 30px; margin-bottom: 22px; }
.dialog-video { max-width: min(1200px, 100%); padding: 0; background: #000; overflow: hidden; }
.dialog-video .dialog-zu { background: rgba(0,0,0,.6); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; transition: .25s; background: var(--flaeche-3); border: 1px solid #3a3a3a; color: var(--text); padding: 12px 18px; border-radius: 10px; font-size: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.4); max-width: calc(100vw - 32px); }
.toast.sichtbar { transform: translate(-50%, 0); opacity: 1; }
.toast-erfolg { border-color: rgba(79,191,127,.5); }
.toast-fehler { border-color: rgba(229,83,75,.6); }

/* ------------------------------------------------------------ Fuß */
.fuss { border-top: 1px solid var(--linie); margin-top: 40px; }
.fuss-innen { max-width: var(--breite); margin: 0 auto; padding: 44px var(--rand) 20px; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.fuss .leise { font-size: 14px; margin-top: 12px; }
.fuss-links { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 40px; align-content: start; }
.fuss-links a { text-decoration: none; color: var(--leise); font-size: 14px; }
.fuss-links a:hover { color: var(--text); }
.fuss-zeile { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand) 32px; font-size: 13px; }

/* ------------------------------------------------------------ Responsiv */
@media (max-width: 1100px) {
  .kurs-raster { grid-template-columns: 1fr; gap: 0; }
  .theater { grid-template-columns: 1fr; }
  .theater-liste { max-height: 420px; border-left: 0; border-top: 1px solid var(--linie); }
  .theater-video .video-rahmen { max-height: none; }
}
@media (max-width: 860px) {
  .hauptnav { position: fixed; inset: var(--kopf-hoehe) 0 auto; background: rgba(10,10,10,.98); flex-direction: column; gap: 0; padding: 8px var(--rand) 20px; border-bottom: 1px solid var(--linie);
    transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, transform .2s, visibility 0s .2s; }
  .hauptnav a { padding: 14px 0; border-bottom: 1px solid var(--linie); font-size: 17px; }
  .hauptnav a.aktiv { border-color: var(--linie); color: var(--akzent); }
  .menue-offen .hauptnav { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .2s, transform .2s; }
  .menue-offen .kopf { background: rgba(10,10,10,.98); }
  .menue-knopf { display: block; }
  .kopf-innen { gap: 14px; }
  .kopf-rechts { gap: 12px; }
  .kopf-rechts .knopf { display: none; }
  .admin { grid-template-columns: 1fr; }
  .admin-nav { position: static; display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; margin: 0 calc(var(--rand) * -1); padding: 0 var(--rand); }
  .admin-nav a { white-space: nowrap; }
  .tabelle { display: block; overflow-x: auto; white-space: nowrap; }
}
@media (max-width: 600px) {
  :root { --kopf-hoehe: 60px; }
  body { font-size: 15.5px; }
  .held { min-height: 78vh; }
  .held-verlauf { background: linear-gradient(to top, var(--bg) 0%, rgba(10,10,10,.75) 45%, rgba(10,10,10,.25) 100%); }
  .held .knopfreihe .knopf { flex: 1; }
  .reihe-scroll { grid-auto-columns: 62vw; gap: 12px; }
  .reihe-quer { grid-auto-columns: 82vw; }
  .raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .raster-quer { grid-template-columns: 1fr; }
  .karte-text { padding: 12px; }
  .karte-text h3 { font-size: 16px; }
  .paket { grid-template-columns: 1fr; }
  .paket-bild { min-height: 150px; }
  .feldreihe { grid-template-columns: 1fr; }
  .lektion-info-kopf .knopfreihe { width: 100%; }
  .lektion-info-kopf .knopfreihe .knopf { flex: 1; }
  .block { padding: 20px; }
  .dialog { padding: 22px; }
  .antworten { grid-template-columns: 1fr auto; }
  .antworten .avatar { display: none; }
  .fuss-links { grid-template-columns: 1fr 1fr; gap: 8px 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; } }
@media (display-mode: standalone) { .kopf { padding-top: env(safe-area-inset-top); height: calc(var(--kopf-hoehe) + env(safe-area-inset-top)); } }

/* Feinschliff */
[hidden] { display: none !important; }
.held .cover-platzhalter span { display: none; }

/* ------------------------------------------------------------ Quiz */
.quiz { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--linie); max-width: 820px; }
.quiz-kopf { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 22px; }
.quiz-kopf h2 { margin-bottom: 6px; }
.quiz-kopf .leise { margin: 0; font-size: 14px; }
.quiz-stand { text-align: center; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: 10px 16px; display: grid; flex: none; }
.quiz-stand b { font: 700 24px/1.1 var(--titel); color: var(--akzent); }
.quiz-stand span { font-size: 12px; color: var(--leise); }
.quiz-frage { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-gross); padding: 22px; margin-bottom: 14px; transition: border-color .2s; }
.quiz-frage.ist-richtig { border-color: rgba(79,191,127,.45); }
.quiz-frage.ist-falsch { border-color: rgba(229,83,75,.45); }
.quiz-nr { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--leise); margin: 0 0 6px; font-weight: 600; }
.quiz-frage h3 { font-size: 18px; line-height: 1.35; margin-bottom: 16px; }
.quiz-antworten { display: grid; gap: 8px; }
.quiz-antwort { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--linie); background: var(--flaeche-2); cursor: pointer; font-size: 15px; transition: border-color .15s, background .15s; }
.quiz-antwort:not([disabled]):hover { border-color: var(--akzent); background: var(--flaeche-3); }
.quiz-antwort[disabled] { cursor: default; }
.quiz-zeichen { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1px solid #3a3a3a; font-size: 12px; font-weight: 700; color: var(--leise); }
.quiz-zeichen .icon { width: 15px; height: 15px; stroke-width: 2.4; }
.quiz-antwort.richtig { border-color: rgba(79,191,127,.6); background: rgba(79,191,127,.1); }
.quiz-antwort.richtig .quiz-zeichen { background: var(--gruen); border-color: var(--gruen); color: #07150d; }
.quiz-antwort.falsch { border-color: rgba(229,83,75,.6); background: rgba(229,83,75,.1); }
.quiz-antwort.falsch .quiz-zeichen { background: var(--rot); border-color: var(--rot); color: #fff; }
.quiz-antwort.aus { opacity: .5; }
.quiz-erklaerung { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--flaeche-2); font-size: 14.5px; color: rgba(255,255,255,.85); }
.ist-richtig .quiz-erklaerung b { color: #8fe0b1; }
.ist-falsch .quiz-erklaerung b { color: #ff8a80; }
.quiz-fazit { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 18px; border-radius: 12px; border: 1px dashed var(--linie); }
.quiz-fazit p { margin: 0; }
.quiz-marke { font-style: normal; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--leise); border: 1px solid var(--linie); border-radius: 4px; padding: 1px 5px; margin-left: 6px; vertical-align: 1px; }
/* Quiz-Editor in der Verwaltung */
.quiz-bereich { border: 1px solid var(--linie); border-radius: 12px; padding: 12px 14px 16px; display: grid; gap: 12px; }
.quiz-bereich legend { padding: 0 6px; color: var(--leise); font-size: 13px; }
#quiz-editor { display: grid; gap: 12px; justify-items: start; }
.quiz-edit { width: 100%; background: var(--flaeche-2); border-radius: 10px; padding: 12px; display: grid; gap: 8px; }
.quiz-edit .admin-kopf { margin: 0; }
.quiz-edit-antworten { display: grid; gap: 6px; justify-items: start; }
.quiz-edit-antwort { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; width: 100%; }
.quiz-richtig { display: block !important; cursor: pointer; }
.quiz-richtig input { position: absolute; opacity: 0; }
.quiz-richtig span { display: block; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #444; }
.quiz-richtig input:checked + span { border-color: var(--gruen); background: radial-gradient(circle, var(--gruen) 45%, transparent 50%); }
.quiz-richtig input:focus-visible + span { outline: 2px solid var(--akzent); outline-offset: 2px; }
@media (max-width: 600px) { .quiz-frage { padding: 16px; } .quiz-kopf { flex-direction: column; } }

.fuss-knopf { background: none; border: 0; padding: 0; text-align: left; color: var(--leise); font-size: 14px; cursor: pointer; grid-column: 1 / -1; }
.fuss-knopf:hover { color: var(--text); }

/* Übersetzungen in der Verwaltung */
.uebersetzungen { border: 1px solid var(--linie); border-radius: 12px; padding: 12px 14px; }
.uebersetzungen summary, .quiz-ue summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.uebersetzungen[open] { display: grid; gap: 12px; }
.uebersetzungen[open] summary { margin-bottom: 4px; }
.ue-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.ue-sprache { display: grid; gap: 12px; }
.quiz-ue[open] { display: grid; gap: 8px; }
.quiz-ue .ue-sprache { gap: 6px; }

/* ------------------------------------------------------------ Sprachwahl */
.sprachwahl { display: flex; align-items: center; gap: 0; margin: 16px 0 0 -8px; }
.sprach-knopf { background: none; border: 0; padding: 6px 8px; min-width: 34px; border-radius: 6px; color: var(--leise); font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .04em; cursor: pointer; }
.sprach-trenner { color: var(--leise); opacity: .5; font-size: 13px; }
.sprach-knopf:hover { color: var(--text); background: var(--flaeche-2); }
.sprach-knopf.aktiv { color: var(--akzent); }
.sprach-knopf:focus-visible { outline: 2px solid var(--akzent); outline-offset: 1px; }
.nutzer-sprache { display: flex; gap: 2px; padding: 6px 6px; margin: 6px 0; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.nutzer-liste .nutzer-sprache .sprach-knopf { display: inline-block; width: auto; flex: 1; text-align: center; padding: 6px 4px; font-size: 13px; }
.hinweis-sprache { margin: 0 0 28px; padding: 12px 16px; border: 1px solid var(--linie); border-left: 3px solid var(--akzent); border-radius: 8px; background: var(--flaeche); color: var(--text); font-size: 15px; }

/* ------------------------------------------------------------ Wartungsmodus */
.wartung { min-height: calc(100vh - var(--kopf-hoehe) - 160px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px var(--rand); max-width: 640px; margin: 0 auto; }
.wartung h1 { font-size: clamp(32px, 5vw, 52px); margin: 0 0 18px; }
.wartung-marke { width: 72px; height: 72px; border-radius: 16px; margin-bottom: 28px; animation: wartung-puls 2.4s ease-in-out infinite; }
.wartung-text { font-size: 18px; color: rgba(255,255,255,.8); margin: 0 0 14px; }
.wartung-nachricht { margin: 8px 0 14px; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--linie); background: var(--flaeche-2, rgba(255,255,255,.04)); white-space: pre-line; }
.wartung-zeit { color: var(--akzent); font-weight: 600; margin: 6px 0 0; }
.wartung-links { margin-top: 36px; font-size: 14px; }
@keyframes wartung-puls { 50% { transform: scale(1.08); opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .wartung-marke { animation: none; } }
body.im-wartung .hauptnav, body.im-wartung #kopf-rechts, body.im-wartung .menue-knopf { display: none; }
.wartung-leiste { position: fixed; left: 16px; bottom: 16px; z-index: 90; background: var(--akzent-flaeche); color: var(--akzent-tinte); font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: 999px; box-shadow: 0 8px 30px rgba(0,0,0,.45); max-width: calc(100vw - 32px); text-align: center; }
.wartung-leiste a { color: inherit; text-decoration: underline; margin-left: 6px; }

/* ------------------------------------------------------------ Willkommen (Startseite für Gäste) */
.willkommen { position: relative; overflow: hidden; isolation: isolate; min-height: min(86vh, 900px); display: flex; align-items: center;
  background: radial-gradient(70% 90% at 85% 40%, rgba(229,72,77,.16), transparent 60%), var(--bg); }
.willkommen-blende { position: absolute; z-index: -1; right: calc(var(--rand) * -1); top: 50%; translate: 0 -50%; width: min(46vw, 760px); height: auto; opacity: .1; pointer-events: none; }
.willkommen-inhalt { width: 100%; max-width: var(--breite); margin: 0 auto; padding: calc(var(--kopf-hoehe) + 60px) var(--rand) 72px; }
.willkommen-inhalt > * { max-width: 760px; }
.willkommen h1 { font-size: clamp(38px, 5.6vw, 84px); margin-bottom: 18px; text-wrap: balance; }
.willkommen .held-unter { margin-bottom: 30px; }
.willkommen-schritte { list-style: none; counter-reset: schritt; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 920px; }
.willkommen-schritte li { counter-increment: schritt; display: grid; gap: 4px; padding-top: 16px; border-top: 1px solid var(--linie); font-size: 14.5px; }
.willkommen-schritte li::before { content: counter(schritt, decimal-leading-zero); font: 600 12px/1 var(--titel); letter-spacing: .14em; color: var(--akzent); margin-bottom: 6px; }
.willkommen-schritte span { color: var(--leise); }
.willkommen-schritte li.erledigt::before { content: '✓'; font-size: 14px; }
.willkommen-schritte li.erledigt b { color: var(--leise); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.3); }
.reihen-ohne-held { margin-top: 0; }
@media (max-width: 760px) {
  .willkommen-schritte { grid-template-columns: 1fr; gap: 14px; margin-top: 36px; }
  .willkommen-blende { width: 110vw; right: -40vw; opacity: .07; }
  .willkommen .knopfreihe .knopf { flex: 1; }
}

/* ------------------------------------------------------------ Eigener Video-Player */
.ffp { position: absolute; inset: 0; background: #000; overflow: hidden; outline: none; user-select: none; -webkit-user-select: none; color: #fff; }
.ffp-video, .ffp-video .player-ziel, .ffp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ffp-video iframe { pointer-events: none; }
.ffp-schild { position: absolute; inset: 0; cursor: pointer; }
.ffp-touch:not(.ffp-gestartet) .ffp-schild { clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, 35% 30%, 35% 70%, 65% 70%, 65% 30%, 35% 30%); }
.ffp-touch:not(.ffp-gestartet) .ffp-video iframe { pointer-events: auto; }
.ffp-start, .ffp-pause, .ffp-ende, .ffp-laedt { position: absolute; inset: 0; display: none; place-items: center; }
.ffp[data-zustand=start] .ffp-start { display: grid; cursor: pointer; background: #000 center / cover no-repeat; }
.ffp-start::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,.15) 60%); }
.ffp-touch[data-zustand=start] .ffp-start { pointer-events: none; }
.ffp[data-zustand=pause] .ffp-pause { display: grid; cursor: pointer;
  background: linear-gradient(to bottom, rgba(0,0,0,.85) 0, rgba(0,0,0,.35) 22%, rgba(0,0,0,.35) 62%, rgba(0,0,0,.9) 100%); }
.ffp-gross { position: relative; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.22); transition: transform .15s, background .15s; }
.ffp-gross svg { width: 36px; height: 36px; margin-left: 4px; }
.ffp-start:hover .ffp-gross, .ffp-pause:hover .ffp-gross { transform: scale(1.06); background: var(--akzent-flaeche); border-color: transparent; }
.ffp[data-zustand=laedt] .ffp-laedt { display: grid; pointer-events: none; }
.ffp-laedt span { width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; animation: ffp-dreh .8s linear infinite; }
@keyframes ffp-dreh { to { transform: rotate(360deg); } }
.ffp[data-zustand=ende] .ffp-ende { display: grid; align-content: center; justify-items: center; gap: 18px; background: #000 center / cover no-repeat; padding: 24px; text-align: center; }
.ffp-ende::before { content: ''; position: absolute; inset: 0; background: rgba(5,5,5,.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ffp-ende > * { position: relative; }
.ffp-ende-titel { margin: 0; font: 700 clamp(20px, 2.4vw, 30px)/1.2 var(--titel); }
.ffp-ende .knopf svg { width: 18px; height: 18px; }
.ffp-leiste { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px clamp(10px, 2vw, 22px) clamp(6px, 1.2vw, 14px);
  background: linear-gradient(to top, rgba(0,0,0,.8), transparent); opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; pointer-events: none; }
.ffp-aktiv:not([data-zustand=start]):not([data-zustand=ende]) .ffp-leiste, .ffp:focus-visible:not([data-zustand=start]) .ffp-leiste, .ffp:has(.ffp-leiste :focus-visible):not([data-zustand=start]) .ffp-leiste { opacity: 1; transform: none; pointer-events: auto; }
.ffp[data-zustand=spielt]:not(.ffp-aktiv) { cursor: none; }
.ffp-zeitleiste { position: relative; height: 16px; display: flex; align-items: center; margin-bottom: 4px; cursor: pointer; }
.ffp-zeitleiste::before, .ffp-geladen, .ffp-gespielt { content: ''; position: absolute; left: 0; height: 4px; border-radius: 2px; transition: height .12s; }
.ffp-zeitleiste::before { right: 0; background: rgba(255,255,255,.22); }
.ffp-geladen { background: rgba(255,255,255,.35); width: 0; }
.ffp-gespielt { background: var(--akzent); width: 0; }
.ffp-zeitleiste:hover::before, .ffp-zeitleiste:hover .ffp-geladen, .ffp-zeitleiste:hover .ffp-gespielt { height: 6px; }
.ffp input[type=range] { -webkit-appearance: none; appearance: none; background: transparent; margin: 0; cursor: pointer; }
.ffp-zeitleiste input { position: absolute; inset: 0; width: 100%; height: 100%; }
.ffp input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.ffp input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
.ffp input[type=range]::-moz-range-track { background: transparent; }
.ffp-knoepfe { display: flex; align-items: center; gap: clamp(2px, .6vw, 8px); }
.ffp-knoepfe button { background: none; border: 0; color: #fff; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; cursor: pointer; padding: 0; }
.ffp-knoepfe button:hover { background: rgba(255,255,255,.12); }
.ffp-knoepfe button svg { width: 24px; height: 24px; }
.ffp-knoepfe .ffp-tempo { width: auto; padding: 0 10px; font: 600 14px/1 var(--schrift); }
.ffp-ton { display: flex; align-items: center; }
.ffp-ton input { width: 0; opacity: 0; transition: width .2s, opacity .2s; height: 4px; border-radius: 2px;
  background: linear-gradient(to right, #fff var(--wert, 100%), rgba(255,255,255,.3) var(--wert, 100%)); }
.ffp-ton:hover input, .ffp-ton:focus-within input { width: 80px; opacity: 1; margin: 0 6px; }
.ffp-zeit { font: 500 13.5px/1 var(--schrift); font-variant-numeric: tabular-nums; color: rgba(255,255,255,.9); margin-left: 6px; white-space: nowrap; }
.ffp-platz { flex: 1; }
.ffp-fenster { position: fixed; inset: 0; z-index: 300; }
.ffp:fullscreen { width: 100vw; height: 100vh; }
@media (max-width: 600px) {
  .ffp-knoepfe [data-a=zurueck], .ffp-knoepfe [data-a=vor] { display: none; }
  .ffp-ton input { display: none; }
  .ffp-gross { width: 64px; height: 64px; } .ffp-gross svg { width: 28px; height: 28px; }
}

/* ------------------------------------------------------------ Feinschliff (11/2026) */
/* Platzhalter-Cover: Die Kategorie steht schon unter dem Titel; oben rechts kollidiert sie mit Preis-/Status-Schild */
.karte .cover-platzhalter span { display: none; }

/* Überschriften ausgewogen umbrechen, Absätze ohne Schusterjungen */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* Zahlen in Preisen, Dauer und Fortschritt springen nicht */
.schild, .karte-meta, .karte-fortschritt span, .preis, .preis-alt, #kursbalken span, .kennzahl, td { font-variant-numeric: tabular-nums; }

/* Browserflächen aus der Palette */
html { scrollbar-color: var(--flaeche-3) var(--bg); }
input, textarea { caret-color: var(--akzent); }
::placeholder { color: #8a8a8a; opacity: 1; }

/* Waagerechte Chip-Leisten: weich ausblenden statt hart abschneiden, damit man sieht, dass es weitergeht */
.chips-scroll {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--rand), #000 calc(100% - var(--rand) - 24px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 var(--rand), #000 calc(100% - var(--rand) - 24px), transparent 100%);
  scroll-padding-inline: var(--rand);
}

/* Handy: Suchfeld über die volle Breite */
@media (max-width: 600px) { .suchfeld { width: 100%; } }

/* Schmale Bildschirme: Titel und „Nächste Lektion“ direkt unter das Video, die Lektionsliste danach */
@media (max-width: 1100px) {
  .seite:has(> .theater) { display: flex; flex-direction: column; }
  .seite:has(> .theater) > .theater { display: contents; }
  .seite:has(> .theater) .theater-video { order: 1; background: #000; }
  .seite:has(> .theater) > .lektion-info { order: 2; }
  .seite:has(> .theater) .theater-liste { order: 3; border-bottom: 1px solid var(--linie); }
}

/* ------------------------------------------------------------ Zertifikat */
.zertifikat-seite { padding: clamp(28px, 5vw, 64px) var(--rand) 72px; max-width: 1240px; margin: 0 auto; }
.zertifikat-kopf { display: flex; gap: 20px 32px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 32px; }
.zertifikat-kopf h1 { font-size: clamp(28px, 3.4vw, 44px); margin-bottom: 8px; }
.zertifikat-kopf p { margin: 0; max-width: 56ch; }
.zertifikat-echt { justify-content: flex-start; align-items: center; }
.echt-haken { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(79,191,127,.16); color: #8fe0b1; flex: none; }
.echt-haken .icon { width: 26px; height: 26px; }
.zertifikat-fuss { margin: 24px 0 0; text-align: center; }
.zertifikat-fuss a { text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

/* Das Blatt: A4 quer, Maße relativ zur Breite (cqi), damit Bildschirm und PDF gleich aussehen */
.zertifikat-buehne { container-type: inline-size; }
.zertifikat {
  --papier: #f7f5f0; --tinte: #141414; --tinte-leise: #5b5852; --haarlinie: #d9d4c9;
  position: relative; overflow: hidden; aspect-ratio: 297 / 210; width: 100%;
  background: var(--papier); color: var(--tinte); border-radius: 6px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7), 0 2px 6px rgba(0,0,0,.4);
  padding: 6.4cqi 7cqi 5.4cqi; display: grid; grid-template-rows: auto 1fr auto;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
/* feiner Innenrahmen wie bei einer Urkunde */
.zertifikat::before { content: ''; position: absolute; inset: 2.2cqi; border: 1px solid var(--haarlinie); pointer-events: none; }
.zertifikat-blende { position: absolute; width: 50cqi; height: 50cqi; right: -15cqi; top: 4cqi; overflow: hidden; pointer-events: none; }
.zertifikat-oben { display: flex; align-items: center; justify-content: space-between; position: relative; }
.zertifikat-logo { height: 3.1cqi; width: auto; }
.zertifikat-art { font: 700 1.25cqi/1 var(--titel); letter-spacing: .32em; text-transform: uppercase; color: var(--akzent-flaeche); }
.zertifikat-mitte { align-self: center; position: relative; }
.zertifikat-satz { font-size: 1.75cqi; color: var(--tinte-leise); margin: 0; line-height: 1.4; }
.zertifikat-name { font: 700 5.6cqi/1.05 var(--titel); letter-spacing: -0.025em; margin: 1.1cqi 0 2.2cqi; text-wrap: balance; }
.zertifikat-kurs { font: 650 3.3cqi/1.12 var(--titel); letter-spacing: -0.015em; margin: .8cqi 0 1.2cqi; max-width: 70%; text-wrap: balance; }
.zertifikat-kurs::before { content: ''; display: block; width: 4.2cqi; height: .3cqi; background: var(--akzent-flaeche); margin-bottom: 1.6cqi; }
.zertifikat-unten { display: flex; align-items: flex-end; justify-content: space-between; gap: 4cqi; position: relative; border-top: 1px solid var(--haarlinie); padding-top: 2cqi; }
.zertifikat-unten dl { display: flex; gap: 4.2cqi; margin: 0; }
.zertifikat-unten dt { font-size: 1.05cqi; letter-spacing: .14em; text-transform: uppercase; color: var(--tinte-leise); margin-bottom: .5cqi; }
.zertifikat-unten dd { margin: 0; font-size: 1.55cqi; font-weight: 600; font-variant-numeric: tabular-nums; }
.zertifikat-pruefen { text-align: right; display: grid; gap: .35cqi; }
.zertifikat-pruefen span { font-size: 1.05cqi; letter-spacing: .14em; text-transform: uppercase; color: var(--tinte-leise); }
.zertifikat-pruefen b { font: 600 1.7cqi/1 var(--schrift); letter-spacing: .16em; font-variant-numeric: tabular-nums; }
.zertifikat-pruefen small { font-size: 1.05cqi; color: var(--tinte-leise); }

/* Lektionsseite: Kurs geschafft */
.kurs-fertig { display: flex; align-items: center; gap: 18px 22px; flex-wrap: wrap; margin: 28px 0; padding: 22px 24px; border-radius: var(--radius-gross);
  background: linear-gradient(120deg, rgba(229,72,77,.16), rgba(229,72,77,.04) 60%); border: 1px solid rgba(229,72,77,.3);
  animation: fertig-ein .6s cubic-bezier(.16,1,.3,1) both; }
.kurs-fertig > div { flex: 1 1 260px; }
.kurs-fertig h2 { margin: 0 0 4px; font-size: 22px; }
.kurs-fertig p { margin: 0; }
.kurs-fertig-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--akzent-flaeche); color: #fff; flex: none; }
.kurs-fertig-icon .icon { width: 24px; height: 24px; }
@keyframes fertig-ein { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* Drucken / „Als PDF speichern“: nur das Blatt, randlos auf A4 quer */
@media print {
  @page { size: A4 landscape; margin: 0; }
  body.druck-zertifikat { background: #fff; display: block; min-height: 0; }
  body.druck-zertifikat .kopf, body.druck-zertifikat .fuss, body.druck-zertifikat .zertifikat-kopf,
  body.druck-zertifikat .zertifikat-fuss, body.druck-zertifikat #wartung-leiste, body.druck-zertifikat .toast,
  body.druck-zertifikat .sprunglink { display: none !important; }
  body.druck-zertifikat main { padding: 0 !important; }
  body.druck-zertifikat .zertifikat-seite { padding: 0; max-width: none; }
  body.druck-zertifikat .zertifikat-buehne { width: 297mm; }
  body.druck-zertifikat .zertifikat { width: 297mm; height: 210mm; border-radius: 0; box-shadow: none; break-inside: avoid; }
}
