/* UPSALE ACADEMY Lernplattform. Dunkel, ruhig, ein Akzent (Rot der Marke). Schrift: Figtree, selbst gehostet. */
@font-face { font-family: Figtree; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/static/fonts/figtree-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Figtree; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/static/fonts/figtree-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --schwarz: #0a0a0a; --flaeche: #131313; --flaeche-2: #1c1c1c; --linie: #292929; --linie-hell: #3d3d3d;
  --text: #f5f5f5; --leise: #a6a6a6; --rot: #8b0000; --rot-hell: #b81414; --rot-glut: #ef5350; --gruen: #46c08a;
  --radius: 14px; --radius-klein: 9px; --breite: 1180px; --schnell: 160ms; --ruhig: 260ms cubic-bezier(.2, .7, .2, 1);
  /* Der Pinselstrich der Marke (wie auf der Website), als Bild in der Stildatei: Die strenge CSP erlaubt data:-Bilder, aber keine style-Attribute. */
  --strich: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8.6C50 3.6 116 2.2 170 3.4c46 1 88 2.6 128 1.2' fill='none' stroke='%23b81414' stroke-width='3.5' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  color-scheme: dark;
}
@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--schwarz); color: var(--text);
  font: 400 16px/1.55 Figtree, system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 700; margin: 2.2rem 0 1rem; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 .8rem; }
a { color: inherit; text-decoration-color: var(--linie-hell); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--rot-glut); }
i { font-style: normal; color: var(--leise); font-variant-numeric: tabular-nums; }
code { font: .86em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--flaeche-2); padding: .1em .35em; border-radius: 5px; }
:focus-visible { outline: 2px solid var(--rot-glut); outline-offset: 2px; border-radius: 4px; }
.icon { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; vertical-align: -.22em; }
.leise { color: var(--leise); } .klein { font-size: .875rem; } .nowrap { white-space: nowrap; } .luecke { flex: 1; }
.nur-sr, .sprung:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprung:focus { position: fixed; top: 10px; left: 10px; z-index: 50; background: var(--text); color: var(--schwarz); padding: .5rem .9rem; border-radius: 8px; }
.vorzeile { margin: 0 0 .5rem; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rot-glut); }

/* Kopf und Fuß */
.kopf { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1.5rem; height: 64px; padding: 0 clamp(1rem, 3vw, 2rem);
  background: rgba(10, 10, 10, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--linie); }
.logo { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; flex: none; }
.logo img { display: block; height: 30px; width: auto; }
.logo span { font-size: .72rem; font-weight: 800; letter-spacing: .26em; color: var(--leise); padding-top: 3px; }
.logo.gross { margin-bottom: 1.8rem; } .logo.gross img { height: 44px; } .logo.gross span { font-size: .9rem; }
/* Die Navigation füllt die volle Höhe des Kopfes: So sitzt der rote Strich des aktiven Punkts genau auf der unteren Kante. */
.haupt-nav { display: flex; gap: .2rem; flex: 1; min-width: 0; align-self: stretch; overflow-x: auto; scrollbar-width: none; } .haupt-nav::-webkit-scrollbar { display: none; }
.haupt-nav a { display: flex; align-items: center; white-space: nowrap; padding: 0 .85rem; text-decoration: none; color: var(--leise); font-weight: 600; font-size: .95rem; outline-offset: -4px;
  transition: color var(--schnell), box-shadow var(--schnell); }
.haupt-nav a:hover { color: var(--text); }
.haupt-nav a[aria-current] { color: var(--text); box-shadow: inset 0 -2px 0 var(--rot-glut); }
.wer { display: flex; align-items: center; gap: .7rem; margin: 0 0 0 auto; flex: none; }
.kuerzel { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(140deg, var(--rot-hell), var(--rot)); font-size: .8rem; font-weight: 800;
  text-decoration: none; transition: box-shadow var(--schnell); }
.kuerzel:hover { box-shadow: 0 0 0 3px rgba(239, 83, 80, .35); }
.tab-leiste { display: none; }
main { flex: 1; width: 100%; max-width: var(--breite); margin: 0 auto; padding: clamp(1.4rem, 3vw, 2.6rem) clamp(1rem, 3vw, 2rem) 5rem; animation: auf var(--ruhig) both; }
@keyframes auf { from { opacity: 0; transform: translateY(8px); } }
.fuss { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; justify-content: center; padding: 1.4rem 1rem 2rem; border-top: 1px solid var(--linie); color: var(--leise); font-size: .85rem; }
.fuss a { text-decoration: none; } .fuss a:hover { color: var(--text); }

/* Knöpfe und Formulare */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .6rem 1.15rem; border: 1px solid var(--linie-hell); border-radius: 10px;
  background: var(--flaeche-2); color: var(--text); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform var(--schnell), background var(--schnell), border-color var(--schnell); }
.knopf:hover { border-color: #5a5a5a; background: #242424; } .knopf:active { transform: scale(.98); }
.knopf.primaer { background: linear-gradient(180deg, var(--rot-hell), var(--rot)); border-color: transparent; box-shadow: 0 6px 22px -8px rgba(184, 20, 20, .8); }
.knopf.primaer:hover { background: linear-gradient(180deg, #cf1c1c, #9c0505); }
.knopf.leise { background: transparent; color: var(--text); }
.knopf.klein { min-height: 34px; padding: .3rem .75rem; font-size: .875rem; border-radius: 8px; }
.knopf.breit { width: 100%; }
.knopf.gefahr { background: transparent; color: #ff8a80; border-color: #5b2320; } .knopf.gefahr:hover { background: #2a1210; }
.knopf[disabled] { opacity: .35; cursor: default; }
.formular { display: grid; gap: 1rem; }
.formular.reihe { grid-template-columns: 1fr auto; align-items: end; }
.feld { display: grid; gap: .35rem; font-weight: 600; font-size: .9rem; }
.feld small { font-weight: 400; color: var(--leise); }
input:not([type=range], [type=checkbox], [type=file]), select, textarea { width: 100%; min-height: 44px; padding: .6rem .8rem; border: 1px solid var(--linie-hell); border-radius: 10px;
  background: var(--schwarz); color: var(--text); font: inherit; font-weight: 400; transition: border-color var(--schnell); }
input:focus, select:focus, textarea:focus { border-color: var(--rot-glut); outline: none; }
textarea { resize: vertical; line-height: 1.5; }
input[type=file] { font: inherit; color: var(--leise); }
.haken { display: flex; align-items: center; gap: .6rem; font-size: .92rem; } .haken input { width: 18px; height: 18px; accent-color: var(--rot-hell); }
.hinweis { display: flex; gap: .6rem; align-items: flex-start; padding: .8rem 1rem; border: 1px solid var(--linie-hell); border-radius: 10px; background: var(--flaeche); font-size: .93rem; }
.hinweis.gut { border-color: #1f5c44; background: #0f1f19; } .hinweis.gut .icon { color: var(--gruen); }
.hinweis.fehler { border-color: #6d2622; background: #1f100f; }
.hinweis.test { border-color: #6b5a1c; background: #1c180b; display: block; }
.leer { padding: 1.4rem; border: 1px dashed var(--linie-hell); border-radius: var(--radius); color: var(--leise); text-align: center; }
.marke-klein { display: inline-flex; align-items: center; gap: .25rem; padding: .1rem .5rem; border: 1px solid var(--linie-hell); border-radius: 99px; font-size: .72rem; font-weight: 700; color: var(--leise); white-space: nowrap; vertical-align: middle; }
.marke-klein.gut { color: var(--gruen); border-color: #1f5c44; } .marke-klein.schlecht { color: #ff8a80; border-color: #6d2622; }

/* Fortschritt */
.balken { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 6px; border: 0; border-radius: 99px; background: var(--linie); overflow: hidden; }
.balken::-webkit-progress-bar { background: var(--linie); border-radius: 99px; }
.balken::-webkit-progress-value { background: linear-gradient(90deg, var(--rot), var(--rot-glut)); border-radius: 99px; }
.balken::-moz-progress-bar { background: linear-gradient(90deg, var(--rot), var(--rot-glut)); border-radius: 99px; }
.stand { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .7rem; font-size: .82rem; color: var(--leise); font-variant-numeric: tabular-nums; }
.ring { position: relative; width: 124px; height: 124px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring-spur { stroke: var(--linie); }
.ring-wert { stroke: var(--rot-glut); stroke-linecap: round; transition: stroke-dasharray 900ms cubic-bezier(.2, .7, .2, 1); }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; grid-auto-flow: column; gap: .2rem; font-size: .9rem; color: var(--leise); }
.ring b { font-size: 1.9rem; font-weight: 800; color: var(--text); letter-spacing: -.03em; }

/* Bilder und gezeichnete Tafeln */
.bild { display: block; width: 100%; height: 100%; object-fit: cover; }
.tafel { position: relative; width: 100%; height: 100%; overflow: hidden; background: radial-gradient(120% 140% at 0% 0%, #5c0606 0%, #1a0505 46%, #0c0c0c 100%); }
.tafel::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 22px, rgba(255, 255, 255, .028) 22px 23px); }
.tafel span { position: absolute; right: 6%; bottom: -12%; font-size: clamp(4rem, 9vw, 7rem); font-weight: 900; letter-spacing: -.05em; line-height: 1; color: rgba(255, 255, 255, .1); }
.tafel-1 { background: radial-gradient(130% 150% at 100% 0%, #6b0a0a 0%, #1d0606 44%, #0c0c0c 100%); }
.tafel-2 { background: radial-gradient(120% 160% at 50% 120%, #7a0c0c 0%, #1a0606 50%, #0c0c0c 100%); }
.tafel-3 { background: linear-gradient(135deg, #171717 0%, #3d0707 60%, #6b0a0a 100%); }
.tafel-4 { background: radial-gradient(90% 120% at 20% 100%, #4a0606 0%, #141414 60%, #0c0c0c 100%); }

/* Anmeldung */
body.buehne { background: radial-gradient(60% 50% at 50% 0%, rgba(139, 0, 0, .28), transparent 70%), var(--schwarz); }
body.buehne main { display: grid; place-items: center; max-width: none; }
.tor { width: min(100%, 440px); padding: clamp(1.6rem, 4vw, 2.6rem); border: 1px solid var(--linie); border-radius: 20px; background: rgba(19, 19, 19, .86); box-shadow: 0 30px 80px -40px #000; }
.tor h1 { font-size: 1.8rem; margin-bottom: .7rem; } .tor .formular { margin: 1.4rem 0 1.2rem; }
.tor-rahmen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(2rem, 6vw, 5rem); align-items: center; width: min(100%, 1020px); }
.tor-zeile { margin: 0 0 1.6rem; font-size: clamp(1.5rem, 1rem + 1.8vw, 2.2rem); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
.tor-punkte { display: grid; gap: .8rem; list-style: none; margin: 0; padding: 0; color: #d0d0d0; }
.tor-punkte li { display: flex; gap: .7rem; align-items: flex-start; } .tor-punkte .icon { color: var(--rot-glut); margin-top: .18em; }
.meldung { max-width: 560px; margin: 8vh auto 0; text-align: center; } .meldung p { color: var(--leise); margin: 1rem 0 1.6rem; }
.postausgang { width: min(100%, 760px); align-self: start; }
.mail { margin-top: 1rem; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); overflow: hidden; }
.mail header { display: flex; flex-wrap: wrap; gap: .3rem 1rem; justify-content: space-between; padding: .8rem 1rem; border-bottom: 1px solid var(--linie); font-size: .9rem; }
.mail pre { margin: 0; padding: 1rem; white-space: pre-wrap; overflow-wrap: anywhere; font: .88rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: #d6d6d6; }
.mail a { color: var(--rot-glut); }

/* Seitenkopf, Auftakt und Kennzahlen (Start, Kurse, Fortschritt, Konto) */
.strich { position: relative; display: inline-block; padding-bottom: .3em; }
.strich::after { content: ''; position: absolute; inset: auto 0 0; height: .3em; background: var(--strich) no-repeat 0 100% / 100% 100%; animation: zeichnen 700ms 180ms cubic-bezier(.2, .7, .2, 1) both; }
@keyframes zeichnen { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
.unterzeile { margin: .9rem 0 0; max-width: 56ch; color: #cfcfcf; font-size: 1.05rem; }
.seitenkopf { margin-bottom: 1.8rem; }
.auftakt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.6rem 2.4rem; align-items: end; padding: clamp(1.4rem, 3vw, 2.4rem); margin-bottom: 1.6rem; border: 1px solid var(--linie); border-radius: 22px;
  background: radial-gradient(70% 170% at 0% 0%, rgba(139, 0, 0, .4), transparent 60%), radial-gradient(45% 120% at 100% 100%, rgba(139, 0, 0, .16), transparent 70%), var(--flaeche); }
.kennzahlen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin: 0; }
.kennzahl { display: grid; gap: .35rem; align-content: space-between; min-width: 128px; padding: .9rem 1rem; border: 1px solid rgba(255, 255, 255, .09); border-radius: var(--radius); background: rgba(10, 10, 10, .55); }
.kennzahl dt { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--leise); }
.kennzahl dd { margin: 0; color: var(--leise); font-size: .9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kennzahl b { margin-right: .1rem; font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--text); }

/* Übersicht */
.block h2:first-child { margin-top: 0; } .block { margin-top: 2.6rem; } .block .nach { margin: 1rem 0 0; }
.block-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; } .block-kopf h2 { margin: 0; }
.mehr { display: inline-flex; align-items: center; gap: .3rem; color: var(--leise); font-size: .92rem; font-weight: 700; text-decoration: none; white-space: nowrap; transition: color var(--schnell); }
.mehr:hover { color: var(--text); } .mehr .icon { transition: transform var(--schnell); } .mehr:hover .icon { transform: translateX(3px); }
/* Karten erscheinen kurz nacheinander. „backwards“ wirkt nur bis zum Ende der Bewegung, danach gilt wieder der eigene Stil (wichtig für das Anheben beim Überfahren). */
.fortsetzen > *, .kacheln > *, .kursliste > *, .module > * { animation: auf var(--ruhig) backwards; }
.fortsetzen > :nth-child(2), .kacheln > :nth-child(2), .kursliste > :nth-child(2), .module > :nth-child(2) { animation-delay: 50ms; }
.kacheln > :nth-child(3), .kursliste > :nth-child(3), .module > :nth-child(3) { animation-delay: 100ms; }
.kacheln > :nth-child(n+4), .kursliste > :nth-child(n+4), .module > :nth-child(n+4) { animation-delay: 150ms; }
.fortsetzen { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.2rem; }
.fortsetzen > :only-child { grid-column: 1 / -1; }
.weiter-karte { display: grid; grid-template-columns: minmax(120px, 42%) 1fr; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); overflow: hidden;
  text-decoration: none; transition: transform var(--ruhig), border-color var(--schnell); }
.weiter-karte:hover { transform: translateY(-3px); border-color: var(--linie-hell); }
.weiter-bild { position: relative; min-height: 150px; } .weiter-bild > .bild, .weiter-bild > .tafel { position: absolute; inset: 0; }
.weiter-karte.gross h3 { font-size: 1.2rem; }
.abspielen { position: absolute; inset: 0; display: grid; place-items: center; }
.abspielen .icon { width: 54px; height: 54px; padding: 15px; border-radius: 50%; background: rgba(10, 10, 10, .7); border: 1px solid rgba(255, 255, 255, .25); transition: transform var(--ruhig), background var(--schnell); }
.weiter-karte:hover .abspielen .icon { transform: scale(1.08); background: var(--rot-hell); }
.weiter-text { display: flex; flex-direction: column; justify-content: center; gap: .15rem; padding: 1.1rem 1.3rem; min-width: 0; }
.weiter-text h3 { margin-bottom: .2rem; } .weiter-text p { margin: 0; } .weiter-text .stand { margin-top: .7rem; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.2rem; }
.kachel { display: flex; flex-direction: column; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); overflow: hidden; text-decoration: none;
  transition: transform var(--ruhig), border-color var(--schnell), box-shadow var(--ruhig); }
.kachel:hover { transform: translateY(-4px); border-color: var(--linie-hell); box-shadow: 0 24px 50px -30px rgba(184, 20, 20, .55); }
.kachel-bild { position: relative; aspect-ratio: 16 / 9; overflow: hidden; } .kachel-bild > .bild { position: absolute; inset: 0; } /* Bild jeder Form füllt 16:9, die Karte bleibt gleich hoch */
.kachel-text { display: grid; gap: .5rem; padding: 1.1rem 1.2rem 1.3rem; } .kachel-text p { margin: 0; }
.kachel.gesperrt .bild, .kachel.gesperrt .tafel { filter: grayscale(1) brightness(.55); }
.sperre { position: absolute; inset: 0; display: grid; place-items: center; } .sperre .icon { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: rgba(10, 10, 10, .75); border: 1px solid var(--linie-hell); }
.schloss-zeile { display: flex; align-items: center; gap: .4rem; color: var(--leise); font-size: .9rem; font-weight: 600; }
.kachel-ecke { position: absolute; top: .7rem; left: .7rem; display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border: 1px solid #1f5c44; border-radius: 99px; background: rgba(10, 10, 10, .8);
  color: var(--gruen); font-size: .75rem; font-weight: 700; }

/* Kurse (breite Karten) */
.kursliste { display: grid; gap: 1rem; }
.kurs-zeile { display: grid; grid-template-columns: minmax(220px, 34%) minmax(0, 1fr); border: 1px solid var(--linie); border-radius: 18px; background: var(--flaeche); overflow: hidden; text-decoration: none;
  transition: transform var(--ruhig), border-color var(--schnell), box-shadow var(--ruhig); }
.kurs-zeile:hover { transform: translateY(-3px); border-color: var(--linie-hell); box-shadow: 0 26px 54px -34px rgba(184, 20, 20, .6); }
.kurs-zeile-bild { position: relative; min-height: 200px; } .kurs-zeile-bild > .bild, .kurs-zeile-bild > .tafel { position: absolute; inset: 0; }
.kurs-zeile-text { display: grid; gap: .55rem; align-content: center; min-width: 0; padding: clamp(1.1rem, 2.4vw, 1.8rem); } .kurs-zeile-text p { margin: 0; }
.kurs-zeile-text h2 { margin: 0; font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); }
.kurs-zeile-text .meta { color: var(--leise); font-size: .9rem; }
.kurs-zeile-text .beschreibung { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; max-width: 68ch; color: #cdcdcd; }
.kurs-zeile-text .unten { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: .4rem; }
.kurs-zeile.gesperrt .bild, .kurs-zeile.gesperrt .tafel { filter: grayscale(1) brightness(.55); }
.kurs-zeile:hover .knopf.primaer { background: linear-gradient(180deg, #cf1c1c, #9c0505); }

/* Kurs */
.pfad { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1.4rem; font-size: .88rem; color: var(--leise); }
.pfad a { text-decoration: none; } .pfad a:hover { color: var(--text); }
.kurs-kopf { display: flex; gap: 2rem; align-items: center; justify-content: space-between; padding: clamp(1.4rem, 3vw, 2.2rem); margin-bottom: 1.6rem; border: 1px solid var(--linie); border-radius: 20px;
  background: radial-gradient(80% 140% at 0% 0%, rgba(139, 0, 0, .34), transparent 62%), var(--flaeche); }
.kurs-text { min-width: 0; max-width: 100%; } .kurs-text .beschreibung { max-width: 62ch; margin: .9rem 0 0; color: #d0d0d0; }
.kurs-text .knopf { max-width: 100%; }
.eckdaten { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.1rem 0 1.3rem; padding: 0; }
.eckdaten li { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border: 1px solid rgba(255, 255, 255, .1); border-radius: 99px; background: rgba(10, 10, 10, .45); color: #d6d6d6; font-size: .86rem; font-variant-numeric: tabular-nums; }
.eckdaten .icon { width: 1em; height: 1em; color: var(--rot-glut); }
.kurs-text .knopf span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; max-width: 46ch; }
.sperrhinweis { max-width: 520px; }
.module, .lektionen, .admin-module, .admin-lektionen, .liste { list-style: none; margin: 0; padding: 0; }
.module { display: grid; gap: .7rem; }
.modul { border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); overflow: hidden; transition: border-color var(--schnell); }
.modul:hover { border-color: var(--linie-hell); }
summary { list-style: none; cursor: pointer; } summary::-webkit-details-marker { display: none; }
.modul summary { display: grid; grid-template-columns: auto 1fr auto auto; gap: .75rem 1rem; align-items: center; padding: 1rem 1.2rem; transition: background var(--schnell); }
.modul summary:hover { background: rgba(255, 255, 255, .025); }
/* Pfeil zum Auf- und Zuklappen, gezeichnet aus zwei Rändern. */
.modul summary::after { content: ''; grid-column: 4; grid-row: 1; width: 9px; height: 9px; margin: 0 .25rem .3rem; border-right: 2px solid var(--leise); border-bottom: 2px solid var(--leise); transform: rotate(45deg);
  transition: transform var(--schnell), margin var(--schnell); }
.modul details[open] summary::after { transform: rotate(-135deg); margin-bottom: -.2rem; }
.modul-balken { grid-column: 1 / -1; grid-row: 2; } .modul-balken .balken { height: 3px; }
.modul-nr { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; color: var(--rot-glut); font-variant-numeric: tabular-nums; min-width: 2ch; }
/* Modul mit Bild: kleines Kapitelbild, die Nummer liegt unten links darauf. */
.modul-bild { position: relative; display: block; width: 72px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
.modul-bild .bild { width: 100%; height: 100%; object-fit: cover; }
.modul-bild .modul-nr { position: absolute; left: 7px; bottom: 3px; font-size: 1.05rem; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); min-width: 0; }
.modul-titel { display: grid; gap: .1rem; min-width: 0; } .modul-titel b { font-size: 1.05rem; } .modul-titel small, .modul-stand small { color: var(--leise); font-size: .82rem; }
.modul-stand { display: flex; align-items: center; gap: .4rem; color: var(--leise); }
.modul.fertig .modul-stand { color: var(--gruen); } .modul.fertig .modul-stand small { color: var(--gruen); }
.modul.gesperrt .modul-nr, .modul.wartet .modul-nr { color: #555; }
.modul-text { margin: 0; padding: 0 1.2rem 1rem; color: var(--leise); font-size: .93rem; max-width: 70ch; }
.modul details[open] summary { border-bottom: 1px solid var(--linie); }
.lektionen { padding: .4rem; }
.lektion { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; padding: .62rem .8rem; border-radius: var(--radius-klein); text-decoration: none; transition: background var(--schnell); }
a.lektion:hover { background: var(--flaeche-2); }
.lektion > .icon { color: #5d5d5d; } .lektion.fertig > .icon { color: var(--gruen); } .lektion.begonnen > .icon { color: var(--rot-glut); }
.lektion.gesperrt { color: #6f6f6f; } .lektion.gesperrt i { color: #555; }
.lektion.aktuell { background: var(--flaeche-2); box-shadow: inset 3px 0 0 var(--rot-glut); }
.lektion-titel { min-width: 0; overflow-wrap: anywhere; }
.lektion-dauer { display: flex; align-items: center; gap: .5rem; color: var(--leise); font-size: .85rem; font-variant-numeric: tabular-nums; }
.art { display: inline-flex; } .art .icon { width: 1.05em; height: 1.05em; }

/* Lektion */
body.lernen main { max-width: 1480px; }
.lernraum { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.8rem; align-items: start; }
.lektion-kopf { margin: 1.3rem 0 1rem; } .lektion-kopf h1 { font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); }
.lektion-kopf .meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; margin: .6rem 0 0; color: var(--leise); font-size: .92rem; }
.lektion-leiste { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: 1rem 0; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.lektion-leiste form { margin: 0; }
.lektion-text { margin-top: 1.4rem; max-width: 70ch; color: #d9d9d9; font-size: 1.02rem; line-height: 1.7; overflow-wrap: anywhere; }
.lektion-text p { margin: 0 0 1rem; } .lektion-text > :last-child { margin-bottom: 0; }
.lektion-text h2 { margin: 1.8rem 0 .6rem; font-size: 1.2rem; color: var(--text); } .lektion-text h2:first-child { margin-top: 0; }
.lektion-text ul, .lektion-text ol { display: grid; gap: .35rem; margin: 0 0 1rem; padding-left: 1.35rem; }
.lektion-text li::marker { color: var(--rot-glut); font-weight: 700; }
.lektion-text strong { color: var(--text); font-weight: 700; }
.lektion-text a { color: var(--text); text-decoration-color: var(--rot-glut); }
/* Lektion zum Lesen: Der Text steht in einer eigenen Fläche, die Knöpfe folgen am Ende. */
.buehne-video.lesen { padding: clamp(1.2rem, 3vw, 2.6rem); border: 1px solid var(--linie); border-radius: 20px; background: var(--flaeche); }
.lesen .lektion-kopf { margin-top: 0; padding-bottom: 1.2rem; border-bottom: 1px solid var(--linie); }
.lesen .lektion-text { margin-top: 1.6rem; font-size: 1.06rem; }
.lesen .lektion-leiste { margin-top: 2rem; padding-bottom: 0; border-bottom: 0; }
.lesen .material { background: var(--schwarz); }
/* Materialien zum Herunterladen */
.materialien { margin-top: 1.8rem; } .materialien h2 { margin: 0 0 .8rem; font-size: 1.05rem; }
.materialien ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .7rem; list-style: none; margin: 0; padding: 0; }
.material { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .8rem 1rem; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche);
  text-decoration: none; transition: transform var(--ruhig), border-color var(--schnell), background var(--schnell); }
.material:hover { transform: translateY(-2px); border-color: var(--linie-hell); background: var(--flaeche-2); }
.material-art { display: grid; place-items: center; width: 44px; height: 52px; border-radius: 7px; background: linear-gradient(160deg, var(--rot-hell), var(--rot)); font-size: .64rem; font-weight: 800; letter-spacing: .04em; }
.material-text { display: grid; gap: .1rem; min-width: 0; } .material-text b { overflow-wrap: anywhere; line-height: 1.3; }
.material-text small { overflow: hidden; color: var(--leise); text-overflow: ellipsis; white-space: nowrap; }
.material > .icon { color: var(--leise); transition: color var(--schnell), transform var(--schnell); } .material:hover > .icon { color: var(--text); transform: translateY(2px); }
.kein-video { display: grid; place-items: center; gap: 1rem; aspect-ratio: 16 / 9; padding: 2rem; border: 1px dashed var(--linie-hell); border-radius: var(--radius); background: var(--flaeche); text-align: center; color: var(--leise); }
.kein-video .icon { width: 44px; height: 44px; color: #5d5d5d; } .kein-video p { max-width: 46ch; margin: 0; } .kein-video b { color: var(--text); }
.inhalt { position: sticky; top: 84px; max-height: calc(100vh - 104px); overflow: auto; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); scrollbar-width: thin; }
.inhalt-kopf { display: grid; gap: .5rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--linie); } .inhalt-kopf a { text-decoration: none; } .inhalt-kopf small { color: var(--leise); }
.inhalt-modul { border-bottom: 1px solid var(--linie); } .inhalt-modul:last-child { border: 0; }
.inhalt-modul summary { display: flex; justify-content: space-between; gap: .8rem; align-items: center; padding: .8rem 1.1rem; font-weight: 700; font-size: .93rem; }
.inhalt-modul summary:hover { background: var(--flaeche-2); } .inhalt-modul summary small, .inhalt-modul summary .icon { color: var(--leise); font-weight: 400; }
.lektionen.eng { padding: 0 .3rem .4rem; } .lektionen.eng .lektion { padding: .45rem .7rem; font-size: .9rem; gap: .6rem; }

/* Fortschritt */
.fortschritt-kurs { margin-top: 1.4rem; border: 1px solid var(--linie); border-radius: 18px; background: var(--flaeche); overflow: hidden; }
.fortschritt-kurs > header { display: flex; align-items: center; gap: 1.4rem; padding: clamp(1.1rem, 2.4vw, 1.6rem); border-bottom: 1px solid var(--linie); background: radial-gradient(60% 170% at 0% 0%, rgba(139, 0, 0, .24), transparent 65%); }
.fortschritt-kurs h2 { margin: 0 0 .3rem; font-size: 1.3rem; } .fortschritt-kurs h2 a { text-decoration: none; } .fortschritt-kurs h2 a:hover { text-decoration: underline; }
.fortschritt-kurs header p { margin: 0 0 .8rem; font-size: .92rem; }
.fortschritt-kurs .ring { width: 96px; height: 96px; } .fortschritt-kurs .ring b { font-size: 1.5rem; }
.fortschritt-module { list-style: none; margin: 0; padding: .4rem clamp(1.1rem, 2.4vw, 1.6rem) .8rem; }
.fortschritt-module li { display: grid; grid-template-columns: 2.4ch minmax(0, 1.2fr) minmax(90px, 1fr) 4ch; gap: .4rem .9rem; align-items: center; padding: .65rem 0; border-bottom: 1px solid var(--linie); font-size: .95rem; }
.fortschritt-module li:last-child { border: 0; }
.fortschritt-module .nr { color: var(--rot-glut); font-weight: 800; font-variant-numeric: tabular-nums; }
.fortschritt-module .zahl { color: var(--leise); font-size: .85rem; font-variant-numeric: tabular-nums; text-align: right; }
.fortschritt-module .fertig .zahl { color: var(--gruen); }
.fortschritt-module .wartet { color: #8a8a8a; } .fortschritt-module .wartet .nr { color: #555; }
.sperrzeit { display: inline-flex; align-items: center; gap: .35rem; color: var(--leise); font-size: .85rem; }
.verlauf { list-style: none; margin: 0; padding: 0; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); overflow: hidden; }
.verlauf li + li { border-top: 1px solid var(--linie); }
.verlauf a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .75rem 1rem; text-decoration: none; transition: background var(--schnell); }
.verlauf a:hover { background: var(--flaeche-2); }
.verlauf .icon.gut { color: var(--gruen); } .verlauf .icon.laeuft { color: var(--rot-glut); }
.verlauf-text { display: grid; min-width: 0; } .verlauf-text b { overflow-wrap: anywhere; } .verlauf-text small { color: var(--leise); }
.verlauf-zeit { display: grid; justify-items: end; font-size: .88rem; font-variant-numeric: tabular-nums; white-space: nowrap; } .verlauf-zeit small { color: var(--leise); }

/* Konto */
.konto-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; align-items: start; }
.konto-raster .liste li { background: var(--schwarz); } .konto-raster .liste form { margin: 0; }
.konto-raster input[readonly] { color: var(--leise); } .konto-raster .formular .knopf { justify-self: start; }

/* Player */
.player { container: player / inline-size; position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); background: #000; overflow: hidden; user-select: none; -webkit-user-select: none;
  box-shadow: 0 0 0 1px var(--linie), 0 40px 90px -50px #000; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.player:fullscreen { aspect-ratio: auto; width: 100vw; height: 100vh; border-radius: 0; }
.player-flaeche { position: absolute; inset: 0; display: grid; place-items: center; }
.player-mitte { display: grid; place-items: center; width: 84px; height: 84px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; background: rgba(10, 10, 10, .6); color: #fff; cursor: pointer;
  transition: transform var(--ruhig), background var(--schnell), opacity var(--schnell); }
.player-mitte .icon { width: 38px; height: 38px; } .player-mitte:hover { transform: scale(1.07); background: var(--rot-hell); }
.player.laeuft .player-mitte, .player.wartet .player-mitte, .player.zuende .player-mitte { opacity: 0; pointer-events: none; }
.player-lade { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.player-lade span { width: 46px; height: 46px; border: 3px solid rgba(255, 255, 255, .2); border-top-color: #fff; border-radius: 50%; animation: dreh 800ms linear infinite; }
@keyframes dreh { to { transform: rotate(360deg); } }
.player-fehler { position: absolute; inset: auto 1rem 5rem; margin: 0; padding: .8rem 1rem; border-radius: 10px; background: rgba(31, 16, 15, .95); border: 1px solid #6d2622; text-align: center; }
.player-weiter { position: absolute; inset: 0; display: grid; place-content: center; gap: .6rem; text-align: center; background: rgba(5, 5, 5, .86); padding: 1rem; }
.player-weiter p { margin: 0; } .player-weiter-titel { font-size: 1.25rem; font-weight: 800; margin-bottom: .6rem !important; }
.player-leiste { position: absolute; inset: auto 0 0; padding: 2.2rem .9rem .6rem; background: linear-gradient(transparent, rgba(0, 0, 0, .88)); transition: opacity var(--ruhig), transform var(--ruhig); }
.player.ruhig.laeuft .player-leiste { opacity: 0; transform: translateY(8px); pointer-events: none; } .player.ruhig.laeuft { cursor: none; }
.player-knoepfe { display: flex; align-items: center; gap: .15rem; margin-top: .3rem; }
.player-knoepfe button { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 .4rem; border: 0; border-radius: 8px; background: transparent; color: #fff; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; transition: background var(--schnell); }
.player-knoepfe button:hover { background: rgba(255, 255, 255, .14); } .player-knoepfe .icon { width: 22px; height: 22px; }
.player .aus { display: none; } .player.laeuft [data-akt=spielen] .an, .player.stumm [data-akt=stumm] .an { display: none; }
.player.laeuft [data-akt=spielen] .aus, .player.stumm [data-akt=stumm] .aus { display: block; }
.player-uhr { margin-left: .5rem; font-size: .85rem; font-variant-numeric: tabular-nums; color: #e6e6e6; white-space: nowrap; }
.player-tempo { min-width: 52px !important; font-variant-numeric: tabular-nums; }
.player input[type=range] { appearance: none; -webkit-appearance: none; height: 5px; margin: 0; border-radius: 99px; cursor: pointer; background: rgba(255, 255, 255, .25); }
.player-zeit { --p: 0%; --b: 0%; display: block; width: 100%; background: linear-gradient(to right, var(--rot-glut) var(--p), rgba(255, 255, 255, .5) var(--p), rgba(255, 255, 255, .5) var(--b), rgba(255, 255, 255, .22) var(--b)) !important; transition: height var(--schnell); }
.player-zeit:hover { height: 7px; }
.player-laut { --p: 100%; width: 74px; background: linear-gradient(to right, #fff var(--p), rgba(255, 255, 255, .25) var(--p)) !important; }
.player input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(239, 83, 80, .0); transition: box-shadow var(--schnell); }
.player input[type=range]:hover::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(239, 83, 80, .35); }
.player input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }

/* Listen, Karten, Tabellen (Konto und Verwaltung) */
.liste { display: grid; gap: .5rem; margin-bottom: 1rem; }
.liste li { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: center; padding: .8rem 1rem; border: 1px solid var(--linie); border-radius: var(--radius-klein); background: var(--flaeche); }
.liste li .stand { grid-column: 1 / -1; }
.karte { padding: 1.2rem; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); } .karte h2 { margin: 0 0 1rem; font-size: 1.05rem; } .karte h2:not(:first-child) { margin-top: 1.6rem; }
.zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; align-items: start; } .zwei.eng { gap: .9rem; }
.abstand { margin-bottom: .8rem; }
.tabelle-rahmen { overflow-x: auto; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); margin-bottom: 1.4rem; }
.tabelle { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tabelle th { text-align: left; padding: .7rem 1rem; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--leise); border-bottom: 1px solid var(--linie); white-space: nowrap; }
.tabelle td { padding: .7rem 1rem; border-bottom: 1px solid var(--linie); vertical-align: top; } .tabelle tr:last-child td { border-bottom: 0; }
.tabelle tbody tr:hover { background: rgba(255, 255, 255, .02); } .tabelle a { text-decoration: none; } .tabelle a:hover { color: var(--rot-glut); } .tabelle form { margin: 0; }
.admin { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 2rem; align-items: start; }
.admin-nav { position: sticky; top: 88px; display: grid; gap: .2rem; }
.admin-nav a { padding: .55rem .8rem; border-radius: 8px; text-decoration: none; color: var(--leise); font-weight: 600; } .admin-nav a:hover { background: var(--flaeche-2); color: var(--text); }
.admin-nav a[aria-current] { background: var(--flaeche-2); color: var(--text); box-shadow: inset 3px 0 0 var(--rot-glut); }
.admin-inhalt h1 { font-size: 1.8rem; margin-bottom: 1.2rem; } .admin-inhalt > .hinweis { margin-bottom: 1rem; }
.schnell { margin: 1.4rem 0 2rem; padding: 1.1rem 1.2rem; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); }
.schnell h2 { margin: 0 0 .3rem; font-size: 1.05rem; } .schnell-liste { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; } .schnell-liste form { margin: 0; }
.zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.zahlen div { display: grid; gap: .2rem; padding: 1rem 1.1rem; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); }
.zahlen b { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; } .zahlen span { color: var(--leise); font-size: .85rem; }
.admin-module { display: grid; gap: 1rem; margin-bottom: 1rem; }
.admin-modul-kopf { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; margin-bottom: .8rem; }
.admin-lektionen { margin-bottom: .9rem; border: 1px solid var(--linie); border-radius: var(--radius-klein); overflow: hidden; }
.admin-lektionen li { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; padding: .4rem .7rem; border-bottom: 1px solid var(--linie); font-size: .93rem; }
.admin-lektionen li:last-child { border: 0; } .admin-lektionen a { text-decoration: none; } .admin-lektionen a:hover { color: var(--rot-glut); }
.rechts { display: flex; gap: .4rem; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.pfeile { display: flex; gap: .2rem; margin: 0; } .pfeile .knopf { min-height: 30px; padding: .15rem .3rem; }
.bild-upload { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 1rem; align-items: start; }
.bild-vorschau { aspect-ratio: 16 / 9; border-radius: var(--radius-klein); overflow: hidden; border: 1px solid var(--linie); }
.bild-upload form { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; margin: 0; min-width: 0; } .bild-upload form .knopf { justify-self: start; }
.bild-upload .feld { grid-template-columns: minmax(0, 1fr); min-width: 0; } .bild-upload input[type=file] { width: 100%; min-width: 0; }
.suchzeile { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .8rem; } .suchzeile input { flex: 1; width: auto; min-width: 200px; } .suchzeile select { width: auto; }
.system { margin: 0 0 1.4rem; } .systemliste { display: grid; gap: .55rem; margin: .6rem 0 0; padding: 0; list-style: none; }
.systemliste li { display: flex; gap: .7rem; align-items: baseline; font-size: .92rem; } .systemliste .marke-klein { flex: 0 0 auto; min-width: 7.5em; text-align: center; }
.material-karte { margin-top: 1.2rem; } .material-karte .liste li { background: var(--schwarz); } .material-karte .liste a { text-decoration: none; } .material-karte .liste a:hover { color: var(--rot-glut); }
.material-karte input[type=file] { width: 100%; min-width: 0; }
.gefahrenzone { margin-top: 2.2rem; border-color: #5b2320; } .gefahrenzone h2 { color: #ff8a80; } .gefahrenzone form { margin: 0; }

/* Schmale Bildschirme */
/* Der Player richtet sich nach seiner eigenen Breite, nicht nach dem Bildschirm: So passt er auch in die schmale Vorschau der Verwaltung. */
@container player (max-width: 480px) { .player-laut, .player [data-akt=zurueck] { display: none; } .player-mitte { width: 64px; height: 64px; } .player-uhr { font-size: .78rem; } }
@container player (max-width: 300px) { .player [data-akt=vor] { display: none; } .player-knoepfe { gap: 0; } }
@media (max-width: 1000px) {
  .lernraum { grid-template-columns: 1fr; } .inhalt { position: static; max-height: none; }
  .admin { grid-template-columns: 1fr; gap: 1rem; } .admin-nav { position: static; display: flex; overflow-x: auto; padding-bottom: .3rem; } .admin-nav a { white-space: nowrap; }
  .auftakt { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 860px) {
  .tor-rahmen { grid-template-columns: 1fr; gap: 1.6rem; justify-items: center; } .tor-seite { width: min(100%, 440px); } .tor-seite .logo.gross { margin-bottom: 1.1rem; }
  .tor-zeile { margin: 0; font-size: 1.3rem; } .tor-punkte { display: none; }
}
@media (max-width: 760px) {
  .fortsetzen, .zwei, .konto-raster { grid-template-columns: 1fr; }
  .kurs-kopf { flex-direction: column-reverse; align-items: flex-start; gap: 1.2rem; } .ring { width: 96px; height: 96px; } .ring b { font-size: 1.5rem; }
  .kopf { gap: .5rem; height: 58px; } .logo img { height: 26px; }
  /* Am Telefon wandert die Navigation als Leiste an den unteren Rand (Daumenhöhe). Der Kopf zeigt nur noch Logo, Konto und Abmelden. */
  .haupt-nav { display: none; }
  .tab-leiste { position: fixed; inset: auto 0 0; z-index: 30; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: .3rem .4rem calc(.3rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--linie); background: rgba(12, 12, 12, .93); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .tab-leiste a { display: grid; justify-items: center; gap: .15rem; padding: .35rem .1rem; border-radius: 10px; color: var(--leise); font-size: .68rem; font-weight: 700; text-decoration: none; outline-offset: -2px; }
  .tab-leiste .icon { width: 22px; height: 22px; transition: color var(--schnell), transform var(--schnell); }
  .tab-leiste a[aria-current] { color: var(--text); } .tab-leiste a[aria-current] .icon { color: var(--rot-glut); transform: translateY(-1px); }
  body.innen { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .modul summary { grid-template-columns: auto 1fr auto; } .modul-stand { grid-column: 2 / -1; grid-row: 2; } .modul-balken { grid-row: 3; } .modul summary::after { grid-column: 3; }
  .formular.reihe { grid-template-columns: 1fr; } .bild-upload { grid-template-columns: 1fr; } .bild-vorschau { max-width: 220px; }
  .lektion-leiste .knopf { flex: 1; } .lektion-leiste form { flex: 1 1 100%; display: flex; } .lektion-leiste .luecke { display: none; }
  .kurs-zeile { grid-template-columns: 1fr; } .kurs-zeile-bild { min-height: 0; aspect-ratio: 16 / 9; }
  .kennzahlen { gap: .5rem; } .kennzahl { min-width: 0; padding: .7rem .75rem; align-content: start; } .kennzahl dt { font-size: .64rem; letter-spacing: .04em; }
  .kennzahl b { display: block; font-size: 1.45rem; } .kennzahl dd { font-size: .78rem; white-space: normal; }
  .fortschritt-kurs > header { align-items: flex-start; gap: 1rem; } .fortschritt-kurs .ring { width: 76px; height: 76px; } .fortschritt-kurs .ring b { font-size: 1.2rem; }
  .fortschritt-module li { grid-template-columns: 2.4ch minmax(0, 1fr) 4ch; } .fortschritt-module .balken, .fortschritt-module .sperrzeit { grid-column: 2 / -1; grid-row: 2; }
  .materialien ul { grid-template-columns: 1fr; }
}
@media (max-width: 340px) { .kopf .logo span { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; } html { scroll-behavior: auto; } @view-transition { navigation: none; } }
