
  :root {
    --bg: #FAF9F7;
    --surface: #FFFFFF;
    --surface-2: #F4F2ED;
    --line: #E8E4DC;
    --ink: #1D2B4A;
    --ink-soft: #5C6784;
    --ink-faint: #8A93AB;
    --accent: #F0762B;
    --accent-soft: #FDEDE2;
    --violet: #7C5CBF;
    --violet-soft: #EFEAF8;
    --green: #2E9E6B;
    --green-soft: #E3F3EC;
    --red: #D64550;
    --red-soft: #FBE7E9;
    --navy: #1D2B4A;
    --shadow: 0 1px 2px rgba(29,43,74,.05), 0 8px 24px rgba(29,43,74,.06);
    --shadow-lg: 0 2px 4px rgba(29,43,74,.06), 0 16px 40px rgba(29,43,74,.10);
    --radius: 14px;
    --motion-fast: 180ms ease;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --bg: #131B2E;
      --surface: #1B2540;
      --surface-2: #212C4B;
      --line: #2C3860;
      --ink: #EDF0F7;
      --ink-soft: #A7B0C9;
      --ink-faint: #6E7A9C;
      --accent: #F58540;
      --accent-soft: #3A2A1E;
      --violet: #9D82D9;
      --violet-soft: #2B2347;
      --green: #46B583;
      --green-soft: #1B3A2D;
      --red: #E56670;
      --red-soft: #3E2226;
      --shadow: 0 1px 2px rgba(0,0,0,.25), 0 8px 24px rgba(0,0,0,.25);
      --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 16px 40px rgba(0,0,0,.35);
    }
  }
  :root[data-theme="light"] {
    --bg: #FAF9F7; --surface: #FFFFFF; --surface-2: #F4F2ED; --line: #E8E4DC;
    --ink: #1D2B4A; --ink-soft: #5C6784; --ink-faint: #8A93AB;
    --accent: #F0762B; --accent-soft: #FDEDE2;
    --violet: #7C5CBF; --violet-soft: #EFEAF8;
    --green: #2E9E6B; --green-soft: #E3F3EC;
    --red: #D64550; --red-soft: #FBE7E9;
    --shadow: 0 1px 2px rgba(29,43,74,.05), 0 8px 24px rgba(29,43,74,.06);
    --shadow-lg: 0 2px 4px rgba(29,43,74,.06), 0 16px 40px rgba(29,43,74,.10);
  }
  :root[data-theme="dark"] {
    --bg: #131B2E; --surface: #1B2540; --surface-2: #212C4B; --line: #2C3860;
    --ink: #EDF0F7; --ink-soft: #A7B0C9; --ink-faint: #6E7A9C;
    --accent: #F58540; --accent-soft: #3A2A1E;
    --violet: #9D82D9; --violet-soft: #2B2347;
    --green: #46B583; --green-soft: #1B3A2D;
    --red: #E56670; --red-soft: #3E2226;
    --shadow: 0 1px 2px rgba(0,0,0,.25), 0 8px 24px rgba(0,0,0,.25);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 16px 40px rgba(0,0,0,.35);
  }

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    font-family: 'Nunito', 'Segoe UI', -apple-system, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.55;
  }
  button { font-family: inherit; cursor: pointer; }
  button, a, input, select, textarea, summary, [tabindex]:not([tabindex="-1"]) { transition: color var(--motion-fast), background-color var(--motion-fast), border-color var(--motion-fast), box-shadow var(--motion-fast); }
  button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:not([tabindex="-1"]):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
  .slot-option:has(input:focus-visible), .fcheck:has(input:focus-visible), .check-line:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  }























  @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
  @media (prefers-reduced-motion: reduce) {  }












  @media (max-width: 980px) {  }














  [data-area-only="akademie"] { display: none !important; }
  html[data-area="akademie"] [data-area-only="akademie"] { display: flex !important; }
  @media (max-width: 640px) {







  }

  .avatar {
    width: 34px; height: 34px; border-radius: 50%; flex: none;
    display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px;
  }
  .avatar.sm { width: 28px; height: 28px; font-size: 11px; }
  .avatar.lg { width: 46px; height: 46px; font-size: 17px; }
  .avatar.media-avatar, .avatar-big.media-avatar {
    display: block; object-fit: cover; padding: 0; color: transparent; background: var(--surface-2);
  }
  .av-1 { background: #E0745A; } .av-2 { background: #5B8DD9; } .av-3 { background: #8B67C9; }
  .av-4 { background: #3FA37C; } .av-5 { background: #D9A03F; } .av-6 { background: #C95B84; }
  .av-me { background: linear-gradient(135deg, var(--accent), var(--violet)); }




  @keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
  @media (prefers-reduced-motion: reduce) {  }





  .btn {
    border: none; border-radius: 10px; padding: 9px 18px;
    font-size: 14px; font-weight: 800; display: inline-flex; align-items: center; gap: 8px;
  }
  .btn-primary { background: var(--accent); color: #fff; transition: filter var(--motion-fast), box-shadow var(--motion-fast); }
  .btn-primary:hover { filter: brightness(1.07); }
  .btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
  .btn-ghost:hover { background: var(--surface-2); }
  .btn-violet { background: var(--violet); color: #fff; transition: filter var(--motion-fast), box-shadow var(--motion-fast); }
  .btn-violet:hover { filter: brightness(1.08); }
  .btn-sm { padding: 6px 13px; font-size: 13px; }

  .card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
  }
  .card-pad { padding: 20px; }
  .card h3 { margin: 0 0 4px; font-size: 16px; font-weight: 800; }
  .card .sub { color: var(--ink-soft); font-size: 13.5px; margin: 0; }

  .chip {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 800; border-radius: 20px; padding: 3px 10px;
  }
  .chip-orange { background: var(--accent-soft); color: var(--accent); }
  .chip-violet { background: var(--violet-soft); color: var(--violet); }
  .chip-green { background: var(--green-soft); color: var(--green); }
  .chip-red { background: var(--red-soft); color: var(--red); }
  .chip-grey { background: var(--surface-2); color: var(--ink-soft); }

  .progress { height: 7px; border-radius: 10px; background: var(--surface-2); overflow: hidden; }
  .progress i { display: block; height: 100%; border-radius: 10px; background: var(--accent); }
  .progress.green i { background: var(--green); }
  .progress.violet i { background: var(--violet); }

  /* ---------- Dashboard ---------- */
  .hero-live {
    border-radius: var(--radius); padding: 26px 28px; color: #fff;
    background: linear-gradient(120deg, #2A3B66 0%, var(--navy) 45%, #4A3670 100%);
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
    box-shadow: var(--shadow-lg); margin-bottom: 24px; position: relative; overflow: hidden;
  }
  :root[data-theme="dark"] .hero-live, :root:not([data-theme="light"]) .hero-live { border: 1px solid var(--line); }
  .hero-live::after {
    content: ""; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px;
    border-radius: 50%; background: radial-gradient(circle, rgba(240,118,43,.35), transparent 70%);
  }
  .hero-live .grow { flex: 1; min-width: 260px; position: relative; z-index: 1; }
  .hero-live h2 { margin: 8px 0 6px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
  .hero-live p { margin: 0; opacity: .82; font-size: 14.5px; }
  .live-pill {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(214,69,80,.95); border-radius: 20px; padding: 4px 12px;
    font-size: 12px; font-weight: 800; letter-spacing: .05em;
  }
  .live-pill i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }
  .hero-live .btn { position: relative; z-index: 1; }

  .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .dash-cols { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }

  .stat { padding: 18px 20px; }
  .stat .num { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
  .stat .lbl { font-size: 13px; color: var(--ink-soft); font-weight: 700; }
  .stat .delta { font-size: 12.5px; font-weight: 800; }
  .delta.up { color: var(--green); }
  .delta.down { color: var(--red); }

  .section-title { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 14px; }
  .section-title h2 { font-size: 17px; font-weight: 800; margin: 0; }
  .section-title a { font-size: 13px; font-weight: 800; color: var(--accent); text-decoration: none; }

  /* course cards */
  .course-card { overflow: hidden; display: flex; flex-direction: column; transition: transform var(--motion-fast), box-shadow var(--motion-fast); }
  .course-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
  .course-cover { height: 110px; position: relative; display: flex; align-items: flex-end; padding: 12px; overflow: hidden; }
  .cover-mathe { background: linear-gradient(120deg, #2E86AB, #1D2B4A); }
  .cover-englisch { background: linear-gradient(120deg, #F0762B, #C74E1C); }
  .cover-ki { background: linear-gradient(120deg, #7C5CBF, #4A3670); }
  .cover-franz { background: linear-gradient(120deg, #C95B84, #8A3057); }
  .cover-deutsch { background: linear-gradient(120deg, #3FA37C, #1F6B4E); }
  .cover-physik { background: linear-gradient(120deg, #5B8DD9, #2C4E8A); }
  .course-cover .glyph {
    position: absolute; right: 10px; top: -6px; font-size: 74px; font-weight: 800;
    color: rgba(255,255,255,.14); line-height: 1; user-select: none;
  }
  .course-cover-image, .course-hero-image, .course-side-image, .public-course-image, .time-card-image {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  }
  .course-cover::after, .cd-hero.has-image::before, .public-course-cover::after {
    content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,26,47,.04), rgba(18,26,47,.54)); pointer-events: none;
  }
  .course-cover > :not(.course-cover-image), .cd-hero.has-image > :not(.course-hero-image), .public-course-cover > :not(.public-course-image) { position: relative; z-index: 1; }
  .course-body { padding: 15px 17px 17px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
  .course-body h3 { margin: 0; font-size: 15.5px; font-weight: 800; line-height: 1.35; }
  .course-meta { font-size: 12.5px; color: var(--ink-soft); display: flex; gap: 12px; font-weight: 700; flex-wrap: wrap; align-items: center; }
  .course-badges { display: flex; flex-wrap: wrap; gap: 6px; }
  .course-badges .chip { font-size: 10.5px; padding: 2px 8px; }
  .course-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: 10px; }
  .pct { font-size: 12.5px; font-weight: 800; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

  .trainer-card {
    margin-top: 18px; padding: 18px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    border-color: var(--violet);
  }
  .trainer-icon {
    width: 50px; height: 50px; border-radius: 14px; flex: none;
    display: grid; place-items: center; background: var(--violet-soft); color: var(--violet);
    font-size: 20px; font-weight: 800;
  }
  .trainer-copy { flex: 1; min-width: 180px; }
  .trainer-copy h3 { margin: 4px 0 2px; }

  /* list rows */
  .row { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .row:last-child { border-bottom: none; }
  .row .grow { flex: 1; min-width: 0; }
  .row b { font-size: 14px; display: block; }
  .row .sub { font-size: 12.5px; color: var(--ink-soft); }
  .date-box {
    width: 46px; height: 48px; border-radius: 11px; flex: none;
    background: var(--violet-soft); color: var(--violet);
    display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
  }
  .date-box b { font-size: 17px; font-variant-numeric: tabular-nums; }
  .date-box span { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }

  /* ---------- Live view ---------- */
  .live-stage {
    border-radius: var(--radius); overflow: hidden; background: #10182B;
    color: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  }
  .stage-video {
    aspect-ratio: 16/7.5; position: relative;
    background:
      radial-gradient(ellipse at 30% 40%, rgba(124,92,191,.35), transparent 55%),
      radial-gradient(ellipse at 75% 65%, rgba(240,118,43,.28), transparent 55%),
      #141E36;
    display: grid; place-items: center;
  }
  .stage-video .center { text-align: center; }
  .stage-video .avatar { margin: 0 auto 12px; }
  .stage-bar { display: flex; align-items: center; gap: 14px; padding: 14px 20px; background: #0D1425; flex-wrap: wrap; }
  .stage-bar .grow { flex: 1; }
  .stage-bar b { font-size: 15px; }
  .stage-bar .sub { font-size: 12.5px; opacity: .65; }
  .tool-dot {
    width: 40px; height: 40px; border-radius: 50%; border: none;
    background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center;
  }
  .tool-dot:hover { background: rgba(255,255,255,.2); }
  .tool-dot.danger { background: var(--red); }
  .schedule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .schedule-card { padding: 22px; min-width: 0; transition: box-shadow var(--motion-fast), border-color var(--motion-fast); }
  .schedule-card.is-highlighted { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-lg); }
  .schedule-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
  .schedule-head h3 { margin: 5px 0 3px; font-size: 18px; }
  .schedule-note { margin: 14px 0; padding: 11px 12px; border-radius: 10px; background: var(--surface-2); color: var(--ink-soft); font-size: 12.5px; line-height: 1.45; }
  .slot-list { display: flex; flex-direction: column; gap: 8px; }
  .slot-option {
    display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: center;
    padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer;
  }
  .slot-option:hover { border-color: var(--accent); background: var(--accent-soft); }
  .slot-option.selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
  .slot-option input { margin: 0; accent-color: var(--accent); }
  .slot-option b { display: block; font-size: 13.5px; }
  .slot-option .sub { display: block; margin-top: 2px; font-size: 12px; }
  .schedule-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 15px; flex-wrap: wrap; }
  .schedule-confirm { flex: 1; min-width: 170px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
  .schedule-save:disabled { opacity: .45; cursor: not-allowed; }
  @media (max-width: 820px) { .schedule-grid { grid-template-columns: 1fr; } }

  /* ---------- Community ---------- */
  .composer { display: flex; gap: 12px; align-items: center; }
  .composer-tools { display: flex; gap: 4px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
  .composer-tools button {
    border: none; background: none; color: var(--ink-faint);
    width: 36px; height: 32px; border-radius: 8px; display: grid; place-items: center;
  }
  .composer-tools button:hover { background: var(--surface-2); color: var(--ink); }
  .composer-tools .gif-btn { font-size: 10.5px; font-weight: 800; border: 1.5px solid currentColor; border-radius: 6px; width: 32px; height: 22px; align-self: center; }
  .composer input {
    flex: 1; border: 1px solid var(--line); background: var(--surface-2);
    border-radius: 12px; padding: 11px 16px; font: inherit; color: var(--ink); outline: none;
    min-width: 0;
  }
  .composer input:focus { border-color: var(--accent); background: var(--surface); }
  .post { margin-top: 18px; }
  .post-head { display: flex; gap: 11px; align-items: center; }
  .post-head .grow { flex: 1; }
  .post-head b { display: block; font-size: 14.5px; }
  .post-head .sub { font-size: 12.5px; color: var(--ink-soft); }
  .post-body { margin: 12px 0 0; font-size: 14.5px; }
  .post-img {
    margin-top: 13px; border-radius: 12px; height: 170px;
    background: linear-gradient(115deg, #2E86AB 0%, #1D2B4A 55%, #7C5CBF 100%);
    display: grid; place-items: center; color: rgba(255,255,255,.9); font-weight: 800; font-size: 15px;
  }
  .post-actions { display: flex; gap: 4px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
  .post-actions button {
    border: none; background: none; color: var(--ink-soft); font-weight: 800; font-size: 13px;
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 8px;
  }
  .post-actions button:hover { background: var(--surface-2); color: var(--ink); }
  .post-actions button.liked { color: var(--accent); }
  .post-actions .spacer { flex: 1; }
  .post-actions .counts { font-size: 12.5px; color: var(--ink-faint); font-weight: 700; align-self: center; }

  .member-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
  .member-row b { font-size: 13.5px; display: block; }
  .member-row .sub { font-size: 12px; color: var(--ink-soft); }
  .member-row .btn { margin-left: auto; }

  /* ---------- Community-Bereiche & Event-Entdeckung ---------- */
  [data-community-area="akademie"] { display: none !important; }
  html[data-area="akademie"] [data-community-area="schule"] { display: none !important; }
  html[data-area="akademie"] [data-community-area="akademie"] { display: block !important; }






  .popular-card { margin-top: 18px; border-left: 4px solid var(--accent); }
  .popular-label { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
  .area-note { margin-bottom: 18px; border: 1px solid var(--line); background: var(--accent-soft); }

  .event-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
  .event-tabs .filter-chip { display: inline-flex; align-items: center; gap: 6px; }
  .event-controls { display: grid; grid-template-columns: minmax(180px, 1fr) 1.4fr; gap: 14px; align-items: end; margin-bottom: 20px; }
  .event-field label { display: block; margin-bottom: 6px; color: var(--ink-soft); font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
  .event-field select { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); padding: 10px 12px; font: inherit; font-weight: 700; }
  .radius-options { display: flex; gap: 8px; flex-wrap: wrap; }
  .event-city-panel { margin-bottom: 20px; }
  .event-city-panel[hidden], .event-empty[hidden], #event-main[hidden] { display: none !important; }
  .event-empty { margin: 0 0 18px; padding: 22px; text-align: center; border: 1px dashed var(--line); border-radius: 14px; background: var(--surface); }
  .event-empty h3 { margin: 0 0 6px; }
  .event-empty p { margin: 0 auto; max-width: 62ch; color: var(--ink-soft); }
  .empty-state { padding: 22px; text-align: center; border: 1px dashed var(--line); border-radius: 14px; background: var(--surface-2); color: var(--ink-soft); }
  .empty-state h3 { margin: 0 0 6px; color: var(--ink); }
  .empty-state p { margin: 0 auto; max-width: 62ch; }
  .event-standard { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; text-align: left; }
  .event-standard span { padding: 10px; border-radius: 10px; background: var(--surface-2); color: var(--ink-soft); font-size: 12px; font-weight: 700; }
  .source-rule { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
  .source-rule p { margin: 0; color: var(--ink-soft); font-size: 12.5px; }

  @media (max-width: 720px) {
    .buddy-grid, .event-controls, .event-standard { grid-template-columns: 1fr; }
    .event-tabs .filter-chip { flex: 1 1 calc(50% - 8px); justify-content: center; }
    .post-actions { flex-wrap: wrap; }
    .post-actions .spacer { display: none; }
    .post-actions .counts { width: 100%; padding: 4px 12px 0; }
  }

  /* ---------- Kursdetail (BuddyBoss-Stil) ---------- */
  .cd-hero {
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
    padding: 54px 34px 30px; color: #fff; position: relative; margin-bottom: 22px;
  }
  .cd-hero.has-image { min-height: 250px; display: flex; flex-direction: column; justify-content: flex-end; }
  .cd-hero .glyph {
    position: absolute; right: 30px; top: -20px; font-size: 150px; font-weight: 800;
    color: rgba(255,255,255,.12); line-height: 1; user-select: none;
  }
  .cd-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
  .cd-hero h1 { margin: 6px 0 10px; font-size: 32px; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
  .cd-hero .meta { display: flex; align-items: center; gap: 12px; font-size: 13.5px; opacity: .9; flex-wrap: wrap; }
  .cd-cols { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
  .cd-desc p { margin: 0 0 14px; max-width: 68ch; color: var(--ink); font-size: 15px; }
  .cd-progress { display: flex; align-items: center; gap: 16px; padding: 16px 20px; margin-bottom: 22px; }
  .cd-progress .progress { flex: 1; }
  .cd-progress b { font-variant-numeric: tabular-nums; white-space: nowrap; }
  .cd-progress .sub { white-space: nowrap; }

  .cd-sec {
    border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
    margin-bottom: 10px; overflow: hidden;
  }
  .cd-sec summary {
    display: flex; align-items: center; gap: 12px; padding: 15px 18px;
    cursor: pointer; font-weight: 800; font-size: 14.5px; list-style: none;
  }
  .cd-sec summary::-webkit-details-marker { display: none; }
  .cd-sec summary .arrow { transition: transform var(--motion-fast); color: var(--ink-faint); flex: none; }
  .cd-sec[open] summary .arrow { transform: rotate(90deg); }
  .cd-sec summary .topics { margin-left: auto; font-size: 12.5px; color: var(--ink-soft); font-weight: 700; white-space: nowrap; }
  .cd-sec.done summary .titel { text-decoration: line-through; color: var(--ink-soft); }
  .cd-topic {
    display: flex; align-items: center; gap: 11px; padding: 12px 18px 12px 44px;
    border-top: 1px solid var(--line); font-size: 14px; font-weight: 600;
  }
  .cd-topic.done { color: var(--ink-soft); text-decoration: line-through; }
  .cd-topic .frac { margin-left: auto; text-decoration: none; }

  .cd-side { position: sticky; top: 86px; }
  .cd-cover { height: 130px; border-radius: 12px 12px 0 0; position: relative; overflow: hidden; }
  .cd-side-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 13px; }
  .enrolled { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
  .enrolled .stack { display: flex; }
  .enrolled .stack .avatar { margin-left: -8px; border: 2px solid var(--surface); }
  .enrolled .stack .avatar:first-child { margin-left: 0; }
  .includes { display: flex; flex-direction: column; gap: 9px; border-top: 1px solid var(--line); padding-top: 14px; }
  .includes .inc { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); }
  .includes .inc svg { width: 16px; height: 16px; flex: none; color: var(--ink-faint); }

  /* ---------- Standard-Lernpaket und Lernpfade ---------- */
  .learning-package { margin: 24px 0; }
  .package-intro {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
    padding: 18px 20px; margin-bottom: 12px; border: 1px solid var(--line);
    border-radius: 12px; background: linear-gradient(135deg, var(--accent-soft), var(--surface));
  }
  .package-intro h3 { margin: 0 0 4px; font-size: 16px; }
  .package-intro p { margin: 0; color: var(--ink-soft); font-size: 13.5px; }
  .package-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .package-item {
    display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start;
    padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  }
  .pkg-num {
    width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 800;
  }
  .package-item h3 { margin: 0 0 3px; font-size: 14px; }
  .package-item p { margin: 0; color: var(--ink-soft); font-size: 12.5px; line-height: 1.45; }
  .package-item .chip { margin-top: 8px; }

  .path-hero {
    display: flex; justify-content: space-between; gap: 24px; align-items: center;
    padding: 28px; margin-bottom: 24px; border-radius: var(--radius); color: #fff;
    background: linear-gradient(125deg, #1D2B4A, #3D7CC9 58%, #7C5CBF); box-shadow: var(--shadow-lg);
  }
  .path-hero h1 { margin: 6px 0 8px; font-size: 30px; }
  .path-hero p { margin: 0; max-width: 62ch; color: rgba(255,255,255,.84); }
  .path-hero-stat { min-width: 145px; padding: 16px; border-radius: 12px; background: rgba(255,255,255,.14); text-align: center; }
  .path-hero-stat b { display: block; font-size: 28px; }
  .path-hero-stat span { font-size: 12px; font-weight: 800; opacity: .84; }
  .path-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .path-card { padding: 22px; min-width: 0; }
  .path-card:last-child { grid-column: 1 / -1; }
  .path-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
  .path-head h2 { margin: 4px 0 5px; font-size: 20px; }
  .path-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
  .path-progress { display: flex; align-items: center; gap: 12px; margin: 14px 0 8px; }
  .path-progress .progress { flex: 1; }
  .path-progress b { white-space: nowrap; font-size: 13px; }
  .path-steps { margin: 14px 0; border-top: 1px solid var(--line); }
  .path-step { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
  .path-step:last-child { border-bottom: none; }
  .path-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-faint); font-size: 12px; font-weight: 800; }
  .path-step.done .path-dot { background: #E0F3E8; color: var(--green); }
  .path-step.current .path-dot { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
  .path-step b { display: block; font-size: 13.5px; }
  .path-step .sub { font-size: 12px; }
  .path-actions { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; padding-top: 4px; }
  .forum-action-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
  .forum-action-head h3 { flex: 1; min-width: 180px; margin: 0; }
  @media (max-width: 640px) {
    .package-grid, .path-grid { grid-template-columns: 1fr; }
    .package-intro, .path-hero { flex-direction: column; }
    .path-card:last-child { grid-column: auto; }
    .path-hero { padding: 22px; }
    .forum-action-head h3 { flex-basis: 100%; min-width: 0; }
    .forum-action-head .btn { flex: 1; min-width: 0; justify-content: center; }
    .path-hero h1 { font-size: 25px; }
    .path-hero-stat { width: 100%; }
    .path-step { grid-template-columns: 28px minmax(0, 1fr); }
    .path-step > .chip { grid-column: 2; justify-self: start; }
  }
  @media (max-width: 1080px) { .cd-cols { grid-template-columns: 1fr; } .cd-side { position: static; } }

  /* ---------- Schnellzugriff-Kacheln (Member-Dashboard) ---------- */
  .quick-tiles { display: grid; grid-template-columns: repeat(4, 1fr); margin: 22px 0 4px; overflow: hidden; }
  .qt {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    padding: 26px 10px 22px; border: none; background: none;
    border-right: 1px solid var(--line); font-size: 15px; font-weight: 800; color: var(--ink);
  }
  .qt:last-child { border-right: none; }
  .qt:hover { background: var(--surface-2); }
  .qt .disc { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; }
  .qt .disc svg { width: 26px; height: 26px; }
  .disc-blue { background: #E3EDF9; color: #3D7CC9; }
  .disc-green { background: #E0F3E8; color: #2E9E6B; }
  .disc-rose { background: #FBE9E4; color: #E0745A; }
  .disc-violet { background: #EFEAF8; color: #7C5CBF; }
  :root[data-theme="dark"] .disc-blue, :root:not([data-theme="light"]) .disc-blue { background: #24344F; }
  :root[data-theme="dark"] .disc-green, :root:not([data-theme="light"]) .disc-green { background: #1B3A2D; }
  :root[data-theme="dark"] .disc-rose, :root:not([data-theme="light"]) .disc-rose { background: #3E2A26; }
  :root[data-theme="dark"] .disc-violet, :root:not([data-theme="light"]) .disc-violet { background: #2B2347; }
  @media (max-width: 860px) { .quick-tiles { grid-template-columns: repeat(2, 1fr); } .qt:nth-child(2) { border-right: none; } }

  /* ---------- Verzeichnisse: Katalog, Mitglieder, Gruppen ---------- */
  .dir-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; max-width: 100%; }
  .dir-tab {
    border: none; background: none; padding: 10px 14px; font-size: 14px; font-weight: 800;
    color: var(--ink-soft); border-bottom: 2.5px solid transparent;
  }
  .dir-tab:hover { color: var(--ink); }
  .dir-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
  .dir-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
  .dir-toolbar .count { font-weight: 800; font-size: 15px; margin-right: auto; }
  .select-chip {
    border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
    border-radius: 9px; padding: 7px 13px; font-size: 13px; font-weight: 700;
  }
  .select-chip:hover { background: var(--surface-2); }

  .badge-top { position: absolute; top: 10px; left: 10px; z-index: 1; }
  .course-cover .instructor, .cat-meta { display: flex; align-items: center; gap: 8px; }
  .cat-last { font-size: 12px; color: var(--ink-faint); font-weight: 700; }

  .member-card { text-align: center; padding: 22px 18px 0; display: flex; flex-direction: column; }
  .member-card .avatar-big {
    width: 86px; height: 86px; border-radius: 50%; margin: 0 auto;
    display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 28px; position: relative;
  }
  .role-badge {
    display: inline-block; margin: -12px auto 0; position: relative; z-index: 1;
    font-size: 10.5px; font-weight: 800; letter-spacing: .03em; color: #fff;
    border-radius: 20px; padding: 3px 11px;
  }
  .rb-teacher { background: #5B8DD9; } .rb-coach { background: #C95B84; }
  .rb-student { background: #3FA37C; } .rb-ki { background: #7C5CBF; } .rb-admin { background: #1D2B4A; }
  :root[data-theme="dark"] .rb-admin, :root:not([data-theme="light"]) .rb-admin { background: #56617E; }
  .member-card h3 { margin: 10px 0 2px; font-size: 16px; }
  .member-card .sub { font-size: 12.5px; color: var(--ink-soft); font-weight: 700; }
  .member-card .btn { margin: 14px 0 16px; justify-content: center; }
  .member-foot { display: flex; border-top: 1px solid var(--line); margin: auto -18px 0; }
  .member-foot button {
    flex: 1; border: none; background: none; padding: 10px; color: var(--ink-faint);
    display: grid; place-items: center;
  }
  .member-foot button:hover { color: var(--accent); background: var(--surface-2); }
  .member-foot button + button { border-left: 1px solid var(--line); }

  .group-card { overflow: hidden; text-align: center; display: flex; flex-direction: column; }
  .group-cover { height: 104px; }
  .group-avatar {
    width: 62px; height: 62px; border-radius: 14px; margin: -31px auto 0; position: relative; z-index: 1;
    display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px;
    border: 3px solid var(--surface); box-shadow: var(--shadow);
  }
  .group-card h3 { margin: 10px 0 2px; font-size: 16px; }
  .group-card .sub { font-size: 12.5px; color: var(--ink-soft); font-weight: 700; }
  .group-card .stack { display: flex; justify-content: center; margin: 12px 0 4px; }
  .group-card .stack .avatar { margin-left: -8px; border: 2px solid var(--surface); }
  .group-card .stack .avatar:first-child { margin-left: 0; }
  .group-card .btn { margin: 10px 18px 18px; justify-content: center; }

  .filter-card input {
    width: 100%; border: 1px solid var(--line); background: var(--surface-2);
    border-radius: 9px; padding: 9px 12px; font: inherit; color: var(--ink); outline: none; margin: 5px 0 13px;
  }
  .filter-card input:focus { border-color: var(--accent); background: var(--surface); }
  .filter-card label { font-size: 12.5px; font-weight: 800; color: var(--ink-soft); }

  /* ---------- Foren ---------- */
  .forum-img { height: 148px; position: relative; display: grid; place-items: center; }
  .forum-img .glyph { font-size: 56px; font-weight: 800; color: rgba(255,255,255,.2); user-select: none; }
  .forum-card p { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-soft); }
  .disc-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .disc-row:last-child { border-bottom: none; }
  .disc-row > div { flex: 1; min-width: 0; }
  .disc-row b { font-size: 14.5px; display: block; }
  .disc-row .sub { font-size: 12.5px; color: var(--ink-soft); }
  .disc-row .meta { margin-left: auto; font-size: 12.5px; color: var(--ink-faint); font-weight: 700; white-space: nowrap; }

  /* ---------- Gruppen-Detail ---------- */
  .grp-hero { border-radius: var(--radius) var(--radius) 0 0; height: 180px; overflow: hidden; position: relative; }
  .group-cover-image { width: 100%; height: 100%; object-fit: cover; }
  .grp-head { padding: 0 26px 6px; display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
  .grp-head .group-avatar { width: 76px; height: 76px; margin: -38px 0 0; font-size: 24px; }
  .grp-id { padding-top: 12px; flex: 1; min-width: 220px; }
  .grp-id h1 { margin: 0; font-size: 22px; font-weight: 800; }
  .grp-id .sub { font-size: 13px; color: var(--ink-soft); font-weight: 700; }
  .grp-actions { padding-top: 14px; display: flex; gap: 8px; }

  /* ---------- Nachrichten ---------- */
  .msg-cols { display: grid; grid-template-columns: 320px 1fr; gap: 0; overflow: hidden; min-height: 560px; }
  .msg-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; }
  .msg-list .head { display: flex; align-items: center; gap: 8px; padding: 16px 16px 10px; }
  .msg-list .head h2 { margin: 0; font-size: 18px; font-weight: 800; flex: 1; }
  .msg-search { margin: 0 16px 10px; display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid transparent; border-radius: 9px; padding: 7px 11px; color: var(--ink-faint); }
  .msg-search input { border: none; background: none; outline: none; flex: 1; font: inherit; color: var(--ink); font-size: 13.5px; }
  .msg-item { display: flex; gap: 10px; align-items: center; padding: 11px 16px; border: none; background: none; text-align: left; width: 100%; }
  .msg-item:hover { background: var(--surface-2); }
  .msg-item.active { background: var(--accent-soft); }
  .msg-item b { font-size: 13.5px; display: block; }
  .msg-item .sub { font-size: 12px; color: var(--ink-soft); }
  .msg-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: auto; flex: none; }
  .msg-thread { display: flex; flex-direction: column; }
  .msg-thread .head { display: flex; align-items: center; gap: 11px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-weight: 800; }
  .msg-scroll { flex: 1; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
  .date-sep { text-align: center; font-size: 11.5px; font-weight: 800; color: var(--ink-faint); letter-spacing: .05em; }
  .msg-row { display: flex; gap: 10px; }
  .msg-row .when { font-size: 11.5px; color: var(--ink-faint); font-weight: 700; margin-left: 7px; }
  .msg-row p { margin: 2px 0 0; font-size: 14px; }
  .msg-composer { display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--line); padding: 13px 16px; }
  .msg-composer input { flex: 1; border: 1px solid var(--line); background: var(--surface-2); border-radius: 20px; padding: 10px 16px; font: inherit; color: var(--ink); outline: none; }
  .msg-composer input:focus { border-color: var(--accent); background: var(--surface); }
  .msg-send { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--accent); color: #fff; display: grid; place-items: center; }
  @media (max-width: 900px) { .msg-cols { grid-template-columns: 1fr; } .msg-list { display: none; } }

  /* ---------- Benachrichtigungs-Menü ---------- */
  .noti-anchor { position: relative; }
  .noti-panel {
    display: none; position: absolute; top: 48px; right: 0; width: 350px; z-index: 50;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 16px 18px; text-align: left;
  }
  .noti-panel.open { display: block; }
  .noti-panel .head { display: flex; align-items: center; margin-bottom: 6px; }
  .noti-panel .head h3 { margin: 0; font-size: 16px; flex: 1; }
  .noti-panel .head a { font-size: 12.5px; font-weight: 800; color: var(--accent); text-decoration: none; }
  .noti-row { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
  .noti-row:last-of-type { border-bottom: none; }
  .noti-row .sub { font-size: 11.5px; color: var(--ink-faint); }
  .noti-row .dot { width: 8px; height: 8px; border-radius: 50%; background: #3D7CC9; margin-left: auto; flex: none; }
  .noti-row span.txt { font-size: 13px; font-weight: 600; }

  /* ---------- Menü-Panels (Profil, Warenkorb) ---------- */
  .menu-item {
    display: flex; align-items: center; gap: 11px; width: 100%;
    border: none; background: none; padding: 9px 8px; border-radius: 9px;
    font-size: 13.5px; font-weight: 700; color: var(--ink-soft); text-align: left;
  }
  .menu-item:hover { background: var(--surface-2); color: var(--ink); }
  .menu-item svg { width: 16px; height: 16px; flex: none; }
  .menu-item .count { margin-left: auto; font-size: 11px; font-weight: 800; background: var(--accent); color: #fff; border-radius: 20px; padding: 1px 8px; font-variant-numeric: tabular-nums; }
  .menu-sep { border-top: 1px solid var(--line); margin: 7px 0; }
  .cart-thumb { width: 46px; height: 46px; border-radius: 10px; flex: none; display: grid; place-items: center; font-size: 20px; }
  .cart-row { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .cart-row b { font-size: 13.5px; display: block; }
  .cart-row .sub { font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
  .cart-row .rm { margin-left: auto; border: none; background: none; color: var(--ink-faint); font-size: 15px; }
  .cart-row .rm:hover { color: var(--red); }
  .cart-foot { display: flex; align-items: center; gap: 10px; padding-top: 13px; }
  .cart-foot .sum { flex: 1; font-weight: 800; font-variant-numeric: tabular-nums; }

  /* ---------- Kasse ---------- */
  .form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; }
  .form-field { display: flex; flex-direction: column; margin-bottom: 13px; min-width: 0; }
  .form-field label { font-size: 12.5px; font-weight: 800; color: var(--ink-soft); margin-bottom: 5px; }
  .form-field label em { color: var(--red); font-style: normal; }
  .form-field input, .form-field select {
    border: 1px solid var(--line); background: var(--surface-2); border-radius: 9px;
    padding: 10px 12px; font: inherit; color: var(--ink); outline: none; min-width: 0; width: 100%; box-sizing: border-box;
  }
  .form-field input:focus, .form-field select:focus { border-color: var(--accent); background: var(--surface); }
  .form-field.full { grid-column: 1 / -1; }
  .order-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .order-row b { font-size: 14px; display: block; }
  .order-row .sub { font-size: 12px; color: var(--ink-soft); }
  .order-row .amt { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .order-total { display: flex; padding: 13px 0 0; font-weight: 800; font-size: 16px; }
  .order-total span:last-child { margin-left: auto; font-variant-numeric: tabular-nums; }
  .secure-note { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-soft); font-weight: 700; margin-top: 12px; }

  /* ---------- Konto-Einstellungen ---------- */
  .set-cols { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; }
  .set-nav { display: flex; flex-direction: column; gap: 4px; padding: 10px; }
  .set-nav button {
    display: flex; align-items: center; gap: 11px; border: none; background: none;
    padding: 11px 14px; border-radius: 10px; font-size: 14px; font-weight: 800;
    color: var(--ink-soft); text-align: left;
  }
  .set-nav button:hover { background: var(--surface-2); color: var(--ink); }
  .set-nav button.active { background: var(--accent); color: #fff; }
  .set-nav button.danger { color: var(--red); }
  .set-panel { display: none; }
  .set-panel.active { display: block; }
  .noti-matrix .cat { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); padding: 16px 0 4px; }
  .noti-line { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
  .noti-line .grow { flex: 1; }
  .noti-line label { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
  .vis-row { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
  .vis-row .grow { flex: 1; }
  @media (max-width: 900px) { .set-cols { grid-template-columns: 1fr; } .form-grid { grid-template-columns: minmax(0, 1fr); } }

  /* ---------- Info-Boxen, Profil-Panels, Fotos, Abzeichen ---------- */
  .info-box {
    display: flex; gap: 13px; align-items: flex-start;
    border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
    font-size: 14px; font-weight: 600; margin-bottom: 16px;
  }
  .info-box .ib-ico {
    width: 34px; height: 34px; border-radius: 8px; flex: none;
    display: grid; place-items: center; color: #fff; background: #3D7CC9; font-weight: 800;
  }
  .info-box .info-copy { min-width: 0; }
  .info-box.warn .ib-ico { background: var(--accent); }
  .check-line { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; margin: 4px 0 16px; }
  .btn-danger { background: var(--red); color: #fff; }
  .btn-danger:disabled { opacity: .45; cursor: not-allowed; }

  .prof-panel { display: none; }
  .prof-panel.active { display: block; }
  .fact-row { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .fact-row:last-child { border-bottom: none; }
  .fact-row .k { width: 160px; color: var(--ink-soft); font-weight: 700; flex: none; }
  .fact-row .v { font-weight: 600; }
  .card-head-row { display: flex; align-items: center; margin-bottom: 8px; }
  .card-head-row h3 { flex: 1; margin: 0; }

  .photo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 14px; }
  .photo-tile { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-size: 26px; }
  @media (max-width: 860px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }

  .award-card { display: flex; gap: 15px; align-items: flex-start; padding: 20px; }
  .award-ico {
    width: 54px; height: 54px; flex: none; display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, var(--accent), #C74E1C); border-radius: 14px;
  }
  .award-ico.blue { background: linear-gradient(135deg, #5B8DD9, #2C4E8A); }
  .award-card h3 { margin: 0 0 3px; }
  .award-card .earned { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
  .award-card .earned .avatar { margin-left: -6px; border: 2px solid var(--surface); }
  .award-card .earned .avatar:first-child { margin-left: 0; }

  .collection-hero {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 18px;
    padding: 22px; background: linear-gradient(135deg, var(--navy), #43326D); color: #fff;
  }
  .collection-hero h2 { margin: 5px 0 7px; font-size: 23px; }
  .collection-hero p { margin: 0; color: rgba(255,255,255,.78); font-size: 13.5px; max-width: 62ch; }
  .collection-progress { padding: 16px; border-radius: 14px; background: rgba(255,255,255,.1); }
  .collection-progress b { display: block; font-size: 20px; }
  .collection-progress .progress { background: rgba(255,255,255,.18); margin: 12px 0 7px; }
  .collection-progress .progress i { background: #fff; }
  .collection-progress span { font-size: 12px; color: rgba(255,255,255,.75); }
  .goal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr); gap: 18px; margin-top: 18px; }
  .weekly-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 14px 0; }
  .weekly-day { padding: 9px 4px; border-radius: 9px; text-align: center; background: var(--surface-2); color: var(--ink-faint); font-size: 11px; font-weight: 800; }
  .weekly-day.done { background: var(--green-soft); color: var(--green); }
  .weekly-day.joker { background: var(--accent-soft); color: var(--accent); }
  .goal-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
  .goal-state { color: var(--ink-soft); font-size: 12px; font-weight: 800; }
  .parent-link { border-left: 4px solid var(--green); }
  .parent-hero-image { width: 100%; height: clamp(150px, 24vw, 230px); border-radius: 12px; object-fit: cover; margin-bottom: 16px; }
  .parent-link-row { display: flex; gap: 12px; align-items: center; margin-top: 14px; }
  .parent-link-row > div { min-width: 0; flex: 1; }

  .time-card { overflow: hidden; min-width: 0; }


  .time-card-portrait > * { position: relative; z-index: 1; }








  .time-card.locked { filter: saturate(.35); }
  html:not([data-public="true"]) .time-card.locked .time-card-portrait::after { content: "Noch nicht gesammelt"; position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: rgba(20,28,49,.56); font-size: 12px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
  .activity-rule { margin-top: 18px; }

  @media (max-width: 900px) {
    .collection-hero, .goal-grid { grid-template-columns: minmax(0, 1fr); }

  }
  @media (max-width: 600px) {

    .weekly-day { padding: 8px 2px; font-size: 9.5px; }
  }

  /* ---------- Monatskalender (Events) ---------- */
  .cal-head-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
  .cal-head-row h3 { flex: 1; margin: 0; }
  .cal-nav { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); display: grid; place-items: center; }
  .cal-nav:hover { background: var(--surface-2); }
  .cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
  .cal .dow { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: var(--ink-faint); padding: 4px 0; }
  .cal-day {
    aspect-ratio: 1; display: grid; place-items: center; border-radius: 9px;
    font-size: 13px; font-weight: 700; color: var(--ink-soft); border: none; background: none;
    font-variant-numeric: tabular-nums;
  }
  .cal-day:disabled { cursor: default; opacity: 1; }
  .cal-day:not(:disabled):hover { background: var(--surface-2); }
  .cal-day.event { background: var(--accent-soft); color: var(--accent); font-weight: 800; }
  .cal-day.today { outline: 2px solid var(--accent); outline-offset: -2px; color: var(--ink); }
  .cal-day.mute { opacity: 0; pointer-events: none; }

  /* ---------- Katalog-Filter, Wizard, Coach-Bereich ---------- */
  .katalog-cols { display: grid; grid-template-columns: 230px 1fr; gap: 22px; align-items: start; }
  @media (max-width: 900px) { .katalog-cols { grid-template-columns: 1fr; } }
  .fgroup { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); padding: 14px 0 6px; }
  .fgroup:first-child { padding-top: 0; }
  .fcheck { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; padding: 5px 0; }

  .wizard-steps { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-bottom: 20px; }
  .wstep { border: none; background: none; font-size: 12.5px; font-weight: 800; color: var(--ink-faint); padding: 6px 2px; white-space: nowrap; }
  .wstep:hover { color: var(--ink); }
  .wstep.active { color: var(--accent); }
  .wstep.done { color: var(--green); }
  .wstep-sep { flex: 1; min-width: 12px; border-top: 1.5px solid var(--line); }
  .wpanel { display: none; }
  .wpanel.active { display: block; }
  .dropzone {
    border: 2px dashed var(--line); border-radius: 12px; padding: 38px 20px;
    text-align: center; color: var(--ink-soft); font-weight: 700;
  }
  .dropzone .btn { margin-top: 12px; }
  .wizard-foot { display: flex; gap: 10px; margin-top: 22px; }
  .wizard-foot .spacer { flex: 1; }

  .coach-head { display: flex; align-items: center; gap: 16px; padding: 20px; margin-bottom: 22px; flex-wrap: wrap; }
  .coach-head-copy { flex: 1; min-width: 240px; }
  .coach-head-copy h1 { margin: 5px 0 3px; font-size: 22px; font-weight: 800; }
  .coach-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
  .coach-kpi strong { display: block; margin-top: 6px; font-size: 17px; color: var(--ink); }
  .coach-kpi .sub { display: block; margin-top: 5px; font-size: 12px; }
  .coach-main { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); gap: 22px; margin-top: 22px; align-items: start; }
  .coach-stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
  .coach-inline-form[hidden], .coach-participants[hidden], .coach-offer-form[hidden] { display: none !important; }
  .coach-inline-form { margin-bottom: 20px; border-left: 4px solid var(--accent); }
  .coach-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .coach-form-grid .wide { grid-column: 1 / -1; }
  .coach-event {
    margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px;
    background: linear-gradient(135deg, var(--surface), var(--surface-2));
  }
  .coach-event-head { display: flex; align-items: flex-start; gap: 12px; }
  .coach-event-head > div { flex: 1; min-width: 0; }
  .coach-event h3 { margin: 5px 0 4px; }
  .coach-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 8px; color: var(--ink-soft); font-size: 12.5px; font-weight: 700; }
  .coach-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
  .coach-recording { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
  .coach-recording label { color: var(--ink-soft); font-size: 12.5px; font-weight: 700; }
  .coach-participants { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
  .coach-empty-row { padding: 18px 12px; text-align: center; color: var(--ink-soft); }
  .coach-offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
  .coach-offer { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
  .coach-offer h3 { margin: 8px 0 5px; font-size: 15px; }
  .coach-offer p { margin: 0; color: var(--ink-soft); font-size: 12.5px; }
  .coach-offer-foot { display: flex; align-items: center; gap: 8px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
  .coach-offer-foot .btn { margin-left: auto; }
  .coach-ledger-row { display: flex; gap: 10px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line); }
  .coach-ledger-row:last-child { border-bottom: none; }
  .coach-ledger-row > div { flex: 1; min-width: 0; }
  .coach-ledger-row b { display: block; font-size: 13.5px; }
  .coach-ledger-row .sub { display: block; margin-top: 2px; font-size: 11.5px; }
  @media (max-width: 980px) { .coach-main { grid-template-columns: 1fr; } }
  @media (max-width: 640px) {
    .coach-head-actions, .coach-head-actions .btn, .coach-actions .btn { width: 100%; }
    .coach-head-actions .btn, .coach-actions .btn { justify-content: center; }
    .coach-form-grid, .coach-offers { grid-template-columns: 1fr; }
    .coach-event-head { flex-wrap: wrap; }
  }

  /* ---------- Kalender-Auswahl, Modul-Schalter ---------- */
  .cal-day.sel { background: var(--accent); color: #fff; font-weight: 800; }
  .day-badge {
    width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--accent);
    color: var(--accent); font-weight: 800; display: grid; place-items: center; margin: 0 auto 12px;
    font-variant-numeric: tabular-nums;
  }
  .mod-tile { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
  .mod-tile h4 { margin: 0; font-size: 14.5px; font-weight: 800; }
  .mod-tile p { margin: 0; font-size: 12.5px; color: var(--ink-soft); flex: 1; }
  .mod-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
  .mod-foot .chip { margin-left: auto; }
  .switch {
    width: 40px; height: 22px; border-radius: 20px; border: none; flex: none;
    background: var(--line); position: relative; transition: background-color var(--motion-fast);
  }
  .switch::after {
    content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
    border-radius: 50%; background: #fff; transition: left var(--motion-fast);
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
  }
  .switch.on { background: var(--accent); }
  .switch.on::after { left: 21px; }

  /* ---------- Lektions-Ansicht (BuddyBoss-Stil) ---------- */
  .lesson-cols { display: grid; grid-template-columns: 290px 1fr; gap: 22px; align-items: start; }
  .curriculum { position: sticky; top: 86px; }
  .curriculum .head { padding: 16px 18px 13px; border-bottom: 1px solid var(--line); }
  .curriculum .head b { font-size: 15px; }
  .curriculum .head .progress { margin-top: 9px; }
  .curr-sec { border-bottom: 1px solid var(--line); }
  .curr-sec-title { display: flex; align-items: center; gap: 9px; padding: 11px 18px; font-size: 13px; font-weight: 800; }
  .curr-sec-title.done { text-decoration: line-through; color: var(--ink-soft); }
  .curr-sec-title .check-dot { margin-left: auto; width: 18px; height: 18px; font-size: 10px; }
  .curr-topic {
    display: flex; align-items: center; gap: 9px; padding: 9px 18px 9px 32px;
    font-size: 13px; font-weight: 600; color: var(--ink-soft);
  }
  .curr-topic.active { background: var(--accent-soft); color: var(--accent); font-weight: 800; border-right: 3px solid var(--accent); }
  .curr-topic .check-dot { margin-left: auto; width: 18px; height: 18px; font-size: 10px; }
  .curr-label { font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint); padding: 13px 18px 4px; }
  .participants { padding: 4px 18px 16px; }
  .participants .member-row { padding: 5px 0; }

  .lesson-topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
  .lesson-topbar .crumbs { font-size: 13px; color: var(--ink-soft); font-weight: 700; }
  .lesson-topbar .crumbs a { color: var(--accent); text-decoration: none; }
  .pager { margin-left: auto; display: flex; gap: 6px; }
  .pager button {
    width: 34px; height: 30px; border-radius: 8px; border: 1px solid var(--line);
    background: var(--surface); color: var(--ink-soft); display: grid; place-items: center;
  }
  .pager button:hover { background: var(--surface-2); }
  .lesson-eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
  .lesson-body h1 { font-size: 27px; font-weight: 800; margin: 6px 0 10px; letter-spacing: -.01em; text-wrap: balance; }
  .lesson-author { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-soft); font-weight: 700; margin-bottom: 18px; }
  .lesson-progress-label { font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px; }
  .lesson-text p { margin: 0 0 14px; max-width: 68ch; font-size: 15px; }
  .video-ph {
    border-radius: 12px; aspect-ratio: 16/8; margin: 18px 0;
    background:
      radial-gradient(ellipse at 30% 40%, rgba(124,92,191,.4), transparent 55%),
      radial-gradient(ellipse at 75% 70%, rgba(240,118,43,.3), transparent 55%),
      #141E36;
    display: grid; place-items: center; color: #fff;
  }
  .video-ph .play {
    width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.16);
    display: grid; place-items: center; margin: 0 auto 10px; border: 2px solid rgba(255,255,255,.6);
  }
  .mark-done { margin-top: 8px; }
  .mark-done.done { background: var(--green); }

  @media (max-width: 1080px) { .lesson-cols { grid-template-columns: 1fr; } .curriculum { position: static; } }

  /* ---------- Profil (BuddyBoss-Stil) ---------- */
  .profile-head {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 22px;
  }
  .profile-cover {
    height: 210px; position: relative;
    background:
      radial-gradient(ellipse at 20% 110%, rgba(29,43,74,.75), transparent 60%),
      radial-gradient(ellipse at 85% 120%, rgba(124,92,191,.55), transparent 55%),
      linear-gradient(180deg, #F2C49B 0%, #E08D9C 45%, #6E7CB0 100%);
  }
  .profile-cover .edit-cover {
    position: absolute; top: 14px; right: 14px;
    background: rgba(255,255,255,.9); color: #1D2B4A; border: none;
    border-radius: 8px; padding: 6px 12px; font-size: 12.5px; font-weight: 800;
  }
  .profile-bar { display: flex; align-items: flex-end; gap: 20px; padding: 0 28px 6px; flex-wrap: wrap; }
  .avatar-xl {
    width: 108px; height: 108px; border-radius: 50%; margin-top: -54px; flex: none;
    border: 5px solid var(--surface); position: relative;
    display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 36px;
    background: linear-gradient(135deg, var(--accent), var(--violet));
    box-shadow: var(--shadow);
  }
  .avatar-xl .online {
    position: absolute; right: 6px; top: 6px; width: 16px; height: 16px;
    border-radius: 50%; background: var(--green); border: 3px solid var(--surface);
  }
  .profile-id { padding: 12px 0 10px; }
  .profile-id h1 { margin: 0; font-size: 25px; font-weight: 800; letter-spacing: -.01em; }
  .profile-id .sub { color: var(--ink-soft); font-size: 13.5px; font-weight: 700; }
  .profile-stats { margin-left: auto; display: flex; gap: 22px; padding: 12px 0 10px; }
  .profile-stats b { font-size: 17px; font-variant-numeric: tabular-nums; display: block; line-height: 1.2; }
  .profile-stats span { font-size: 12.5px; color: var(--ink-soft); font-weight: 700; }
  .profile-tabs {
    display: flex; gap: 4px; padding: 6px 20px 0; border-top: 1px solid var(--line); margin-top: 12px;
    overflow-x: auto; overflow-y: hidden; width: 100%; max-width: 100%; min-width: 0; contain: inline-size paint;
  }
  .ptab {
    border: none; background: none; padding: 12px 12px; font-size: 14px; font-weight: 800;
    color: var(--ink-soft); border-bottom: 2.5px solid transparent; white-space: nowrap;
  }
  .ptab:hover { color: var(--ink); }
  .ptab.active { color: var(--accent); border-bottom-color: var(--accent); }
  .ptab .count { font-size: 11.5px; background: var(--surface-2); border-radius: 20px; padding: 1px 7px; margin-left: 5px; font-variant-numeric: tabular-nums; }
  .profile-cols { display: grid; grid-template-columns: 280px 1fr 300px; gap: 20px; align-items: start; }
  .follow-grid { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }

  .ring-wrap { display: flex; justify-content: center; padding: 10px 0 6px; }
  .ring-num { font-size: 22px; font-weight: 800; fill: var(--ink); font-variant-numeric: tabular-nums; }
  .ring-lbl { font-size: 9.5px; font-weight: 800; fill: var(--ink-soft); letter-spacing: .04em; }
  .check-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13.5px; font-weight: 700; }
  .check-dot {
    width: 21px; height: 21px; border-radius: 50%; flex: none; display: grid; place-items: center;
    font-size: 12px; font-weight: 800;
  }
  .check-dot.done { background: var(--green); color: #fff; }
  .check-dot.open { background: var(--surface-2); color: var(--ink-faint); border: 1.5px dashed var(--ink-faint); }
  .check-row .frac { margin-left: auto; font-size: 12.5px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
  .check-row.open-item { color: var(--ink-soft); }

  @media (max-width: 1080px) {
    .profile-cols { grid-template-columns: minmax(0, 1fr); }
    .profile-cols > * { min-width: 0; }
  }

  /* ---------- Marktplatz (Kleinanzeigen) ---------- */
  .price { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
  .price small { font-size: 12.5px; color: var(--ink-soft); font-weight: 700; }
  .rating { color: #D9A03F; font-size: 13px; letter-spacing: 1px; }
  .rating span { color: var(--ink-faint); font-size: 12.5px; letter-spacing: 0; font-weight: 700; }

  .listing-img {
    height: 148px; position: relative; display: grid; place-items: center;
    font-size: 52px; user-select: none;
  }
  .li-bg-1 { background: linear-gradient(135deg, #F4E9D8, #E3CFA8); }
  .li-bg-2 { background: linear-gradient(135deg, #D9E6F2, #AECBE8); }
  .li-bg-3 { background: linear-gradient(135deg, #E5DEF4, #C9BAE8); }
  .li-bg-4 { background: linear-gradient(135deg, #DDEEE4, #B3D9C4); }
  .li-bg-5 { background: linear-gradient(135deg, #F6E0DC, #E8B8AE); }
  .li-bg-6 { background: linear-gradient(135deg, #EBEBE5, #CFCFC2); }
  :root[data-theme="dark"] .listing-img, :root:not([data-theme="light"]) .listing-img { filter: saturate(.85); }
  .fav-btn {
    position: absolute; top: 10px; right: 10px; width: 34px; height: 34px;
    border-radius: 50%; border: none; background: rgba(255,255,255,.92);
    color: #5C6784; display: grid; place-items: center; font-size: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.15); transition: transform var(--motion-fast), color var(--motion-fast);
  }
  .fav-btn:hover { transform: scale(1.08); }
  .fav-btn.faved { color: var(--red); }
  .listing-price { font-size: 17px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
  .listing-price.gratis { color: var(--green); }
  .listing-loc { font-size: 12px; color: var(--ink-faint); font-weight: 700; display: flex; gap: 10px; }
  .seller-row {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 8px; align-items: center;
    margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line);
  }
  .seller-row .sub { font-size: 12.5px; color: var(--ink-soft); font-weight: 700; }
  .seller-row .avatar { grid-column: 1; grid-row: 1 / span 2; }
  .seller-row .btn { grid-column: 3; grid-row: 1; margin-left: 0; }
  .seller-account { display: flex; flex-direction: column; min-width: 0; grid-column: 2; grid-row: 1 / span 2; }
  .seller-account b { font-size: 12.5px; line-height: 1.2; }
  .seller-account small { color: var(--ink-faint); font-size: 10.5px; font-weight: 800; }
  .listing-report {
    border: none; background: none; color: var(--ink-faint); padding: 5px 3px;
    font-size: 11.5px; font-weight: 800;
  }
  .listing-report:hover, .listing-report.reported { color: var(--red); }
  .seller-row .listing-report { grid-column: 3; grid-row: 2; justify-self: end; }
  .market-stats { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
  .market-stats .sep { color: var(--ink-faint); }
  .market-rule {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center;
    margin-bottom: 20px; border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
    background: linear-gradient(135deg, var(--surface), var(--accent-soft));
  }
  .market-rule-icon {
    width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
    background: var(--navy); color: #fff; font-size: 23px;
  }
  .market-rule h2 { margin: 6px 0 3px; font-size: 18px; }
  .market-rule p { margin: 0; color: var(--ink-soft); font-size: 13px; }
  .market-rule-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
  .market-filter-label {
    align-self: center; color: var(--ink-faint); font-size: 11px; font-weight: 800;
    letter-spacing: .06em; text-transform: uppercase; padding: 0 2px;
  }
  .market-filter-status { margin: -10px 0 16px; color: var(--ink-soft); font-size: 12.5px; font-weight: 700; }
  #market-empty { margin-bottom: 18px; }
  [data-market-item][hidden], #market-empty[hidden] { display: none !important; }
  @media (max-width: 760px) {
    .market-rule { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
    .market-rule-actions { grid-column: 1 / -1; justify-content: stretch; }
    .market-rule-actions .btn { flex: 1; justify-content: center; }
  }

  /* ---------- Tabs / Filter ---------- */
  .filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
  .filter-chip {
    border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
    border-radius: 20px; padding: 6px 15px; font-size: 13px; font-weight: 800;
  }
  .filter-chip:hover { background: var(--surface-2); }
  .filter-chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
  :root[data-theme="dark"] .filter-chip.active { background: var(--accent); border-color: var(--accent); }

  /* ---------- Verwaltung ---------- */
  table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
  th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-faint); font-weight: 800; padding: 8px 12px; border-bottom: 1px solid var(--line); }
  td { padding: 11px 12px; border-bottom: 1px solid var(--line); font-weight: 600; }
  tr:last-child td { border-bottom: none; }
  td.num { font-variant-numeric: tabular-nums; text-align: right; font-weight: 800; }
  th.num { text-align: right; }
  .table-wrap { overflow-x: auto; }

  .spark { display: flex; align-items: flex-end; gap: 3px; height: 38px; }
  .spark i { flex: 1; background: var(--accent-soft); border-radius: 3px 3px 0 0; min-width: 6px; }
  .spark i.hot { background: var(--accent); }

  .admin-approval {
    padding: 22px; border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
    background: linear-gradient(135deg, var(--surface), var(--accent-soft));
  }
  .admin-approval-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
  .admin-approval-head h2 { margin: 3px 0 5px; font-size: 22px; }
  .admin-approval-head p { margin: 0; color: var(--ink-soft); max-width: 760px; font-size: 13.5px; }
  .approval-list { display: grid; gap: 10px; margin-top: 18px; }
  .approval-item {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center;
    padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface);
  }
  .approval-item h3 { margin: 4px 0 3px; font-size: 15px; }
  .approval-item p { margin: 0; color: var(--ink-soft); font-size: 12.5px; }
  .approval-course-preview { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; }
  .approval-course-preview img { width: 112px; aspect-ratio: 16 / 9; border-radius: 10px; object-fit: cover; }
  .approval-item.done { opacity: .72; }
  .approval-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
  .approval-state { min-width: 120px; text-align: right; color: var(--ink-soft); font-size: 12px; font-weight: 800; }
  .admin-work-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 18px; align-items: start; }
  .admin-checklist { display: grid; gap: 8px; margin: 14px 0; }
  .admin-check {
    display: flex; gap: 9px; align-items: flex-start; padding: 9px 10px;
    border-radius: 10px; background: var(--surface-2); font-size: 12.5px; font-weight: 700;
  }
  .admin-check::before { content: "✓"; color: var(--green); font-weight: 900; }
  .factory-result { margin-top: 10px; padding: 11px 12px; border-radius: 10px; background: var(--green-soft); color: var(--green); font-size: 12.5px; font-weight: 800; }
  .persona-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .persona-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
  .persona-card h3 { margin: 0; font-size: 15px; }
  .persona-card p { margin: 0; color: var(--ink-soft); font-size: 12px; }
  .persona-meta { display: grid; gap: 6px; font-size: 11.5px; }
  .persona-meta span { display: flex; justify-content: space-between; gap: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
  .persona-meta b { color: var(--ink-soft); }
  .persona-edit-state { min-height: 16px; color: var(--accent); font-size: 11.5px; font-weight: 800; }
  .integration-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .integration-grid .mod-tile { min-width: 0; }
  .commission-note { border-left: 4px solid var(--violet); }

  /* ---------- Zeitreise & Tagestrainer ---------- */
  .journey-intro {
    min-height: 250px; padding: 24px; background: linear-gradient(135deg, #182744, #54336F); color: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  }
  .journey-intro::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,26,47,.92), rgba(18,26,47,.24)); }
  .journey-intro > :not(.journey-hero-image) { position: relative; z-index: 1; }
  .journey-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .journey-intro h1 { margin: 6px 0 8px; font-size: 27px; }
  .journey-intro p { margin: 0; color: rgba(255,255,255,.78); max-width: 74ch; }
  .journey-layout { display: grid; grid-template-columns: minmax(320px, .85fr) minmax(0, 1.15fr); gap: 18px; margin-top: 18px; align-items: start; }
  .journey-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .journey-person { padding: 15px; text-align: left; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 13px; }
  .journey-person:hover, .journey-person.active { border-color: var(--accent); box-shadow: var(--shadow); }
  .journey-person.active { background: var(--accent-soft); }
  .journey-person b { display: block; margin: 8px 0 2px; }
  .journey-person small { color: var(--ink-soft); font-weight: 700; }
  .journey-avatar { width: 52px; height: 52px; border-radius: 15px; display: block; object-fit: cover; background: linear-gradient(135deg, var(--violet), var(--navy)); color: #fff; font-size: 23px; font-weight: 900; }
  .persona-card-portrait { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; }
  .journey-chat { overflow: hidden; }
  .journey-chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .journey-chat-head > div { min-width: 0; flex: 1; }
  .journey-chat-head h2 { margin: 0; font-size: 17px; }
  .journey-chat-head p { margin: 1px 0 0; color: var(--ink-soft); font-size: 12px; }
  .ai-disclosure { padding: 10px 16px; background: var(--violet-soft); color: var(--violet); font-size: 12px; font-weight: 800; }
  .journey-messages { min-height: 300px; max-height: 420px; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 11px; }
  .journey-bubble { max-width: 84%; padding: 11px 13px; border-radius: 13px; background: var(--surface-2); font-size: 13.5px; }
  .journey-bubble.ai { align-self: flex-start; border-bottom-left-radius: 4px; }
  .journey-bubble.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
  .journey-prompts { display: flex; gap: 7px; flex-wrap: wrap; padding: 0 18px 14px; }
  .journey-compose { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 14px 18px 18px; border-top: 1px solid var(--line); }
  .journey-compose input { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface-2); color: var(--ink); font: inherit; }
  .time-dialog { width: min(560px, calc(100vw - 32px)); border: none; border-radius: 18px; padding: 0; color: var(--ink); background: var(--surface); box-shadow: var(--shadow-lg); }
  .time-dialog::backdrop { background: rgba(12,20,38,.72); backdrop-filter: blur(3px); }
  .time-dialog-body { padding: 24px; }
  .time-dialog h2 { margin: 8px 0 7px; }
  .time-dialog p { color: var(--ink-soft); }
  .time-dialog ul { padding-left: 20px; color: var(--ink-soft); }
  .time-dialog-foot { display: flex; justify-content: flex-end; padding: 14px 24px; border-top: 1px solid var(--line); }

  .trainer-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .65fr); gap: 18px; align-items: start; }
  .trainer-stage { padding: 24px; }
  .trainer-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
  .flash-card { min-height: 300px; display: grid; place-items: center; text-align: center; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, var(--surface-2), var(--surface)); }
  .flash-card h2 { margin: 8px 0; font-size: 26px; }
  .flash-card p { color: var(--ink-soft); max-width: 58ch; }
  .flash-answer { margin-top: 12px; padding: 14px; border-radius: 12px; background: var(--green-soft); color: var(--green); font-weight: 800; }
  .trainer-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
  .trainer-queue { display: grid; gap: 9px; }
  .trainer-queue-item { padding: 11px; border-radius: 11px; background: var(--surface-2); font-size: 12.5px; }
  .trainer-queue-item b { display: block; }
  .trainer-queue-item span { color: var(--ink-soft); }

  /* ---------- Separate öffentliche Website ---------- */
  #public-site { display: none; min-height: 100vh; background: #FCFBF8; color: #1D2B4A; }
  html[data-public="true"] .app { display: none; }
  html[data-public="true"] #public-site { display: block; }
  .public-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); border-bottom: 1px solid #E8E4DC; backdrop-filter: blur(12px); }
  .public-header-inner { max-width: 1180px; margin: auto; min-height: 72px; padding: 10px 22px; display: flex; align-items: center; gap: 18px; }
  .public-brand { border: none; background: none; color: #1D2B4A; font-size: 21px; font-weight: 900; letter-spacing: -.02em; }
  .public-brand span { color: #F0762B; }
  .public-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
  .public-nav button { border: none; background: none; color: #5C6784; padding: 8px 10px; border-radius: 9px; font-weight: 800; }
  .public-nav button:hover, .public-nav button.active { color: #1D2B4A; background: #F4F2ED; }
  .public-actions { display: flex; gap: 8px; }
  .public-page { display: none; }
  .public-page.active { display: block; }
  .public-wrap { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
  .public-hero { padding: 72px 0 56px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 42px; align-items: center; }
  .public-hero h1 { margin: 10px 0 14px; font-size: clamp(38px, 6vw, 66px); line-height: 1.02; letter-spacing: -.045em; }
  .public-hero p { color: #5C6784; font-size: 18px; max-width: 62ch; }
  .public-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
  .public-hero-visual { min-height: 390px; border-radius: 28px; padding: 26px; background: linear-gradient(145deg, #1D2B4A, #6C4E9A); color: #fff; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 24px 70px rgba(29,43,74,.2); position: relative; overflow: hidden; }
  .public-hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,26,47,.2), rgba(18,26,47,.88)); }
  .public-hero-visual > :not(.public-hero-image) { position: relative; z-index: 1; }
  .public-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .public-hero-visual h2 { margin: 8px 0; font-size: 28px; }
  .public-hero-visual p { color: rgba(255,255,255,.75); font-size: 14px; }
  .public-stack { display: grid; gap: 9px; }
  .public-stack-item { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.1); font-size: 13px; font-weight: 800; }
  .public-section { padding: 58px 0; }
  .public-section.alt { background: #F4F2ED; }
  .public-kicker { color: #F0762B; font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
  .public-section h2, .public-page-head h1 { margin: 7px 0 10px; font-size: clamp(28px, 4vw, 42px); line-height: 1.12; }
  .public-site-shell .skip-link {
    position: fixed; top: 12px; left: 12px; z-index: 1000; transform: translateY(-180%);
    padding: 10px 14px; border-radius: 10px; background: #fff; color: #1D2B4A; font-weight: 900;
  }
  .public-site-shell .skip-link:focus { transform: translateY(0); }
  .public-site-shell button:focus-visible, .public-site-shell a:focus-visible,
  .public-site-shell input:focus-visible, .public-site-shell select:focus-visible,
  .public-site-shell textarea:focus-visible, .public-site-shell summary:focus-visible {
    outline: 3px solid var(--accent); outline-offset: 3px;
  }
  .public-lead { color: #5C6784; max-width: 72ch; font-size: 16px; }
  .public-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
  .public-feature { padding: 22px; border: 1px solid #E8E4DC; border-radius: 16px; background: #fff; }
  .public-feature h2 { overflow-wrap: anywhere; }
  .public-feature h3 { margin: 9px 0 6px; }
  .public-feature p { margin: 0; color: #5C6784; font-size: 13.5px; }
  .public-page-head { padding: 54px 0 28px; }
  .public-filter { display: flex; gap: 7px; flex-wrap: wrap; margin: 20px 0 24px; }
  .public-filter button { border: 1px solid #E8E4DC; background: #fff; color: #5C6784; border-radius: 20px; padding: 7px 13px; font-weight: 800; }
  .public-filter button.active { background: #1D2B4A; border-color: #1D2B4A; color: #fff; }
  .public-course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-bottom: 60px; }
  .public-course { border: 1px solid #E8E4DC; border-radius: 18px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
  .public-course-cover { min-height: 130px; padding: 18px; display: flex; align-items: flex-end; color: #fff; font-size: 30px; font-weight: 900; background: linear-gradient(135deg, #2E86AB, #1D2B4A); position: relative; overflow: hidden; }
  .public-course-body { padding: 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
  .public-course-body h2 { margin: 0; font-size: 1.17em; }
  .empty-state h2 { font-size: 1.17em; }
  .public-course-body p { margin: 0; color: #5C6784; font-size: 13px; }
  .public-course-body .btn { align-self: flex-start; margin-top: auto; }
  .public-detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .65fr); gap: 24px; padding: 54px 0 70px; align-items: start; }
  .public-detail h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; margin: 12px 0; }
  .public-detail-main > p { color: #5C6784; font-size: 17px; }
  .public-detail-list { display: grid; gap: 9px; margin-top: 24px; }
  .public-detail-list div { padding: 13px; border-radius: 12px; background: #F4F2ED; font-weight: 800; }
  .public-offer { padding: 22px; border: 1px solid #E8E4DC; border-radius: 18px; background: #fff; position: sticky; top: 96px; }
  .public-offer h2 { margin: 8px 0; }
  .public-offer p { color: #5C6784; font-size: 13.5px; }
  .membership-shell { padding: 54px 0 72px; }
  .membership-shell > .public-lead { margin-bottom: 22px; }
  .plan-toggle { width: fit-content; display: flex; gap: 4px; padding: 4px; border: 1px solid #E8E4DC; border-radius: 14px; background: #F4F2ED; }
  .plan-toggle button { border: none; border-radius: 10px; padding: 10px 16px; background: transparent; color: #5C6784; font-weight: 900; }
  .plan-toggle button.active { background: #1D2B4A; color: #fff; box-shadow: 0 4px 12px rgba(29,43,74,.14); }
  .membership-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr); gap: 22px; margin-top: 22px; align-items: start; }
  .membership-card { padding: 24px; border: 1px solid #E8E4DC; border-radius: 18px; background: #fff; }
  .membership-card h2, .membership-card h3 { margin: 8px 0; }
  .membership-price { display: flex; align-items: baseline; gap: 7px; margin: 14px 0 4px; color: #1D2B4A; }
  .membership-price strong { font-size: clamp(38px, 6vw, 54px); line-height: 1; letter-spacing: -.04em; }
  .membership-price span { color: #5C6784; font-weight: 800; }
  .founder-offer { margin-top: 18px; padding: 16px; border-radius: 14px; background: #FDEDE2; color: #7D3B13; }
  .founder-offer b { display: block; margin-bottom: 4px; }
  .checkout-summary { display: grid; gap: 0; margin: 16px 0; border-top: 1px solid #E8E4DC; }
  .checkout-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid #E8E4DC; color: #47536E; font-size: 13px; }
  .checkout-row b { color: #1D2B4A; text-align: right; }
  .checkout-note { color: #5C6784; font-size: 12.5px; }
  .cancel-form { max-width: 840px; }
  .cancel-form .form-grid { margin-top: 20px; }
  #cancel-reason-field[hidden] { display: none !important; }
  .cancel-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
  .public-coach-grid, .public-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-bottom: 60px; }
  .public-coach, .public-blog-card { padding: 20px; border: 1px solid #E8E4DC; border-radius: 18px; background: #fff; }
  .public-coach h2, .public-blog-card h2 { margin: 10px 0 5px; font-size: 1.17em; }
  .public-coach p, .public-blog-card p { color: #5C6784; font-size: 13px; }
  .public-apply { padding: 54px 0 70px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .7fr); gap: 28px; }
  .public-apply-hero { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 18px; margin-bottom: 22px; }
  .public-apply-steps { display: grid; gap: 12px; margin-top: 22px; }
  .public-apply-step { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: start; }
  .public-apply-step b:first-child { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #FDEDE2; color: #F0762B; }
  .public-footer { padding: 32px 0; border-top: 1px solid #E8E4DC; color: #5C6784; font-size: 12.5px; }
  .public-footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
  .public-footer-links { display: flex; gap: 8px; flex-wrap: wrap; }
  .public-footer-links button { border: none; background: none; padding: 2px 0; color: #1D2B4A; font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
  .public-legal { padding: 48px 0 72px; }
  .public-legal-head { max-width: 850px; margin-bottom: 26px; }
  .public-legal-head h1 { margin: 9px 0 12px; font-size: clamp(34px, 5vw, 52px); line-height: 1.06; }
  .legal-status { margin: 18px 0 24px; padding: 16px 18px; border: 1px solid #BFDCCB; border-radius: 14px; background: var(--green-soft); color: var(--green); }
  .legal-status b { display: block; margin-bottom: 4px; }
  .legal-status.draft { border-color: #F2CDAE; background: #FDEDE2; color: #7D3B13; }
  .legal-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .42fr); gap: 22px; align-items: start; }
  .legal-content, .legal-aside { display: grid; gap: 14px; min-width: 0; }
  .legal-section { min-width: 0; padding: 22px; border: 1px solid #E8E4DC; border-radius: 16px; background: #fff; }
  .legal-section h2 { margin: 0 0 10px; font-size: 21px; }
  .legal-section h3 { margin: 18px 0 6px; font-size: 16px; }
  .legal-section p { margin: 7px 0; color: #47536E; }
  .legal-section ul { margin: 9px 0 0; padding-left: 20px; color: #47536E; }
  .legal-section li + li { margin-top: 6px; }
  .legal-section a { color: #1D5C9E; font-weight: 800; }
  .legal-open { padding: 12px 14px; border-radius: 11px; background: #FFF4DF; color: #6C4711; font-weight: 800; }
  .legal-processor-list { display: grid; gap: 10px; margin-top: 14px; }
  .legal-processor { padding: 14px; border-radius: 12px; background: #F7F5F0; }
  .legal-processor b { display: block; margin-bottom: 3px; color: #1D2B4A; }
  .legal-meta { color: #6E7890; font-size: 12.5px; }
  .legal-model { margin-top: 14px; padding: 18px; border: 1px dashed #D6D0C4; border-radius: 12px; background: #F7F5F0; color: #47536E; overflow-wrap: anywhere; }
  .legal-model p:first-child { margin-top: 0; }
  .legal-model p:last-child { margin-bottom: 0; }
  .withdraw-form { max-width: 840px; }
  .withdraw-form .form-grid { margin-top: 20px; }

  @media (max-width: 980px) {
    .journey-layout, .trainer-layout, .public-hero, .public-detail, .public-apply, .legal-layout, .membership-grid { grid-template-columns: minmax(0, 1fr); }
    .public-feature-grid, .public-course-grid, .public-coach-grid, .public-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .public-offer { position: static; }
  }
  @media (max-width: 720px) {
    .journey-gallery { grid-template-columns: minmax(0, 1fr); }
    .journey-compose { grid-template-columns: minmax(0, 1fr); }
    .public-header-inner { flex-wrap: wrap; }
    .public-nav { order: 3; width: 100%; overflow-x: auto; margin-left: 0; }
    .public-actions { margin-left: auto; }
    .public-feature-grid, .public-course-grid, .public-coach-grid, .public-blog-grid { grid-template-columns: minmax(0, 1fr); }
    .public-hero { padding-top: 44px; }
    .public-hero-visual { min-height: 320px; }
    .public-legal-head h1 { font-size: 30px; overflow-wrap: anywhere; }
    .plan-toggle { width: 100%; }
    .plan-toggle button { flex: 1; padding-inline: 10px; }
    .checkout-row { align-items: flex-start; }
  }

  @media (max-width: 1080px) {
    .persona-grid, .integration-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 760px) {
    .approval-item, .admin-work-grid { grid-template-columns: minmax(0, 1fr); }
    .approval-course-preview { grid-template-columns: 84px minmax(0, 1fr); }
    .approval-course-preview img { width: 84px; }
    .approval-actions { justify-content: flex-start; }
    .approval-state { min-width: 0; text-align: left; }
    .persona-grid, .integration-grid { grid-template-columns: minmax(0, 1fr); }
  }

  /* ---------- Responsive ---------- */
  @media (max-width: 1080px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .dash-cols { grid-template-columns: minmax(0, 1fr); }
    .dash-cols > * { min-width: 0; }
  }
  @media (max-width: 860px) {


  }
  @media (max-width: 640px) {







    .topbar-actions > .icon-btn[aria-label="Nachrichten"], #btn-cart { display: none; }


    .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
    #view-katalog .katalog-cols > .grid-3 { grid-template-columns: 1fr !important; }

    .section-title { gap: 8px; align-items: flex-start; flex-wrap: wrap; }
    .card-head-row { gap: 8px; flex-wrap: wrap; }
    .disc-row { display: grid; grid-template-columns: 28px minmax(0, 1fr); }
    .disc-row > .avatar { grid-column: 1; grid-row: 1; }
    .disc-row > div { grid-column: 2; grid-row: 1; }
    .disc-row .meta { grid-column: 2; grid-row: 2; margin-left: 0; white-space: normal; }
    .hero-live { padding: 20px; gap: 16px; flex-direction: column; align-items: flex-start; }
    .hero-live .grow { min-width: 0; width: 100%; }
    .hero-live h2 { font-size: 20px; }
    .hero-live .btn { width: 100%; justify-content: center; }
    .trainer-card .btn { width: 100%; justify-content: center; }
    #view-kurse .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
    #view-kurse .row > .chip { grid-column: 1; grid-row: 1; justify-self: start; }
    #view-kurse .row .grow { grid-column: 1 / -1; grid-row: 2; width: auto; }
    #view-kurse .row > .btn { grid-column: 2; grid-row: 1; justify-self: end; }
    #view-live .row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; }
    #view-live .row .date-box { grid-column: 1; grid-row: 1 / span 2; }
    #view-live .row .grow { grid-column: 2 / -1; grid-row: 1; width: auto; }
    #view-live .row > .chip { grid-column: 2; grid-row: 2; justify-self: start; }
    #view-live .row > .btn { grid-column: 3; grid-row: 2; justify-self: end; }
    #view-events .row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; }
    #view-events .row .date-box { grid-column: 1; grid-row: 1 / span 2; }
    #view-events .row .grow { grid-column: 2 / -1; grid-row: 1; width: auto; }
    #view-events .row > .chip { grid-column: 2; grid-row: 2; justify-self: start; }
    #view-events .row > .btn { grid-column: 3; grid-row: 2; justify-self: end; }
    #view-master .row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; }
    #view-master .row > .avatar { grid-column: 1; grid-row: 1 / span 2; }
    #view-master .row .grow { grid-column: 2 / -1; grid-row: 1; width: auto; }
    #view-master .row > .price { grid-column: 2; grid-row: 2; }
    #view-master .row > .btn { grid-column: 3; grid-row: 2; justify-self: end; }
  }
.demo-banner{position:sticky;top:0;z-index:100;background:#1D2B4A;color:#fff;padding:10px 16px;text-align:center;font-weight:800;font-size:14px;}

/* Static public-site structure */
.public-site-shell { min-height: 100vh; background: #FCFBF8; color: #1D2B4A; }
.public-site-shell .public-page { display: block; }
.public-site-shell .public-page.active { display: block; }
.public-site-shell .public-header { position: sticky; top: 0; }
.public-site-shell .public-brand, .public-site-shell .public-nav a, .public-site-shell .public-actions a { text-decoration: none; }
.public-site-shell .public-nav a { color: #5C6784; padding: 8px 10px; border-radius: 9px; font-weight: 800; }
.public-site-shell .public-nav a:hover, .public-site-shell .public-nav a[aria-current="page"] { color: #1D2B4A; background: #F4F2ED; }
.public-site-shell .public-footer-links a { color: #1D2B4A; font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.public-site-shell .public-filter .filter-chip { border: 1px solid #E8E4DC; background: #fff; color: #5C6784; border-radius: 20px; padding: 7px 13px; font-weight: 800; display: inline-block; }
.public-site-shell .article { max-width: 820px; margin: 0 auto; padding: 54px 0 70px; }
.public-site-shell .article h1 { margin: 12px 0; font-size: clamp(34px, 5vw, 52px); line-height: 1.06; }
.public-site-shell .article h2 { margin: 30px 0 10px; font-size: 27px; }
.public-site-shell .article p, .public-site-shell .article li { color: #5C6784; line-height: 1.7; }
.public-site-shell .article ul, .public-site-shell .article ol { padding-left: 1.4rem; }
.public-site-shell .article-meta { color: #8A93AB; font-size: 13px; }
.public-site-shell .article-lead { font-size: 18px; color: #1D2B4A !important; }
.public-site-shell .article-back { color: #F0762B; font-weight: 800; text-decoration: none; }
.public-site-shell .article-context { border: 1px solid #E8E4DC; background: #F4F2ED; border-radius: 14px; padding: 16px 18px; margin: 22px 0; }
.public-site-shell .article-context p { margin: 0; }
.public-site-shell .article-footer-cta { margin-top: 30px; padding: 20px; border-radius: 14px; background: #FDEDE2; }
.public-site-shell .article-footer-cta p { margin: 0 0 12px; }
.public-site-shell .legal-status { margin: 0 auto 24px; max-width: 850px; }
.public-site-shell .public-page form button { cursor: pointer; }
.demo-banner { position: sticky; top: 0; z-index: 100; margin: 0; padding: 10px 16px; background: #1D2B4A; color: #fff; text-align: center; font-weight: 800; font-size: 14px; }
@media (max-width: 720px) { .public-site-shell .public-header-inner { align-items: flex-start; } .public-site-shell .public-nav { width: 100%; order: 3; } .public-site-shell .article { padding-top: 38px; } }
