/* Zwei Marken, je hell/dunkel. TRINITY: tiefes Nachtblau, Verlauf Himmelblau → Violett → Magenta, weiche Flares.
   GYMPOD: Anthrazit mit Petrol-Stich, Orange, breite schwere Versalien. Layout gleich, nur Tokens und Typo wechseln. */
:root {
  /* TRINITY dunkel als Grundwerte */
  --bg: #05051a;
  --surface: #0c0c2b;
  --surface-2: #14143a;
  --glass: linear-gradient(180deg, rgba(24,24,78,.62), rgba(10,10,40,.55));
  --ink: #f4f3fc;
  --muted: #a1a1c4;
  --line: rgba(150,150,235,.16);
  --line-strong: rgba(170,170,255,.28);
  --g1: #6ec1ff; --g2: #7d5cf2; --g3: #e2317c;
  --accent: #9b84ff;
  --ok: #5fe0a8; --ok-soft: rgba(95,224,168,.12);
  --warn: #f2b453; --warn-soft: rgba(242,180,83,.12);
  --flare-a: rgba(64,96,255,.30); --flare-b: rgba(226,49,124,.20); --flare-c: rgba(110,193,255,.12);
  --grid: rgba(140,140,255,.05);
  --btn-ink: #ffffff;
  --btn-bg: linear-gradient(100deg, var(--g1), var(--g2) 50%, var(--g3));
  --btn-glow: 0 8px 28px rgba(125,92,242,.35);
  --bar-bg: rgba(5,5,26,.72);
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 50px rgba(0,0,10,.45);
  --radius: 20px; --radius-s: 12px;
  --font-display: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --display-weight: 800; --display-case: none; --display-stretch: 100%; --display-track: -0.02em;
  color-scheme: dark;
}
:root[data-mode="light"] {
  --bg: #f5f5fc; --surface: #ffffff; --surface-2: #eeeefa;
  --glass: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78));
  --ink: #11112c; --muted: #5d5d82; --line: #e2e2f2; --line-strong: #cfcfea;
  --g1: #2d8de6; --g2: #6a49e4; --g3: #d61f6c; --accent: #6a49e4;
  --ok: #138a5b; --ok-soft: #e2f4ec; --warn: #a65f00; --warn-soft: #fbefd9;
  --flare-a: rgba(64,120,255,.14); --flare-b: rgba(214,31,108,.10); --flare-c: rgba(45,141,230,.08);
  --grid: rgba(90,90,180,.05);
  --btn-glow: 0 8px 22px rgba(106,73,228,.22);
  --bar-bg: rgba(255,255,255,.8);
  --shadow: 0 1px 2px rgba(20,20,60,.05), 0 14px 40px rgba(20,20,80,.08);
  color-scheme: light;
}
:root[data-brand="gympod"] {
  --bg: #0a1013; --surface: #111a1e; --surface-2: #17232a;
  --glass: linear-gradient(180deg, rgba(22,33,39,.85), rgba(14,22,26,.8));
  --ink: #eef2f3; --muted: #93a4ab; --line: rgba(160,195,205,.13); --line-strong: rgba(170,205,215,.24);
  --g1: #f6a640; --g2: #ef7e39; --g3: #d9542a; --accent: #ef7e39;
  --ok: #52c98f; --ok-soft: rgba(82,201,143,.12);
  --flare-a: rgba(239,126,57,.16); --flare-b: rgba(30,110,130,.22); --flare-c: rgba(246,166,64,.07);
  --grid: rgba(160,200,210,.035);
  --btn-ink: #1b0d03; --btn-bg: #ef7e39; --btn-glow: 0 8px 26px rgba(239,126,57,.28);
  --bar-bg: rgba(10,16,19,.8);
  --radius: 14px; --radius-s: 10px;
  --font-display: "Archivo", "Arial Black", sans-serif;
  --font-body: "Barlow", "Segoe UI", sans-serif;
  --display-weight: 900; --display-case: uppercase; --display-stretch: 125%; --display-track: 0.005em;
}
:root[data-brand="gympod"][data-mode="light"] {
  --bg: #f7f4f0; --surface: #ffffff; --surface-2: #f0ebe4;
  --glass: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.85));
  --ink: #131a1d; --muted: #66727a; --line: #e7e0d7; --line-strong: #d8cfc3;
  --g1: #f09a2c; --g2: #e26d26; --g3: #c4481f; --accent: #d9621f;
  --ok: #158556; --ok-soft: #e1f3ea;
  --flare-a: rgba(239,126,57,.10); --flare-b: rgba(30,110,130,.07); --flare-c: rgba(246,166,64,.06);
  --grid: rgba(80,60,40,.04);
  --btn-ink: #ffffff; --btn-bg: #e26d26; --btn-glow: 0 8px 20px rgba(226,109,38,.22);
  --bar-bg: rgba(255,255,255,.85);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100vh; position: relative; overflow-x: hidden; }
/* Flares + feines Raster im Hintergrund */
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(42vw 36vw at 88% -6%, var(--flare-b), transparent 70%),
    radial-gradient(48vw 40vw at -8% 104%, var(--flare-a), transparent 70%),
    radial-gradient(30vw 24vw at 50% 40%, var(--flare-c), transparent 70%); }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%); }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); font-stretch: var(--display-stretch); letter-spacing: var(--display-track); line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(30px, 4.6vw, 48px); }
h2 { font-size: clamp(19px, 2vw, 23px); }
h3 { font-size: 16.5px; font-weight: 700; text-transform: none; font-stretch: 100%; letter-spacing: 0; font-family: var(--font-body); }
[data-brand="gympod"] h1 { font-size: clamp(26px, 3.8vw, 40px); }
[data-brand="gympod"] h2 { font-size: clamp(17px, 1.7vw, 20px); }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; display: block; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.grad { background: linear-gradient(90deg, var(--g1), var(--g2) 55%, var(--g3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-family: var(--font-body); }
.eyebrow::before { content: ""; width: 30px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--g1), var(--g3)); box-shadow: 0 0 12px var(--g3); }
[data-brand="gympod"] .eyebrow { color: var(--accent); letter-spacing: .16em; }
[data-brand="gympod"] .eyebrow::before { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* Kopfleiste */
.top { position: sticky; top: 0; z-index: 20; background: var(--bar-bg); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.logo .word { font-family: "Outfit", sans-serif; font-weight: 800; font-size: 19px; letter-spacing: .03em; }
.logo .tag { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line-strong); }
.logo .os { font-family: "Outfit", sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; color: #fff; background: linear-gradient(100deg, #1b3fa8, #6c3bd6 55%, #d12b78); }
[data-brand="gympod"] .logo .word { font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 900; font-size: 20px; letter-spacing: .02em; }
.logo img { height: 32px; width: auto; display: block; }
[data-brand="gympod"] .logo img { height: 22px; }
.mail .mhero .logo img { height: 30px; }
[data-brand="gympod"] .mail .mhero .logo img { height: 26px; }
.nav { display: flex; gap: 2px; flex: 1; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--muted); position: relative; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a.on { color: var(--ink); }
.nav a.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -13px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--g1), var(--g3)); }
[data-brand="gympod"] .nav a.on::after { background: var(--accent); }
.tools { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.tools select { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; max-width: 200px; }
.mode { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.mode:hover { border-color: var(--line-strong); }
@media (max-width: 760px) {
  .top .wrap { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .nav a.on::after { bottom: -2px; }
  .tools label, .logo .tag { display: none; }
  .tools { margin-left: auto; }
  .tools select { max-width: 150px; }
}

main { padding: 34px 0 90px; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* Knöpfe, Pillen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-strong); background: var(--surface); padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 14.5px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: border-color .15s, transform .15s, box-shadow .15s; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--btn-bg); background-origin: border-box; border-color: transparent; color: var(--btn-ink); box-shadow: var(--btn-glow); }
.btn.primary:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; }
.btn.small { padding: 6px 11px; font-size: 13px; border-radius: 9px; }
.btn.done { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
[data-brand="gympod"] .btn { border-radius: 9px; font-weight: 700; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); white-space: nowrap; }
.pill.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: var(--ok-soft); }
.pill.go { color: var(--ink); border-color: color-mix(in srgb, var(--g3) 45%, transparent); background: color-mix(in srgb, var(--g3) 12%, transparent); }
.pill.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); background: var(--warn-soft); }
.pill.admin { color: var(--ink); border-color: var(--line-strong); }
.pill.master { color: var(--ink); border: 1px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(90deg, var(--g1), var(--g3)) border-box; }
.pill.b-trinity { color: #fff; border: 0; background: linear-gradient(100deg, #2d6fd8, #7d5cf2 55%, #d6266f); }
.pill.b-gympod { color: #1b0d03; border: 0; background: #ef7e39; }

.bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3)); box-shadow: 0 0 12px color-mix(in srgb, var(--g2) 60%, transparent); }
.bar.ok i { background: var(--ok); box-shadow: none; }

.card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Automatisches Beitragsbild */
.thumb { container-type: inline-size; position: relative; aspect-ratio: 16/9; overflow: hidden; isolation: isolate; color: #fff; display: grid; place-items: center; }
.thumb.trinity { background:
  radial-gradient(55% 75% at 92% 4%, rgba(237,23,104,.62), rgba(237,23,104,0) 62%),
  radial-gradient(60% 80% at 4% 100%, rgba(24,121,184,.75), rgba(24,121,184,0) 62%),
  radial-gradient(45% 60% at 55% 55%, rgba(125,92,242,.34), rgba(125,92,242,0) 70%),
  linear-gradient(160deg, #0d0c36 0%, #06061d 55%, #0c0628 100%); }
.thumb.trinity::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(160,160,255,.10), inset 0 1px 0 rgba(255,255,255,.06); pointer-events: none; }
.thumb.gympod { background:
  radial-gradient(80% 90% at 100% 0%, rgba(255,190,90,.55), rgba(255,190,90,0) 60%),
  radial-gradient(70% 90% at 0% 100%, rgba(150,40,10,.55), rgba(150,40,10,0) 60%),
  linear-gradient(135deg, #f08a36, #e5652a 55%, #cf4e22); }
.thumb svg.motif { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.thumb .t { text-align: center; padding: 0 8cqw; font-family: "Outfit", sans-serif; font-weight: 800; text-transform: uppercase; line-height: 1.02; letter-spacing: .005em; text-wrap: balance; text-shadow: 0 2px 18px rgba(0,0,0,.25); hyphens: auto; }
.thumb.gympod .t { font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 900; }
.thumb .brandmark { position: absolute; left: 5cqw; top: 4.5cqw; font-family: "Outfit", sans-serif; font-weight: 800; font-size: 3.6cqw; letter-spacing: .06em; opacity: .9; display: flex; align-items: center; gap: 1.4cqw; }
.thumb.gympod .brandmark { font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 900; }
.thumb .brandmark img { height: 6.4cqw; width: auto; opacity: .95; }
.thumb.gympod .brandmark img { height: 4.6cqw; }
.thumb .own { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Übersicht */
.hello { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; margin-bottom: 30px; }
.hello .lead { margin: 12px 0 0; color: var(--muted); font-size: 16.5px; max-width: 52ch; }
.hello h1 { margin-top: 14px; }
.stats { display: flex; gap: 12px; flex-wrap: wrap; }
.stat { padding: 14px 18px 12px; min-width: 132px; text-align: left; }
.stat .k { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.stat b { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: 34px; display: block; line-height: 1.1; margin-top: 4px; letter-spacing: -.02em; }
[data-brand="gympod"] .stat b { font-size: 28px; }
.stat.hi b { color: var(--ok); }
@media (max-width: 760px) { .hello { grid-template-columns: 1fr; } .stat { flex: 1; min-width: 100px; } }

.resume { display: grid; grid-template-columns: 250px 1fr auto; gap: 22px; align-items: center; padding: 14px; margin-bottom: 38px; text-decoration: none; position: relative; overflow: hidden; }
.resume::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(110deg, color-mix(in srgb, var(--g1) 70%, transparent), transparent 35%, transparent 65%, color-mix(in srgb, var(--g3) 70%, transparent)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
[data-brand="gympod"] .resume { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface) 60%); }
[data-brand="gympod"] .resume::before { background: linear-gradient(110deg, var(--accent), color-mix(in srgb, var(--accent) 20%, transparent) 50%, var(--accent)); }
.resume .thumb { border-radius: 12px; }
@media (max-width: 760px) { .resume { grid-template-columns: 1fr; } }

.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; flex-wrap: wrap; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--muted); }
.chip:hover { color: var(--ink); border-color: var(--line-strong); }
.chip.on { color: var(--ink); border-color: color-mix(in srgb, var(--g3) 55%, transparent); background: color-mix(in srgb, var(--g3) 12%, transparent); }
[data-brand="gympod"] .chip.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(275px, 1fr)); gap: 20px; }
.course { display: flex; flex-direction: column; text-decoration: none; overflow: hidden; transition: transform .2s, border-color .2s; }
.course:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.course .thumb .pill { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.45); border-color: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(6px); }
.course .body { padding: 16px 18px 18px; display: grid; gap: 12px; flex: 1; align-content: start; }
.course .meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }

/* Kursseite */
.chero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; align-items: center; margin-bottom: 36px; }
.chero .thumb { border-radius: var(--radius); box-shadow: var(--shadow); }
.chero .info { display: grid; gap: 16px; }
.owner { display: flex; align-items: center; gap: 12px; font-size: 14px; }
@media (max-width: 820px) { .chero { grid-template-columns: 1fr; gap: 22px; } }
.av { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: 12.5px; color: #fff; flex: none; letter-spacing: .02em; box-shadow: 0 0 0 2px var(--bg); }
.av.s { width: 28px; height: 28px; font-size: 11px; }

.sections { display: grid; gap: 14px; max-width: 880px; }
.section { overflow: hidden; }
.section > summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.section > summary::-webkit-details-marker { display: none; }
.section > summary .idx { font-size: 11px; font-weight: 700; letter-spacing: .2em; color: var(--muted); }
.section > summary .chev { transition: transform .15s; color: var(--muted); }
.section[open] > summary .chev { transform: rotate(90deg); }
.lessons { border-top: 1px solid var(--line); }
.lrow { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 12px 20px; text-decoration: none; border-top: 1px solid var(--line); }
.lrow:first-child { border-top: 0; }
.lrow:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.lrow.cur { background: color-mix(in srgb, var(--g2) 14%, transparent); box-shadow: inset 2px 0 0 var(--g2); }
[data-brand="gympod"] .lrow.cur { background: color-mix(in srgb, var(--accent) 12%, transparent); box-shadow: inset 2px 0 0 var(--accent); }
.tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; }
.tick.on { background: var(--ok); border-color: var(--ok); color: var(--bg); }
.kinds { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.kind { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.kind::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.k-loom::before { background: #7b76ff; } .k-youtube::before { background: #ff3b30; } .k-vimeo::before { background: #1ab7ea; } .k-gdrive::before { background: #2fb457; }
.k-file::before { background: #aaa; } .k-link::before { background: var(--muted); } .k-audio::before { background: #a77bff; } .k-dl::before { background: var(--g1); }

/* Lektion */
.lesson { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; align-items: start; }
@media (max-width: 1000px) { .lesson { grid-template-columns: 1fr; } }
.lesson h1 { font-size: clamp(24px, 3.2vw, 36px); margin: 10px 0 22px; }
[data-brand="gympod"] .lesson h1 { font-size: clamp(21px, 2.7vw, 30px); }
.blocks { display: grid; gap: 18px; }
.player { border-radius: var(--radius); overflow: hidden; background: #050508; aspect-ratio: 16/9; position: relative; box-shadow: 0 30px 70px rgba(0,0,0,.35), 0 0 0 1px var(--line); }
.player::after { content: ""; position: absolute; inset: -40% -10% auto; height: 60%; background: radial-gradient(closest-side, color-mix(in srgb, var(--g2) 30%, transparent), transparent); z-index: -1; filter: blur(30px); }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.poster { position: absolute; inset: 0; display: grid; place-items: center; text-decoration: none; color: #fff; isolation: isolate; overflow: hidden; }
.poster.trinity { background:
  radial-gradient(50% 70% at 94% 0%, rgba(237,23,104,.55), rgba(237,23,104,0) 62%),
  radial-gradient(55% 75% at 0% 100%, rgba(24,121,184,.65), rgba(24,121,184,0) 62%),
  radial-gradient(40% 55% at 50% 50%, rgba(125,92,242,.30), rgba(125,92,242,0) 70%),
  linear-gradient(160deg, #0d0c36 0%, #06061d 55%, #0c0628 100%); }
.poster.gympod { background:
  radial-gradient(70% 90% at 100% 0%, rgba(255,190,90,.55), rgba(255,190,90,0) 60%),
  radial-gradient(70% 90% at 0% 100%, rgba(150,40,10,.55), rgba(150,40,10,0) 60%),
  linear-gradient(135deg, #f08a36, #e5652a 55%, #cf4e22); }
.poster svg.motif { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .5; }
.poster .play { width: 84px; height: 84px; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; place-items: center; transition: transform .2s, background .2s; box-shadow: 0 0 0 10px rgba(255,255,255,.04), 0 18px 50px rgba(0,0,0,.35); }
.poster.trinity .play { box-shadow: 0 0 0 10px rgba(255,255,255,.04), 0 0 60px rgba(125,92,242,.55); }
.poster:hover .play { transform: scale(1.06); background: rgba(255,255,255,.22); }
.poster .lab { position: absolute; left: 18px; bottom: 16px; right: 18px; display: flex; justify-content: space-between; align-items: end; gap: 12px; font-size: 13px; }
.poster .lab small { opacity: .75; max-width: 62ch; }
.poster .kind { color: #fff; border-color: rgba(255,255,255,.3); background: rgba(0,0,0,.35); }
.res { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 12px; }
.rescard { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding: 13px 15px; text-decoration: none; border-radius: var(--radius-s); transition: border-color .15s, transform .15s; }
.rescard:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.rescard .ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); }
.rescard b { display: block; font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.rescard small { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; display: block; }
.text { max-width: 70ch; font-size: 16px; }
.text p { margin: 0 0 .7em; }
.text a { color: var(--accent); overflow-wrap: anywhere; text-underline-offset: 3px; }
.audio { padding: 14px 16px; display: flex; align-items: center; gap: 14px; border-radius: var(--radius-s); }
.lfoot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.empty { padding: 30px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.side { position: sticky; top: 86px; max-height: calc(100vh - 106px); overflow: auto; }
@media (max-width: 1000px) { .side { position: static; max-height: none; } }
.side .shead { padding: 16px 18px; border-bottom: 1px solid var(--line); display: grid; gap: 9px; }
.side .stitle { padding: 14px 18px 6px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.side .lrow { padding: 8px 18px; grid-template-columns: 22px 1fr; font-size: 14px; border-top: 0; }
.side .tick { width: 18px; height: 18px; }

/* Kommentare */
.comments { margin-top: 40px; display: grid; gap: 14px; max-width: 760px; }
.cform { display: grid; gap: 10px; padding: 16px; }
.cform textarea { width: 100%; min-height: 86px; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; background: color-mix(in srgb, var(--bg) 60%, transparent); resize: vertical; }
.cform .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.comment { display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.comment .bub { background: var(--glass); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; padding: 11px 15px; }
.comment .bub header { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 13px; }
.comment .bub p { margin: 4px 0 0; white-space: pre-wrap; }

/* Verwaltung */
.admin-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; flex-wrap: wrap; margin-bottom: 20px; }
.admin-head h1 { margin-top: 12px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs a { padding: 11px 14px; text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-image: linear-gradient(90deg, var(--g1), var(--g3)) 1; }
[data-brand="gympod"] .tabs a.on { border-image: none; border-color: var(--accent); }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea, .search, .list select { border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 85%, transparent); border-radius: 11px; padding: 10px 12px; width: 100%; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.search { min-width: 240px; width: auto; }

.matrix-wrap { overflow: auto; max-height: calc(100vh - 270px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.matrix { border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.matrix th, .matrix td { border-bottom: 1px solid var(--line); background: var(--surface); }
.matrix thead th { position: sticky; top: 0; z-index: 2; vertical-align: bottom; padding: 12px 4px; }
.matrix thead th.vert div { writing-mode: vertical-rl; transform: rotate(180deg); max-height: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: 12.5px; margin: 0 auto; color: var(--muted); }
.matrix thead th.vert.gp div { color: var(--g2); }
[data-brand="gympod"] .matrix thead th.vert.gp div { color: var(--accent); }
.matrix .name { position: sticky; left: 0; z-index: 1; text-align: left; padding: 8px 14px; min-width: 240px; border-right: 1px solid var(--line); }
.matrix thead .name { z-index: 3; }
.matrix td.cell { text-align: center; width: 44px; min-width: 44px; padding: 0; }
.matrix td.cell label { display: grid; place-items: center; height: 42px; cursor: pointer; }
.matrix input[type=checkbox], .checks input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 19px; height: 19px; border-radius: 6px; border: 1.5px solid var(--line-strong); background: transparent; cursor: pointer; display: grid; place-items: center; margin: 0; }
.matrix input[type=checkbox]:checked, .checks input[type=checkbox]:checked { border-color: transparent; background: var(--btn-bg); background-origin: border-box; box-shadow: 0 0 10px color-mix(in srgb, var(--g2) 40%, transparent); }
.matrix input[type=checkbox]:checked::after, .checks input[type=checkbox]:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--btn-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.matrix input:disabled { opacity: .35; cursor: default; }
.matrix tr:hover td, .matrix tr:hover th.name { background: var(--surface-2); }
.matrix .cnt { padding: 0 14px; color: var(--muted); white-space: nowrap; }
.nbtn { background: none; border: 0; padding: 0; cursor: pointer; display: flex; gap: 10px; align-items: center; text-align: left; font-weight: 600; }
.nbtn:hover span { text-decoration: underline; text-underline-offset: 3px; }

table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
.list th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 700; }
.list td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.list tr:last-child td { border-bottom: 0; }
.list .person { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.list select { width: auto; max-width: 220px; padding: 7px 10px; }
.tablewrap { overflow-x: auto; }
.cthumb { width: 104px; border-radius: 8px; flex: none; }

/* Editor */
.editor { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 1000px) { .editor { grid-template-columns: 1fr; } }
.panel { padding: 18px; display: grid; gap: 15px; }
.thumbedit { border-radius: 12px; overflow: hidden; }
.seg { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 11px; gap: 3px; }
.seg button { flex: 1; border: 0; background: none; padding: 7px 10px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--muted); }
.seg button.on { background: var(--surface-2); color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong); }
.esec { padding: 0; overflow: hidden; }
.esec header { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.esec header input { flex: 1; font-weight: 700; font-size: 16px; border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 6px 8px; min-width: 0; }
.esec header input:hover, .esec header input:focus { border-color: var(--line); background: var(--surface); }
.erow { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--line); }
.erow.sel { background: color-mix(in srgb, var(--g2) 12%, transparent); }
[data-brand="gympod"] .erow.sel { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.erow button.t { background: none; border: 0; text-align: left; cursor: pointer; font-weight: 600; padding: 4px 0; }
.icon-btn { background: none; border: 1px solid transparent; border-radius: 8px; width: 30px; height: 30px; display: inline-grid; place-items: center; cursor: pointer; color: var(--muted); }
.icon-btn:hover { border-color: var(--line); color: var(--ink); }
.eblock { padding: 12px; display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.eblock header { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.eblock input, .eblock textarea { border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 50%, transparent); border-radius: 9px; padding: 8px 10px; width: 100%; }
.eblock textarea { min-height: 90px; }
.addbar { display: flex; gap: 8px; flex-wrap: wrap; }

/* Anmeldung */
.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 1000px; margin: 10px auto 0; }
@media (max-width: 820px) { .auth { grid-template-columns: 1fr; } }
.authcard { padding: 32px; display: grid; gap: 16px; align-content: start; }
.mail { padding: 0; overflow: hidden; }
.mail .mh { padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); display: grid; gap: 2px; }
.mail .mhero { position: relative; padding: 26px 22px 22px; overflow: hidden; display: grid; gap: 6px; }
.mail .mhero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 120% at 100% 0%, color-mix(in srgb, var(--g3) 35%, transparent), transparent 60%), radial-gradient(60% 120% at 0% 100%, color-mix(in srgb, var(--g1) 30%, transparent), transparent 60%); }
.mail .mb { padding: 0 22px 24px; display: grid; gap: 14px; }

.impbar { position: sticky; top: 64px; z-index: 19; background: linear-gradient(90deg, color-mix(in srgb, var(--g1) 22%, var(--surface)), color-mix(in srgb, var(--g3) 22%, var(--surface))); border-bottom: 1px solid var(--line-strong); font-size: 14px; }
[data-brand="gympod"] .impbar { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); }
.impbar .wrap { display: flex; gap: 12px; align-items: center; padding-top: 10px; padding-bottom: 10px; }
.impbar .wrap .txt { flex: 1; }
@media (max-width: 760px) { .impbar { top: 0; position: relative; } }
input[type=radio] { appearance: none; -webkit-appearance: none; width: 19px; height: 19px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex: none; margin: 0; cursor: pointer; }
input[type=radio]:checked { border-color: var(--g2); }
[data-brand="gympod"] input[type=radio]:checked { border-color: var(--accent); }
input[type=radio]:checked::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--btn-bg); }
/* Dialog, Toast */
.dlg-back { position: fixed; inset: 0; background: rgba(3,3,12,.6); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; z-index: 50; }
.dlg { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 40px 100px rgba(0,0,0,.45); }
.dlg header { padding: 20px 22px 6px; display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.dlg .bd { padding: 10px 22px 22px; display: grid; gap: 14px; }
.dlg footer { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; position: sticky; bottom: 0; background: var(--surface); }
.checks { display: grid; gap: 2px; max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.checks label { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.checks label:hover { background: var(--surface-2); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.note { padding: 12px 14px; font-size: 13.5px; background: var(--surface-2); border-radius: 12px; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 60; max-width: calc(100vw - 32px); box-shadow: 0 16px 50px rgba(0,0,0,.35); }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* --- Ergänzungen für die App --- */
.loading { display: flex; gap: 8px; justify-content: center; padding: 80px 0; }
.loading span { width: 9px; height: 9px; border-radius: 50%; background: var(--g2); opacity: .3; animation: pulse 1s infinite ease-in-out; }
.loading span:nth-child(2) { animation-delay: .15s; } .loading span:nth-child(3) { animation-delay: .3s; }
[data-brand="gympod"] .loading span { background: var(--accent); }
@keyframes pulse { 50% { opacity: 1; transform: scale(1.3); } }
#toast.error { border-color: color-mix(in srgb, var(--warn) 60%, transparent); }
.btn.danger { background: #c62f4b; border-color: transparent; color: #fff; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.who { display: flex; align-items: center; gap: 8px; }
.whoname { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .whoname span:last-child { display: none; } }
.auth.one { grid-template-columns: minmax(0, 560px); justify-content: center; }
tr.dim td { opacity: .55; }
button.poster { border: 0; padding: 0; width: 100%; height: 100%; cursor: pointer; font: inherit; }
.player iframe { background: #000; }
.audio audio { width: 100%; height: 40px; }
.rtbar { display: flex; gap: 4px; }
.rt { min-height: 110px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 50%, transparent); border-radius: 9px; padding: 10px 12px; outline: none; line-height: 1.55; overflow-wrap: anywhere; }
.rt:focus { border-color: var(--accent); }
.rt p { margin: 0 0 .6em; } .rt a { color: var(--accent); }
.sysgrid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .sysgrid { grid-template-columns: 1fr; } }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.lesson .text img { max-width: 100%; height: auto; border-radius: 10px; display: inline-block; margin: 6px 6px 6px 0; }
.course .thumb .pill { left: auto; }
