/* ==========================================================================
   CloudLights Wiki – Stylesheet
   --------------------------------------------------------------------------
   Alles hängt am Wurzelelement .cl, alle Klassen beginnen mit "cl-".
   Layouts reagieren per Container Query auf die verfügbare Breite
   (wichtig für SharePoint-Spalten). Keine externen Schriften oder CDNs.
   ========================================================================== */

html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }

/* ---------- Tokens ---------- */
.cl {
  --cl-brand: #b5490f;
  --cl-brand-strong: #933a0a;
  --cl-brand-soft: #fbe9dd;
  --cl-brand-tint: #fdf5f0;
  --cl-on-brand: #fff;

  --cl-bg: #faf6f3;
  --cl-surface: #ffffff;
  --cl-surface-2: #f8f2ee;
  --cl-surface-3: #efe5de;
  --cl-ink: #1f1916;
  --cl-ink-2: #56493f;
  --cl-ink-3: #75675d;
  --cl-line: #ece2da;
  --cl-line-strong: #dbccc1;

  /* Nacht (Startseiten-Bühne) */
  --cl-night: #170f0c;
  --cl-night-2: #2a1a13;

  /* Lichtfarben aus dem Logo */
  --cl-l1: #b93a96; --cl-l2: #5b2a86; --cl-l3: #2d9bd7; --cl-l4: #3fae49; --cl-l5: #f2b52e; --cl-l6: #ee7d30;

  --cl-good: #1f7a3a; --cl-good-soft: #e3f3e6;
  --cl-warn: #8a5a00; --cl-warn-soft: #fff1d1;
  --cl-crit: #b3261e; --cl-crit-soft: #fbe5e3;

  --cl-radius: 16px;
  --cl-radius-sm: 10px;
  --cl-shadow: 0 1px 2px rgba(31, 25, 22, .06), 0 0 0 1px rgba(31, 25, 22, .045);
  --cl-shadow-lg: 0 22px 48px -18px rgba(60, 25, 5, .35), 0 2px 8px rgba(31, 25, 22, .08);
  --cl-ease: cubic-bezier(.2, .7, .2, 1);

  --cl-font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --cl-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --cl-mono: "Cascadia Code", "Cascadia Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  color-scheme: light;
  container: cl / inline-size;
  min-height: 100%;
  background: var(--cl-bg);
  color: var(--cl-ink);
  font-family: var(--cl-font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.cl[data-cl-theme="dark"] {
  /* Dunkles Schieferblau statt Schwarz – ruhiger für die Augen, Orange bleibt Akzent */
  --cl-brand: #f39a5f; --cl-brand-strong: #ffb27f; --cl-brand-soft: #3a2a26; --cl-brand-tint: #262630; --cl-on-brand: #1a0d06;
  --cl-bg: #161c27; --cl-surface: #1e2533; --cl-surface-2: #242d3d; --cl-surface-3: #2d3749;
  --cl-ink: #eef2f8; --cl-ink-2: #c4cddb; --cl-ink-3: #94a1b6; --cl-line: #2e3849; --cl-line-strong: #3e4a60;
  --cl-good: #72d49a; --cl-good-soft: #17302a; --cl-warn: #f2c261; --cl-warn-soft: #362e1b; --cl-crit: #f39189; --cl-crit-soft: #3b2328;
  --cl-shadow: 0 0 0 1px rgba(255, 255, 255, .05), 0 1px 2px rgba(0, 0, 0, .25);
  --cl-shadow-lg: 0 22px 48px -18px rgba(3, 8, 20, .75), 0 0 0 1px rgba(255, 255, 255, .07);
  color-scheme: dark;
}

/* ---------- Basis ---------- */
.cl *, .cl *::before, .cl *::after { box-sizing: border-box; }
.cl :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd) { margin: 0; }
.cl :where(ul, ol) { padding: 0; list-style: none; }
.cl :where(img, svg) { display: block; max-width: 100%; }
.cl :where(button, input, select, textarea) { font: inherit; color: inherit; }
.cl :where(button) { cursor: pointer; }
.cl :where(a) { color: var(--cl-brand); text-decoration: none; }
.cl :where(a:hover) { text-decoration: underline; text-underline-offset: 3px; }
.cl :where(:focus-visible) { outline: 2px solid var(--cl-brand); outline-offset: 2px; border-radius: 6px; }
.cl [hidden] { display: none !important; }
.cl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cl-ico { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -3px; }
.cl-ico--sm { width: 15px; height: 15px; vertical-align: -2px; }
.cl-ico--lg { width: 22px; height: 22px; }
.cl-muted { color: var(--cl-ink-3); }
.cl-mono { font-family: var(--cl-mono); font-variant-numeric: tabular-nums; }
.cl-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cl-brand); }
.cl kbd { font-family: var(--cl-mono); font-size: 11px; padding: 2px 6px; border: 1px solid var(--cl-line); border-bottom-width: 2px; border-radius: 6px; background: var(--cl-surface); color: var(--cl-ink-3); }

/* ---------- Kopfzeile ---------- */
.cl-shell { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--cl-surface) 86%, transparent); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); border-bottom: 1px solid var(--cl-line); }
.cl-shell__bar { display: flex; align-items: center; gap: 20px; max-width: 1360px; margin: 0 auto; padding: 0 28px; height: 64px; }
.cl-brand { display: flex; align-items: center; gap: 10px; color: var(--cl-ink); flex: none; }
.cl-brand:hover { text-decoration: none; }
.cl-logo { width: 46px; height: 29px; }
.cl-brand__name { font-family: var(--cl-display); font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1; }
.cl-brand__name b { font-weight: 800; color: var(--cl-brand); margin-left: 4px; }
.cl-nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; height: 100%; }
.cl-nav::-webkit-scrollbar { display: none; }
.cl-nav__link { position: relative; display: flex; align-items: center; padding: 0 13px; color: var(--cl-ink-2); font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.cl-nav__link:hover { color: var(--cl-ink); text-decoration: none; }
.cl-nav__link[aria-current="page"] { color: var(--cl-ink); font-weight: 650; }
.cl-nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--cl-l6), var(--cl-brand)); }
.cl-shell__tools { display: flex; align-items: center; gap: 6px; flex: none; }
.cl-searchbtn { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 8px 0 13px; min-width: 230px; border: 1px solid var(--cl-line); border-radius: 999px; background: var(--cl-surface-2); color: var(--cl-ink-3); font-size: 14px; transition: border-color .15s, background .15s; }
.cl-searchbtn:hover { border-color: var(--cl-line-strong); background: var(--cl-surface); }
.cl-searchbtn kbd { margin-left: auto; }
@container cl (max-width: 1040px) { .cl-searchbtn { min-width: 0; padding: 0 11px; } .cl-searchbtn span, .cl-searchbtn kbd { display: none; } }
@container cl (max-width: 680px) {
  .cl-shell__bar { flex-wrap: wrap; height: auto; padding: 10px 16px 0; row-gap: 2px; }
  .cl-nav { order: 3; flex-basis: 100%; height: 44px; margin: 0 -8px; }
  .cl-shell__tools { margin-left: auto; }
}

/* ---------- Gerüst ---------- */
.cl-main { max-width: 1360px; margin: 0 auto; padding: 32px 28px 64px; }
@container cl (max-width: 680px) { .cl-main { padding: 20px 16px 44px; } }
.cl[data-cl-embed] { background: transparent; }
.cl[data-cl-embed][data-cl-theme="dark"] { background: var(--cl-bg); }
.cl[data-cl-embed] .cl-shell, .cl[data-cl-embed] .cl-footer { display: none; }
.cl[data-cl-embed] .cl-main { padding: 4px 4px 20px; max-width: none; }

.cl-footer { max-width: 1360px; margin: 0 auto; padding: 24px 28px 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; color: var(--cl-ink-3); font-size: 13px; border-top: 1px solid var(--cl-line); }
.cl-footer__logo { width: 38px; height: 24px; }
.cl-footer__links { display: flex; gap: 18px; margin-left: auto; }

.cl-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.cl-stack { display: grid; gap: 20px; align-content: start; }
.cl-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@container cl (min-width: 700px) { .cl-grid--2, .cl-grid--3, .cl-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container cl (min-width: 1060px) {
  .cl-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cl-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cl-grid--main { grid-template-columns: minmax(0, 1fr) 380px; }
  .cl-grid--side { grid-template-columns: 280px minmax(0, 1fr); }
}

/* Abschnitte */
.cl-sec { margin-top: 48px; }
.cl-sec:first-child { margin-top: 0; }
.cl-sec__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 18px; }
.cl-sec__title { font-family: var(--cl-display); font-size: clamp(22px, 2.6cqi, 28px); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; margin-top: 4px; }
.cl-sec__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 14px; white-space: nowrap; }

/* Seitenkopf innerer Seiten */
/* Seitenkopf: Eyebrow + Überschrift links, Knöpfe rechts auf Höhe der Überschrift – auf allen Übersichtsseiten gleich hoch */
.cl-pagehead { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; padding: 28px 36px; margin-bottom: 28px; border-radius: calc(var(--cl-radius) + 6px); background: var(--cl-surface); box-shadow: var(--cl-shadow); isolation: isolate; }
.cl-pagehead::before, .cl-pagehead::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); opacity: .5; }
.cl-pagehead::before { width: 260px; height: 260px; right: -60px; top: -120px; background: radial-gradient(circle at 35% 35%, var(--cl-l5), transparent 68%); }
.cl-pagehead::after { width: 220px; height: 220px; right: 110px; top: -60px; background: radial-gradient(circle at 40% 40%, var(--cl-l6), transparent 66%); opacity: .35; }
.cl-pagehead__title { font-family: var(--cl-display); font-size: clamp(30px, 4.4cqi, 46px); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; margin-top: 8px; }
.cl-pagehead__lead { max-width: 62ch; margin-top: 10px; color: var(--cl-ink-2); font-size: 16.5px; }
.cl-pagehead__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@container cl (max-width: 680px) { .cl-pagehead { padding: 24px 20px; } }

/* ---------- Karten & Bedienelemente ---------- */
.cl-card { background: var(--cl-surface); border-radius: var(--cl-radius); box-shadow: var(--cl-shadow); padding: 22px; min-width: 0; }
.cl-card__title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 12px; }

.cl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border: 1px solid transparent; border-radius: 999px; background: var(--cl-brand); color: var(--cl-on-brand); font-size: 14px; font-weight: 650; white-space: nowrap; text-decoration: none; transition: background .15s, transform .15s var(--cl-ease), box-shadow .2s; }
.cl-btn:hover { background: var(--cl-brand-strong); text-decoration: none; box-shadow: 0 8px 20px -10px var(--cl-brand); }
.cl-btn:active { transform: scale(.97); }
.cl-btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.cl-btn--ghost { background: transparent; color: var(--cl-ink); border-color: var(--cl-line-strong); }
.cl-btn--ghost:hover { background: var(--cl-surface-2); box-shadow: none; }
.cl-btn--soft { background: var(--cl-brand-soft); color: var(--cl-brand-strong); }
.cl-btn--soft:hover { background: var(--cl-brand-soft); filter: brightness(.97); box-shadow: none; }
.cl-btn--good { background: var(--cl-good-soft); color: var(--cl-good); }
.cl-btn--good:hover { background: var(--cl-good-soft); filter: brightness(.96); box-shadow: none; }
.cl-btn--sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.cl-btn--icon { width: 38px; height: 38px; padding: 0; background: transparent; color: var(--cl-ink-2); }
.cl-btn--icon:hover { background: var(--cl-surface-3); color: var(--cl-ink); box-shadow: none; }

.cl-chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border: 1px solid var(--cl-line); border-radius: 999px; background: var(--cl-surface); color: var(--cl-ink-2); font-size: 13.5px; font-weight: 550; white-space: nowrap; transition: all .15s; }
.cl-chip:hover { border-color: var(--cl-line-strong); color: var(--cl-ink); }
.cl-chip[aria-pressed="true"] { background: var(--cl-ink); border-color: var(--cl-ink); color: var(--cl-surface); }
.cl-chip__n { font-family: var(--cl-mono); font-size: 11.5px; opacity: .65; }
.cl-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }

.cl-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--cl-surface-3); }
.cl-seg button { height: 32px; padding: 0 15px; border: 0; border-radius: 999px; background: transparent; color: var(--cl-ink-2); font-size: 13.5px; font-weight: 550; }
.cl-seg button[aria-pressed="true"] { background: var(--cl-surface); color: var(--cl-ink); font-weight: 650; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

.cl-field { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border: 1px solid var(--cl-line); border-radius: 999px; background: var(--cl-surface); color: var(--cl-ink-3); min-width: 0; }
.cl-field:focus-within { border-color: var(--cl-brand); box-shadow: 0 0 0 4px var(--cl-brand-soft); }
.cl-field input, .cl-field select { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--cl-ink); font-size: 14.5px; }
.cl-toolbar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.cl-toolbar .cl-field { flex: 1 1 260px; max-width: 380px; }

.cl-form { display: grid; gap: 14px; }
.cl-form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--cl-ink-2); }
.cl-form :where(input, select, textarea) { width: 100%; padding: 10px 12px; border: 1px solid var(--cl-line-strong); border-radius: 10px; background: var(--cl-surface); font-size: 15px; font-weight: 400; color: var(--cl-ink); }
.cl-form textarea { min-height: 110px; resize: vertical; }
.cl-form :where(input, select, textarea):focus { outline: 0; border-color: var(--cl-brand); box-shadow: 0 0 0 4px var(--cl-brand-soft); }

.cl-tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 7px; background: var(--cl-surface-3); color: var(--cl-ink-2); font-size: 12px; font-weight: 650; white-space: nowrap; }
.cl-tag--brand { background: var(--cl-brand-soft); color: var(--cl-brand-strong); }
.cl-tag--good { background: var(--cl-good-soft); color: var(--cl-good); }
.cl-tag--warn { background: var(--cl-warn-soft); color: var(--cl-warn); }
.cl-tag--crit { background: var(--cl-crit-soft); color: var(--cl-crit); }
.cl-tag--signal { background: var(--cl-l5); color: #2a1a00; }
.cl-meter { height: 6px; border-radius: 999px; background: var(--cl-surface-3); overflow: hidden; }
.cl-meter__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--cl-l6), var(--cl-brand)); transition: width .8s var(--cl-ease); }
.cl-meter--full .cl-meter__fill { background: var(--cl-crit); }

/* ==========================================================================
   Signatur: Startseiten-Bühne mit Lichtkreisen
   ========================================================================== */
.cl-stage { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; background: radial-gradient(120% 90% at 85% 0%, var(--cl-night-2), var(--cl-night) 60%); color: #fff; padding: clamp(36px, 6cqi, 72px) clamp(24px, 5cqi, 64px); margin-bottom: 40px; box-shadow: 0 30px 60px -30px rgba(60, 20, 0, .6); }
.cl-lights { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cl-light { position: absolute; border-radius: 50%; mix-blend-mode: screen; filter: blur(1px); opacity: .78; animation: cl-float 16s ease-in-out infinite alternate; }
.cl-light:nth-child(1) { width: 34cqi; height: 34cqi; max-width: 420px; max-height: 420px; right: 16%; top: -12%; background: radial-gradient(circle at 35% 35%, #57b8ee, var(--cl-l3) 45%, transparent 70%); animation-duration: 18s; }
.cl-light:nth-child(2) { width: 28cqi; height: 28cqi; max-width: 360px; max-height: 360px; right: 1%; top: 6%; background: radial-gradient(circle at 35% 35%, #ffd36b, var(--cl-l5) 45%, transparent 70%); animation-duration: 14s; animation-delay: -4s; }
.cl-light:nth-child(3) { width: 22cqi; height: 22cqi; max-width: 280px; max-height: 280px; right: -5%; top: 34%; background: radial-gradient(circle at 35% 35%, #ffa261, var(--cl-l6) 45%, transparent 70%); animation-duration: 12s; animation-delay: -7s; }
.cl-light:nth-child(4) { width: 26cqi; height: 26cqi; max-width: 330px; max-height: 330px; right: 12%; bottom: -24%; background: radial-gradient(circle at 35% 35%, #6fd67a, var(--cl-l4) 45%, transparent 70%); animation-duration: 20s; animation-delay: -2s; }
.cl-light:nth-child(5) { width: 30cqi; height: 30cqi; max-width: 380px; max-height: 380px; right: 30%; top: 18%; background: radial-gradient(circle at 35% 35%, #8b4fc0, var(--cl-l2) 45%, transparent 70%); animation-duration: 17s; animation-delay: -9s; opacity: .6; }
.cl-light:nth-child(6) { width: 16cqi; height: 16cqi; max-width: 200px; max-height: 200px; right: 42%; top: -6%; background: radial-gradient(circle at 35% 35%, #ef6fc0, var(--cl-l1) 45%, transparent 70%); animation-duration: 13s; animation-delay: -5s; }
@keyframes cl-float {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-3cqi, 2cqi, 0) scale(1.06); }
  100% { transform: translate3d(2cqi, -2cqi, 0) scale(.96); }
}
@media (prefers-reduced-motion: reduce) { .cl-light { animation: none; } }
.cl-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(23, 15, 12, .92) 0%, rgba(23, 15, 12, .7) 45%, rgba(23, 15, 12, .05) 100%); }
.cl-stage__eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .86); backdrop-filter: blur(8px); }
.cl-stage__eyebrow .cl-logo { width: 34px; height: 21px; }
.cl-stage__title { font-family: var(--cl-display); font-size: clamp(40px, 7.4cqi, 88px); font-weight: 800; letter-spacing: -.045em; line-height: .98; margin-top: 22px; max-width: 12ch; }
.cl-stage__title em { font-style: normal; background: linear-gradient(100deg, var(--cl-l5) 5%, var(--cl-l6) 45%, #ff7a59 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cl-stage__lead { max-width: 52ch; margin-top: 18px; font-size: clamp(16px, 1.7cqi, 19px); color: rgba(255, 255, 255, .78); }
.cl-stage__search { display: flex; align-items: center; gap: 12px; width: min(620px, 100%); height: 60px; margin-top: 30px; padding: 0 10px 0 22px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .96); color: #6e5f55; font-size: 16.5px; text-align: left; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); transition: transform .2s var(--cl-ease), box-shadow .2s; }
.cl-stage__search:hover { transform: translateY(-2px); box-shadow: 0 24px 48px -18px rgba(0, 0, 0, .7); }
.cl-stage__search .cl-btn { margin-left: auto; height: 44px; }
.cl-stage__hints { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cl-stage__hints button { height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .85); font-size: 13px; }
.cl-stage__hints button:hover { background: rgba(255, 255, 255, .2); }
.cl-stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 44px; }
.cl-stat b { display: block; font-family: var(--cl-display); font-size: clamp(28px, 3.4cqi, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.cl-stat span { font-size: 13.5px; color: rgba(255, 255, 255, .65); }

/* ---------- Themen ---------- */
.cl-topic { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 18px; border-radius: var(--cl-radius); background: var(--cl-surface); box-shadow: var(--cl-shadow); color: var(--cl-ink); transition: transform .25s var(--cl-ease), box-shadow .25s; }
.cl-topic:hover { transform: translateY(-3px); box-shadow: var(--cl-shadow-lg); text-decoration: none; }
.cl-topic__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: #fff; box-shadow: inset 0 -10px 20px rgba(0, 0, 0, .12); }
.cl-topic__icon .cl-ico { width: 24px; height: 24px; }
.cl-topic__label { font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.cl-topic__sub { font-size: 13px; color: var(--cl-ink-3); }
.cl-topic__n { font-family: var(--cl-display); font-size: 22px; font-weight: 800; color: var(--cl-ink-3); }

/* ---------- Artikel ---------- */
.cl-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: var(--cl-surface-3); }
.cl-cover > svg, .cl-cover > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--cl-ease); }
.cl-acard { display: flex; flex-direction: column; gap: 12px; padding: 10px 10px 16px; border-radius: var(--cl-radius); background: var(--cl-surface); box-shadow: var(--cl-shadow); color: var(--cl-ink); transition: transform .25s var(--cl-ease), box-shadow .25s; min-width: 0; }
.cl-acard:hover { transform: translateY(-4px); box-shadow: var(--cl-shadow-lg); text-decoration: none; }
.cl-acard:hover .cl-cover > img, .cl-acard:hover .cl-cover > svg { transform: scale(1.04); }
.cl-acard:hover .cl-acard__title { color: var(--cl-brand); }
.cl-acard__body { display: grid; gap: 6px; padding: 0 6px; }
.cl-acard__title { font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -.012em; transition: color .15s; }
.cl-acard__desc { color: var(--cl-ink-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 12.5px; color: var(--cl-ink-3); }
.cl-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.cl-acard .cl-meta { margin-top: auto; padding: 4px 6px 0; }
.cl-cover__tag { position: absolute; left: 10px; top: 10px; }
.cl-cover__tag .cl-tag { background: rgba(255, 255, 255, .94); color: #2a1f19; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }

.cl-arow { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--cl-line); color: var(--cl-ink); }
.cl-arow:last-child { border-bottom: 0; }
.cl-arow:hover { text-decoration: none; }
.cl-arow:hover .cl-arow__title { color: var(--cl-brand); }
.cl-arow__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.cl-arow__title { font-weight: 650; line-height: 1.35; transition: color .15s; }
.cl-arow .cl-meta { margin-top: 2px; }

/* Neuigkeiten groß */
.cl-feature { display: grid; gap: 22px; padding: 12px; border-radius: calc(var(--cl-radius) + 6px); background: var(--cl-surface); box-shadow: var(--cl-shadow); color: var(--cl-ink); }
.cl-feature:hover { text-decoration: none; }
.cl-feature:hover .cl-feature__title { color: var(--cl-brand); }
.cl-feature__body { display: grid; gap: 10px; align-content: center; padding: 8px 14px 14px; }
.cl-feature__title { font-family: var(--cl-display); font-size: clamp(24px, 3.2cqi, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; transition: color .15s; }
.cl-feature__desc { color: var(--cl-ink-2); font-size: 16px; }
@container cl (min-width: 860px) { .cl-feature { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } .cl-feature .cl-cover { aspect-ratio: auto; min-height: 300px; } }

/* ---------- Seminare ---------- */
.cl-seminar { display: grid; grid-template-columns: minmax(0, 1fr); border-radius: calc(var(--cl-radius) + 2px); background: var(--cl-surface); box-shadow: var(--cl-shadow); overflow: hidden; scroll-margin-top: 90px; transition: box-shadow .25s; }
.cl-seminar:hover { box-shadow: var(--cl-shadow-lg); }
.cl-seminar__art { position: relative; display: grid; place-items: center; min-height: 150px; background: radial-gradient(circle at 30% 20%, #fff 0%, var(--cl-brand-tint) 45%, var(--cl-brand-soft) 100%); }
.cl[data-cl-theme="dark"] .cl-seminar__art { background: radial-gradient(circle at 30% 20%, #3a3040, var(--cl-surface-2)); }
.cl-seminar__art img { width: 88px; height: 88px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(80, 30, 0, .25)); }
.cl-seminar__art .cl-ico { width: 56px; height: 56px; color: var(--cl-brand); }
.cl-seminar__date { position: absolute; left: 14px; top: 14px; display: grid; justify-items: center; min-width: 58px; padding: 6px 8px 7px; border-radius: 14px; background: var(--cl-surface); box-shadow: 0 6px 16px -6px rgba(60, 25, 5, .35); line-height: 1; }
.cl-seminar__date span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cl-brand); }
.cl-seminar__date b { font-family: var(--cl-display); font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin-top: 3px; }
.cl-seminar__cat { position: absolute; right: 14px; top: 14px; }
.cl-seminar__body { display: grid; gap: 10px; padding: 18px 20px 20px; align-content: start; }
.cl-seminar__title { font-size: 19px; font-weight: 750; letter-spacing: -.015em; line-height: 1.25; }
.cl-seminar__desc { color: var(--cl-ink-2); font-size: 14px; }
.cl-seminar__desc :where(ul) { display: grid; gap: 3px; padding-left: 1.2em; list-style: disc; }
.cl-seminar__desc :where(li)::marker { color: var(--cl-brand); }
.cl-seminar__desc :where(p + p, p + ul, ul + p) { margin-top: 6px; }
.cl-seminar__desc--clamp { max-height: 5.4em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.cl-more { justify-self: start; padding: 0; border: 0; background: none; color: var(--cl-brand); font-size: 13.5px; font-weight: 650; }
.cl-seminar__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 6px; }
.cl-seminar__cap { flex: 1 1 150px; display: grid; gap: 5px; font-size: 12px; color: var(--cl-ink-3); min-width: 140px; }
.cl-seminar--past { opacity: .7; }
.cl-seminar--flash { animation: cl-flash 1.8s var(--cl-ease); }
@keyframes cl-flash { 0%, 40% { box-shadow: 0 0 0 3px var(--cl-l5); } }
@container cl (min-width: 900px) { .cl-seminar--wide { grid-template-columns: 240px minmax(0, 1fr); } .cl-seminar--wide .cl-seminar__art { min-height: 100%; } }

.cl-datechip { flex: none; width: 52px; padding: 7px 0 6px; border-radius: 12px; background: var(--cl-brand-tint); box-shadow: inset 0 0 0 1px var(--cl-brand-soft); text-align: center; line-height: 1; }
.cl-datechip__m { display: block; font-size: 10.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--cl-brand); }
.cl-datechip__d { display: block; margin-top: 4px; font-family: var(--cl-display); font-size: 21px; font-weight: 800; }
.cl-datechip--today { background: var(--cl-brand); box-shadow: none; color: var(--cl-on-brand); }
.cl-datechip--today .cl-datechip__m { color: var(--cl-on-brand); }
/* Seminar-Logo unten rechts am Datum – wie in der Seminarliste der Startseite */
.cl-datechip { position: relative; }
.cl-datechip.has-logo { display: grid; place-items: center; width: 58px; height: 60px; padding: 0; margin-right: 10px; }   /* gleiche Maße wie auf der Startseite */
.cl-datechip.has-logo .cl-datechip__m { font-size: 11px; }
.cl-datechip.has-logo .cl-datechip__d { margin-top: -8px; font-size: 22px; }
.cl-datechip__logo { position: absolute; right: -9px; bottom: -7px; width: 28px; height: 28px; padding: 4px; border-radius: 9px; background: var(--cl-surface); object-fit: contain; box-shadow: 0 2px 8px rgba(31, 25, 22, .16), 0 0 0 1px var(--cl-line); }
/* Einheitliches Vorschaubild in Listen: Beitrags-/Videobild, App-Kachel wie auf der Playlist-Seite, Symbol */
.cl-thumb { flex: none; position: relative; display: grid; place-items: center; width: 64px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--cl-surface-3); color: var(--cl-ink-3); }
.cl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cl-thumb--logo { background: var(--cl-surface); box-shadow: inset 0 0 0 1px var(--cl-line); }
.cl-thumb--logo img { width: 62%; height: 62%; object-fit: contain; }
.cl-thumb--app { isolation: isolate; background: radial-gradient(90% 95% at 50% 45%, color-mix(in srgb, var(--app) 70%, transparent) 0%, transparent 72%), #1a110d; }
.cl-thumb--app::after { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 10px); }
.cl-thumb--icon { background: var(--cl-brand-tint); color: var(--cl-brand); }
.cl-thumb--date { width: 64px; height: auto; overflow: visible; background: none; }
.cl-thumb--date .cl-datechip.has-logo { margin-right: 0; }
.cl-thumb--card { width: 72px; height: 54px; }
.cl-thumb--card.cl-thumb--date { height: auto; }
.cl-thumb--row { width: 52px; height: 34px; border-radius: 8px; }
.cl-srow { display: flex; gap: 14px; align-items: center; padding: 11px 4px; border-bottom: 1px solid var(--cl-line); color: var(--cl-ink); }
.cl-srow:last-child { border-bottom: 0; }
.cl-srow:hover { text-decoration: none; }
.cl-srow:hover b { color: var(--cl-brand); }
.cl-srow b { display: block; font-weight: 650; line-height: 1.3; }

/* ---------- Playlists ---------- */
.cl-playlist { position: relative; display: grid; gap: 12px; padding: 10px 10px 16px; border: 0; border-radius: var(--cl-radius); background: var(--cl-surface); box-shadow: var(--cl-shadow); color: var(--cl-ink); text-align: left; transition: transform .25s var(--cl-ease), box-shadow .25s; min-width: 0; }
.cl-playlist:hover { transform: translateY(-4px); box-shadow: var(--cl-shadow-lg); text-decoration: none; }
.cl-playlist__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, var(--cl-night-2), var(--cl-night)); }
.cl-playlist__thumb::before { content: ""; position: absolute; inset: auto 12px -6px; height: 12px; border-radius: 0 0 10px 10px; background: var(--cl-surface-3); z-index: -1; }
.cl-playlist__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cl-playlist__thumb svg.cl-pl-art { width: 100%; height: 100%; }
.cl-playlist__count { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 8px; background: rgba(15, 9, 6, .82); color: #fff; font-size: 12px; font-weight: 650; backdrop-filter: blur(6px); }
.cl-playlist__play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .2s; background: rgba(15, 9, 6, .25); }
.cl-playlist__play span { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .95); color: var(--cl-brand); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.cl-playlist__play .cl-ico { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; }
.cl-playlist:hover .cl-playlist__play { opacity: 1; }
.cl-playlist__body { display: grid; gap: 4px; padding: 0 6px; }
.cl-playlist__name { font-weight: 700; font-size: 16px; line-height: 1.3; letter-spacing: -.01em; }
.cl-playlist__sub { font-size: 13px; color: var(--cl-ink-3); }
.cl-playlist .cl-meter { margin: 6px 6px 0; }
.cl-coll { margin-bottom: 40px; }
.cl-coll__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 14px; }
.cl-coll__title { font-family: var(--cl-display); font-size: 22px; font-weight: 750; letter-spacing: -.02em; }
.cl-coll__sub { color: var(--cl-ink-3); font-size: 14px; }

/* Player */
.cl-player { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@container cl (min-width: 1000px) { .cl-player { grid-template-columns: minmax(0, 1fr) 380px; } }
.cl-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--cl-radius); overflow: hidden; background: #000; box-shadow: var(--cl-shadow-lg); }
.cl-video iframe, .cl-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cl-video__demo { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 20px; text-align: center; color: rgba(255, 255, 255, .8); background: radial-gradient(circle at 70% 30%, rgba(238, 125, 48, .35), transparent 50%), radial-gradient(circle at 25% 70%, rgba(45, 155, 215, .3), transparent 50%), #140c09; }
.cl-video__demo .cl-ico { width: 54px; height: 54px; color: #fff; }
.cl-player__title { font-family: var(--cl-display); font-size: clamp(22px, 2.6cqi, 28px); font-weight: 750; letter-spacing: -.02em; line-height: 1.2; margin-top: 18px; }
.cl-episodes { border-radius: var(--cl-radius); background: var(--cl-surface); box-shadow: var(--cl-shadow); overflow: hidden; }
.cl-episodes__head { padding: 16px 18px 12px; border-bottom: 1px solid var(--cl-line); }
.cl-episodes__list { max-height: min(70vh, 640px); overflow-y: auto; padding: 6px; }
.cl-episode { display: grid; grid-template-columns: 24px 104px minmax(0, 1fr); gap: 10px; align-items: center; width: 100%; padding: 8px; border: 0; border-radius: 12px; background: transparent; color: var(--cl-ink); text-align: left; }
.cl-episode:hover { background: var(--cl-surface-2); }
.cl-episode[aria-current="true"] { background: var(--cl-brand-tint); box-shadow: inset 3px 0 0 var(--cl-brand); }
.cl-episode__n { font-family: var(--cl-mono); font-size: 12px; color: var(--cl-ink-3); text-align: center; }
.cl-episode__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--cl-surface-3); }
.cl-episode__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cl-episode__thumb small { position: absolute; right: 4px; bottom: 4px; padding: 1px 5px; border-radius: 5px; background: rgba(0, 0, 0, .75); color: #fff; font-family: var(--cl-mono); font-size: 10.5px; }
.cl-episode__title { font-size: 13.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cl-episode__state { font-size: 11.5px; color: var(--cl-good); display: inline-flex; align-items: center; gap: 3px; margin-top: 2px; }
/* Übungsdateien: Kennzeichen in der Videoliste und Karte „Zum Mitmachen“ unter dem Video */
.cl-episode__ex { display: inline-flex; align-items: center; gap: 3px; margin: 2px 8px 0 0; font-size: 11.5px; font-weight: 600; color: var(--cl-brand); }
.cl-practice { display: grid; gap: 12px; margin-top: 18px; padding: 16px 18px; border-radius: var(--cl-radius); background: var(--cl-surface); box-shadow: var(--cl-shadow), inset 3px 0 0 var(--cl-brand); }
.cl-practice__head { display: flex; align-items: center; gap: 12px; }
.cl-practice__head b { display: block; font-size: 15.5px; }
.cl-practice__head small { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: var(--cl-ink-3); }
.cl-practice__ico { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--cl-brand-tint); color: var(--cl-brand); }
/* „Übung erledigt“ abhaken */
.cl-practice__done { margin-left: auto; }
.cl-practice__done[aria-pressed="true"], .cl-practice__done[aria-pressed="true"]:hover { background: var(--cl-good-soft); border-color: transparent; color: var(--cl-good); }
.cl-practice__done:disabled { opacity: .6; }
.cl-episode__ex.is-done { color: var(--cl-good); }
@container cl (max-width: 560px) { .cl-practice__done { margin-left: 0; } }

/* ---------- Neuerungen (Zeitleiste) ---------- */
.cl-timeline { position: relative; display: grid; gap: 30px; }
.cl-month { display: grid; gap: 14px; }
@container cl (min-width: 860px) { .cl-month { grid-template-columns: 200px minmax(0, 1fr); } }
.cl-month__head { position: sticky; top: 84px; align-self: start; display: grid; gap: 6px; }
.cl-month__name { font-family: var(--cl-display); font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.cl-month__img { width: 100%; max-width: 200px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.cl-month__items { position: relative; display: grid; gap: 10px; padding-left: 26px; }
.cl-month__items::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--cl-line-strong); }
.cl-update { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 14px 16px; border-radius: 12px; background: var(--cl-surface); box-shadow: var(--cl-shadow); }
.cl-update::before { content: ""; position: absolute; left: -24px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--c, var(--cl-brand)); box-shadow: 0 0 0 4px var(--cl-bg); }
.cl-update__title { flex: 1 1 280px; font-weight: 600; line-height: 1.35; }
.cl-update__date { font-family: var(--cl-mono); font-size: 12px; color: var(--cl-ink-3); }

/* ---------- Leseansicht ---------- */
.cl-progress { position: fixed; left: 0; top: 0; z-index: 40; height: 3px; width: 0; background: linear-gradient(90deg, var(--cl-l5), var(--cl-l6), var(--cl-brand)); transition: width .1s linear; }
.cl-reader { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@container cl (min-width: 1080px) { .cl-reader { grid-template-columns: minmax(0, 1fr) 290px; } }
.cl-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--cl-ink-3); margin-bottom: 14px; }
.cl-crumbs a { color: var(--cl-ink-2); }
.cl-article { min-width: 0; }
.cl-article__head { display: grid; gap: 14px; margin-bottom: 26px; }
.cl-article__title { font-family: var(--cl-display); font-size: clamp(30px, 4.2cqi, 48px); font-weight: 800; letter-spacing: -.035em; line-height: 1.06; }
.cl-article__lead { font-size: 18.5px; color: var(--cl-ink-2); }
.cl-article__banner { border-radius: calc(var(--cl-radius) + 4px); overflow: hidden; aspect-ratio: 21 / 8; background: var(--cl-surface-3); margin-bottom: 30px; }
.cl-article__banner img, .cl-article__banner svg { width: 100%; height: 100%; object-fit: cover; }
/* Beiträge nutzen die ganze Spaltenbreite – keine schmale „Lesebreite“ mehr, sonst bleibt rechts Weißraum neben Text und Tabellen */
.cl-prose { font-size: 16.5px; line-height: 1.72; color: var(--cl-ink); display: grid; gap: 16px; }
.cl-prose :where(h2) { font-family: var(--cl-display); font-size: 27px; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; margin-top: 18px; scroll-margin-top: 90px; }
.cl-prose :where(h3) { font-size: 20px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; margin-top: 8px; scroll-margin-top: 90px; }
.cl-prose :where(h4) { font-size: 17px; font-weight: 700; }
.cl-prose :where(p:empty) { display: none; }
.cl-prose :where(ul, ol) { padding-left: 1.4em; display: grid; gap: 5px; }
.cl-prose :where(ul) { list-style: disc; }
.cl-prose :where(ol) { list-style: decimal; }
.cl-prose :where(li)::marker { color: var(--cl-brand); font-weight: 700; }
.cl-prose :where(a) { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--cl-brand) 40%, transparent); text-underline-offset: 3px; }
.cl-prose :where(blockquote) { padding: 6px 0 6px 18px; border-left: 3px solid var(--cl-brand); color: var(--cl-ink-2); }
.cl-prose :where(hr) { border: 0; height: 1px; background: var(--cl-line-strong); margin: 10px 0; }
.cl-prose :where(figure) { display: grid; gap: 8px; }
.cl-prose :where(img) { max-width: 100%; height: auto; border-radius: 14px; box-shadow: var(--cl-shadow); }
.cl-prose :where(figcaption) { font-size: 13.5px; color: var(--cl-ink-3); }
.cl-prose :where(.cl-tablewrap) { overflow-x: auto; }
.cl-prose :where(table) { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.cl-prose :where(th, td) { border: 1px solid var(--cl-line); padding: 8px 12px; text-align: left; vertical-align: top; }
.cl-prose :where(th) { background: var(--cl-surface-2); font-weight: 700; }
.cl-prose :where(tr:first-child td) { font-weight: inherit; }
.cl-prose :where(:not(pre) > code) { font-family: var(--cl-mono); font-size: .88em; padding: 1px 6px; border-radius: 6px; background: var(--cl-surface-3); }
.cl-codeblock { position: relative; border-radius: 14px; background: #1c1411; box-shadow: var(--cl-shadow-lg); overflow: hidden; }
.cl-codeblock::before { content: attr(data-lang); display: block; padding: 9px 16px; font-family: var(--cl-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: #d9b8a3; background: #251a15; border-bottom: 1px solid #33241c; }
.cl-codeblock pre { margin: 0; padding: 16px 18px; overflow-x: auto; color: #f3e6dd; font-family: var(--cl-mono); font-size: 13.5px; line-height: 1.65; tab-size: 4; }
.cl-codeblock__copy { position: absolute; right: 8px; top: 5px; height: 26px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 7px; background: rgba(255, 255, 255, .06); color: #f3e6dd; font-size: 12px; font-weight: 600; }
.cl-codeblock__copy:hover { background: rgba(255, 255, 255, .15); }
.cl-linkcard, .cl-filecard { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; background: var(--cl-surface); box-shadow: var(--cl-shadow); color: var(--cl-ink); text-decoration: none !important; }
.cl-linkcard:hover, .cl-filecard:hover { box-shadow: var(--cl-shadow-lg); }
.cl-linkcard img { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 9px; box-shadow: none; flex: none; }
.cl-filecard .cl-ico { color: var(--cl-brand); margin: 0 6px; }
.cl-linkcard__body { display: grid; gap: 2px; min-width: 0; }
.cl-linkcard__body b { font-size: 15px; line-height: 1.35; }
.cl-linkcard__body span { font-size: 13.5px; color: var(--cl-ink-3); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cl-aside { display: grid; gap: 18px; align-content: start; }
@container cl (min-width: 1080px) { .cl-aside { position: sticky; top: 88px; } }
/* Inhaltsverzeichnis als Zeitleiste: Linie mit Punkten, Unterabschnitte eingerückt */
.cl-toc { position: relative; display: grid; gap: 1px; padding-left: 16px; font-size: 13.5px; }
/* Linie zwischen den Punkten – sie endet immer genau am letzten Punkt (auch bei zweizeiligen Einträgen) */
.cl-toc a:not(:last-child)::after { content: ""; position: absolute; left: -11px; top: 21px; bottom: -12px; width: 2px; background: var(--cl-line); }
.cl-toc a[data-l="3"]:not(:last-child)::after { left: -23px; top: 17px; }
.cl-toc a { position: relative; display: block; padding: 6px 8px 6px 10px; border-radius: 8px; color: var(--cl-ink-2); line-height: 1.4; transition: color .15s, background .15s; }
.cl-toc a::before { content: ""; position: absolute; left: -15px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--cl-surface); box-shadow: inset 0 0 0 2px var(--cl-line-strong); transition: box-shadow .2s, background .2s; }
.cl-toc a:hover { color: var(--cl-ink); background: var(--cl-surface-2); text-decoration: none; }
.cl-toc a[data-l="3"] { margin-left: 12px; padding: 4px 8px 4px 12px; font-size: 12.5px; color: var(--cl-ink-3); }
.cl-toc a[data-l="3"]::before { left: -25px; top: 11px; width: 6px; height: 6px; box-shadow: none; background: var(--cl-line-strong); }
.cl-toc a[aria-current="true"] { color: var(--cl-brand); font-weight: 650; background: none; }
.cl-toc a[aria-current="true"]::before { background: var(--cl-brand); box-shadow: 0 0 0 4px var(--cl-brand-soft); }
.cl-toc a[data-l="3"][aria-current="true"]::before { box-shadow: 0 0 0 3px var(--cl-brand-soft); }
.cl-callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--cl-brand-tint); box-shadow: inset 0 0 0 1px var(--cl-brand-soft); font-size: 14.5px; line-height: 1.55; }
.cl-callout > .cl-ico { color: var(--cl-brand); margin-top: 2px; }
.cl-callout--warn { background: var(--cl-warn-soft); box-shadow: none; }
.cl-callout--warn > .cl-ico { color: var(--cl-warn); }
.cl-pager { display: grid; gap: 12px; margin-top: 40px; }
@container cl (min-width: 700px) { .cl-pager { grid-template-columns: 1fr 1fr; } }
.cl-pager a { display: grid; gap: 4px; padding: 16px 18px; border-radius: 14px; background: var(--cl-surface); box-shadow: var(--cl-shadow); color: var(--cl-ink); }
.cl-pager a:hover { text-decoration: none; box-shadow: var(--cl-shadow-lg); }
.cl-pager a:last-child { text-align: right; }
.cl-pager small { font-size: 12.5px; color: var(--cl-ink-3); }
.cl-pager b { font-weight: 650; line-height: 1.35; }

/* ---------- Seitenleiste (Themenfilter) ---------- */
.cl-sidenav { display: grid; gap: 2px; }
.cl-sidenav button { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 9px 10px; border: 0; border-radius: 12px; background: transparent; color: var(--cl-ink-2); font-size: 14.5px; font-weight: 550; text-align: left; }
.cl-sidenav button:hover { background: var(--cl-surface-3); color: var(--cl-ink); }
.cl-sidenav button[aria-pressed="true"] { background: var(--cl-surface); color: var(--cl-ink); font-weight: 700; box-shadow: var(--cl-shadow); }
.cl-sidenav__icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: #fff; }
.cl-sidenav__icon .cl-ico { width: 16px; height: 16px; }
.cl-sidenav__n { font-family: var(--cl-mono); font-size: 12px; color: var(--cl-ink-3); }
@container cl (max-width: 1059px) {
  .cl-sidenav { display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; padding-bottom: 4px; }
  .cl-sidenav button { width: auto; flex: none; grid-template-columns: auto auto auto; background: var(--cl-surface); box-shadow: var(--cl-shadow); }
}

/* ---------- Status & Einrichtung ---------- */
.cl-status { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--cl-line); }
.cl-status:last-child { border-bottom: 0; }
.cl-status__dot { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; }
.cl-status__dot--ok { background: var(--cl-good-soft); color: var(--cl-good); }
.cl-status__dot--warn { background: var(--cl-warn-soft); color: var(--cl-warn); }
.cl-status__dot--err { background: var(--cl-crit-soft); color: var(--cl-crit); }
.cl-status__dot--wait { background: var(--cl-surface-3); color: var(--cl-ink-3); }
.cl-status b { display: block; }
.cl-status small { color: var(--cl-ink-3); font-size: 13px; }
.cl-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cl-table th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cl-ink-3); padding: 0 10px 8px; border-bottom: 1px solid var(--cl-line-strong); }
.cl-table td { padding: 10px; border-bottom: 1px solid var(--cl-line); vertical-align: top; }
.cl-code-inline { font-family: var(--cl-mono); font-size: 12.5px; padding: 12px 14px; border-radius: 10px; background: #1c1411; color: #f3e6dd; white-space: pre-wrap; word-break: break-all; }

/* ---------- Dialog, Suche, Toast ---------- */
.cl-dialog { width: min(620px, calc(100% - 32px)); max-height: calc(100% - 48px); padding: 0; border: 0; border-radius: 22px; background: var(--cl-surface); color: var(--cl-ink); box-shadow: var(--cl-shadow-lg); font-family: var(--cl-font); overflow: hidden; }
.cl-dialog[open] { display: flex; flex-direction: column; }
.cl-dialog::backdrop { background: rgba(12, 16, 26, .55); backdrop-filter: blur(4px); }
@media (prefers-reduced-motion: no-preference) { .cl-dialog[open] { animation: cl-pop .28s var(--cl-ease); } }
@keyframes cl-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.cl-dialog__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 22px; border-bottom: 1px solid var(--cl-line); }
.cl-dialog__body { padding: 22px; overflow: auto; }
.cl-dialog--palette { width: min(640px, calc(100% - 32px)); margin-top: 10vh; }
.cl-dialog--palette .cl-dialog__body { padding: 8px; max-height: 60vh; }
.cl-palette__input { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--cl-line); color: var(--cl-brand); }
.cl-palette__input input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 18px; color: var(--cl-ink); }
.cl-palette__group { padding: 12px 12px 4px; }
/* „Meintest du …?“ – Tippfehler korrigiert (Suchfenster, Mediathek, Wissen, News, Neuerungen) */
.cl-dym { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--cl-brand-tint); color: var(--cl-ink-2); font-size: 14px; line-height: 1.4; }
.cl-dym > .cl-ico { flex: none; color: var(--cl-brand); }
.cl-dym button { padding: 0; border: 0; background: none; color: var(--cl-brand-strong); font: inherit; font-weight: 750; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.cl-dym button:hover { color: var(--cl-brand); }
.cl-dialog--palette .cl-dym { margin: 4px 4px 2px; }
.cl-palette__item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--cl-ink); text-align: left; font-size: 14.5px; }
.cl-palette__item[aria-selected="true"] { background: var(--cl-brand-tint); box-shadow: inset 3px 0 0 var(--cl-brand); }
.cl-palette__item small { display: block; color: var(--cl-ink-3); font-size: 12.5px; }
.cl-palette__item .cl-ico { color: var(--cl-brand); }
.cl-palette__foot { display: flex; gap: 14px; padding: 10px 20px; border-top: 1px solid var(--cl-line); font-size: 12px; color: var(--cl-ink-3); }
.cl-toasts { position: fixed; z-index: 60; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; gap: 8px; pointer-events: none; }
.cl-toast { display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; background: var(--cl-ink); color: var(--cl-surface); font-size: 14px; font-weight: 550; box-shadow: var(--cl-shadow-lg); animation: cl-pop .25s var(--cl-ease); }

/* ---------- Leer, Laden, Einblenden ---------- */
.cl-empty { display: grid; justify-items: center; gap: 10px; padding: 44px 20px; text-align: center; color: var(--cl-ink-2); }
.cl-empty .cl-ico { width: 30px; height: 30px; color: var(--cl-ink-3); }
.cl-skel { border-radius: var(--cl-radius); min-height: 120px; background: linear-gradient(100deg, var(--cl-surface-3) 20%, var(--cl-surface-2) 40%, var(--cl-surface-3) 60%) 0 0 / 200% 100%; animation: cl-shimmer 1.4s linear infinite; }
.cl-skel--row { min-height: 56px; border-radius: 12px; }
.cl-skel--tall { min-height: 280px; }
@keyframes cl-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: no-preference) { .cl-reveal { animation: cl-rise .6s var(--cl-ease) both; animation-delay: calc(var(--cl-i, 0) * 55ms); } }
@keyframes cl-rise { from { opacity: 0; transform: translateY(12px); } }

@media print {
  .cl-shell, .cl-footer, .cl-aside, .cl-toolbar, .cl-btn, .cl-progress, .cl-pager { display: none !important; }
  .cl { background: #fff; }
  .cl-reader { display: block; }
}

/* Avatar (Autorinnen und Autoren) */
.cl-avatar { flex: none; width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-size: 14.5px; font-weight: 700; letter-spacing: .02em; box-shadow: 0 0 0 3px var(--cl-surface); }

/* Logo auf dunklem Grund: Lichtkreise leuchten statt sich abzudunkeln */
.cl[data-cl-theme="dark"] .cl-logo g, .cl[data-cl-theme="dark"] .cl-footer__logo g, .cl-stage .cl-logo g { mix-blend-mode: screen !important; }
.cl-stage__search > span:not(.cl-btn) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@container cl (max-width: 480px) { .cl-stage__search { height: 54px; font-size: 15px; padding-left: 16px; } .cl-stage__search .cl-btn { padding: 0 14px; } }

/* ==========================================================================
   Überarbeitung: App-Symbole, Playlists, Verwaltung, Bookings, Leseansicht
   ========================================================================== */

/* Verwaltungsfunktionen nur für berechtigte Personen */
.cl:not([data-cl-admin]) .cl-admin-only { display: none !important; }
.cl-adminbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; margin-bottom: 20px; border-radius: 12px; background: var(--cl-brand-tint); box-shadow: inset 0 0 0 1px var(--cl-brand-soft); font-size: 13.5px; color: var(--cl-ink-2); }
.cl-adminbar b { color: var(--cl-brand-strong); display: inline-flex; align-items: center; gap: 6px; }

/* App-Symbole */
.cl-appicon { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #fff; overflow: hidden; vertical-align: middle; }
.cl-appicon img, .cl-appicon svg { width: 82%; height: 82%; object-fit: contain; }
.cl-appicon--xs { width: 16px; height: 16px; border-radius: 4px; background: transparent; }
.cl-appicon--xs img, .cl-appicon--xs svg { width: 100%; height: 100%; }
.cl-appicon--md { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 1px 3px rgba(31, 25, 22, .12), 0 0 0 1px rgba(31, 25, 22, .05); }
.cl-appicon--md img, .cl-appicon--md svg { width: 66%; height: 66%; }
.cl-appicon--lg { width: 50px; height: 50px; border-radius: 14px; box-shadow: 0 4px 12px -4px rgba(31, 25, 22, .25), 0 0 0 1px rgba(31, 25, 22, .05); }
.cl-appicon--lg img, .cl-appicon--lg svg { width: 64%; height: 64%; }
.cl-appicon--xl { width: 78px; height: 78px; border-radius: 22px; box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .5); }
.cl-appicon--xl img, .cl-appicon--xl svg { width: 64%; height: 64%; }
.cl-appicon--text { font-size: 11px; font-weight: 800; color: var(--cl-brand); background: var(--cl-brand-soft); }
.cl-appstack { display: inline-flex; flex: none; }
.cl-appstack .cl-appicon + .cl-appicon { margin-left: -16px; }
.cl-appstack .cl-appicon:nth-child(2) { transform: translateY(6px); }
.cl-appstack .cl-appicon:nth-child(3) { transform: translateY(-3px); }
.cl-tag .cl-appicon--xs { margin-right: 1px; }

/* News-/Artikelzeilen mit Vorschaubild */
.cl-arow__thumb { width: 64px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--cl-surface-3); flex: none; }
.cl-arow__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Playlist-Titelbild: dunkle Bühne mit App-Licht */
.cl-plcover { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; border-radius: 12px; overflow: hidden; isolation: isolate;
  background: radial-gradient(90% 90% at 50% 45%, color-mix(in srgb, var(--app) 70%, transparent) 0%, transparent 62%), radial-gradient(60% 70% at 88% 12%, rgba(242, 181, 46, .28), transparent 60%), #1a110d; }
.cl-plcover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 14px); }
.cl-plcover__level { position: absolute; left: 10px; bottom: 10px; height: 24px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 7px; background: rgba(255, 255, 255, .92); color: #2a1f19; font-size: 12px; font-weight: 700; }
.cl-plcover .cl-playlist__count { right: 10px; bottom: 10px; }
.cl-playlist:hover .cl-plcover .cl-appicon--xl { transform: scale(1.06); }
.cl-plcover .cl-appicon--xl { transition: transform .35s var(--cl-ease); }
.cl-playlist__sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; line-height: 1.45; }
.cl-playlist__foot { display: grid; gap: 5px; padding: 0 6px; font-size: 12px; color: var(--cl-ink-3); }
.cl-playlist__foot .cl-meter { margin: 0; }
.cl-playlist__start { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--cl-brand); font-size: 13px; }

/* Videos: Sammlungsleiste + Karussells */
.cl-collbar { position: sticky; top: 64px; z-index: 5; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; margin: -10px 0 18px; background: color-mix(in srgb, var(--cl-bg) 92%, transparent); backdrop-filter: blur(8px); }
.cl-collbar::-webkit-scrollbar { display: none; }
[data-cl-embed] .cl-collbar { top: 0; }
/* Neuerungen: alle App-Filter sichtbar – umbrechen statt rechts abschneiden */
.cl-collbar--wrap { position: static; flex-wrap: wrap; overflow: visible; background: none; backdrop-filter: none; }
.cl-rowhead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 12px; }
.cl-rowhead__nav { margin-left: auto; display: flex; gap: 6px; }
.cl-rowhead__nav button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--cl-line-strong); background: var(--cl-surface); color: var(--cl-ink); display: grid; place-items: center; }
.cl-rowhead__nav button:hover { background: var(--cl-surface-2); }
.cl-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 14px; scrollbar-width: thin; }
.cl-carousel > * { scroll-snap-align: start; }
@container cl (max-width: 1060px) { .cl-carousel { grid-auto-columns: calc((100% - 2 * 16px) / 3); } }
@container cl (max-width: 760px) { .cl-carousel { grid-auto-columns: 72%; } }
.cl-plhead { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); padding: 18px; margin-bottom: 22px; border-radius: calc(var(--cl-radius) + 4px); background: var(--cl-surface); box-shadow: var(--cl-shadow); }
@container cl (min-width: 900px) { .cl-plhead { grid-template-columns: 280px minmax(0, 1fr); align-items: center; } }
.cl-plhead__title { font-family: var(--cl-display); font-size: clamp(24px, 3cqi, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 4px 0 8px; }
.cl-plhead__desc { color: var(--cl-ink-2); font-size: 15.5px; max-width: 70ch; }

/* Bookings im Wiki-Fenster */
.cl-dialog--booking { width: min(1040px, calc(100% - 24px)); }
.cl-dialog--booking .cl-dialog__body { padding: 18px; }
.cl-booking__head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.cl-booking__head b { font-size: 17px; }
.cl-booking__frame { border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--cl-line); background: #fff; }
.cl-booking__frame iframe { display: block; width: 100%; height: min(68vh, 760px); border: 0; }

/* Neuerungen: App-Symbol statt Punkt */
.cl-update { padding-left: 16px; }
.cl-update::before { display: none; }
.cl-update > .cl-appicon--md { position: absolute; left: -46px; top: 50%; margin-top: -20px; width: 36px; height: 36px; border-radius: 10px; margin-top: -18px; box-shadow: 0 0 0 4px var(--cl-bg), 0 1px 3px rgba(0, 0, 0, .15); }
.cl-month__items { padding-left: 50px; }
.cl-month__items::before { left: 18px; }
.cl-month__apps { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }

/* Leseansicht: Inhaltsverzeichnis bleibt beim Scrollen sichtbar */
.cl-reader .cl-aside { position: static; }
.cl-toc-sticky { position: sticky; top: 84px; }   /* keine eigene Scrollleiste – artikel.html passt „top“ an lange Inhaltsverzeichnisse an */
[data-cl-embed] .cl-toc-sticky { top: 12px; }
.cl-actions-row { display: flex; flex-wrap: wrap; gap: 6px; }
.cl-actions-row .cl-btn { flex: 1 1 auto; }

.cl-related { margin-top: 44px; }
.cl-prose :where(p + h2, ul + h2, ol + h2, table + h2) { margin-top: 26px; }
.cl-prose :where(br + br) { display: none; }
.cl-sidenav__app { width: 30px; height: 30px; border-radius: 9px; box-shadow: 0 0 0 1px var(--cl-line); }
.cl-sidenav__app img, .cl-sidenav__app svg { width: 70%; height: 70%; }
.cl-appicon--sm { width: 26px; height: 26px; border-radius: 7px; box-shadow: 0 0 0 1px var(--cl-line); }
.cl-appicon[data-own] img { width: 100% !important; height: 100% !important; }
.cl-plcover .cl-playlist__count { top: 10px; bottom: auto; }
.cl-carousel { scrollbar-width: none; }
.cl-carousel::-webkit-scrollbar { display: none; }
.cl-month__items { align-content: start; }

/* ==========================================================================
   Startseiten-Bühne, Variante "Glas" (hell, iOS-Glas-Design)
   Umschalten: config.js → stage: 'glas' | 'dunkel'  (oder ?buehne=dunkel)
   Geheimtipp: Doppelklick auf die grüne Lichtkugel wechselt für den eigenen Browser (index.html)
   ========================================================================== */
.cl-stage__content { position: relative; }
.cl-stage { touch-action: manipulation; }                                              /* Doppeltippen zoomt nicht */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .5s; }  /* sanft überblenden beim Wechsel */
.cl-stage--glass {
  color: var(--cl-ink);
  padding: clamp(14px, 3cqi, 36px);
  background:
    radial-gradient(70% 90% at 0% 100%, rgba(255, 214, 180, .55), transparent 60%),
    linear-gradient(135deg, #fffaf6 0%, #f7f1ff 55%, #eef7ff 100%);
  box-shadow: 0 30px 60px -36px rgba(90, 40, 10, .35), inset 0 0 0 1px rgba(255, 255, 255, .9);
}
.cl-stage--glass::after { display: none; }
.cl-stage--glass .cl-light { mix-blend-mode: normal; opacity: .9; filter: blur(6px) saturate(1.25); }
.cl-stage--glass .cl-light:nth-child(5) { opacity: .55; }
.cl-stage--glass .cl-stage__content {
  max-width: 780px;
  padding: clamp(26px, 4.4cqi, 56px);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, .46) 55%, rgba(255, 255, 255, .34) 100%);
  -webkit-backdrop-filter: blur(28px) saturate(1.9);
          backdrop-filter: blur(28px) saturate(1.9);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(255, 255, 255, .35),
    inset 0 0 0 1px rgba(255, 255, 255, .25),
    0 1px 2px rgba(60, 30, 10, .06),
    0 28px 56px -28px rgba(60, 30, 10, .35);
  overflow: hidden;
  isolation: isolate;
}
/* Lichtreflex oben links wie bei Glas */
.cl-stage--glass .cl-stage__content::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 70% at 0% 0%, rgba(255, 255, 255, .85), transparent 45%),
              linear-gradient(180deg, rgba(255, 255, 255, .35), transparent 30%);
}
.cl-stage--glass .cl-stage__eyebrow { background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 1px 3px rgba(60, 30, 10, .08); color: var(--cl-ink-2); }
.cl-stage--glass .cl-logo g { mix-blend-mode: multiply !important; }
.cl-stage--glass .cl-stage__lead { color: var(--cl-ink-2); }
.cl-stage--glass .cl-stage__title em { background: linear-gradient(100deg, #e89a12 5%, var(--cl-l6) 45%, var(--cl-brand) 95%); -webkit-background-clip: text; background-clip: text; }
.cl-stage--glass .cl-stage__search { background: rgba(255, 255, 255, .92); color: var(--cl-ink-3); box-shadow: inset 0 0 0 1px rgba(31, 25, 22, .06), 0 14px 32px -18px rgba(60, 30, 10, .45); }
.cl-stage--glass .cl-stage__hints button { background: rgba(255, 255, 255, .55); color: var(--cl-ink-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .85); }
.cl-stage--glass .cl-stage__hints button:hover { background: rgba(255, 255, 255, .9); color: var(--cl-ink); }
.cl-stage--glass .cl-stat span { color: var(--cl-ink-3); }
@container cl (max-width: 680px) { .cl-stage--glass .cl-stage__content { max-width: none; } }

/* Glas im dunklen Design */
.cl[data-cl-theme="dark"] .cl-stage--glass { background: radial-gradient(70% 90% at 0% 100%, rgba(181, 73, 15, .35), transparent 60%), linear-gradient(135deg, #1e2533, #1c2236 55%, #172131); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.cl[data-cl-theme="dark"] .cl-stage--glass .cl-stage__content { background: linear-gradient(145deg, rgba(40, 48, 64, .72), rgba(30, 37, 51, .45)); border-color: rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 28px 56px -28px rgba(0, 0, 0, .7); }
.cl[data-cl-theme="dark"] .cl-stage--glass .cl-stage__content::before { background: radial-gradient(120% 70% at 0% 0%, rgba(255, 255, 255, .12), transparent 45%); }
.cl[data-cl-theme="dark"] .cl-stage--glass .cl-stage__eyebrow,
.cl[data-cl-theme="dark"] .cl-stage--glass .cl-stage__hints button { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: var(--cl-ink-2); }
.cl[data-cl-theme="dark"] .cl-stage--glass .cl-logo g { mix-blend-mode: screen !important; }

/* ==========================================================================
   Runde 3: dunkle Bühne transparenter, Neuerungen-Karten, Abschnitts-Sprung, KI-Chat
   ========================================================================== */
/* Dunkle Bühne: rauchig-transparent statt tiefschwarz */
.cl-stage:not(.cl-stage--glass) {
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(74, 44, 30, .80), transparent 60%),
    linear-gradient(135deg, rgba(34, 22, 17, .86), rgba(28, 19, 15, .78));
  box-shadow: 0 30px 60px -32px rgba(60, 20, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .10), inset 0 0 0 1px rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.cl-stage:not(.cl-stage--glass)::after { background: linear-gradient(90deg, rgba(28, 18, 14, .70) 0%, rgba(28, 18, 14, .38) 45%, rgba(28, 18, 14, 0) 100%); }
.cl-stage:not(.cl-stage--glass) .cl-light { opacity: .9; }

/* Neuerungen: Monate mit Kartenraster */
.cl-upmonth { margin-bottom: 38px; }
.cl-upmonth__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--cl-line); }
.cl-upmonth__name { font-family: var(--cl-display); font-size: clamp(24px, 3cqi, 32px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-top: 2px; display: flex; align-items: center; gap: 10px; }
.cl-upcard { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--cl-radius); background: var(--cl-surface); box-shadow: var(--cl-shadow); color: var(--cl-ink); text-decoration: none; transition: transform .25s var(--cl-ease), box-shadow .25s; min-width: 0; }
a.cl-upcard:hover { transform: translateY(-3px); box-shadow: var(--cl-shadow-lg); text-decoration: none; }
a.cl-upcard:hover .cl-upcard__title { color: var(--cl-brand); }
.cl-upcard__top { display: flex; align-items: center; gap: 12px; }
.cl-upcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.cl-upcard__date { font-family: var(--cl-mono); font-size: 12px; color: var(--cl-ink-3); }
.cl-upcard__title { font-size: 16.5px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; transition: color .15s; }
.cl-upcard__when { display: flex; gap: 8px; font-size: 13.5px; color: var(--cl-ink-2); line-height: 1.5; }
.cl-upcard__when .cl-ico { color: var(--cl-brand); margin-top: 2px; }
.cl-upcard__when span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cl-upcard__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 650; color: var(--cl-brand); }
/* Neuerungen: Aufbau wie „Wissen“ – links Jahr + Apps, rechts die aktuelle Monatsnews (kleiner als früher unter „Neuigkeiten“) und die Monate */
.cl-upside { display: grid; gap: 14px; align-content: start; }
.cl-seg--full { display: flex; flex-wrap: wrap; width: 100%; }
.cl-seg--full button { flex: 1 1 0; min-width: 0; padding: 0 6px; }
.cl-seg__more { flex: none; display: inline-flex; align-items: center; gap: 3px; padding: 0 12px 0 6px; }
.cl-seg__more i { width: 4px; height: 4px; border-radius: 50%; background: var(--cl-ink-3); }
.cl-seg__more i:nth-child(2) { opacity: .55; }
.cl-seg__more i:nth-child(3) { opacity: .25; }
.cl-sidenav button[data-empty] { opacity: .45; }
.cl-upcol { container: upcol / inline-size; min-width: 0; }
@container upcol (max-width: 899px) { .cl-upcol .cl-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container upcol (max-width: 559px) { .cl-upcol .cl-grid--3 { grid-template-columns: minmax(0, 1fr); } }
.cl-feature--sm { gap: 16px; padding: 10px; margin-bottom: 34px; }
.cl-feature--sm .cl-feature__body { gap: 8px; padding: 6px 12px 12px; }
.cl-feature--sm .cl-feature__title { font-size: clamp(22px, 3cqi, 28px); }
.cl-feature--sm .cl-feature__desc { font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@container upcol (min-width: 640px) { .cl-feature--sm { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } .cl-feature--sm .cl-cover { aspect-ratio: auto; min-height: 210px; } }
.cl-update--mini { padding: 10px 12px; box-shadow: none; background: var(--cl-surface-2); color: var(--cl-ink); text-decoration: none; }
a.cl-update--mini:hover { background: var(--cl-brand-tint); text-decoration: none; }
.cl-update--mini .cl-update__title { font-size: 14px; flex-basis: 100%; }

/* Sprung zu einem Abschnitt: kurz hervorheben */
.cl-flash-section { animation: cl-flash-text 2.4s var(--cl-ease); border-radius: 8px; }
@keyframes cl-flash-text { 0%, 35% { background: var(--cl-brand-soft); box-shadow: 0 0 0 8px var(--cl-brand-soft); } 100% { background: transparent; box-shadow: 0 0 0 8px transparent; } }

/* KI-Agent: Chat-Fenster unten rechts */
.cl-agent-fab { position: fixed; right: 22px; bottom: 22px; z-index: 45; display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 8px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, #2a1a13, #1a110d); color: #fff; font-size: 15px; font-weight: 650; box-shadow: 0 14px 34px -12px rgba(60, 20, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .12); transition: transform .2s var(--cl-ease); }
.cl-agent-fab:hover { transform: translateY(-2px); }
.cl-agent-fab__icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #fff;
  background: conic-gradient(from 200deg, var(--cl-l1), var(--cl-l2), var(--cl-l3), var(--cl-l4), var(--cl-l5), var(--cl-l6), var(--cl-l1)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }
.cl-agent-fab__icon .cl-ico { width: 20px; height: 20px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.cl-agent-fab[aria-expanded="true"] { opacity: 0; pointer-events: none; }
.cl-agent-panel { position: fixed; right: 22px; bottom: 22px; z-index: 46; width: min(420px, calc(100vw - 28px)); height: min(640px, calc(100vh - 110px)); display: flex; flex-direction: column;
  border-radius: 22px; overflow: hidden; background: var(--cl-surface); box-shadow: 0 30px 70px -20px rgba(40, 15, 0, .55), 0 0 0 1px rgba(31, 25, 22, .08); animation: cl-pop .28s var(--cl-ease); }
.cl-agent-panel[hidden] { display: none; }
.cl-agent-panel__bar { display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 12px; background: linear-gradient(135deg, #2a1a13, #1a110d); color: #fff; }
.cl-agent-panel__bar > span:nth-child(2) { flex: 1; min-width: 0; line-height: 1.25; }
.cl-agent-panel__bar small { display: block; font-size: 12px; color: rgba(255, 255, 255, .7); }
.cl-agent-panel__bar .cl-btn--icon { color: rgba(255, 255, 255, .8); }
.cl-agent-panel__bar .cl-btn--icon:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.cl-agent-panel__body { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #fff; }
/* Nur der Verlauf scrollt: Kopf mit Schließen-Knopf und Eingabe bleiben immer sichtbar,
   das Fenster selbst lässt sich nicht verschieben (clip statt hidden) und passt auch auf dem Handy (dvh) */
.cl-agent-panel__body > * { flex: 1; min-height: 0; }
.cl-agent-panel { overflow: clip; height: min(640px, calc(100dvh - 110px)); }
.cl-agent-panel__body iframe { width: 100%; height: 100%; border: 0; display: block; }
@container cl (max-width: 680px) { .cl-agent-fab__label { display: none; } .cl-agent-fab { padding: 0 8px; } }
@media print { .cl-agent-fab, .cl-agent-panel { display: none !important; } }

/* ---------- Rückmeldungen: Postfach, Sterne, Plätze ---------- */
.cl-inbox { position: relative; }
.cl-badge { position: absolute; top: 2px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--cl-brand); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--cl-surface); animation: cl-pop .3s var(--cl-ease); }
.cl-badge[hidden] { display: none; }
.cl-dialog--wide { width: min(860px, calc(100% - 32px)); }
.cl-inbox__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.cl-inbox__item { padding: 14px 16px; border: 1px solid var(--cl-line); border-radius: 14px; background: var(--cl-surface); }
.cl-inbox__item.is-new { border-color: color-mix(in srgb, var(--cl-brand) 45%, var(--cl-line)); box-shadow: inset 3px 0 0 var(--cl-brand); }
.cl-inbox__item.is-done { opacity: .62; }
/* „Dein Wunsch ist da“: Vorschläge, erfüllte Wünsche und Auswahl im Postfach */
.cl-inbox__wish { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: var(--cl-brand-tint); font-size: 13.5px; line-height: 1.5; }
.cl-inbox__wish > .cl-ico { flex: none; margin-top: 3px; color: var(--cl-brand); }
.cl-inbox__wish small { color: var(--cl-ink-3); }
.cl-inbox__wish.is-done { background: var(--cl-good-soft); }
.cl-inbox__wish.is-done > .cl-ico { color: var(--cl-good); }
.cl-fulfill { display: grid; gap: 8px; margin-top: 12px; padding: 14px; border-radius: 12px; background: var(--cl-surface-2); }
.cl-fulfill__opts { display: grid; gap: 6px; }
.cl-fulfill__opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 1px solid var(--cl-line); border-radius: 10px; background: var(--cl-surface); color: var(--cl-ink); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.cl-fulfill__opt:hover { border-color: var(--cl-line-strong); }
.cl-fulfill__opt[aria-pressed="true"] { border-color: var(--cl-brand); box-shadow: 0 0 0 3px var(--cl-brand-soft); }
.cl-fulfill__opt > .cl-ico { flex: none; color: var(--cl-brand); }
.cl-fulfill__opt small { display: block; font-size: 12px; font-weight: 400; color: var(--cl-ink-3); }
.cl-fulfill__q { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--cl-line-strong); border-radius: 10px; background: var(--cl-surface); color: var(--cl-ink); font: inherit; font-size: 14px; }
.cl-fulfill__q:focus { outline: 0; border-color: var(--cl-brand); box-shadow: 0 0 0 3px var(--cl-brand-soft); }
.cl-empty .cl-btn .cl-ico { width: 16px; height: 16px; color: inherit; }
/* Mein Bereich: Deine Wünsche */
.cl-wishes { display: grid; gap: 8px; margin-top: 12px; }
.cl-wishes__item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--cl-surface-2); }
.cl-wishes__item > .cl-ico { flex: none; margin-top: 3px; color: var(--cl-ink-3); }
.cl-wishes__item b { display: block; font-size: 14px; }
.cl-wishes__item small { display: block; margin-top: 1px; font-size: 12.5px; color: var(--cl-ink-3); }
.cl-wishes__item.is-done { background: var(--cl-brand-tint); }
.cl-wishes__item.is-done > .cl-ico { color: var(--cl-brand); }
.cl-inbox__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }
.cl-inbox__title { font-size: 16px; font-weight: 700; line-height: 1.35; }
.cl-inbox__text { margin-top: 6px; font-size: 14.5px; color: var(--cl-ink-2); white-space: normal; }
.cl-inbox__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; }
.cl-inbox__foot > span { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; }
.cl-inbox__stars { color: #f2a531; letter-spacing: 1px; font-size: 14px; }
.cl-inbox__stars i { font-style: normal; color: var(--cl-line-strong); }
.cl-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin: 0; padding: 0; border: 0; }
.cl-stars legend { width: 100%; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: var(--cl-ink-2); }
.cl-stars input { position: absolute; opacity: 0; pointer-events: none; }
.cl-form .cl-stars label { display: block; cursor: pointer; color: var(--cl-line-strong); transition: color .15s, transform .15s; }
.cl-stars label svg { width: 30px; height: 30px; fill: currentColor; stroke: currentColor; }
.cl-stars label:hover, .cl-stars label:hover ~ label, .cl-stars input:checked ~ label { color: #f2a531; }
.cl-stars label:hover { transform: scale(1.12); }
.cl-stars input:focus-visible + label { outline: 2px solid var(--cl-brand); outline-offset: 2px; border-radius: 6px; }
.cl-seats--few span b { color: var(--cl-brand-strong); }
.cl-seats--few .cl-meter__fill { background: linear-gradient(90deg, var(--cl-brand), #f2a531); }
.cl-seats--few span b::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; vertical-align: 1px; border-radius: 50%; background: var(--cl-brand); box-shadow: 0 0 0 0 color-mix(in srgb, var(--cl-brand) 60%, transparent); animation: cl-ping 1.8s infinite; }
@keyframes cl-ping { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .cl-seats--few span b::before, .cl-badge { animation: none; } }
.cl-img--broken { visibility: hidden; }

/* ---------- Admin-Bereich ---------- */
.cl-admintabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -8px 0 22px; padding: 6px; border: 1px solid var(--cl-line); border-radius: 14px; background: var(--cl-surface); }
.cl-admintabs > a, .cl-admintabs > button { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 0; border-radius: 10px; background: none; color: var(--cl-ink-2); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.cl-admintabs > a:hover, .cl-admintabs > button:hover { background: var(--cl-surface-2); color: var(--cl-ink); }
.cl-admintabs > a[aria-current] { background: var(--cl-brand-soft); color: var(--cl-brand-strong); }
.cl-admintabs .cl-badge { position: static; margin-left: 2px; box-shadow: none; }
.cl-admintabs__note { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 0 10px; font-size: 12.5px; color: var(--cl-ink-3); }
.cl-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 22px; }
.cl-kpi { display: grid; gap: 4px; padding: 18px; border: 1px solid var(--cl-line); border-radius: 18px; background: var(--cl-surface); box-shadow: var(--cl-shadow); text-align: left; font: inherit; color: inherit; }
button.cl-kpi { cursor: pointer; transition: transform .2s var(--cl-ease), border-color .2s; }
button.cl-kpi:hover { transform: translateY(-2px); border-color: var(--cl-brand); }
.cl-kpi__label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--cl-ink-3); }
.cl-kpi__value { font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--cl-ink); }
.cl-kpi__sub { font-size: 12.5px; color: var(--cl-ink-3); }
.cl-kpi__sub .up { color: var(--cl-good); font-weight: 700; } .cl-kpi__sub .down { color: var(--cl-crit); font-weight: 700; }
.cl-kpi--brand { background: linear-gradient(145deg, var(--cl-brand-soft), var(--cl-surface)); border-color: color-mix(in srgb, var(--cl-brand) 35%, var(--cl-line)); }
.cl-dash { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); align-items: start; }
.cl-dash > .cl-card { display: grid; gap: 14px; }
.cl-dash__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.cl-dash__head h2 { font-size: 18px; font-weight: 750; }
.cl-dash__head p { font-size: 13px; color: var(--cl-ink-3); }
.cl-chart { width: 100%; height: auto; overflow: visible; }
.cl-chart__bar { fill: var(--cl-brand); opacity: .85; transition: opacity .15s; }
.cl-chart g:hover .cl-chart__bar { opacity: 1; }
.cl-chart__axis { stroke: var(--cl-line-strong); }
.cl-chart__lbl { font-size: 11px; fill: var(--cl-ink-3); text-anchor: middle; }
.cl-chart__val { font-size: 11px; font-weight: 700; fill: #fff; text-anchor: middle; }
.cl-hbars { display: grid; gap: 12px; }
.cl-hbars > li { display: flex; gap: 12px; align-items: flex-start; }
.cl-hbars__rank { flex: 0 0 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--cl-surface-3); font-size: 12.5px; font-weight: 800; color: var(--cl-ink-2); }
.cl-hbars > li:nth-child(-n+3) .cl-hbars__rank { background: var(--cl-brand-soft); color: var(--cl-brand-strong); }
.cl-hbars__main { flex: 1; min-width: 0; display: grid; gap: 5px; }
.cl-hbars__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 14px; }
.cl-hbars__label { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cl-ink); }
.cl-hbars__label a { color: inherit; text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
.cl-hbars__label a:hover { color: var(--cl-brand-strong); text-decoration: underline; }
.cl-hbars__sub { font-size: 12.5px; color: var(--cl-ink-3); }
.cl-hbars > li.is-warn .cl-meter__fill { background: linear-gradient(90deg, var(--cl-brand), #f2a531); }
.cl-quote { padding: 12px 14px; border-left: 3px solid var(--cl-brand); border-radius: 0 12px 12px 0; background: var(--cl-surface-2); font-size: 14px; color: var(--cl-ink-2); }
.cl-quote footer { margin-top: 6px; font-size: 12.5px; color: var(--cl-ink-3); }

/* ---------- Eigenes Chatfenster (Wiki-Suche über Power Automate) ---------- */
.cl-chat { display: flex; flex-direction: column; height: 100%; background: var(--cl-surface); }
.cl-chat__log { position: relative; flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; padding: 16px 14px; scroll-behavior: smooth; }
.cl-chat__msg { max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; animation: cl-pop .25s var(--cl-ease); }
.cl-chat__msg p + p, .cl-chat__msg p + ul, .cl-chat__msg p + ol, .cl-chat__msg ul + p, .cl-chat__msg ol + p { margin-top: 8px; }
.cl-chat__msg ul, .cl-chat__msg ol { padding-left: 18px; margin: 6px 0 0; list-style: revert; }
.cl-chat__msg li + li { margin-top: 4px; }
.cl-chat__msg a { color: var(--cl-brand-strong); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cl-chat__msg code { padding: 1px 5px; border-radius: 5px; background: var(--cl-surface-3); font-size: 13px; }
.cl-chat__msg--bot { align-self: flex-start; background: var(--cl-surface-2); border-bottom-left-radius: 6px; color: var(--cl-ink); }
.cl-chat__msg--user { align-self: flex-end; background: var(--cl-brand); color: #fff; border-bottom-right-radius: 6px; }
.cl-chat__msg.is-error { background: var(--cl-crit-soft); color: var(--cl-crit); }
/* Antwort erscheint Wort für Wort: Absätze und Listenpunkte tauchen erst mit ihrem ersten Wort auf, Quellen & Videostellen am Ende */
.cl-chat__msg.is-typing :is(p, ul, ol, li, .cl-chat__videos, .cl-chat__sources, .cl-chat__wish):not([data-on]) { display: none; }
.cl-chat__wish { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .cl-chat__log { scroll-behavior: auto; } .cl-chat__msg { animation: none; } }
.cl-chat__caret { display: inline-block; width: 7px; height: 1.05em; margin-left: 2px; vertical-align: -.15em; border-radius: 2px; background: var(--cl-brand); opacity: .75; }
.cl-chat__msg.is-wait { display: inline-flex; align-items: center; gap: 10px; color: var(--cl-ink-3); font-size: 13px; }
.cl-chat__typing { display: inline-flex; gap: 4px; }
.cl-chat__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--cl-brand); animation: cl-typing 1.2s infinite ease-in-out; }
.cl-chat__typing i:nth-child(2) { animation-delay: .15s; } .cl-chat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes cl-typing { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.cl-chat__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cl-chat__chips .cl-chip { font-size: 12.5px; white-space: normal; text-align: left; }
.cl-chat__cite { display: inline-grid; place-items: center; min-width: 17px; height: 17px; margin: 0 1px; padding: 0 4px; border-radius: 6px; background: var(--cl-brand-soft); font-size: 11px; font-weight: 700; text-decoration: none !important; vertical-align: 2px; }
.cl-chat__sources { display: grid; gap: 4px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--cl-line); font-size: 12.5px; }
.cl-chat__sources span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cl-ink-3); }
.cl-chat__sources a { font-weight: 500 !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-chat__form { display: flex; align-items: flex-end; gap: 8px; margin: 0 12px; padding: 6px 6px 6px 14px; border: 1px solid var(--cl-line-strong); border-radius: 16px; background: var(--cl-surface); }
.cl-chat__form:focus-within { border-color: var(--cl-brand); box-shadow: 0 0 0 4px var(--cl-brand-soft); }
.cl-chat__form textarea { flex: 1; min-height: 34px; max-height: 140px; padding: 7px 0; border: 0; outline: 0; resize: none; background: none; color: var(--cl-ink); font: inherit; font-size: 14.5px; }
.cl-chat__form .cl-btn--icon { background: var(--cl-brand); color: #fff; }
.cl-chat__note { padding: 6px 14px 10px; font-size: 11.5px; color: var(--cl-ink-3); text-align: center; }

/* ---------- Transkripte: Stellen in Videos ---------- */
.cl-timecode { display: inline-block; flex: none; padding: 1px 7px; border-radius: 999px; background: var(--cl-brand-soft); color: var(--cl-brand-strong); font: 600 12px/1.6 var(--cl-mono); font-style: normal; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.cl-palette__item mark, .cl-transcript mark, .cl-chat__video mark { background: var(--cl-warn-soft); color: inherit; border-radius: 3px; padding: 0 2px; }
.cl-palette__item .cl-timecode { margin-left: 6px; vertical-align: 1px; }

.cl-transcript { margin-top: 18px; border-radius: var(--cl-radius); background: var(--cl-surface); box-shadow: var(--cl-shadow); overflow: hidden; }
.cl-transcript__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px 10px; border-bottom: 1px solid var(--cl-line); }
.cl-transcript__title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; font-weight: 750; }
.cl-transcript__search { flex: 1 1 200px; max-width: 320px; margin-left: auto; }
.cl-transcript__count { font-size: 13px; min-width: 0; }
.cl-transcript__list { max-height: 300px; overflow-y: auto; padding: 6px; scroll-behavior: smooth; }
.cl-transcript__line { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 7px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--cl-ink-2); text-align: left; font-size: 14.5px; line-height: 1.55; cursor: pointer; transition: background .15s var(--cl-ease), color .15s var(--cl-ease); }
.cl-transcript__line:hover { background: var(--cl-brand-tint); color: var(--cl-ink); }
.cl-transcript__line[aria-current="true"] { background: var(--cl-brand-soft); color: var(--cl-ink); }
.cl-transcript__line[aria-current="true"] .cl-timecode { background: var(--cl-brand); color: var(--cl-on-brand); }
.cl-transcript__line .cl-timecode { margin-top: 2px; }
.cl-transcript__hint { margin: 0; padding: 8px 16px 12px; border-top: 1px solid var(--cl-line); color: var(--cl-ink-3); font-size: 12.5px; }

.cl-chat__videos { display: grid; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--cl-line); }
.cl-chat__videos-head { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cl-ink-3); }
.cl-chat__video { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: var(--cl-surface); box-shadow: var(--cl-shadow); color: var(--cl-ink) !important; text-decoration: none !important; font-weight: 400 !important; transition: box-shadow .15s var(--cl-ease), transform .15s var(--cl-ease); }
.cl-chat__video:hover { transform: translateY(-1px); box-shadow: var(--cl-shadow-lg); }
.cl-chat__video b { display: block; font-size: 13.5px; font-weight: 650; }
.cl-chat__video small { display: block; color: var(--cl-ink-3); font-size: 12px; }
.cl-chat__video q { display: block; margin-top: 3px; color: var(--cl-ink-2); font-size: 12.5px; line-height: 1.45; quotes: "„" "“"; }
.cl-chat__video .cl-timecode { margin-top: 1px; }

/* ==========================================================================
   Mein Bereich: Glocke, Avatar, Menüs, Übersicht, Abzeichen, Bestätigung
   ========================================================================== */
.cl-bell { position: relative; }
.cl-avatarbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-left: 2px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.cl-avatarbtn:focus-visible { outline: 2px solid var(--cl-brand); outline-offset: 2px; }
.cl-meavatar { position: relative; flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; }
.cl-meavatar:empty { background: var(--cl-surface-3); }
.cl-meavatar svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.cl-meavatar__track { fill: none; stroke: var(--cl-line); stroke-width: 3; }
.cl-meavatar__ring { fill: none; stroke: var(--cl-brand); stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset .8s var(--cl-ease); }
.cl-meavatar b { display: grid; place-items: center; width: calc(100% - 9px); height: calc(100% - 9px); border-radius: 50%; background: linear-gradient(135deg, var(--cl-brand), #d9772f); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.cl-meavatar--lg { width: 52px; height: 52px; }
.cl-meavatar--lg b { font-size: 17px; }
.cl-meavatar--xl { width: 84px; height: 84px; }
.cl-meavatar--xl b { font-size: 27px; width: calc(100% - 12px); height: calc(100% - 12px); }
.cl-meavatar--xl svg circle { stroke-width: 2.4; }
.cl-avatarbtn:hover .cl-meavatar b { filter: brightness(1.08); }

.cl-pop { position: fixed; z-index: 70; width: min(380px, calc(100vw - 24px)); max-height: min(560px, calc(100vh - 90px)); display: flex; flex-direction: column; border-radius: 18px; background: var(--cl-surface); box-shadow: var(--cl-shadow-lg); border: 1px solid var(--cl-line); overflow: hidden; animation: cl-pop .18s var(--cl-ease); }
.cl-pop--me { width: min(320px, calc(100vw - 24px)); padding: 16px; gap: 12px; }
.cl-pop__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; border-bottom: 1px solid var(--cl-line); }
.cl-pop__head b { font-size: 15.5px; }
.cl-pop__list { overflow-y: auto; padding: 6px; }
.cl-pop__foot { padding: 10px 16px; border-top: 1px solid var(--cl-line); font-size: 13.5px; }
.cl-pop__foot a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.cl-pop__me { display: flex; align-items: center; gap: 12px; }
.cl-pop__me > span:last-child b { display: block; font-size: 15.5px; }   /* nur der Name – die Initialen im Avatar bleiben mittig */
.cl-pop__me small { display: block; color: var(--cl-ink-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.cl-pop__me > span:last-child { min-width: 0; }
.cl-pop__stats { display: flex; gap: 8px; }
.cl-pop__stats span { flex: 1; white-space: nowrap; display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 12px; background: var(--cl-surface-2); font-size: 13px; color: var(--cl-ink-2); }
.cl-pop__stats span.is-hot { background: #fff1e6; color: #b64a0a; }
.cl-pop__menu { display: grid; gap: 2px; margin: 0 -8px -8px; }
.cl-pop__item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--cl-ink) !important; text-decoration: none !important; font-size: 14.5px; font-weight: 550; }
.cl-pop__item:hover { background: var(--cl-brand-tint); }
.cl-pop__item span { flex: 1; }
.cl-pop__item em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--cl-ink-3); }
/* Profilmenü: Dunkles Design als Schalter, Rückmeldungen & Einstellungen (nur CloudLights), Zähler am Profilbild */
.cl-pop__sep { height: 1px; margin: 5px 10px; border: 0; background: var(--cl-line); }
.cl-pop__item[aria-checked="true"] .cl-switch { background: var(--cl-brand); }
.cl-pop__item[aria-checked="true"] .cl-switch::after { transform: translateX(18px); }
.cl-pop__item em.is-new { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--cl-brand); color: #fff; line-height: 20px; text-align: center; }
.cl-avatarbtn { position: relative; }
.cl-avatarbtn .cl-badge { top: -3px; right: -5px; }
.cl-meter--xs { height: 4px; }

.cl-note { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; color: var(--cl-ink) !important; text-decoration: none !important; }
.cl-note:hover { background: var(--cl-brand-tint); }
.cl-note__ico { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--cl-surface-2); color: var(--cl-ink-2); }
.cl-note.is-unread .cl-note__ico { background: var(--cl-brand-soft); color: var(--cl-brand-strong); }
.cl-note__txt { flex: 1; min-width: 0; }
.cl-note__txt b { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }
.cl-note.is-unread .cl-note__txt b::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--cl-brand); vertical-align: 2px; }
.cl-note__txt small { display: block; margin-top: 2px; color: var(--cl-ink-3); font-size: 12.5px; }
.cl-note .cl-tag { flex: none; }

.cl-markbtn[aria-pressed="true"] { background: var(--cl-brand-soft); border-color: transparent; color: var(--cl-brand-strong); }
.cl-markbtn[aria-pressed="true"] .cl-ico { fill: currentColor; }

.cl-toast--win { gap: 12px; padding: 10px 12px 10px 10px; border-radius: 18px; pointer-events: auto; background: var(--cl-surface); color: var(--cl-ink); border: 1px solid var(--cl-line); animation: cl-win .5s var(--cl-ease); }
.cl-toast--win b { display: block; font-size: 14px; }
.cl-toast--win small { display: block; color: var(--cl-ink-3); font-weight: 450; font-size: 12.5px; }
.cl-toast--win a { margin-left: 6px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.cl-toast__medal { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #f7c65a, #e0892a); color: #fff; box-shadow: 0 6px 16px -6px rgba(224, 137, 42, .8); }
.cl-toast.is-out { opacity: 0; transform: translateY(8px); transition: .35s var(--cl-ease); }
@keyframes cl-win { 0% { opacity: 0; transform: translateY(16px) scale(.9); } 60% { transform: translateY(-3px) scale(1.02); } 100% { opacity: 1; transform: none; } }

/* Kopf "Mein Bereich" */
.cl-mehero { display: grid; gap: 22px; align-items: center; margin-bottom: 18px; padding: 26px; border-radius: 24px; background: radial-gradient(120% 140% at 0% 0%, var(--cl-brand-soft), transparent 55%), var(--cl-surface); box-shadow: var(--cl-shadow); }
@media (min-width: 1100px) { .cl-mehero { grid-template-columns: minmax(340px, 1fr) minmax(0, 640px); } }
.cl-mehero__who { display: flex; align-items: center; gap: 20px; min-width: 0; }
.cl-mehero__who > div { min-width: 0; }
.cl-mehero__title { font-family: var(--cl-display); font-size: clamp(26px, 3.2vw, 36px); font-weight: 750; letter-spacing: -.025em; line-height: 1.1; margin-top: 2px; }
.cl-mehero__lead { margin-top: 6px; color: var(--cl-ink-2); font-size: 15px; }
.cl-mehero__lead a { font-weight: 500; }
.cl-mestats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .cl-mestats { grid-template-columns: repeat(4, minmax(128px, 1fr)); } }
.cl-mestat { display: grid; justify-items: start; align-content: start; gap: 4px; padding: 14px; border-radius: 16px; background: var(--cl-surface); border: 1px solid var(--cl-line); min-width: 0; }
.cl-mestat > b { font-size: 21px; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; }
.cl-mestat > small { color: var(--cl-ink-3); font-size: 12.5px; line-height: 1.35; }
.cl-mestat .cl-meter { width: 100%; margin-top: 4px; }
.cl-mestat__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--cl-surface-2); color: var(--cl-ink-3); }
.cl-mestat__ico--brand { background: var(--cl-brand-soft); color: var(--cl-brand-strong); }
.cl-mestat.is-hot .cl-mestat__ico { background: linear-gradient(135deg, #ffb057, #f0621f); color: #fff; box-shadow: 0 6px 16px -8px #f0621f; }
.cl-mestat.is-hot > b { color: #d4550f; }
.cl-ring { position: relative; display: grid; place-items: center; width: 52px; height: 52px; flex: none; }
.cl-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.cl-ring__track { fill: none; stroke: var(--cl-surface-3); stroke-width: 7; }
.cl-ring__bar { fill: none; stroke: var(--cl-good); stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset .8s var(--cl-ease); }
.cl-ring b { font-size: 13px; font-weight: 750; }

.cl-tabs { display: flex; gap: 4px; margin-bottom: 18px; padding: 5px; border-radius: 14px; background: var(--cl-surface); border: 1px solid var(--cl-line); overflow-x: auto; scrollbar-width: none; }
.cl-tabs button { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border: 0; border-radius: 10px; background: none; color: var(--cl-ink-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.cl-tabs button:hover { background: var(--cl-surface-2); color: var(--cl-ink); }
.cl-tabs button[aria-selected="true"] { background: var(--cl-brand-soft); color: var(--cl-brand-strong); }
.cl-tabs .cl-chip__n:empty { display: none; }

.cl-tip { display: grid; align-content: start; gap: 12px; background: linear-gradient(160deg, #fff8ef, var(--cl-surface) 60%); }
.cl-tip__badge { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #fff0d4; color: #8a5a00; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.cl-tip__quote { margin: 0; font-family: var(--cl-display); font-size: 17px; line-height: 1.5; color: var(--cl-ink); }
.cl-tip__src, .cl-controw, .cl-semrow, .cl-histrow { display: flex; align-items: center; gap: 12px; padding: 9px 10px; margin: 0 -10px; border-radius: 12px; color: var(--cl-ink) !important; text-decoration: none !important; }
.cl-tip__src:hover, .cl-controw:hover, .cl-semrow:hover, .cl-histrow:hover { background: var(--cl-brand-tint); }
.cl-tip__src > span, .cl-controw > span, .cl-semrow > span:not(.cl-tag):not(.cl-datechip), .cl-histrow > span:last-child { flex: 1; min-width: 0; }
.cl-tip__src b, .cl-controw b, .cl-semrow b, .cl-histrow b { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }
.cl-tip__src small, .cl-controw small, .cl-semrow small, .cl-histrow small { display: block; color: var(--cl-ink-3); font-size: 12.5px; }
.cl-controw .cl-meter { display: block; margin-top: 6px; }
.cl-tip__src > .cl-ico, .cl-controw > .cl-ico { color: var(--cl-brand); flex: none; }
.cl-semrow .cl-datechip { transform: scale(.86); transform-origin: left center; margin-right: -6px; }
.cl-semrow .cl-datechip.has-logo { margin-right: 4px; }

.cl-megrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.cl-megrid--wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cl-mecard { position: relative; border-radius: 14px; background: var(--cl-surface); border: 1px solid var(--cl-line); overflow: hidden; transition: transform .2s var(--cl-ease), box-shadow .2s var(--cl-ease); }
.cl-mecard:hover { transform: translateY(-2px); box-shadow: var(--cl-shadow-lg); }
.cl-mecard__link { display: flex; gap: 12px; padding: 10px; color: var(--cl-ink) !important; text-decoration: none !important; }
.cl-mecard__img { flex: none; display: grid; place-items: center; width: 72px; height: 54px; border-radius: 10px; background: var(--cl-brand-tint); color: var(--cl-brand); overflow: hidden; }
.cl-mecard__img img { width: 100%; height: 100%; object-fit: cover; }
.cl-mecard__body { min-width: 0; display: grid; gap: 3px; align-content: start; padding-right: 22px; }
.cl-mecard__body .cl-tag { justify-self: start; font-size: 11px; }
.cl-mecard__body b { font-size: 14px; font-weight: 650; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cl-mecard__body small { color: var(--cl-ink-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-mecard__x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; opacity: .55; }
.cl-mecard:hover .cl-mecard__x { opacity: 1; }

.cl-histday { padding: 16px 18px; margin-bottom: 12px; }
.cl-histday h2 { margin-bottom: 6px; }
.cl-histrow__time { flex: none; width: 44px; color: var(--cl-ink-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.cl-histrow__ico { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--cl-surface-2); color: var(--cl-ink-2); }

/* Lernkalender */
.cl-heat { display: flex; justify-content: space-between; gap: 4px; margin-top: 14px; overflow-x: auto; padding-bottom: 4px; }
.cl-heat__col { flex: 1; display: grid; gap: 4px; min-width: 11px; }
.cl-heat__c { display: block; width: 100%; aspect-ratio: 1; max-width: 19px; border-radius: 4px; background: var(--cl-surface-3); }
.cl-heat__c.l1 { background: #f6cfae; } .cl-heat__c.l2 { background: #eea06a; } .cl-heat__c.l3 { background: #d56f2c; } .cl-heat__c.l4 { background: #a54510; }
.cl-heat__c.is-future { background: transparent; box-shadow: inset 0 0 0 1px var(--cl-line); }
.cl-heat__legend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 8px; font-size: 12px; color: var(--cl-ink-3); }
.cl-heat__legend .cl-heat__c { width: 11px; height: 11px; border-radius: 3px; aspect-ratio: auto; }

/* Abzeichen */
.cl-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cl-badgecard { display: grid; justify-items: center; gap: 4px; padding: 16px 12px 14px; border-radius: 16px; border: 1px dashed var(--cl-line-strong); text-align: center; color: var(--cl-ink-3); }
.cl-badgecard b { font-size: 14px; color: var(--cl-ink-2); }
.cl-badgecard small { font-size: 12px; line-height: 1.35; }
.cl-badgecard .cl-meter { width: 80%; margin-top: 4px; }
.cl-badgecard__medal { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 4px; border-radius: 50%; background: var(--cl-surface-3); color: var(--cl-ink-3); }
.cl-badgecard__medal .cl-ico { width: 24px; height: 24px; }
.cl-badgecard.is-got { border: 1px solid transparent; background: linear-gradient(170deg, #fff7e6, var(--cl-surface) 70%); box-shadow: var(--cl-shadow); color: var(--cl-ink-2); }
.cl-badgecard.is-got b { color: var(--cl-ink); }
.cl-badgecard.is-got .cl-badgecard__medal { background: linear-gradient(135deg, #f7c65a, #e0892a); color: #fff; box-shadow: 0 8px 18px -8px rgba(224, 137, 42, .9), inset 0 0 0 3px rgba(255, 255, 255, .35); }
.cl-badgecard__date { display: inline-flex; align-items: center; gap: 4px; color: var(--cl-good) !important; font-weight: 600; }
/* Geheime Abzeichen: „???“, bis man sie gefunden hat */
.cl-badgecard { position: relative; }
.cl-badgecard.is-secret { border-style: dotted; background: repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--cl-surface-3) 55%, transparent) 10px 20px); }
.cl-badgecard.is-secret .cl-badgecard__medal { font-family: var(--cl-display); font-size: 26px; font-weight: 800; color: var(--cl-ink-3); }
.cl-badgecard.is-secret b { letter-spacing: .18em; }
.cl-badgecard__secret { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px; background: linear-gradient(135deg, #6d4bd8, #b93a96); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; }
.cl-badgecard__secret .cl-ico { width: 11px; height: 11px; }

.cl-levelcard { display: grid; justify-items: center; text-align: center; gap: 6px; }
.cl-levelcard .cl-meter { width: 100%; margin-top: 6px; }
.cl-levelcard__name { font-family: var(--cl-display); font-size: 24px; font-weight: 750; letter-spacing: -.02em; }
.cl-xplist { list-style: none; width: 100%; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--cl-line); display: grid; gap: 7px; text-align: left; font-size: 13.5px; color: var(--cl-ink-2); }
.cl-xplist li { display: flex; align-items: center; gap: 8px; }
.cl-xplist b { margin-left: auto; color: var(--cl-good); }
.cl-plprog { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--cl-line); }
.cl-plprog:first-of-type { border-top: 0; }
.cl-plprog__main { flex: 1; min-width: 0; }
.cl-plprog__main b { display: block; font-size: 14px; }
.cl-plprog__main small { display: block; color: var(--cl-ink-3); font-size: 12.5px; }
.cl-plprog__main .cl-meter { display: block; margin-top: 6px; }

/* Abos */
.cl-topicpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.cl-topicpick__b { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 38px 12px 12px; border: 1px solid var(--cl-line); border-radius: 14px; background: var(--cl-surface); color: var(--cl-ink); text-align: left; font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.cl-topicpick__b b { display: block; font-size: 14px; }
.cl-topicpick__b small { display: block; color: var(--cl-ink-3); font-size: 12px; line-height: 1.35; }
.cl-topicpick__b:hover { border-color: var(--cl-line-strong); }
.cl-topicpick__b[aria-pressed="true"] { border-color: var(--c, var(--cl-brand)); background: color-mix(in srgb, var(--c, var(--cl-brand)) 8%, var(--cl-surface)); }
.cl-topicpick__check { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--cl-line-strong); color: transparent; }
.cl-topicpick__b[aria-pressed="true"] .cl-topicpick__check { background: var(--c, var(--cl-brand)); border-color: transparent; color: #fff; }
.cl-switchrow { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--cl-line); cursor: pointer; }
.cl-switchrow:first-of-type { border-top: 0; }
.cl-switchrow > span { flex: 1; }
.cl-switchrow b { display: block; font-size: 14.5px; }
.cl-switchrow small { display: block; color: var(--cl-ink-3); font-size: 12.5px; }
.cl-switch { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 42px; height: 24px; margin: 0; border-radius: 999px; background: var(--cl-surface-3); cursor: pointer; transition: background .2s; }
.cl-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--cl-ease); }
.cl-switch:checked { background: var(--cl-brand); }
.cl-switch:checked::after { transform: translateX(18px); }
.cl-switch:focus-visible { outline: 2px solid var(--cl-brand); outline-offset: 2px; }
.cl-mailpreview__mail { margin-top: 10px; padding: 14px; border-radius: 12px; border: 1px solid var(--cl-line); background: var(--cl-bg); font-size: 13.5px; }
.cl-mailpreview__mail ul { list-style: disc; margin: 8px 0 12px 18px; padding: 0; color: var(--cl-ink-2); }
.cl-mailpreview__bar { display: flex; align-items: center; gap: 8px; margin: -14px -14px 12px; padding: 10px 14px; border-bottom: 1px solid var(--cl-line); background: var(--cl-surface); border-radius: 12px 12px 0 0; }
.cl-mailpreview__bar svg, .cl-mailpreview__bar img { width: 26px; height: auto; }
.cl-mailpreview__bar img.cl-mailpreview__logo { width: 104px; }
.cl-mailpreview__bar b { margin-left: auto; font-size: 12.5px; color: var(--cl-ink-3); }
.cl-mailpreview__logo--dark { display: none; }
.cl[data-cl-theme="dark"] .cl-mailpreview__logo--light { display: none; }
.cl[data-cl-theme="dark"] .cl-mailpreview__logo--dark { display: block; }

/* Teilnahmebestätigung */
.cl-dialog--cert { width: min(900px, calc(100vw - 32px)); }
.cl-cert { aspect-ratio: 1.414 / 1; padding: 18px; border-radius: 8px; background: linear-gradient(135deg, #fbf3ea, #fff 45%, #fdf1e7); color: #1f1916; }
.cl-cert__frame { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 26px 40px; border: 2px solid #e8c9ad; border-radius: 6px; outline: 1px solid #e8c9ad; outline-offset: -8px; text-align: center; }
.cl-cert__top { display: flex; align-items: center; gap: 10px; margin-bottom: auto; font-size: 17px; }
.cl-cert__top b { color: #b5490f; }
.cl-cert__logo { width: 38px; height: auto; }
.cl-cert__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: #b5490f; }
.cl-cert__pre { color: #6d5d53; font-size: 15px; }
.cl-cert__name { font-family: var(--cl-display); font-size: clamp(26px, 4.4vw, 44px); font-weight: 750; letter-spacing: -.02em; line-height: 1.1; padding: 4px 30px 8px; border-bottom: 1.5px solid #e8c9ad; }
.cl-cert__course { font-family: var(--cl-display); font-size: clamp(19px, 2.8vw, 27px); font-weight: 700; color: #b5490f; }
.cl-cert__meta { color: #4a3d35; font-size: 15px; }
.cl-cert__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; margin-top: auto; }
.cl-cert__foot span { display: grid; gap: 2px; min-width: 150px; font-size: 14px; }
.cl-cert__foot span:first-child { text-align: left; } .cl-cert__foot span:last-child { text-align: right; }
.cl-cert__foot small { color: #8a7a70; font-size: 11.5px; }
.cl-cert__seal { display: grid !important; place-items: center; width: 70px; height: 70px; min-width: 0 !important; border-radius: 50%; background: linear-gradient(135deg, #f7c65a, #e0892a); color: #fff; box-shadow: 0 0 0 5px #fff, 0 0 0 7px #e8c9ad; }
.cl-cert__seal .cl-ico { width: 32px; height: 32px; }
@media print {
  [data-cl-printing="cert"] > *:not(.cl-dialog--cert) { display: none !important; }
  [data-cl-printing="cert"] .cl-dialog--cert { position: static; width: 100%; max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; background: #fff; }
  [data-cl-printing="cert"] .cl-dialog--cert .cl-dialog__bar, [data-cl-printing="cert"] .cl-dialog--cert [data-print-cert] { display: none !important; }
  [data-cl-printing="cert"] .cl-cert { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { size: A4 landscape; margin: 10mm; }
}

/* dunkles Design */
.cl[data-cl-theme="dark"] .cl-pop__stats span.is-hot { background: #3a2718; color: #ffb27f; }
.cl[data-cl-theme="dark"] .cl-tip { background: linear-gradient(160deg, #2a2a2c, var(--cl-surface) 60%); }
.cl[data-cl-theme="dark"] .cl-tip__badge { background: #3b3120; color: #f2c261; }
.cl[data-cl-theme="dark"] .cl-badgecard.is-got { background: linear-gradient(170deg, #332c22, var(--cl-surface) 70%); }
.cl[data-cl-theme="dark"] .cl-heat__c.l1 { background: #5a3a28; } .cl[data-cl-theme="dark"] .cl-heat__c.l2 { background: #8a4f2a; }
@media (prefers-reduced-motion: reduce) { .cl-toast--win, .cl-pop { animation: none; } }

.cl-controw > .cl-appicon, .cl-plprog > .cl-appicon { flex: none; width: 36px; height: 36px; }
.cl-controw > .cl-appicon img, .cl-plprog > .cl-appicon img { width: 100%; height: 100%; object-fit: contain; }
.cl-daybar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 -4px; padding: 8px; border-radius: 16px; background: var(--cl-surface); box-shadow: var(--cl-shadow); }
.cl-daybar__item { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 11px; color: var(--cl-ink-2) !important; text-decoration: none !important; font-size: 13.5px; }
.cl-daybar__item:hover { background: var(--cl-brand-tint); }
.cl-daybar__item b { color: var(--cl-ink); }
.cl-daybar__item.is-hot .cl-ico { color: #f0621f; }
.cl-daybar__item.is-new { background: var(--cl-brand-soft); color: var(--cl-brand-strong) !important; }
.cl-daybar__item.is-new b { color: var(--cl-brand-strong); }
.cl-daybar__cta { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--cl-ink); color: var(--cl-surface) !important; text-decoration: none !important; font-size: 13.5px; font-weight: 650; }
@media screen and (max-width: 820px) {
  .cl-cert { aspect-ratio: auto; padding: 10px; }
  .cl-cert__frame { padding: 22px 16px; gap: 8px; }
  .cl-cert__top { margin-bottom: 14px; }
  .cl-cert__foot { margin-top: 16px; flex-wrap: wrap; justify-content: center; }
  .cl-cert__foot span:first-child, .cl-cert__foot span:last-child { text-align: center; }
}

/* Überschriften im Beitrag in CloudLights-Orange */
.cl-prose :where(h2, h3, h4) { color: var(--cl-brand); }
.cl-prose :where(h4) { color: var(--cl-brand-strong); }
.cl[data-cl-theme="dark"] .cl-prose :where(h4) { color: var(--cl-brand); }

/* ==========================================================================
   Startseite: Neu im Wiki, Newsbox, Seminare kompakt, Themen-Menü
   ========================================================================== */
.cl-ico--xs { width: 12px; height: 12px; vertical-align: 0; }
.cl-nav__link--menu { gap: 5px; }
.cl-nav__link--menu .cl-ico--xs { opacity: .55; transition: transform .2s var(--cl-ease); }
.cl-nav__link--menu[aria-expanded="true"] .cl-ico--xs { transform: rotate(180deg); opacity: 1; }

.cl-pop--mega { width: min(640px, calc(100vw - 24px)); padding: 14px; }
.cl-mega__head { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 10px; }
.cl-mega__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
@media (max-width: 560px) { .cl-mega__grid { grid-template-columns: 1fr; } }
.cl-mega__item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; color: var(--cl-ink) !important; text-decoration: none !important; }
.cl-mega__item:hover { background: color-mix(in srgb, var(--c, var(--cl-brand)) 9%, var(--cl-surface)); }
.cl-mega__item > span:not(.cl-appstack):not(.cl-appicon):not(.cl-mega__cluster) { flex: 1; min-width: 0; }
.cl-mega__item b { display: block; font-size: 14.5px; }
.cl-mega__item small { display: block; color: var(--cl-ink-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-mega__item em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--cl-ink-3); background: var(--cl-surface-2); border-radius: 999px; padding: 1px 8px; }
.cl-mega__item em:empty { display: none; }

.cl-fresh { display: grid; gap: 18px; }
@media (min-width: 760px) { .cl-fresh { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } .cl-newsbox { grid-column: 1 / -1; } }
@media (min-width: 1180px) { .cl-fresh { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, .95fr); } .cl-newsbox { grid-column: auto; } }
.cl-fresh__lead { display: flex; min-width: 0; }
.cl-acard--lead { flex: 1; }
.cl-acard--lead .cl-acard__title { font-size: 22px; letter-spacing: -.02em; }
.cl-acard--lead .cl-acard__desc { font-size: 15px; -webkit-line-clamp: 4; }
.cl-fresh__list { padding: 16px 16px 8px; min-width: 0; }
.cl-fresh__list .cl-arow { padding: 10px 2px; }
.cl-fresh__list .cl-arow__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.cl-newsbox { display: flex; flex-direction: column; min-width: 0; border-radius: var(--cl-radius); background: var(--cl-surface); box-shadow: var(--cl-shadow); overflow: hidden; }
.cl-newsbox__hero { position: relative; display: block; min-height: 260px; flex: 1; color: #fff !important; text-decoration: none !important; overflow: hidden; }
.cl-newsbox__img { position: absolute; inset: 0; }
.cl-newsbox__img > img, .cl-newsbox__img > svg { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--cl-ease); }
.cl-newsbox__hero:hover .cl-newsbox__img > img { transform: scale(1.04); }
.cl-newsbox__over { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 18px; background: linear-gradient(180deg, rgba(20, 12, 8, 0) 25%, rgba(20, 12, 8, .82)); }
.cl-newsbox__over .cl-tag { align-self: flex-start; margin-bottom: auto; }
.cl-newsbox__over b { font-family: var(--cl-display); font-size: 26px; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; }
.cl-newsbox__over small { font-size: 13.5px; color: rgba(255, 255, 255, .82); }
.cl-newsbox__cta { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 6px; padding: 7px 14px; border-radius: 999px; background: #fff; color: #1f1916; font-size: 13.5px; font-weight: 700; transition: gap .2s var(--cl-ease); }
.cl-newsbox__hero:hover .cl-newsbox__cta { gap: 10px; }
.cl-newsbox__more { display: grid; padding: 6px 10px 10px; }
.cl-newsbox__more a { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 10px; color: var(--cl-ink) !important; text-decoration: none !important; font-size: 14px; font-weight: 550; }
.cl-newsbox__more a:hover { background: var(--cl-brand-tint); }
.cl-newsbox__more a > .cl-ico { color: var(--cl-brand); }
.cl-thumb--xs { width: 46px; height: 30px; border-radius: 7px; }
.cl-newsbox__more a .cl-thumb { flex: none; }
.cl-thumb--xs .cl-ico { width: 16px; height: 16px; }
.cl-newsbox__more a span { flex: 1; }
.cl-newsbox__more small { color: var(--cl-ink-3); font-size: 12.5px; font-weight: 450; }
.cl-newsbox__more .cl-newsbox__all { justify-content: flex-end; color: var(--cl-brand) !important; font-weight: 650; font-size: 13.5px; }

.cl-duo { display: grid; gap: 18px; }
@media (min-width: 960px) { .cl-duo { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.cl-semline { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--cl-line); }
.cl-semline:first-child { border-top: 0; }
.cl-semline__date { flex: none; display: grid; place-items: center; width: 52px; height: 56px; border-radius: 12px; background: var(--cl-brand-tint); color: var(--cl-ink) !important; text-decoration: none !important; line-height: 1; }
.cl-semline__date span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cl-brand); }
.cl-semline__date b { font-size: 22px; font-weight: 750; margin-top: -8px; }
.cl-semline__main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.cl-semline__title { color: var(--cl-ink) !important; font-size: 15px; font-weight: 650; line-height: 1.3; }
.cl-semline__title:hover { color: var(--cl-brand) !important; text-decoration: none; }
.cl-semline .cl-meta { font-size: 12.5px; gap: 4px 12px; }
.cl-semline .cl-meta .cl-tag { font-size: 11px; padding: 1px 8px; }
.cl-semline__few { color: #b64a0a; } .cl-semline__full { color: var(--cl-crit); }
.cl-semline__act { flex: none; }
.cl-semline__act .cl-btn { white-space: nowrap; }
@media (max-width: 520px) { .cl-semline { flex-wrap: wrap; } .cl-semline__act { width: 100%; padding-left: 66px; } }
.cl-duo .cl-month__items { display: grid; gap: 2px; }
.cl-mega__item > .cl-appstack { flex: none; width: 58px; }
/* Datum mit dem Symbol des Seminars (Logo als Abzeichen an der Ecke) */
.cl-semline__date { position: relative; width: 58px; height: 60px; margin-right: 6px; }
.cl-semline__logo { position: absolute; right: -9px; bottom: -7px; width: 28px; height: 28px; padding: 4px; border-radius: 9px; background: var(--cl-surface); object-fit: contain; box-shadow: 0 2px 8px rgba(31, 25, 22, .16), 0 0 0 1px var(--cl-line); transition: transform .25s var(--cl-ease); }
.cl-semline:hover .cl-semline__logo { transform: scale(1.12) rotate(-4deg); }
.cl-semline__logo.cl-img--broken { display: none; }

/* ==========================================================================
   SharePoint-Seitenaufbau im Beitrag: Abschnitte, Spalten, Betonung, Schrift
   ========================================================================== */
.cl-zone { display: grid; gap: 22px; border-radius: 18px; }
.cl-zone--multi { grid-template-columns: minmax(0, 1fr); }
@container cl (min-width: 720px) { .cl-zone--multi { grid-template-columns: var(--cols); gap: 26px; } }
.cl-col { display: grid; gap: 12px; align-content: start; min-width: 0; }
.cl-col > :first-child { margin-top: 0; }
.cl-col :where(figure) { margin: 0; }
.cl-col :where(img) { width: 100%; border-radius: 12px; }
/* Betonung 1 = neutral, 2 = CloudLights-Ton, 3 = kräftig (wie "Hervorheben" in SharePoint) */
.cl-zone--e1, .cl-zone--e2, .cl-zone--e3 { padding: 26px 28px; }
.cl-zone--e1 { background: var(--cl-surface-2); }
.cl-zone--e2 { background: linear-gradient(160deg, var(--cl-brand-tint), var(--cl-brand-soft)); }
.cl-zone--e3 { background: linear-gradient(135deg, #a8420d, #d9772f); color: #fff; }
.cl-zone--e3 :where(h2, h3, h4, a, li::marker) { color: #fff; }
.cl-zone--e3 :where(a) { text-decoration-color: rgba(255, 255, 255, .6); }
.cl-zone--e3 .fontColorThemePrimary, .cl-zone--e3 .fontColorThemeDark, .cl-zone--e3 .fontColorThemeDarkAlt { color: #ffe1cc; }
/* mehrspaltige Abschnitte mit Betonung: jede Spalte als eigene Karte (wie die "01 / 02 / 03"-Kacheln) */
.cl-zone--multi.cl-zone--e1 > .cl-col { padding: 18px; border-radius: 14px; background: var(--cl-surface); box-shadow: var(--cl-shadow); }
/* aufeinanderfolgende Abschnitte mit gleicher Betonung zusammenziehen */
.cl-zone--e1:has(+ .cl-zone--e1), .cl-zone--e2:has(+ .cl-zone--e2), .cl-zone--e3:has(+ .cl-zone--e3) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 12px; }
.cl-zone--e1 + .cl-zone--e1, .cl-zone--e2 + .cl-zone--e2, .cl-zone--e3 + .cl-zone--e3 { margin-top: -16px; border-top-left-radius: 0; border-top-right-radius: 0; padding-top: 12px; }
.cl-zone :where(h2) { margin-top: 0; }
.cl-zone :where(h3) { margin-top: 2px; }

/* Schriftgrößen aus dem SharePoint-Texteditor */
.cl-prose .fontSizeSmall { font-size: .8em; }
.cl-prose .fontSizeMedium { font-size: .92em; }
.cl-prose .fontSizeMediumPlus { font-size: 1em; }
.cl-prose .fontSizeLarge { font-size: 1.12em; }
.cl-prose .fontSizeXLarge { font-size: 1.3em; line-height: 1.35; }
.cl-prose .fontSizeXLargePlus { font-size: 1.5em; line-height: 1.3; }
.cl-prose .fontSizeXxLarge { font-size: 1.9em; line-height: 1.1; letter-spacing: -.02em; }
.cl-prose .fontSizeXxxLarge { font-size: 2.2em; line-height: 1.1; letter-spacing: -.02em; }
.cl-prose .fontSizeXxLargePlus { font-size: 2.7em; line-height: 1.05; letter-spacing: -.03em; }
.cl-prose .fontSizeSuper { font-size: 3.6em; line-height: 1; letter-spacing: -.035em; }
/* Designfarben → CloudLights */
.cl-prose .fontColorThemePrimary, .cl-prose .fontColorThemeDarkAlt { color: var(--cl-brand); }
.cl-prose .fontColorThemeDark, .cl-prose .fontColorThemeDarker { color: var(--cl-brand-strong); }
.cl-prose .fontColorThemeSecondary, .cl-prose .fontColorThemeTertiary { color: #d9772f; }
.cl-prose .fontColorNeutralSecondary, .cl-prose .fontColorNeutralTertiary { color: var(--cl-ink-3); }
.cl-prose .fontColorRed, .cl-prose .fontColorRedDark { color: var(--cl-crit); }
.cl-prose .fontColorOrange, .cl-prose .fontColorOrangeLighter { color: #d9772f; }
.cl-prose .fontColorYellow, .cl-prose .fontColorYellowLight { color: #b58300; }
.cl-prose .fontColorGreen, .cl-prose .fontColorGreenLight, .cl-prose .fontColorGreenDark { color: var(--cl-good); }
.cl-prose .fontColorBlue, .cl-prose .fontColorBlueLight, .cl-prose .fontColorBlueDark, .cl-prose .fontColorBlueMid { color: #1f6fb5; }
.cl-prose .fontColorPurple, .cl-prose .fontColorPurpleDark, .cl-prose .fontColorPurpleLight { color: #7a3fb3; }
.cl-prose .fontColorMagenta, .cl-prose .fontColorMagentaDark, .cl-prose .fontColorMagentaLight { color: #b3386e; }
.cl-prose .fontColorTeal, .cl-prose .fontColorTealDark, .cl-prose .fontColorTealLight { color: #0f7b7b; }
.cl-prose [class*="highlightColor"] { background: #fff1c2; border-radius: 3px; padding: 0 2px; }
.cl-prose .highlightColorGreen, .cl-prose .highlightColorLightGreen { background: #dff3e3; }
.cl-prose .highlightColorAqua, .cl-prose .highlightColorBlue, .cl-prose .highlightColorLightBlue { background: #dcecf8; }
.cl-prose .highlightColorRed, .cl-prose .highlightColorMagenta, .cl-prose .highlightColorPink { background: #fbe0e4; }
.cl[data-cl-theme="dark"] .cl-prose [class*="highlightColor"] { background: #3b3120; }
.cl[data-cl-theme="dark"] .cl-zone--e2 { background: linear-gradient(160deg, #262630, #33282a); }
.cl-zone--e3 li::marker { color: #fff; }
.cl-zone--e3 :where(table) { color: var(--cl-ink); }

/* Teilen */
.cl-pop--share { width: min(380px, calc(100vw - 24px)); }
.cl-share { display: grid; gap: 2px; padding: 8px; }
.cl-share__opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 12px; background: none; color: var(--cl-ink); text-align: left; font: inherit; cursor: pointer; }
.cl-share__opt:hover { background: var(--cl-brand-tint); }
.cl-share__opt b { display: block; font-size: 14px; }
.cl-share__opt small { display: block; color: var(--cl-ink-3); font-size: 12.5px; }
.cl-share__ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--cl-surface-2); color: var(--cl-ink-2); flex: none; }
.cl-share__hint { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--cl-surface-2); color: var(--cl-ink-3); font-size: 12px; font-weight: 600; cursor: help; }
.cl-share__to { display: grid; gap: 6px; margin-top: 6px; padding: 12px 10px 6px; border-top: 1px solid var(--cl-line); }
.cl-share__to label { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--cl-ink-3); }
.cl-share__row { display: flex; gap: 6px; }
.cl-share__row input { flex: 1; min-width: 0; height: 34px; padding: 0 12px; border: 1px solid var(--cl-line-strong); border-radius: 999px; background: var(--cl-surface); color: var(--cl-ink); font: inherit; font-size: 13.5px; }
.cl-share__row input:focus { outline: 0; border-color: var(--cl-brand); box-shadow: 0 0 0 3px var(--cl-brand-soft); }
.cl-share__row .cl-btn { white-space: nowrap; }

/* Profilbild im Avatar */
.cl-meavatar b { position: relative; overflow: hidden; }
.cl-meavatar b img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Themen-Menü: mehrere Apps als kleines 2×2-Raster, damit der Text frei bleibt */
.cl-mega__cluster { flex: none; display: grid; grid-template-columns: repeat(2, 18px); gap: 3px; width: 39px; height: 39px; align-content: center; justify-content: center; padding: 1px; border-radius: 10px; background: var(--cl-surface-2); }
.cl-mega__cluster .cl-appicon { width: 18px; height: 18px; border-radius: 5px; box-shadow: none; }
.cl-mega__item > .cl-appicon--md { width: 39px; height: 39px; }
.cl-searchbtn kbd { display: none; }

/* ==========================================================================
   Schulungsvideos als Mediathek
   ========================================================================== */
.cl-lib { display: grid; gap: 22px; align-items: start; }
@container cl (min-width: 900px) { .cl-lib { grid-template-columns: 250px minmax(0, 1fr); } }
.cl-lib__side { display: grid; gap: 18px; padding: 16px 12px; border-radius: var(--cl-radius); background: var(--cl-surface); box-shadow: var(--cl-shadow); }
@container cl (min-width: 900px) { .cl-lib__side { position: sticky; top: 84px; } }
.cl-lib__group { display: grid; gap: 2px; }
.cl-lib__group > .cl-eyebrow { padding: 0 10px 6px; }
.cl-lib__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: var(--cl-ink-2); text-align: left; font: inherit; font-size: 14px; font-weight: 550; cursor: pointer; }
.cl-lib__item span { flex: 1; min-width: 0; }
.cl-lib__item em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--cl-ink-3); background: var(--cl-surface-2); border-radius: 999px; padding: 1px 8px; }
.cl-lib__item:hover { background: var(--cl-surface-2); color: var(--cl-ink); }
.cl-lib__item[aria-pressed="true"] { background: var(--cl-brand-soft); color: var(--cl-brand-strong); font-weight: 700; }
.cl-lib__item[aria-pressed="true"] em { background: var(--cl-surface); color: var(--cl-brand-strong); }
.cl-lib__note { display: block; padding: 10px 10px 0; border-top: 1px solid var(--cl-line); color: var(--cl-ink-3); font-size: 12.5px; line-height: 1.45; }
.cl-lib__note .cl-ico { margin-right: 4px; }
.cl-lib__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.cl-lib__search { flex: 1 1 280px; }
.cl-seg--icons button { padding: 0 11px; }
.cl-lib__sec { margin-bottom: 26px; }
.cl-lib__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 10px; }
.cl-lib__head h2 { font-size: 19px; font-weight: 750; letter-spacing: -.015em; }
.cl-lib__head h2 .cl-muted { font-size: 14px; font-weight: 600; margin-left: 4px; }
.cl-lib__head > .cl-muted { font-size: 13.5px; }

.cl-plrows { display: grid; border-radius: var(--cl-radius); background: var(--cl-surface); box-shadow: var(--cl-shadow); overflow: hidden; }
.cl-plrow { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 6px 16px; padding: 12px 16px; border-top: 1px solid var(--cl-line); color: var(--cl-ink) !important; text-decoration: none !important; transition: background .15s; }
.cl-plrow:first-child { border-top: 0; }
.cl-plrow:hover { background: var(--cl-brand-tint); }
@container cl (min-width: 760px) { .cl-plrow { grid-template-columns: 52px minmax(0, 1fr) 96px 150px auto; } }
.cl-plrow__art { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: color-mix(in srgb, var(--app) 12%, var(--cl-surface)); }
.cl-plrow__main { min-width: 0; display: grid; gap: 3px; }
.cl-plrow__name { display: flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 650; line-height: 1.3; }
.cl-plrow__name .cl-tag { font-size: 11px; }
.cl-plrow__desc { color: var(--cl-ink-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-plrow__facts { display: none; font-size: 13.5px; color: var(--cl-ink-2); }
.cl-plrow__facts b { font-size: 17px; font-weight: 750; color: var(--cl-ink); }
.cl-plrow__facts small { display: block; color: var(--cl-ink-3); font-size: 12px; }
.cl-plrow__prog { display: none; }
.cl-plrow__prog .cl-meter { display: block; margin-bottom: 5px; }
.cl-plrow__prog small { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--cl-ink-3); }
@container cl (min-width: 760px) { .cl-plrow__facts, .cl-plrow__prog { display: block; } }
.cl-plrow > .cl-btn { white-space: nowrap; }

.cl-vidhits { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cl-vidhit { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; background: var(--cl-surface); box-shadow: var(--cl-shadow); color: var(--cl-ink) !important; text-decoration: none !important; }
.cl-vidhit:hover { box-shadow: var(--cl-shadow-lg); }
.cl-vidhit b { display: block; font-size: 14px; line-height: 1.3; }
.cl-vidhit small { display: block; color: var(--cl-ink-3); font-size: 12.5px; }
.cl-vidhit__thumb { position: relative; flex: none; display: grid; place-items: center; width: 96px; height: 54px; border-radius: 9px; background: var(--cl-surface-3); color: var(--cl-ink-3); overflow: hidden; }
.cl-vidhit__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cl-vidhit__thumb small { position: absolute; right: 4px; bottom: 4px; padding: 0 5px; border-radius: 4px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 11px; }
.cl-vidhit--spoken { align-items: flex-start; padding: 12px; }

/* ==========================================================================
   Einführungstour
   ========================================================================== */
button.cl-pop__item { width: 100%; border: 0; background: none; font: inherit; font-size: 14.5px; font-weight: 550; text-align: left; cursor: pointer; }
.cl-tour { position: fixed; inset: 0; z-index: 90; animation: cl-fade .25s var(--cl-ease); }
.cl-tour.is-out { opacity: 0; transition: opacity .22s; }
@keyframes cl-fade { from { opacity: 0; } to { opacity: 1; } }
.cl-tour__shade { position: absolute; inset: 0; background: rgba(20, 12, 8, .55); backdrop-filter: blur(3px); }
.cl-tour__hole { position: fixed; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(20, 12, 8, .55), 0 0 0 3px var(--cl-brand), 0 0 30px 6px rgba(243, 154, 95, .55); transition: top .35s var(--cl-ease), left .35s var(--cl-ease), width .35s var(--cl-ease), height .35s var(--cl-ease); pointer-events: none; }
.cl-tour__card { position: fixed; width: min(400px, calc(100vw - 24px)); padding: 22px 22px 16px; border-radius: 20px; background: var(--cl-surface); color: var(--cl-ink); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .5), 0 0 0 1px var(--cl-line); transition: top .35s var(--cl-ease), left .35s var(--cl-ease); }
.cl-tour__card.is-center { top: 50% !important; left: 50% !important; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 24px)); padding: 28px 28px 18px; }
.cl-tour__card[data-arrow]::before { content: ""; position: absolute; left: calc(var(--ax, 50%) - 9px); width: 18px; height: 18px; background: var(--cl-surface); transform: rotate(45deg); }
.cl-tour__card[data-arrow="up"]::before { top: -8px; box-shadow: -1px -1px 0 var(--cl-line); }
.cl-tour__card[data-arrow="down"]::before { bottom: -8px; box-shadow: 1px 1px 0 var(--cl-line); }
.cl-tour__card.is-center::before { display: none; }
.cl-tour__hero { display: grid; place-items: center; height: 92px; margin: -28px -28px 18px; border-radius: 20px 20px 0 0; background: radial-gradient(60% 120% at 20% 0%, #f7c65a55, transparent 60%), radial-gradient(60% 120% at 80% 10%, #8f3fb344, transparent 60%), linear-gradient(135deg, #2a1c15, #1f1916); }
.cl-tour__logo { width: 64px; height: auto; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .4)); }
.cl-tour__title { margin: 4px 0 6px; font-family: var(--cl-display); font-size: 22px; font-weight: 750; letter-spacing: -.02em; line-height: 1.2; }
.cl-tour__text { margin: 0 0 12px; color: var(--cl-ink-2); font-size: 14.5px; line-height: 1.55; }
.cl-tour__badge { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: 12px; background: var(--cl-brand-soft); color: var(--cl-brand-strong); }
.cl-tour__feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 4px 0 14px; }
.cl-tour__feats span { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--cl-surface-2); }
.cl-tour__feats .cl-ico { grid-row: span 2; color: var(--cl-brand); width: 22px; height: 22px; }
.cl-tour__feats b { font-size: 14px; }
.cl-tour__feats small { color: var(--cl-ink-3); font-size: 12px; }
.cl-tour__topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 6px 0 14px; }
.cl-tour__topic { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--cl-line); border-radius: 12px; background: var(--cl-surface); color: var(--cl-ink); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.cl-tour__topic > span:not(.cl-appicon) { flex: 1; } .cl-tour__topic > .cl-appicon { flex: none; }
.cl-tour__topic > .cl-ico { opacity: 0; color: var(--c, var(--cl-brand)); }
.cl-tour__topic:hover { border-color: var(--cl-line-strong); }
.cl-tour__topic[aria-pressed="true"] { border-color: var(--c, var(--cl-brand)); background: color-mix(in srgb, var(--c, var(--cl-brand)) 9%, var(--cl-surface)); }
.cl-tour__topic[aria-pressed="true"] > .cl-ico { opacity: 1; }
.cl-tour__mail { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border-radius: 14px; background: var(--cl-brand-tint); }
.cl-tour__mail > span:first-child { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; }
.cl-tour__mail > span:first-child .cl-ico { color: var(--cl-brand); margin-top: 3px; }
.cl-tour__mail b { font-size: 14px; }
.cl-tour__mail small { grid-column: 2; color: var(--cl-ink-3); font-size: 12px; }
.cl-tour__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--cl-line); }
.cl-tour__dots { display: flex; gap: 6px; }
.cl-tour__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--cl-line-strong); transition: width .25s var(--cl-ease), background .25s; }
.cl-tour__dots i.is-on { width: 20px; border-radius: 4px; background: var(--cl-brand); }
@media (max-width: 520px) { .cl-tour__feats, .cl-tour__topics { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .cl-tour, .cl-tour__hole, .cl-tour__card { animation: none; transition: none; } }

/* Tour: Bewegung */
.cl-tour__card { opacity: 0; }
.cl-tour__card.is-in { opacity: 1; animation: cl-tour-in .45s cubic-bezier(.2, .9, .25, 1.15); }
.cl-tour__card.is-center.is-in { animation: cl-tour-in-center .5s cubic-bezier(.2, .9, .25, 1.15); }
.cl-tour__card.is-leaving { opacity: 1; }
@keyframes cl-tour-in { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes cl-tour-in-center { from { opacity: 0; transform: translate(-50%, -46%) scale(.94); } to { opacity: 1; transform: translate(-50%, -50%); } }
.cl-tour__feats span, .cl-tour__topic { animation: cl-tour-rise .5s cubic-bezier(.2, .9, .25, 1) both; animation-delay: calc(.12s + var(--d, 0) * .07s); }
@keyframes cl-tour-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cl-tour__hero { position: relative; overflow: hidden; height: 120px; }
.cl-tour__lights i { position: absolute; width: 90px; height: 90px; border-radius: 50%; filter: blur(18px); opacity: .75; animation: cl-tour-float 6s ease-in-out infinite; }
.cl-tour__lights i:nth-child(1) { left: 6%; top: -20px; background: #8f3fb3; }
.cl-tour__lights i:nth-child(2) { left: 28%; top: 40px; background: #0f6cbd; animation-delay: -1.2s; }
.cl-tour__lights i:nth-child(3) { left: 52%; top: -30px; background: #f7c65a; animation-delay: -2.4s; }
.cl-tour__lights i:nth-child(4) { left: 72%; top: 30px; background: #f39a5f; animation-delay: -3.6s; }
.cl-tour__lights i:nth-child(5) { left: 88%; top: -10px; background: #2f8a3b; animation-delay: -4.8s; }
@keyframes cl-tour-float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(14px, 12px) scale(1.15); } }
.cl-tour__logo { position: relative; z-index: 1; animation: cl-tour-pop .8s cubic-bezier(.2, .9, .25, 1.3) .1s both; }
@keyframes cl-tour-pop { from { opacity: 0; transform: scale(.6) rotate(-12deg); } to { opacity: 1; transform: none; } }
.cl-tour__pulse { position: absolute; inset: -4px; border-radius: 20px; border: 2px solid #f39a5f; animation: cl-tour-pulse 1.8s ease-out infinite; }
@keyframes cl-tour-pulse { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.18); } }
.cl-tour__hole.is-click { border-radius: 50%; }
.cl-tour__hole.is-click .cl-tour__pulse { border-radius: 50%; animation-duration: 1.2s; }
.cl-tour__hole.is-nudge { animation: cl-tour-nudge .45s; }
@keyframes cl-tour-nudge { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.cl-tour__hint { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--cl-brand); font-size: 13.5px; font-weight: 700; }
.cl-tour__hint .cl-ico { transform: rotate(-45deg); animation: cl-tour-point 1s ease-in-out infinite; }
@keyframes cl-tour-point { 0%, 100% { transform: rotate(-45deg) translate(0, 0); } 50% { transform: rotate(-45deg) translate(4px, 0); } }
.cl-tour__dots i.is-done { background: var(--cl-brand-soft); }
.cl-tour__travel { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 26px 8px; font-size: 16px; }
.cl-tour__travel .cl-ico { width: 26px; height: 26px; color: var(--cl-brand); animation: cl-tour-pop .5s cubic-bezier(.2, .9, .25, 1.3); }
.cl-tour__confirm { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 6px; padding: 22px; border-radius: inherit; background: color-mix(in srgb, var(--cl-surface) 96%, transparent); text-align: center; animation: cl-fade .2s; }
.cl-tour__confirm b { font-size: 17px; }
.cl-tour__confirm small { color: var(--cl-ink-3); font-size: 13px; margin-bottom: 8px; }
.cl-confetti { position: fixed; inset: 0; z-index: 95; pointer-events: none; overflow: hidden; }
.cl-confetti i { position: absolute; width: 9px; height: 13px; border-radius: 2px; }
.cl-tour { pointer-events: none; }
.cl-tour__card, .cl-tour__shade { pointer-events: auto; }
.cl-tour__confirm { z-index: 3; }

/* Auswertung: Suchlücken */
.cl-dash__wide { grid-column: 1 / -1; }
.cl-gaps { display: grid; gap: 24px; }
@container cl (min-width: 900px) { .cl-gaps { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.cl-gaplist { list-style: none; margin: 0; padding: 0; display: grid; }
.cl-gaplist li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--cl-line); }
.cl-gaplist li:first-child { border-top: 0; }
.cl-gaplist__n { flex: none; min-width: 42px; padding: 3px 8px; border-radius: 999px; background: var(--cl-crit-soft); color: var(--cl-crit); font-size: 13px; font-weight: 750; text-align: center; }
.cl-gaplist__t { flex: 1; min-width: 0; }
.cl-gaplist__t b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-gaplist__t small { display: flex; gap: 4px; margin-top: 3px; }
.cl-gaplist__t .cl-tag { font-size: 11px; padding: 1px 7px; }
.cl-gaplist__act { flex: none; display: flex; gap: 6px; }
.cl-gaps__closed { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; color: var(--cl-good); font-size: 13px; font-weight: 600; }
/* Dialog „Als Synonym hinterlegen“ */
.cl-synpick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.cl-synhint { display: flex; align-items: center; gap: 6px; min-height: 20px; margin: 0; color: var(--cl-ink-3); font-size: 13.5px; }
.cl-synhint.is-ok { color: var(--cl-good); font-weight: 600; }

/* Tour: Rollenwahl */
.cl-tour__roles { display: grid; gap: 10px; margin: 8px 0 14px; }
.cl-tour__role { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--cl-line); border-radius: 16px; background: var(--cl-surface); color: var(--cl-ink); font: inherit; text-align: left; cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s; animation: cl-tour-role .45s cubic-bezier(.2,.8,.3,1.2) both; animation-delay: calc(var(--d, 0) * 80ms + 120ms); }
.cl-tour__role:hover { border-color: var(--cl-line-strong); transform: translateY(-1px); }
.cl-tour__role > span:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.cl-tour__role b { font-size: 15.5px; } .cl-tour__role small { color: var(--cl-muted); font-size: 13px; }
.cl-tour__roleico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--cl-brand-tint); color: var(--cl-brand); transition: background .2s, color .2s; }
.cl-tour__role > .cl-ico { opacity: 0; color: var(--cl-brand); transition: opacity .2s; }
.cl-tour__role[aria-pressed="true"] { border-color: var(--cl-brand); background: color-mix(in srgb, var(--cl-brand) 7%, var(--cl-surface)); }
.cl-tour__role[aria-pressed="true"] .cl-tour__roleico { background: var(--cl-brand); color: #fff; animation: cl-tour-bounce .5s ease; }
.cl-tour__role[aria-pressed="true"] > .cl-ico { opacity: 1; }
@keyframes cl-tour-role { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes cl-tour-bounce { 40% { transform: scale(1.15) rotate(-6deg); } 70% { transform: scale(.96); } }

/* Rolle in "Mein Bereich" */
.cl-rolepick__ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--cl-brand-tint); color: var(--cl-brand); }
.cl-topicpick__b[aria-pressed="true"] .cl-rolepick__ico { background: var(--cl-brand); color: #fff; }
.cl-rolechip { vertical-align: middle; margin-left: 6px; font-size: 12px; gap: 4px; }
.cl-pop--bell .cl-thumb:not(.cl-thumb--date) { width: 54px; height: 38px; border-radius: 9px; }
.cl-pop--bell .cl-thumb--date { width: 54px; }
.cl-pop--bell .cl-thumb--date .cl-datechip { transform: scale(.86); transform-origin: left center; }

/* Admin: Kunden & Anrede (kunden.html) */
.cl-custs { display: grid; gap: 14px; }
.cl-custs__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cl-custs__search { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--cl-line); border-radius: 999px; background: var(--cl-surface-2); color: var(--cl-ink-3); transition: border-color .15s, background .15s; }
.cl-custs__search:focus-within { border-color: var(--cl-brand); background: var(--cl-surface); }
.cl-custs__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--cl-ink); font: inherit; font-size: 14px; }
.cl-custs__search--sm { flex: 0 1 260px; height: 34px; }
.cl-custs__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cl-cust { display: grid; gap: 12px; padding: 14px 16px; border: 1px solid var(--cl-line); border-radius: 14px; background: var(--cl-surface); }
.cl-cust:not(.is-ok) { box-shadow: inset 3px 0 0 var(--cl-l5); }
.cl-cust__top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.cl-cust__mono { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--c) 14%, var(--cl-surface)); color: var(--c); font-size: 16px; font-weight: 800; }
.cl[data-cl-theme="dark"] .cl-cust__mono { background: color-mix(in srgb, var(--c) 30%, var(--cl-surface)); color: #fff; }
.cl-cust__who { flex: 1 1 200px; min-width: 0; display: grid; gap: 1px; }
.cl-cust__name { justify-self: start; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 0; border: 0; background: none; color: var(--cl-ink); font: inherit; font-size: 16px; font-weight: 750; text-align: left; cursor: pointer; }
.cl-cust__name .cl-ico { opacity: 0; color: var(--cl-ink-3); transition: opacity .15s; }
.cl-cust__name:hover .cl-ico, .cl-cust__name:focus-visible .cl-ico { opacity: 1; }
.cl-cust__who small, .cl-cust__count small, .cl-cust__state small { display: block; color: var(--cl-ink-3); font-size: 12.5px; }
.cl-cust__count { flex: none; min-width: 150px; color: var(--cl-ink-2); font-size: 14px; }
.cl-cust__count b { color: var(--cl-ink); font-size: 16px; }
.cl-cust__state { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 8px; margin-left: auto; }
.cl-cust__state small { flex-basis: 100%; text-align: right; }
.cl-cust__rule { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 14px; border-radius: 12px; background: var(--cl-surface-2); }
.cl-cust__rule small { color: var(--cl-ink-3); font-size: 11.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.cl-cust__ex, .cl-cust__hello, .cl-cust__order { display: grid; gap: 3px; min-width: 0; }
.cl-cust__ex { flex: 1 1 220px; }
.cl-cust__ex b { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.cl-cust__arrow { color: var(--cl-ink-3); }
.cl-cust__hello b { color: var(--cl-brand-strong); font-size: 15.5px; }
.cl-cust__order { flex: none; }
.cl-cust__order > .cl-muted { font-size: 13px; line-height: 28px; }
.cl-cust__toggle { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.cl-cust__dot { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--cl-warn-soft); color: var(--cl-warn); font-size: 11.5px; font-weight: 750; }
.cl-seg--xs button { height: 28px; padding: 0 12px; font-size: 13px; }
.cl-seg button:disabled { cursor: default; opacity: .55; }
.cl-cust__people { display: grid; gap: 10px; }
.cl-cust__pbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; }
.cl-cust__pbar .cl-ico--xs { vertical-align: -2px; }
.cl-cust__scroll { max-height: 420px; overflow: auto; border: 1px solid var(--cl-line); border-radius: 12px; }
.cl-cust__scroll .cl-table th { position: sticky; top: 0; z-index: 1; padding-top: 10px; background: var(--cl-surface); }
.cl-cust__scroll .cl-table td { padding: 8px 10px; vertical-align: middle; }
.cl-cust__scroll .cl-table tr:last-child td { border-bottom: 0; }
.cl-cust__scroll tr.is-unsure td:first-child { box-shadow: inset 3px 0 0 var(--cl-l5); }
.cl-cust__mail { color: var(--cl-ink-3); font-size: 13px; word-break: break-all; }
.cl-cust__edit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cl-cust__edit input { flex: 1 1 160px; min-width: 0; height: 34px; padding: 0 12px; border: 1px solid var(--cl-brand); border-radius: 10px; outline: 0; background: var(--cl-surface); color: var(--cl-ink); font: inherit; font-size: 14px; }
.cl-cust__who .cl-cust__edit input { font-size: 15px; font-weight: 700; }
.cl-custs__how ol { display: grid; gap: 6px; margin: 6px 0 12px; padding-left: 20px; font-size: 14.5px; }
.cl-custs__how p { font-size: 13px; }
@media (max-width: 640px) {
  .cl-cust__state { justify-content: flex-start; margin-left: 0; }
  .cl-cust__state small { text-align: left; }
  .cl-cust__arrow { display: none; }
  .cl-cust__toggle { margin-left: 0; }
}
/* Vorschau der Begrüßung (Kunden & Anrede) */
.cl-tour--preview .cl-tour__card { max-height: calc(100vh - 24px); overflow: auto; }
.cl-tour__pv { display: grid; gap: 8px; margin-top: 4px; padding: 12px 14px; border-radius: 14px; background: var(--cl-brand-tint); box-shadow: inset 0 0 0 1px var(--cl-brand-soft); }
.cl-tour__pv .cl-eyebrow { font-size: 11px; }
.cl-tour__pvrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.cl-tour__pvrow .cl-avatar { width: 38px; height: 38px; font-size: 13.5px; box-shadow: none; }
.cl-tour__pvrow > span:not(.cl-avatar) { display: grid; gap: 1px; }
.cl-tour__pvrow small { color: var(--cl-ink-3); font-size: 11.5px; }
.cl-tour__pvrow b { font-size: 14.5px; }
/* Personen-Treffer in der Suche (Kunden & Anrede) */
.cl-custs__hits { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--cl-surface-2); }
.cl-custs__hits ul { list-style: none; margin: 0; padding: 0; display: grid; }
.cl-custs__hits li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 9px 0; border-top: 1px solid var(--cl-line); }
.cl-custs__hits li:first-child { border-top: 0; }
.cl-custs__hits .cl-avatar { width: 36px; height: 36px; font-size: 13px; box-shadow: none; }
.cl-custs__hits .cl-hit__who { flex: 1 1 240px; min-width: 0; display: grid; gap: 1px; }
.cl-custs__hits .cl-hit__who small { color: var(--cl-ink-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-custs__hits .cl-cust__hello { min-width: 150px; }
.cl-custs__hits .cl-cust__hello small { color: var(--cl-ink-3); font-size: 11.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.cl-hit__act { display: flex; gap: 6px; margin-left: auto; }
.cl-cust__acts { white-space: nowrap; text-align: right; }
.cl-cust__count small.cl-cust__warn { color: var(--cl-warn); }
/* Neue Playlists (einen Monat lang): Abschnitt oben in der Mediathek, Kennzeichen „Neu“ */
.cl-tag--new { gap: 4px; background: linear-gradient(135deg, #b93a96, #ee7d30); color: #fff; }
.cl-plcover__new { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 7px;
  background: linear-gradient(135deg, #b93a96, #ee7d30); color: #fff; font-size: 12px; font-weight: 750; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.cl-playlist.is-new { box-shadow: 0 0 0 2px color-mix(in srgb, #ee7d30 55%, transparent), var(--cl-shadow); }
.cl-lib__sec--new { padding: 16px 18px 18px; border-radius: var(--cl-radius); background: linear-gradient(135deg, var(--cl-brand-tint), var(--cl-surface) 70%); box-shadow: inset 0 0 0 1px var(--cl-brand-soft); }
.cl-lib__sec--new .cl-lib__head h2 { display: flex; align-items: center; gap: 8px; }
.cl-lib__sec--new .cl-lib__head h2::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, #b93a96, #ee7d30); box-shadow: 0 0 0 4px color-mix(in srgb, #ee7d30 20%, transparent); }

