    :root {
      --bg: #0d0f14;
      --bg-2: #12151c;
      --panel: #161a22;
      --panel-hi: #1b2029;
      --line: #2a2f3a;
      --gold: #d8b471;
      --gold-hi: #ecd39a;
      --gold-deep: #a9853f;
      --ink: #ece7dc;
      --ink-soft: #a7a49c;
      --ink-faint: #6f6d67;
      --danger: #e09a88;
      color-scheme: dark;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    [hidden] { display: none !important; }

    body {
      background:
        radial-gradient(1200px 600px at 50% -10%, rgba(216,180,113,.10), transparent 60%),
        radial-gradient(900px 500px at 90% 110%, rgba(216,180,113,.05), transparent 60%),
        var(--bg);
      color: var(--ink);
      font-family: 'Inter', system-ui, sans-serif;
      line-height: 1.5;
      min-height: 100vh;
      -webkit-font-smoothing: antialiased;
    }

    .wrap {
      max-width: 1100px;
      margin: 0 auto;
      padding: clamp(24px, 5vw, 60px) clamp(16px, 4vw, 40px);
    }

    a { color: inherit; }

    /* Header */
    .topbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 40px;
      flex-wrap: wrap;
      gap: 16px;
    }

    .brand {
      font-family: 'Jost', sans-serif;
      font-size: 12px;
      letter-spacing: .35em;
      text-transform: uppercase;
      color: var(--gold);
    }

    .brand small {
      font-size: inherit;
      color: var(--ink-faint);
      letter-spacing: inherit;
    }

    .user {
      font-size: 13px;
      color: var(--ink-soft);
    }

    .user span {
      color: var(--gold);
    }

    .user a {
      color: var(--ink-soft);
      text-decoration: none;
      border-bottom: 1px solid var(--line);
      margin-left: 6px;
    }

    .user a:hover { color: var(--gold-hi); border-color: var(--gold-deep); }

    .admin-nav {
      display: flex;
      gap: 6px;
    }

    .admin-nav a {
      font-family: 'Jost', sans-serif;
      font-size: 11px;
      letter-spacing: .22em;
      text-transform: uppercase;
      color: var(--ink-soft);
      text-decoration: none;
      padding: 9px 16px;
      border-radius: 999px;
      border: 1px solid transparent;
      transition: all .2s ease;
    }

    .admin-nav a:hover { color: var(--ink); background: var(--panel-hi); }
    .admin-nav a.active { color: var(--gold-hi); border-color: var(--gold-deep); background: var(--panel-hi); }

    /* Hero */
    .hero {
      margin-bottom: 48px;
    }

    .eyebrow {
      font-family: 'Jost', sans-serif;
      font-size: 11px;
      letter-spacing: .32em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 14px;
    }

    .hero h1 {
      font-family: 'Cormorant Garamond', serif;
      font-weight: 500;
      font-size: clamp(36px, 7vw, 64px);
      line-height: 1.05;
      letter-spacing: -.01em;
      margin-bottom: 14px;
    }

    h1 em, h2 em {
      font-style: italic;
      color: transparent;
      background: linear-gradient(180deg, var(--gold-hi), var(--gold-deep));
      -webkit-background-clip: text;
      background-clip: text;
    }

    .hero p {
      max-width: 48ch;
      color: var(--ink-soft);
      font-size: 15px;
      line-height: 1.7;
    }

    .divider {
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--line), transparent);
      margin: 40px 0;
    }

    .link-back {
      display: inline-block;
      font-family: 'Jost', sans-serif;
      font-size: 11px;
      letter-spacing: .22em;
      text-transform: uppercase;
      color: var(--ink-faint);
      text-decoration: none;
      margin-bottom: 22px;
      transition: color .2s ease;
    }

    .link-back:hover { color: var(--gold); }

    .muted { color: var(--ink-soft); }
    .faint { color: var(--ink-faint); }

    /* Layout */
    .layout {
      display: grid;
      grid-template-columns: 260px 1fr;
      gap: 32px;
      align-items: start;
    }

    @media (max-width: 820px) {
      .layout {
        grid-template-columns: 1fr;
      }
      .layout .main { order: -1; }
      .sidebar { position: static !important; }
    }

    /* Sidebar */
    .sidebar {
      background: linear-gradient(180deg, var(--panel), var(--bg-2));
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 22px;
      position: sticky;
      top: 24px;
    }

    .sidebar h3 {
      font-family: 'Jost', sans-serif;
      font-size: 11px;
      letter-spacing: .28em;
      text-transform: uppercase;
      color: var(--ink-faint);
      margin: 22px 0 10px;
    }

    .sidebar h3:first-child { margin-top: 0; }

    .lesson-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .lesson-list li a {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 11px 12px;
      border-radius: 10px;
      color: var(--ink-soft);
      text-decoration: none;
      font-size: 14px;
      border: 1px solid transparent;
      transition: all .2s ease;
    }

    .lesson-list li a:hover,
    .lesson-list li a.active {
      background: var(--panel-hi);
      color: var(--ink);
    }

    .lesson-list li a.active {
      border: 1px solid var(--gold-deep);
      color: var(--gold-hi);
    }

    .lesson-list li a.locked { color: var(--ink-faint); }
    .lesson-list li a.locked.active { color: var(--ink-soft); }

    .lesson-list .state {
      margin-left: auto;
      display: flex;
      flex-shrink: 0;
      color: var(--ink-faint);
    }

    .lesson-list a.done .state { color: var(--gold); }

    .check-dot {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: linear-gradient(145deg, var(--gold-hi), var(--gold-deep));
      color: #0d0f14;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .num {
      font-family: 'Jost', sans-serif;
      font-size: 11px;
      letter-spacing: .1em;
      color: var(--gold);
      min-width: 22px;
    }

    /* Main content */
    .main {
      display: flex;
      flex-direction: column;
      gap: 28px;
      min-width: 0;
    }

    /* Video placeholder */
    .video-box {
      position: relative;
      background: #0a0c10;
      border: 1px solid var(--line);
      border-radius: 16px;
      overflow: hidden;
      aspect-ratio: 16 / 9;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .video-box::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse at 30% 40%, rgba(216,180,113,.08), transparent 50%),
        linear-gradient(160deg, #11141a 0%, #0a0c10 100%);
    }

    .play {
      position: relative;
      width: 72px;
      height: 72px;
      border-radius: 50%;
      background: linear-gradient(145deg, var(--gold-hi), var(--gold-deep));
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 12px 40px -10px rgba(216,180,113,.55);
      cursor: pointer;
      transition: transform .2s ease, opacity .2s ease;
    }

    .play:hover {
      transform: scale(1.06);
    }

    .play::after {
      content: "";
      width: 0;
      height: 0;
      border-style: solid;
      border-width: 11px 0 11px 18px;
      border-color: transparent transparent transparent #0d0f14;
      margin-left: 4px;
    }

    .video-box.playing .play { opacity: 0; pointer-events: none; }

    /* Steuerleiste im Video */
    .controls {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 2;
      padding: 30px 14px 10px;
      background: linear-gradient(0deg, rgba(5,6,9,.88), rgba(5,6,9,0));
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .scrub { position: relative; height: 18px; cursor: pointer; display: flex; align-items: center; }
    .scrub::before { content: ""; position: absolute; left: 0; right: 0; height: 4px; border-radius: 99px; background: rgba(255,255,255,.14); }
    .scrub-fill { position: absolute; left: 0; height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--gold-deep), var(--gold-hi)); }
    .scrub-knob {
      position: absolute;
      width: 13px;
      height: 13px;
      border-radius: 50%;
      background: var(--gold-hi);
      transform: translateX(-50%);
      box-shadow: 0 0 0 4px rgba(216,180,113,.2);
      opacity: 0;
      transition: opacity .2s ease;
    }
    .scrub:hover .scrub-knob, .video-box.started .scrub-knob { opacity: 1; }

    .ctl-row { display: flex; align-items: center; gap: 4px; }

    .ctl {
      width: 38px;
      height: 38px;
      border: none;
      border-radius: 9px;
      background: transparent;
      color: var(--ink);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: color .2s ease, background .2s ease;
      flex-shrink: 0;
    }
    .ctl:hover { color: var(--gold-hi); background: rgba(255,255,255,.07); }

    .time { flex: 1; margin-left: 6px; font-size: 12.5px; color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
    .ctl-hint { font-family: 'Jost', sans-serif; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); margin-right: 6px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; cursor: pointer; }
    .ctl-hint:hover { color: var(--ink); }
    .ctl-hint.on { color: var(--gold); border-color: var(--gold-deep); }

    @media (max-width: 520px) {
      .controls { padding: 20px 8px 4px; gap: 2px; }
      .ctl { width: 34px; height: 34px; }
      .ctl-hint { display: none; }
      .play { width: 56px; height: 56px; }
    }

    .video-box:fullscreen { border: none; border-radius: 0; aspect-ratio: auto; width: 100%; height: 100%; }
    .video-box:-webkit-full-screen { border: none; border-radius: 0; aspect-ratio: auto; width: 100%; height: 100%; }

    /* Aufklappbare Abschnitte in der Seitenleiste */
    .mod + .mod { border-top: 1px solid var(--line); }

    .mod-toggle {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 10px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 14px 4px;
      text-align: left;
      font-family: 'Jost', sans-serif;
      font-size: 11px;
      letter-spacing: .26em;
      text-transform: uppercase;
      color: var(--ink-faint);
      transition: color .2s ease;
    }

    .mod:first-child .mod-toggle { padding-top: 2px; }
    .mod-toggle:hover, .mod.open .mod-toggle { color: var(--ink); }
    .mod-name { flex: 1; }
    .mod-meta { letter-spacing: .1em; color: var(--gold); font-size: 11px; }
    .chev { display: flex; transition: transform .25s ease; }
    .mod.open .chev { transform: rotate(180deg); color: var(--gold); }

    .mod .lesson-list { display: none; padding-bottom: 14px; }
    .mod.open .lesson-list { display: flex; }

    .video-label {
      position: absolute;
      top: 18px;
      left: 18px;
      right: 140px;
      font-family: 'Jost', sans-serif;
      font-size: 11px;
      letter-spacing: .2em;
      text-transform: uppercase;
      color: var(--ink-faint);
    }

    .video-badge {
      position: absolute;
      top: 16px;
      right: 16px;
    }

    .video-locked {
      position: relative;
      text-align: center;
      padding: 24px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 14px;
      max-width: 420px;
    }

    .lock-circle {
      width: 72px;
      height: 72px;
      border-radius: 50%;
      border: 1px solid var(--gold-deep);
      background: rgba(216,180,113,.06);
      color: var(--gold);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .video-locked p {
      color: var(--ink-soft);
      font-size: 14px;
      line-height: 1.6;
    }

    @media (max-width: 520px) {
      .lock-circle { width: 52px; height: 52px; }
      .video-locked { gap: 8px; padding: 12px; }
      .video-locked p { font-size: 13px; }
    }

    /* Lesson info */
    .lesson-info h2 {
      font-family: 'Cormorant Garamond', serif;
      font-weight: 500;
      font-size: clamp(26px, 4vw, 34px);
      margin-bottom: 10px;
    }

    .done-line {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      font-size: 13.5px;
      color: var(--gold);
      margin: -2px 0 14px;
    }

    .done-line .text-link { margin: 0; background: none; border: none; border-bottom: 1px solid var(--line); padding: 0; font: inherit; font-size: 13px; color: var(--ink-faint); }
    .done-line .text-link:hover { color: var(--gold-hi); border-color: var(--gold-deep); }

    .lesson-info p {
      color: var(--ink-soft);
      font-size: 15px;
      line-height: 1.7;
      max-width: 58ch;
    }

    /* Files */
    .files {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .file-row {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 12px 14px;
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: 12px;
      flex-wrap: wrap;
    }

    .file-icon {
      font-family: 'Jost', sans-serif;
      font-size: 10px;
      letter-spacing: .12em;
      color: var(--gold);
      border: 1px solid var(--gold-deep);
      border-radius: 6px;
      padding: 6px 7px;
      flex-shrink: 0;
    }

    .file-name { font-size: 14px; flex: 1; min-width: 140px; word-break: break-word; }
    .file-name small { display: block; color: var(--ink-faint); font-size: 12px; }
    .file-actions { display: flex; gap: 8px; }

    /* Progress / next */
    .progress-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
      margin-top: 8px;
    }

    .progress-text {
      font-size: 13px;
      color: var(--ink-faint);
    }

    .progress-text b {
      color: var(--gold);
      font-weight: 500;
    }

    .nav-btns { display: flex; gap: 10px; flex-wrap: wrap; }

    .btn {
      font-family: 'Jost', sans-serif;
      font-size: 12px;
      letter-spacing: .18em;
      text-transform: uppercase;
      color: #0d0f14;
      background: linear-gradient(135deg, var(--gold-hi), var(--gold));
      border: 1px solid transparent;
      border-radius: 999px;
      padding: 12px 22px;
      cursor: pointer;
      transition: opacity .2s ease, border-color .2s ease, color .2s ease;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      white-space: nowrap;
    }

    .btn:hover {
      opacity: .9;
    }

    .btn[disabled] { opacity: .35; cursor: default; }

    .btn-ghost {
      background: transparent;
      color: var(--ink-soft);
      border-color: var(--line);
    }

    .btn-ghost:hover { opacity: 1; color: var(--gold-hi); border-color: var(--gold-deep); }
    .btn-ghost[disabled]:hover { color: var(--ink-soft); border-color: var(--line); }

    .btn-danger:hover { color: var(--danger); border-color: var(--danger); }

    .btn-sm { font-size: 10.5px; padding: 8px 14px; letter-spacing: .16em; }
    .btn-block { width: 100%; }

    /* Footer */
    .foot {
      margin-top: 60px;
      padding-top: 24px;
      border-top: 1px solid var(--line);
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
      font-family: 'Jost', sans-serif;
      font-size: 11px;
      letter-spacing: .22em;
      text-transform: uppercase;
      color: var(--ink-faint);
    }

    .foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
    .foot > span:last-child { text-align: right; }
    .foot-links { display: flex; gap: 22px; justify-content: center; }
    .foot-links a { color: var(--ink-faint); text-decoration: none; transition: color .2s ease; }
    .foot-links a:hover { color: var(--gold); }

    @media (max-width: 720px) {
      .foot { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 14px; }
      .foot > span:last-child { text-align: center; }
    }

    .foot b {
      color: var(--gold);
      font-weight: 500;
    }

    /* Tags */
    .tag {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-family: 'Jost', sans-serif;
      font-size: 10px;
      letter-spacing: .18em;
      text-transform: uppercase;
      color: var(--gold);
      border: 1px solid var(--gold-deep);
      background: rgba(216,180,113,.06);
      border-radius: 999px;
      padding: 5px 11px;
      white-space: nowrap;
    }

    .tag.muted { color: var(--ink-faint); border-color: var(--line); background: transparent; }
    .tag.danger { color: var(--danger); border-color: rgba(224,154,136,.4); background: rgba(224,154,136,.06); }
    .tag.solid { color: #0d0f14; background: linear-gradient(135deg, var(--gold-hi), var(--gold)); border-color: transparent; }

    /* Cards & forms */
    .card {
      background: linear-gradient(180deg, var(--panel), var(--bg-2));
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: clamp(18px, 3vw, 28px);
    }

    .card.flush { padding: 0; overflow: hidden; }

    .auth {
      max-width: 440px;
      margin: 20px auto 0;
    }

    .auth h1 {
      font-family: 'Cormorant Garamond', serif;
      font-weight: 500;
      font-size: 42px;
      line-height: 1.1;
      margin-bottom: 10px;
    }

    .auth > p { color: var(--ink-soft); font-size: 14px; margin-bottom: 26px; line-height: 1.6; }

    .text-link {
      display: inline-block;
      margin-top: 18px;
      font-size: 13px;
      color: var(--ink-soft);
      text-decoration: none;
      border-bottom: 1px solid var(--line);
      cursor: pointer;
    }

    .text-link:hover { color: var(--gold-hi); border-color: var(--gold-deep); }

    .field { margin-bottom: 18px; }

    .field label, .label {
      display: block;
      font-family: 'Jost', sans-serif;
      font-size: 11px;
      letter-spacing: .22em;
      text-transform: uppercase;
      color: var(--ink-faint);
      margin-bottom: 8px;
    }

    input[type=text], input[type=email], input[type=password], input[type=search], input[type=date], select, textarea {
      width: 100%;
      background: var(--bg-2);
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 12px 14px;
      color: var(--ink);
      font-family: 'Inter', system-ui, sans-serif;
      font-size: 16px;
      transition: border-color .2s ease, box-shadow .2s ease;
    }

    textarea { min-height: 120px; resize: vertical; line-height: 1.6; }

    input:focus, select:focus, textarea:focus {
      outline: none;
      border-color: var(--gold-deep);
      box-shadow: 0 0 0 3px rgba(216,180,113,.12);
    }

    .pw-wrap { position: relative; }
    .pw-wrap input { padding-right: 50px; }

    .pw-eye {
      position: absolute;
      top: 50%;
      right: 6px;
      transform: translateY(-50%);
      width: 38px;
      height: 38px;
      border: none;
      border-radius: 8px;
      background: transparent;
      color: var(--ink-faint);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: color .2s ease;
    }

    .pw-eye:hover, .pw-eye.on { color: var(--gold); }
    .pw-eye svg { width: 18px; height: 18px; }

    .hint { font-size: 12.5px; color: var(--ink-faint); margin-top: 8px; line-height: 1.5; }
    .error { font-size: 13px; color: var(--danger); margin: 4px 0 14px; }
    .error:empty { display: none; }

    .info-box {
      border: 1px solid var(--line);
      border-left: 2px solid var(--gold-deep);
      background: rgba(216,180,113,.04);
      border-radius: 10px;
      padding: 14px 16px;
      font-size: 13.5px;
      color: var(--ink-soft);
      line-height: 1.6;
      margin: 8px 0 20px;
    }

    .demo-note {
      margin-top: 22px;
      border: 1px dashed var(--gold-deep);
      border-radius: 10px;
      padding: 12px 14px;
      font-size: 12.5px;
      color: var(--ink-soft);
      line-height: 1.55;
    }

    .demo-note b { color: var(--gold); font-weight: 500; }

    .success-box { text-align: center; padding: 10px 0; }
    .success-box .lock-circle { margin: 0 auto 18px; }

    /* Course tiles */
    .tiles {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 24px;
    }

    .tile {
      background: linear-gradient(180deg, var(--panel), var(--bg-2));
      border: 1px solid var(--line);
      border-radius: 16px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      text-decoration: none;
      color: inherit;
      transition: border-color .2s ease, transform .2s ease;
    }

    a.tile:hover { border-color: var(--gold-deep); transform: translateY(-2px); }

    .cover {
      aspect-ratio: 16 / 9;
      position: relative;
      background:
        radial-gradient(ellipse at 25% 30%, rgba(216,180,113,.22), transparent 55%),
        radial-gradient(ellipse at 85% 90%, rgba(216,180,113,.10), transparent 50%),
        linear-gradient(160deg, #1a1e27 0%, #0a0c10 100%);
      background-size: cover;
      background-position: center;
      display: flex;
      align-items: center;
      justify-content: center;
      border-bottom: 1px solid var(--line);
    }

    .cover-title {
      font-family: 'Cormorant Garamond', serif;
      font-style: italic;
      font-size: 96px;
      line-height: 1;
      color: transparent;
      background: linear-gradient(180deg, var(--gold-hi), var(--gold-deep));
      -webkit-background-clip: text;
      background-clip: text;
      opacity: .85;
    }

    .cover.has-img .cover-title { display: none; }

    .tile-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
    .tile-body h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 26px; line-height: 1.15; }
    .tile-body p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

    .tile-meta {
      margin-top: auto;
      display: flex;
      justify-content: space-between;
      gap: 10px;
      flex-wrap: wrap;
      font-size: 12.5px;
      color: var(--ink-faint);
    }

    .tile-meta b { color: var(--gold); font-weight: 500; }

    .tile.expired .cover { filter: grayscale(1); opacity: .45; }
    .tile.expired .tile-body h3, .tile.expired .tile-body > p { color: var(--ink-faint); }

    .cover-lock {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .expired-note {
      border: 1px solid var(--gold-deep);
      background: rgba(216,180,113,.06);
      border-radius: 10px;
      padding: 12px 14px;
      font-size: 13.5px;
      line-height: 1.55;
      color: var(--ink);
    }

    .bar {
      height: 4px;
      background: var(--line);
      border-radius: 99px;
      overflow: hidden;
    }

    .bar span {
      display: block;
      height: 100%;
      background: linear-gradient(90deg, var(--gold-deep), var(--gold-hi));
      border-radius: 99px;
    }


    .empty-state { text-align: center; padding: 50px 20px; color: var(--ink-soft); }

    .notice {
      max-width: 560px;
      margin: 10px auto;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
      padding: 44px 28px;
    }

    .notice h2 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: clamp(28px, 5vw, 38px); line-height: 1.15; }
    .notice p { color: var(--ink-soft); line-height: 1.7; }

    /* Admin */
    .page-head {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      gap: 20px;
      flex-wrap: wrap;
      margin-bottom: 30px;
    }

    .page-head h1 {
      font-family: 'Cormorant Garamond', serif;
      font-weight: 500;
      font-size: clamp(32px, 5vw, 46px);
      line-height: 1.08;
      word-break: break-word;
    }

    .page-head p { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
    .page-head .head-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

    .toolbar { margin-bottom: 18px; max-width: 380px; }

    .stats {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 16px;
      margin-bottom: 34px;
    }

    .stat {
      background: linear-gradient(180deg, var(--panel), var(--bg-2));
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 20px 22px;
    }

    .stat-num { font-family: 'Cormorant Garamond', serif; font-size: 46px; line-height: 1; color: var(--gold-hi); font-variant-numeric: lining-nums; }

    @media (max-width: 560px) {
      .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
      .stat { padding: 16px; }
      .stat-num { font-size: 36px; }
      .stat-label { font-size: 9.5px; letter-spacing: .16em; }
    }
    .stat-label { font-family: 'Jost', sans-serif; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-faint); margin-top: 8px; }
    .stat-empty { font-size: 13px; color: var(--ink-faint); margin-top: 14px; }

    .stat-list { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
    .stat-list li { display: flex; flex-direction: column; gap: 2px; font-size: 13px; padding-top: 10px; border-top: 1px solid var(--line); }
    .stat-list a { color: var(--ink); text-decoration: none; cursor: pointer; word-break: break-word; }
    .stat-list a:hover { color: var(--gold-hi); }
    .stat-list span { color: var(--ink-faint); font-size: 12.5px; }

    .table { width: 100%; border-collapse: collapse; }

    .table th {
      font-family: 'Jost', sans-serif;
      font-size: 10px;
      letter-spacing: .22em;
      text-transform: uppercase;
      color: var(--ink-faint);
      font-weight: 500;
      text-align: left;
      padding: 16px 18px;
    }

    .table td {
      padding: 16px 18px;
      font-size: 14px;
      border-top: 1px solid var(--line);
      vertical-align: top;
    }

    .table tr.clickable { cursor: pointer; transition: background .15s ease; }
    .table tr.clickable:hover { background: var(--panel-hi); }

    .table .email { color: var(--ink); word-break: break-word; }
    .table .email small { display: block; margin-top: 6px; }

    .stack { display: flex; flex-direction: column; gap: 10px; }
    .stack-line { min-height: 24px; display: flex; align-items: center; gap: 8px; }

    .mini-progress { display: flex; align-items: center; gap: 10px; min-width: 120px; }
    .mini-progress .bar { flex: 1; }
    .mini-progress span.pct { font-size: 12.5px; color: var(--gold); min-width: 38px; text-align: right; }

    .empty-row { padding: 30px; text-align: center; color: var(--ink-faint); }

    @media (max-width: 760px) {
      .table thead { display: none; }
      .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
      .table tr { padding: 16px 18px; border-top: 1px solid var(--line); }
      .table tr:first-child { border-top: none; }
      .table td { border-top: none; padding: 6px 0; display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
      .table td::before {
        content: attr(data-label);
        font-family: 'Jost', sans-serif;
        font-size: 10px;
        letter-spacing: .2em;
        text-transform: uppercase;
        color: var(--ink-faint);
        padding-top: 5px;
      }
      .table td.email { display: block; font-size: 15px; padding-bottom: 8px; }
      .table td.email::before { display: none; }
    }

    .grid-2 {
      display: grid;
      grid-template-columns: 1fr 340px;
      gap: 24px;
      align-items: start;
    }

    .col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

    @media (max-width: 900px) {
      .grid-2 { grid-template-columns: 1fr; }
    }

    .section-title {
      font-family: 'Jost', sans-serif;
      font-size: 11px;
      letter-spacing: .28em;
      text-transform: uppercase;
      color: var(--ink-faint);
      margin-bottom: 18px;
    }

    .enr {
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 18px;
      background: var(--bg-2);
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .enr + .enr { margin-top: 14px; }

    .enr-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
    .enr-head strong { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 24px; }

    .kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
    .kv div span { display: block; font-family: 'Jost', sans-serif; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px; }
    .kv div b { font-weight: 500; font-size: 14px; }

    .enr-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; border-top: 1px solid var(--line); padding-top: 14px; }
    .inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; flex: 1; }
    .inline-form .dur { display: flex; gap: 8px; flex-wrap: wrap; }
    .inline-form select, .inline-form input[type=date] { width: auto; padding: 9px 12px; font-size: 14px; }

    .grant { margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--line); }

    .big-num { font-family: 'Cormorant Garamond', serif; font-size: 52px; line-height: 1; color: var(--gold-hi); font-variant-numeric: lining-nums; }
    .big-num small { font-size: 22px; color: var(--ink-soft); }

    .log-list { list-style: none; margin-top: 18px; font-size: 13.5px; color: var(--ink-soft); }
    .log-list li { padding: 9px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; }

    .course-pick {
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 14px 16px;
      background: var(--bg-2);
      margin-bottom: 10px;
    }

    .check { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 15px; }
    .check input { width: 18px; height: 18px; accent-color: var(--gold); }

    .pick-opts { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
    .pick-opts .dur { display: flex; gap: 10px; flex-wrap: wrap; }
    .pick-opts select, .pick-opts input[type=date] { width: auto; min-width: 180px; }

    .form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

    .form-card { max-width: 640px; }

    /* Course admin */
    .course-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 24px;
    }

    .course-card .tile-body .row-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

    .cover-edit { border-radius: 12px; border: 1px solid var(--line); overflow: hidden; margin-bottom: 12px; max-width: 420px; }

    .module { margin-bottom: 20px; }

    .mod-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
    .mod-num { font-family: 'Jost', sans-serif; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }

    .mod-title {
      flex: 1;
      min-width: 180px;
      font-family: 'Cormorant Garamond', serif !important;
      font-size: 26px !important;
      background: transparent !important;
      border-color: transparent !important;
      padding: 4px 8px !important;
      margin-left: -8px;
    }

    @media (max-width: 520px) {
      .mod-title { font-size: 19px !important; min-width: 0; width: 100%; flex-basis: 100%; }
    }

    .mod-title:hover { border-color: var(--line) !important; }
    .mod-title:focus { border-color: var(--gold-deep) !important; }

    .ctrl { display: flex; gap: 6px; align-items: center; }

    .icon-btn {
      width: 34px;
      height: 34px;
      border-radius: 9px;
      border: 1px solid var(--line);
      background: transparent;
      color: var(--ink-soft);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all .2s ease;
      flex-shrink: 0;
    }

    .icon-btn:hover { color: var(--gold-hi); border-color: var(--gold-deep); }
    .icon-btn[disabled] { opacity: .3; cursor: default; }
    .icon-btn[disabled]:hover { color: var(--ink-soft); border-color: var(--line); }
    .icon-btn.danger:hover { color: var(--danger); border-color: var(--danger); }

    .les-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }

    .les-row {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 12px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: var(--bg-2);
      flex-wrap: wrap;
    }

    .les-main {
      flex: 1;
      min-width: 200px;
      display: flex;
      align-items: center;
      gap: 12px;
      background: none;
      border: none;
      color: var(--ink);
      font: inherit;
      font-size: 14.5px;
      text-align: left;
      cursor: pointer;
      padding: 4px 0;
    }

    .les-main:hover .les-title { color: var(--gold-hi); }
    .les-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

    /* Status-Auswahl */
    .sd { position: relative; display: inline-block; }
    .sd-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 10px 6px 12px;
      border: 1px solid var(--line);
      border-radius: 9px;
      background: var(--bg-2);
      color: var(--ink);
      font: inherit;
      font-size: 13px;
      cursor: pointer;
      white-space: nowrap;
      transition: border-color .2s ease;
    }
    .sd-btn:hover { border-color: var(--gold-deep); }
    .sd-btn svg { color: var(--ink-faint); }

    .sd-menu {
      position: absolute;
      top: calc(100% + 6px);
      left: 0;
      z-index: 30;
      min-width: 210px;
      list-style: none;
      padding: 6px;
      background: var(--panel-hi);
      border: 1px solid var(--line);
      border-radius: 12px;
      box-shadow: 0 18px 50px -16px rgba(0,0,0,.9);
    }
    .sd-menu button {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 9px 10px;
      border: none;
      border-radius: 8px;
      background: none;
      color: var(--ink);
      font: inherit;
      font-size: 14px;
      text-align: left;
      cursor: pointer;
    }
    .sd-menu button:hover { background: rgba(255,255,255,.06); }
    .sd-check { margin-left: auto; color: var(--gold); display: flex; }

    .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
    .dot-green { background: #3ecf6e; }
    .dot-orange { background: #f0a336; }
    .dot-black { background: #000; box-shadow: 0 0 0 1px var(--ink-faint); }
    .dot-gold { background: var(--gold); }

    .mini-select { width: auto !important; padding: 7px 10px !important; font-size: 13px !important; max-width: 190px; }

    .empty-mod { font-size: 13.5px; color: var(--ink-faint); padding: 6px 0 14px; }

    .dropzone {
      display: block;
      border: 1px dashed var(--gold-deep);
      border-radius: 14px;
      padding: 26px 20px;
      text-align: center;
      cursor: pointer;
      background: rgba(216,180,113,.03);
      transition: background .2s ease, border-color .2s ease;
      color: var(--ink-soft);
      font-size: 14px;
    }

    .dropzone:hover, .dropzone.over { background: rgba(216,180,113,.09); border-color: var(--gold); }
    .dropzone b { color: var(--gold-hi); font-weight: 500; }
    .dropzone small { display: block; margin-top: 6px; color: var(--ink-faint); font-size: 12.5px; }

    .video-file {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 14px 16px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: var(--bg-2);
      margin-bottom: 10px;
      flex-wrap: wrap;
    }

    .upload { margin-bottom: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
    .upload .bar { margin: 10px 0 8px; }



    .mt { margin-top: 24px; }

    /* Vorschau-Leiste (nur Admin) */
    .preview-bar {
      position: sticky;
      top: 0;
      z-index: 40;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
      padding: 12px clamp(16px, 4vw, 40px);
      background: rgba(13,15,20,.94);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border-bottom: 1px dashed var(--gold-deep);
      font-size: 13px;
      color: var(--ink-soft);
    }

    .preview-bar b { color: var(--gold); font-weight: 500; }
    .preview-actions { display: flex; gap: 8px; flex-wrap: wrap; }

    /* Demo bar */
    .demobar {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: center;
      padding: 10px 16px;
      border-bottom: 1px dashed var(--gold-deep);
      background: rgba(13,15,20,.94);
    }

    .demobar .tag { cursor: pointer; }

    .seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
    .seg button {
      font-family: 'Jost', sans-serif;
      font-size: 10.5px;
      letter-spacing: .16em;
      text-transform: uppercase;
      background: transparent;
      border: none;
      color: var(--ink-soft);
      padding: 7px 12px;
      border-radius: 999px;
      cursor: pointer;
    }
    .seg button.active { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: #0d0f14; }

    .demobar select { width: auto; padding: 6px 10px; font-size: 13px; max-width: 210px; }

    @media (max-width: 520px) {
      .demobar { gap: 6px; padding: 8px; }
      .seg button { padding: 6px 9px; font-size: 9.5px; letter-spacing: .1em; }
      .demobar select { max-width: 46%; font-size: 12px; }
    }

    .demo-link {
      background: none;
      border: none;
      color: var(--ink-faint);
      font-size: 12px;
      cursor: pointer;
      text-decoration: underline;
      text-underline-offset: 3px;
    }
    .demo-link:hover { color: var(--gold); }

    /* Toast */
    .toast {
      position: fixed;
      top: 18px;
      left: 50%;
      transform: translate(-50%, -20px);
      opacity: 0;
      pointer-events: none;
      z-index: 60;
      max-width: calc(100% - 32px);
      background: var(--panel-hi);
      border: 1px solid var(--gold-deep);
      color: var(--ink);
      border-radius: 12px;
      padding: 12px 18px;
      font-size: 14px;
      box-shadow: 0 18px 50px -20px rgba(0,0,0,.9);
      transition: all .25s ease;
    }
    .toast.show { opacity: 1; transform: translate(-50%, 0); }

    /* ---------- Weiße Bereiche: Kurskarten und Kursübersicht ---------- */
    :root { --paper: #ffffff; --paper-2: #f5f3ee; --paper-line: #e6e2d9; --text: #16181d; --text-soft: #555960; --text-faint: #8a8d93; }

    .ccards { display: flex; flex-direction: column; gap: 22px; }
    .ccard {
      display: grid; grid-template-columns: 320px 1fr auto; align-items: center; gap: 28px;
      background: var(--paper); color: var(--text); border-radius: 16px; overflow: hidden;
      text-decoration: none; border: 1px solid var(--paper-line);
      transition: transform .2s ease, box-shadow .2s ease;
    }
    a.ccard:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--gold); }
    .ccard-img { align-self: stretch; position: relative; }
    .ccard-img { overflow: hidden; }
    .ccard-img .cover { height: 100%; width: 100%; aspect-ratio: auto; min-height: 180px; border-bottom: none; }
    .ccard-body { padding: 24px 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
    .ccard-body h3 { font-size: 22px; font-weight: 600; line-height: 1.3; }
    .ccard-pct { font-size: 14px; color: var(--text-soft); }
    .ccard-body p { font-size: 16px; line-height: 1.65; color: var(--text-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; }
    .ccard-btn { padding-right: 28px; }
    .btn-light {
      display: inline-block; padding: 14px 34px; border-radius: 10px; border: 1px solid #cfcac0;
      font-size: 16px; font-weight: 500; color: var(--text); background: var(--paper); white-space: nowrap; transition: all .2s ease;
    }
    a.ccard:hover .btn-light { background: var(--gold); border-color: var(--gold); }
    .ccard.expired .cover { filter: grayscale(1); opacity: .45; }
    .ccard.expired h3, .ccard.expired .ccard-pct { color: var(--text-faint); }
    .ccard.expired .ccard-body { padding-right: 28px; }
    .ccard.expired .expired-note { color: var(--text); background: #fbf5e8; }
    @media (max-width: 820px) {
      .ccard { grid-template-columns: 1fr; gap: 0; }
      .ccard-img .cover { min-height: 0; aspect-ratio: 16 / 9; }
      .ccard-body { padding: 20px 20px 10px; }
      .ccard-btn { padding: 8px 20px 22px; }
      .btn-light { display: block; text-align: center; }
    }

    .home { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
    .home-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
    .white-panel { background: var(--paper); color: var(--text); border-radius: 16px; border: 1px solid var(--paper-line); }
    @media (max-width: 900px) { .home { grid-template-columns: 1fr; } }

    .resume {
      display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 22px;
      background: var(--paper-2); color: var(--text); border-radius: 16px; overflow: hidden; padding-right: 24px;
    }
    .resume-img { align-self: stretch; }
    .resume-img { overflow: hidden; }
    .resume-img .cover { height: 100%; width: 100%; aspect-ratio: auto; min-height: 110px; border-bottom: none; }
    .resume-img .cover-title { font-size: 56px; }
    .resume-body { padding: 18px 0; min-width: 0; }
    .resume-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 6px; }
    .resume-title { font-size: 21px; font-weight: 600; line-height: 1.3; }
    .resume-sub { font-size: 14.5px; color: var(--text-soft); margin-top: 4px; }
    @media (max-width: 640px) {
      .resume { grid-template-columns: 1fr; padding: 0 0 20px; gap: 0; }
      .resume-img .cover { aspect-ratio: 16 / 9; }
      .resume-body { padding: 16px 20px 14px; }
      .resume .btn { margin: 0 20px; }
    }

    .mrow { display: grid; grid-template-columns: 160px 1fr; gap: 22px; align-items: center; padding: 22px 26px; text-decoration: none; color: inherit; transition: background .2s ease; }
    .mrow + .mrow { border-top: 1px solid var(--paper-line); }
    .mrow:first-child { border-radius: 16px 16px 0 0; }
    .mrow:last-child { border-radius: 0 0 16px 16px; }
    .mrow:hover { background: var(--paper-2); }
    .mrow-img {
      aspect-ratio: 16 / 9; border-radius: 8px; display: flex; align-items: center; justify-content: center;
      background: radial-gradient(ellipse at 30% 30%, rgba(216,180,113,.3), transparent 60%), linear-gradient(160deg, #1a1e27, #0a0c10);
      background-size: cover; background-position: center;
      font-family: 'Jost', sans-serif; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
    }
    .mrow-img.has-img span { display: none; }
    .mrow-body h3 { font-size: 21px; font-weight: 600; line-height: 1.3; margin-bottom: 6px; }
    .mrow-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 15px; font-weight: 500; color: var(--text-soft); }
    .mrow-time { display: inline-flex; align-items: center; gap: 5px; }
    .mrow-done { display: inline-flex; align-items: center; gap: 5px; color: #2f9e57; }
    .mrow-body p { font-size: 15.5px; color: var(--text-soft); line-height: 1.6; margin-top: 8px; }
    .mrow-empty { padding: 30px; color: var(--text-soft); font-size: 16px; }
    @media (max-width: 560px) {
      .mrow { grid-template-columns: 110px 1fr; gap: 14px; padding: 16px; }
      .mrow-body h3 { font-size: 17px; }
      .mrow-meta { font-size: 13.5px; }
      .mrow-img { font-size: 9px; letter-spacing: .14em; }
    }

    .author { padding: 30px 28px; text-align: center; }
    .author-img {
      width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 18px;
      background: linear-gradient(160deg, #1a1e27, #0a0c10) center / cover; border: 3px solid var(--paper-line);
      display: flex; align-items: center; justify-content: center;
      font-family: 'Jost', sans-serif; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
    }
    .author h3 { font-size: 22px; font-weight: 600; }
    .author-role { font-size: 15px; color: var(--text-faint); margin: 4px 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--paper-line); }
    .author p { text-align: left; font-size: 16px; line-height: 1.7; color: var(--text-soft); }
    .author p + p { margin-top: 14px; }

    .hero-sm { margin-bottom: 30px; }
    .hero-sm h1 { font-size: clamp(30px, 5vw, 46px); }

    /* Größere Schrift im Kursbereich */
    .hero p { font-size: 17px; }
    .lesson-list li a { font-size: 16px; padding: 12px 12px; }
    .mod-toggle { font-size: 12.5px; letter-spacing: .2em; }
    .mod-meta { font-size: 12.5px; }
    .lesson-info p { font-size: 17px; }
    .done-line { font-size: 15px; }
    .done-line .text-link { font-size: 14.5px; }
    .progress-text { font-size: 15px; }
    .file-name { font-size: 16px; }
    .video-label { font-size: 12.5px; }
    /* Zurück-Links deutlich in Gold, wie der Zurück-Knopf in der Video-Liste */
    .link-back {
      font-size: 13px; letter-spacing: .2em; color: var(--gold);
      border: 1px solid var(--gold-deep); border-radius: 999px; padding: 9px 18px;
      transition: background .2s ease, color .2s ease, border-color .2s ease;
    }
    .link-back:hover { background: var(--gold); border-color: var(--gold); color: #0d0f14; }
    .user { font-size: 14px; }
    @media (min-width: 821px) { .layout { grid-template-columns: 300px 1fr; } }

    /* Videoseite: weiße Video-Liste links, Infobox rechts */
    .wrap:has(.layout), .wrap:has(.home) { max-width: 1680px; padding-left: clamp(16px, 2.2vw, 32px); padding-right: clamp(16px, 2.2vw, 32px); }

    /* Fußzeile Kundenbereich */
    .foot-c { margin-top: 80px; padding: 30px 0 10px; display: flex; flex-direction: column; align-items: center; gap: 26px; }
    .foot-c-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 80px; }
    .foot-c-links a { color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 500; transition: color .2s ease; }
    .foot-c-links a:hover { color: var(--gold); }
    @media (min-width: 1400px) { .layout { grid-template-columns: 380px 1fr; } }
    @media (min-width: 821px) and (max-width: 1399px) { .layout { grid-template-columns: 360px 1fr; } }

    .sidebar.white { background: var(--paper); border-color: var(--paper-line); }
    .sidebar.white .mod + .mod { border-top-color: var(--paper-line); }
    .sidebar.white .mod-toggle { color: var(--text-faint); }
    .sidebar.white .mod-toggle:hover, .sidebar.white .mod.open .mod-toggle { color: var(--text); }
    .sidebar.white .mod-meta, .sidebar.white .mod.open .chev { color: var(--gold-deep); }
    .sidebar.white .lesson-list li a { color: var(--text-soft); }
    .sidebar.white .lesson-list li a:hover { background: var(--paper-2); color: var(--text); }
    .sidebar.white .lesson-list li a.active { background: #fbf5e8; border-color: var(--gold); color: var(--text); font-weight: 500; }
    .sidebar.white .lesson-list li a.locked { color: var(--text-faint); }
    .sidebar.white .lesson-list .state { color: var(--text-faint); }
    .sidebar.white .num { color: var(--gold-deep); font-weight: 500; }
    .sidebar.white .check-dot { color: #fff; }

    /* Video-Liste links: Vorschaubild, Titel, Beschreibung (wie Memberspot) */
    .sidebar.white { padding: 16px 8px; }
    .sidebar.white .mod-toggle { line-height: 1.5; color: var(--text); padding: 14px 8px; }
    .sidebar.white .mod-toggle:hover, .sidebar.white .mod.open .mod-toggle { color: var(--text); }
    .sidebar.white .mod-meta { color: var(--gold-deep); }
    .sidebar.white .lesson-list { gap: 4px; }
    .sidebar.white .lesson-list li a.vrow { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; padding: 8px 10px; border-radius: 10px; font-size: inherit; }
    .sidebar.white .lesson-list li a.vrow.active { background: #fbf5e8; border-color: var(--gold); font-weight: inherit; }
    .vthumb {
      position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden;
      background: radial-gradient(ellipse at 30% 30%, rgba(216,180,113,.3), transparent 60%), linear-gradient(160deg, #1a1e27, #0a0c10);
      display: flex; align-items: center; justify-content: center;
    }
    .vnum { font-family: 'Jost', sans-serif; font-size: 12px; letter-spacing: .2em; color: var(--gold); }
    .sidebar.white .vthumb .state { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; }
    .vthumb .check-dot { width: 34px; height: 34px; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
    .vthumb .check-dot svg { width: 18px; height: 18px; }
    a.done .vnum, a.locked .vnum { opacity: 0; }
    .lock-dot { width: 34px; height: 34px; border-radius: 50%; background: rgba(13,15,20,.75); border: 1px solid var(--gold-deep); color: var(--gold); display: flex; align-items: center; justify-content: center; }
    .vdur { position: absolute; right: 5px; bottom: 5px; background: rgba(0,0,0,.75); color: #fff; font-size: 11.5px; font-weight: 500; padding: 1px 5px; border-radius: 4px; font-variant-numeric: tabular-nums; }
    .vtext { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
    .vtitle { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--text); }
    .vdesc { font-size: 13.5px; line-height: 1.5; color: var(--text-soft); }
    a.locked .vtitle { color: var(--text-faint); }


    /* Titel in den weißen Bereichen: gleiche Schrift wie die Lektionen-Überschriften */
    .vtitle, .mrow-body h3, .resume-title, .ccard-body h3 { font-family: 'Jost', sans-serif; font-weight: 500; letter-spacing: .03em; }
    .vtitle { font-size: 15.5px; }

    /* Infobox: Schriften der Vorlage */
    .author h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 30px; line-height: 1.15; }
    .author-role { font-family: 'Jost', sans-serif; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); margin-top: 8px; }

    /* Kopf der Video-Liste: Lektion + Zurück zur Kursübersicht */
    .side-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 6px 10px 16px; margin-bottom: 8px; border-bottom: 1px solid var(--paper-line); }
    .side-head .mod-name { font-family: 'Jost', sans-serif; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text); line-height: 1.5; }
    .side-head .mod-meta { margin-top: 4px; }
    .autoplay {
      display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 0; background: none; border: none; cursor: pointer;
      font-family: 'Inter', sans-serif; font-size: 14px; color: var(--text-soft);
    }
    .autoplay .sw { position: relative; width: 36px; height: 20px; border-radius: 99px; background: #d9d6cf; transition: background .2s ease; flex-shrink: 0; }
    .autoplay .sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s ease; }
    .autoplay.on { color: var(--text); }
    .autoplay.on .sw { background: var(--gold); }
    .autoplay.on .sw::after { transform: translateX(16px); }
    .side-back {
      flex-shrink: 0; font-family: 'Jost', sans-serif; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
      color: var(--gold-deep); text-decoration: none; border: 1px solid var(--gold); border-radius: 999px; padding: 7px 14px; white-space: nowrap;
      transition: background .2s ease, color .2s ease;
    }
    .side-back:hover { background: var(--gold); color: var(--text); }

    /* ---------- Meine Kurse: Titelbild und „Fortsetzen“ ---------- */
    .banner {
      position: relative; border-radius: 18px; overflow: hidden; margin-bottom: 48px;
      min-height: 260px; display: flex; align-items: center; justify-content: center; text-align: center;
      padding: 48px 24px; border: 1px solid var(--line);
      background:
        radial-gradient(600px 260px at 15% 20%, rgba(216,180,113,.22), transparent 65%),
        radial-gradient(500px 240px at 85% 90%, rgba(216,180,113,.14), transparent 65%),
        linear-gradient(160deg, #1a1e27, #0a0c10);
      background-size: cover; background-position: center;
    }
    .banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,16,.25), rgba(10,12,16,.6)); }
    .banner-inner { position: relative; max-width: 640px; }
    .banner h1 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: clamp(38px, 7vw, 68px); line-height: 1.05; margin-bottom: 14px; }
    .banner p { color: var(--ink-soft); font-size: 16px; }
    .dash-h { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: clamp(28px, 4vw, 38px); margin: 0 0 20px; }
    .rcards + .dash-h { margin-top: 48px; }
    .rcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .rcard {
      position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; text-decoration: none; color: #fff;
      display: flex; align-items: flex-end; border: 1px solid var(--line);
      background: radial-gradient(ellipse at 30% 30%, rgba(216,180,113,.3), transparent 60%), linear-gradient(160deg, #1a1e27, #0a0c10);
      transition: transform .2s ease, box-shadow .2s ease;
    }
    .rcard:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--gold); }
    .rcard-letter {
      position: absolute; inset: 0 0 48% 0; display: flex; align-items: center; justify-content: center;
      font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 56px; line-height: 1;
      color: transparent; background: linear-gradient(180deg, var(--gold-hi), var(--gold-deep)); -webkit-background-clip: text; background-clip: text;
    }
    .rcard-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
    .rcard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.8)); }
    .rcard-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; padding: 16px 72px 16px 16px; min-width: 0; }
    .rcard-where { font-size: 13px; color: rgba(255,255,255,.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .rcard-title { font-family: 'Jost', sans-serif; font-weight: 500; letter-spacing: .03em; font-size: 16px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .rcard-meta { font-size: 12.5px; color: rgba(255,255,255,.7); }
    .rcard-play {
      position: absolute; z-index: 1; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%;
      background: rgba(255,255,255,.85); color: #0d0f14; display: flex; align-items: center; justify-content: center; padding-left: 2px;
    }
    .rcard-bar { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.25); }
    .rcard-bar span { display: block; height: 100%; background: var(--gold); }
    .rcard:hover .rcard-play { background: var(--gold); }
    @media (max-width: 900px) { .rcards { grid-template-columns: 1fr 1fr; } .rcards .rcard:nth-child(3) { display: none; } }
    @media (max-width: 600px) {
      .rcards { grid-template-columns: 1fr; }
      .rcards .rcard:nth-child(3) { display: flex; }
      .banner { min-height: 200px; padding: 36px 18px; }
    }

    /* ---------- Navigation oben und Tools-Seitenleiste ---------- */
    .topbar .brand { margin-right: 8px; }
    .top-nav { display: flex; gap: 28px; margin-right: auto; }
    .top-nav a {
      font-family: 'Jost', sans-serif; font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
      color: var(--ink-soft); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s ease, border-color .2s ease;
    }
    .top-nav a:hover { color: var(--ink); }
    .top-nav a.active { color: var(--gold); border-bottom-color: var(--gold); }
    /* Solange die Tools-Leiste offen ist, ist „Tools öffnen“ markiert */
    body.tools-open .top-nav a.active { color: var(--ink-soft); border-bottom-color: transparent; }
    body.tools-open .top-nav a[data-action=openTools] { color: var(--gold); border-bottom-color: var(--gold); }
    .tools-backdrop { position: fixed; inset: 0; background: rgba(5,6,9,.6); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 80; }
    .tools-drawer {
      position: fixed; top: 0; left: 0; bottom: 0; width: min(400px, 88vw); z-index: 81; overflow-y: auto;
      background: radial-gradient(500px 300px at 0% 0%, rgba(216,180,113,.12), transparent 60%), var(--bg-2);
      border-right: 1px solid var(--gold-deep); padding: 28px 22px;
      transform: translateX(-100%); transition: transform .3s ease; box-shadow: 20px 0 60px rgba(0,0,0,.5);
    }
    body.tools-open .tools-backdrop { opacity: 1; pointer-events: auto; }
    body.tools-open .tools-drawer { transform: none; }
    .tools-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 20px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
    .tools-head h2 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 34px; line-height: 1.1; }
    .tools-close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gold-deep); background: none; color: var(--gold); font-size: 22px; line-height: 1; cursor: pointer; flex-shrink: 0; }
    .tools-close:hover { background: var(--gold); color: #0d0f14; }
    .tools-list { display: flex; flex-direction: column; gap: 10px; }
    .tool-item {
      display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; text-decoration: none;
      background: var(--panel); border: 1px solid var(--line); transition: border-color .2s ease, background .2s ease;
    }
    .tool-item:hover, .tool-item.active { border-color: var(--gold); background: var(--panel-hi); }
    .tool-icon {
      width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
      font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 26px; color: var(--gold);
      background: linear-gradient(160deg, #1f242e, #0a0c10); border: 1px solid var(--gold-deep);
    }
    .tool-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
    .tool-name { font-family: 'Jost', sans-serif; font-weight: 500; letter-spacing: .03em; font-size: 16px; color: var(--ink); }
    .tool-desc { font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); }
    .tool-arrow { color: var(--gold); font-size: 18px; }
    .tool-page { padding: 48px 28px; text-align: center; max-width: 640px; }
    .tool-page .tool-icon.big { width: 72px; height: 72px; font-size: 40px; border-radius: 16px; margin: 0 auto 18px; }
    .tool-page h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 30px; margin-bottom: 10px; color: var(--text); }
    .tool-page p { font-size: 16px; line-height: 1.65; color: var(--text-soft); }
    @media (max-width: 700px) {
      .top-nav { order: 3; width: 100%; gap: 22px; }
      .topbar .user { order: 2; }
    }

    /* ---------- Admin: Namen und Tools ---------- */
    .cust-name { display: block; font-weight: 500; color: var(--ink); }
    .cust-mail { display: block; font-size: 13px; color: var(--ink-soft); }
    .tool-check { margin-top: 10px; }
    .name-form { display: flex; gap: 10px; }
    .name-form input { flex: 1; min-width: 0; }
    .tool-grant { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .tool-grant:last-of-type { border-bottom: none; }
    .tool-grant b { display: block; font-weight: 500; }
    .tool-grant .faint { font-size: 13px; }
    .tool-note { font-size: 13px; margin-top: 10px; }
    .release { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; border-color: var(--gold-deep); }
    .release b { display: block; font-weight: 500; margin-bottom: 4px; }
    .release span { font-size: 14px; color: var(--ink-soft); }
    .release .autoplay { margin-top: 0; color: var(--ink-soft); flex-shrink: 0; }
    .release .autoplay.on { color: var(--gold); }
    .release .autoplay .sw { background: var(--line); }
    .release .autoplay.on .sw { background: var(--gold); }
    .tool-rows { display: flex; flex-direction: column; gap: 12px; }
    .tool-row { display: flex; align-items: center; gap: 16px; }
    .tool-row-text { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
    .tool-row-text b { font-family: 'Jost', sans-serif; font-weight: 500; letter-spacing: .03em; font-size: 16px; }
    .tool-row-text span { font-size: 14px; color: var(--ink-soft); }
    .tool-row-text .faint { font-size: 13px; }
    @media (max-width: 600px) { .release { flex-direction: column; align-items: flex-start; } }
    .switch { display: inline-flex; align-items: center; gap: 10px; padding: 0; background: none; border: none; cursor: pointer; font-family: 'Jost', sans-serif; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); flex-shrink: 0; }
    .switch .sw { position: relative; width: 40px; height: 22px; border-radius: 99px; background: var(--line); transition: background .2s ease; }
    .switch .sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: transform .2s ease; }
    .switch.on { color: var(--gold); }
    .switch.on .sw { background: var(--gold); }
    .switch.on .sw::after { transform: translateX(18px); }
    .tools-all { margin-top: 14px; width: 100%; }

    /* ---------- Rechtstexte ---------- */
    .legal { max-width: 860px; padding: 40px 44px; font-size: 16px; line-height: 1.7; color: var(--text); }
    .legal h2 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 28px; line-height: 1.2; margin: 34px 0 12px; }
    .legal h2:first-child { margin-top: 0; }
    .legal p { margin-bottom: 14px; color: var(--text); }
    .legal ul { margin: 0 0 16px 22px; }
    .legal li { margin-bottom: 6px; }
    .legal a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
    .legal a:hover { color: var(--text); }
    .legal-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 6px 0 18px; border: 1px solid var(--paper-line); border-radius: 12px; }
    .legal-table table { border-collapse: collapse; min-width: 640px; width: 100%; font-size: 14.5px; line-height: 1.5; }
    .legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--paper-line); }
    .legal-table th { background: var(--paper-2); font-family: 'Jost', sans-serif; font-weight: 500; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-soft); white-space: nowrap; }
    .legal-table tr:last-child td { border-bottom: none; }
    @media (max-width: 600px) { .legal { padding: 26px 20px; font-size: 15.5px; } .legal h2 { font-size: 24px; } }

    .tools-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  

/* ---------- Echte App: Laden und Abmelden ---------- */
.laden { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: var(--ink-soft); font-size: 15px; }
.laden-punkt { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--gold); animation: laden-dreh .9s linear infinite; }
@keyframes laden-dreh { to { transform: rotate(360deg); } }
.user .logout { color: var(--gold); text-decoration: none; }
.user .logout:hover { text-decoration: underline; }
button:disabled { opacity: .6; cursor: default; }

/* ---------- Login-Seiten: zentriert, Logo, goldene Akzente im Hintergrund ---------- */
.auth-page {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 16px 28px;
}
/* Goldener Schein von oben */
.auth-page::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 420px at 50% 8%, rgba(216,180,113,.20), transparent 70%),
    radial-gradient(520px 360px at 8% 100%, rgba(216,180,113,.10), transparent 70%),
    radial-gradient(520px 360px at 92% 100%, rgba(216,180,113,.10), transparent 70%);
}
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-bottom: 30px; text-align: center; }
.auth-brand .logo { width: 64px; height: 64px; display: block; filter: drop-shadow(0 8px 24px rgba(216,180,113,.25)); }
.auth-name {
  font-family: 'Jost', sans-serif; font-weight: 500; text-transform: uppercase;
  font-size: clamp(18px, 4.6vw, 24px); letter-spacing: .32em; margin-right: -.32em;
  color: var(--ink);
}
.auth-page .auth { width: 100%; max-width: 420px; margin: 0; border-color: rgba(216,180,113,.35); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.auth-login { padding-top: 30px; }
.auth-page .auth-foot { margin-top: 44px; padding-bottom: 0; }
@media (max-width: 480px) {
  .auth-name { font-size: 17px; letter-spacing: .2em; margin-right: -.2em; }
}
