/**
 * Nachbauten echter LMS-Ansichten für die Plattform-Funktionen
 * (template-parts/addon-visual.php). Vorlage: Screenshots aus LMS 3.3.0.
 *
 * Gestaltet in 680 × 460 px; addon-visuals.js setzt --z (Breite / 680) und
 * die Ansicht wird per CSS-zoom eingepasst. Animationen laufen nur mit .is-live
 * (gesetzt, solange sichtbar). prefers-reduced-motion: ruhender Endzustand.
 * Farben = LMS-Tokens (Tenant-Primärfarbe #00c4d7, Slate-Neutraltöne).
 */

/* ---------- Hero-Layout mit Visual ---------- */
.bf-addon-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.bf-addon-hero__grid .bf-ph__title { font-size: clamp(36px, 4vw, 54px) !important; }
.bf-addon-hero__grid .bf-ph__lead { font-size: 18px; }
@media (max-width: 1024px) {
  .bf-addon-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .bf-addon-hero__visual { max-width: 600px; }
}

/* ---------- Rahmen ---------- */
.bfv {
  --cyc: 12s;
  --p: #00c4d7; --ps: #0a9fb2; --pl: #e0f7fa; --pt: #076e80;
  --bg: #f8fafc; --card: #fff; --bd: #e2e8f0; --ink: #1e293b; --mut: #475569; --lt: #94a3b8;
  --ok: #16a34a; --okb: #e7f6ec; --okt: #11712f; --warn: #d97706; --warnb: #fdf2e3; --warnt: #8a4b04;
  --bad: #dc2626; --badb: #fdecec; --badt: #a31d1d;
  position: relative; width: 100%; min-width: 0; contain: inline-size; overflow: hidden; border-radius: 14px;
  box-shadow: 0 24px 60px rgba(30, 41, 59, .16), 0 0 0 1px rgba(30, 41, 59, .08);
}
.bfa {
  zoom: var(--z, .8); width: 680px; height: 460px; overflow: hidden; position: relative;
  font-family: 'Open Sans', system-ui, sans-serif; font-size: 12.5px; line-height: 1.45; color: var(--ink);
  background: var(--bg); text-align: left;
}
.bfa *, .bfa *::before, .bfa *::after { box-sizing: border-box; }
.bfv--pflicht .bfa { height: 492px; } /* Compliance-Übersicht ist im LMS höher */
.bfa p, .bfa h3, .bfa h4 { margin: 0; font-family: inherit; color: inherit; line-height: 1.3; }
.bfa label { display: block; font-size: 11px; color: var(--ink); margin: 0 0 4px; }

/* ---------- Gemeinsame Bausteine ---------- */
.bfa-cap { font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
.bfa-teal { color: var(--ps); }
.bfa-muted { color: var(--lt); }
.bfa-h { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.bfa-lead { font-size: 11.5px; color: #334155; margin-top: 3px !important; }
.bfa-card { background: var(--card); border: 1px solid var(--bd); border-radius: 14px; }
.bfa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
  padding: 7px 13px; border-radius: 8px; background: var(--ps); color: #fff; font-size: 11.5px; font-weight: 600;
}
.bfa-btn--ghost { background: #fff; color: var(--ink); border: 1px solid var(--bd); font-weight: 400; }
.bfa-btn--block { display: flex; width: 100%; padding: 10px; font-size: 12.5px; font-weight: 400; margin-top: auto; }
.bfa-spark { width: 24px; height: 24px; flex-shrink: 0; border-radius: 7px; background: var(--pl); color: var(--p); display: inline-grid; place-items: center; font-size: 13px; }
.bfa-spark--lg { width: 40px; height: 40px; border-radius: 11px; font-size: 22px; }
.bfa-input {
  height: 30px; padding: 0 10px; display: flex; align-items: center; border: 1px solid #cbd5e1; border-radius: 8px;
  background: #fff; font-size: 11.5px; white-space: nowrap; overflow: hidden;
}
.bfa-input--area { height: 52px; align-items: flex-start; padding-top: 8px; white-space: normal; }
.bfa-input--sel { justify-content: space-between; }
.bfa-input--focus { border-color: var(--p); box-shadow: 0 0 0 3px rgba(0, 196, 215, .18); }
.bfa-bar { height: 6px; border-radius: 3px; background: #e2e8f0; overflow: hidden; }
.bfa-bar > i, .bfa-cat__bar > i, .bfa-count em { display: block; height: 100%; width: var(--to); background: var(--c, var(--p)); border-radius: inherit; }
.bfa-pill-ok { font-style: normal; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--okb); color: var(--okt); }
.bfa-swap { display: inline-grid; }
.bfa-swap > span { grid-area: 1 / 1; }
.bfa-swap__a { visibility: hidden; }
.bfa-swap--block { display: grid; }

/* ---------- Verwaltungs-Shell ---------- */
.bfa-app { display: flex; height: 100%; }
.bfa-rail { width: 52px; flex-shrink: 0; background: #fff; border-right: 1px solid var(--bd); display: flex; flex-direction: column; align-items: center; gap: 3px; padding-top: 10px; }
.bfa-rail__logo { color: var(--p); margin-bottom: 12px; }
.bfa-logo { width: 26px; height: 26px; display: block; }
.bfa-rail__item { width: 36px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--mut); font-size: 15px; }
.bfa-rail__item.is-active { background: var(--ps); color: #fff; }
.bfa-main { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.bfa-top { height: 42px; flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 0 20px; }
.bfa-top__crumb { flex: 1; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #334155; white-space: pre; }
.bfa-top__bell { position: relative; font-size: 16px; color: var(--mut); }
.bfa-top__bell b { position: absolute; top: -4px; right: -7px; min-width: 14px; height: 14px; border-radius: 7px; background: var(--ps); color: #fff; font-size: 8.5px; display: grid; place-items: center; }
.bfa-top__av { width: 24px; height: 24px; border-radius: 50%; background: #dcf3e2; font-size: 10px; font-weight: 700; display: grid; place-items: center; margin-left: 8px; }
.bfa-top__name { font-size: 11.5px; }
.bfa-page { flex: 1; min-height: 0; padding: 4px 20px 16px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.bfa-page > * { flex-shrink: 0; } /* wie im LMS: Inhalt läuft unten aus dem Bild statt zu stauchen */
.bfa-titlerow { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }

/* ---------- KI-Lernbegleiter-Fenster ---------- */
.bfa-cmp { display: flex; height: 100%; background: #fff; }
.bfa-cmp__side { width: 176px; flex-shrink: 0; background: #f8fafc; border-right: 1px solid var(--bd); padding: 14px 10px 10px; display: flex; flex-direction: column; gap: 2px; }
.bfa-cmp__side .bfa-cap { padding: 0 8px 6px; }
.bfa-cmp__side hr { border: 0; border-top: 1px solid var(--bd); margin: 8px 6px 10px; }
.bfa-cmp__nav { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; font-size: 11.5px; }
.bfa-cmp__nav i { font-size: 14px; color: var(--mut); }
.bfa-cmp__nav.is-active { background: #eef2f6; color: var(--pt); font-weight: 700; }
.bfa-cmp__nav.is-active i { color: var(--pt); }
.bfa-cmp__hist { display: flex; align-items: center; gap: 8px; padding: 6px 8px; font-size: 11px; }
.bfa-cmp__hist > i { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.bfa-cmp__hist b { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bfa-cmp__hist span { color: var(--mut); font-size: 10px; font-weight: 700; }
.bfa-cmp__hist em { color: var(--lt); font-style: normal; }
.bfa-cmp__foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; align-items: stretch; text-align: center; }
.bfa-cmp__foot small { font-size: 9px; color: var(--mut); }
.bfa-cmp__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bfa-cmp__head { height: 46px; flex-shrink: 0; display: flex; align-items: center; gap: 9px; padding: 0 14px; border-bottom: 1px solid var(--bd); }
.bfa-cmp__head b { font-size: 13px; }
.bfa-cmp__sub { font-size: 11px; color: var(--lt); flex: 1; }
.bfa-cmp__panel, .bfa-cmp__icon { color: var(--mut); font-size: 15px; }
.bfa-cmp__body { flex: 1; min-height: 0; position: relative; padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }

/* Lernbegleiter: Start + Skill-Check */
.bfa-scene { display: flex; flex-direction: column; gap: 10px; }
.bfa-cmp__body > .bfa-scene, .bfa-stage > .bfa-scene { position: absolute; inset: 0; }
.bfa-cmp__body > .bfa-scene { padding: 14px 18px; }
/* Ruhezustand (ohne Animation) = Szene B */
.bfa-scene--a { opacity: 0; visibility: hidden; }
.bfa-hello { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px; max-width: 330px; margin: 0 auto; width: 100%; }
.bfa-hello h4 { font-size: 17px; font-weight: 400; margin-top: 4px; }
.bfa-hello__lead { font-size: 12px; }
.bfa-hello__text { font-size: 11px; color: var(--mut); margin-bottom: 8px !important; }
.bfa-hello .bfa-cap { align-self: flex-start; color: var(--mut); margin-bottom: 2px; }
.bfa-action { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--bd); border-radius: 10px; background: #fff; text-align: left; }
.bfa-action > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.bfa-action b { font-size: 11.5px; }
.bfa-action small { font-size: 10px; color: var(--mut); }
.bfa-action > i { color: var(--lt); font-size: 15px; }
.bfa-action__ic { width: 30px; height: 30px; border-radius: 8px; background: var(--pl); color: var(--ps); display: grid; place-items: center; font-size: 15px; }
.bfa-chat { display: flex; flex-direction: column; gap: 9px; flex: 1; }
.bfa-msg { display: flex; gap: 8px; align-items: flex-start; max-width: 80%; }
.bfa-msg p { padding: 8px 11px; border-radius: 10px; background: #f1f5f9; font-size: 11.5px; line-height: 1.5; }
.bfa-msg--me { align-self: flex-end; max-width: 72%; }
.bfa-msg--me p { background: var(--ps); color: #fff; border-radius: 10px 10px 2px 10px; }
.bfa-typing { display: flex; gap: 8px; align-items: center; }
.bfa-dots { display: inline-flex; gap: 4px; padding: 11px 12px; background: #f1f5f9; border-radius: 10px; }
.bfa-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--lt); }
.bfa-inputbar { display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 12px; border: 1px solid #cbd5e1; border-radius: 10px; color: var(--lt); font-size: 11.5px; }
.bfa-inputbar i { color: var(--ps); font-size: 15px; }

/* Skill-Profil */
.bfa-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.bfa-stats > div { background: #f8fafc; border-radius: 10px; padding: 9px 4px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.bfa-stats b { font-size: 18px; color: var(--pt); line-height: 1.2; }
.bfa-stats small { font-size: 9.5px; color: var(--ink); }
.bfa-skhead { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.bfa-seg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--bd); border-radius: 999px; font-size: 11px; font-weight: 700; }
.bfa-seg > span { position: relative; z-index: 1; padding: 4px 13px; text-align: center; }
.bfa-seg__knob { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--p); transform: translateX(100%); }
.bfa-seg__b { color: #fff; }
.bfa-info { display: flex; gap: 9px; padding: 9px 12px; border: 1px solid #b9ecf2; background: #f0fbfc; border-radius: 10px; font-size: 11px; }
.bfa-info > i { color: var(--p); font-size: 15px; }
.bfa-cat { display: flex; align-items: center; gap: 11px; padding: 9px 14px; border: 1px solid var(--bd); border-radius: 11px; }
.bfa-cat__dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.bfa-cat__txt { flex: 1; display: flex; flex-direction: column; }
.bfa-cat__txt b { font-size: 12px; }
.bfa-cat__txt small { font-size: 10px; color: var(--lt); }
.bfa-cat__bar { width: 64px; height: 4px; border-radius: 2px; background: #e2e8f0; overflow: hidden; }
.bfa-cat__chev { color: var(--lt); font-size: 14px; }

/* ---------- KI-Lernpfad-Assistent ---------- */
.bfa-back { font-size: 11px; color: var(--ps); margin-bottom: -6px; }
.bfa-stepper { display: flex; align-items: center; gap: 8px; padding: 9px 14px; }
.bfa-step { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.bfa-step b { display: block; font-size: 11px; color: var(--lt); }
.bfa-step small { display: block; font-size: 9px; color: var(--lt); }
.bfa-step__n { position: relative; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--bd); display: grid; place-items: center; font-size: 9.5px; color: var(--lt); }
.bfa-step__n > * { grid-area: 1 / 1; font-style: normal; }
.bfa-step__n i { visibility: hidden; font-size: 12px; }
.bfa-step__line { flex: 1; height: 1px; background: var(--bd); }
/* Endzustand: 1 + 2 erledigt, 3 aktiv */
.bfa-step--1 .bfa-step__n, .bfa-step--2 .bfa-step__n { background: var(--pl); border-color: var(--pl); color: var(--pt); }
.bfa-step--1 em, .bfa-step--2 em { visibility: hidden; }
.bfa-step--1 i, .bfa-step--2 i { visibility: visible; }
.bfa-step--1 b, .bfa-step--2 b, .bfa-step--3 b { color: var(--ink); }
.bfa-step--3 .bfa-step__n { background: var(--ps); border-color: var(--ps); color: #fff; }
.bfa-stage { position: relative; flex: 1; min-height: 0; }
.bfa-form { padding: 11px 14px; display: flex; flex-direction: column; gap: 3px; height: 100%; }
.bfa-form label { margin-top: 5px; }
.bfa-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bfa-form__lbl { display: flex; justify-content: space-between; align-items: baseline; font-size: 10.5px; }
.bfa-range { position: relative; height: 10px; margin: 2px 0 2px; }
.bfa-range i { position: absolute; left: 0; right: 0; top: 4px; height: 3px; border-radius: 2px; background: #e2e8f0; }
.bfa-range i::before { content: ''; position: absolute; inset: 0 66% 0 0; background: #1d6fe8; border-radius: 2px; }
.bfa-range b { position: absolute; left: 34%; top: 0; width: 11px; height: 11px; border-radius: 50%; background: #1d6fe8; transform: translateX(-50%); }
.bfa-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.bfa-chips span { padding: 3px 9px; border: 1px solid var(--bd); border-radius: 999px; font-size: 10.5px; }
.bfa-chips .is-on { background: var(--pl); border-color: #9be4ec; color: var(--pt); }
.bfa-gen { padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; height: 100%; }
.bfa-gen__head { display: flex; justify-content: space-between; align-items: baseline; }
.bfa-gen__head b { font-size: 12.5px; }
.bfa-gen__head span { font-size: 10.5px; color: var(--mut); }
.bfa-gen > *, .bfa-form > * { flex-shrink: 0; }
.bfa-gen__row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid #f1f5f9; }
.bfa-gen__title { flex: 1; font-size: 11.5px; }
.bfa-tb { min-width: 74px; text-align: center; padding: 3px 7px; border-radius: 6px; color: #fff; font-size: 8.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.bfa-tb--textmedia { background: #6164ec; } .bfa-tb--quiz { background: #077e9b; } .bfa-tb--scenario { background: #0e8376; }
.bfa-tb--flashcards { background: #9c6a03; } .bfa-tb--reflection { background: #bd5711; }
.bfa-status { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.bfa-status--done { background: var(--okb); color: var(--okt); }
.bfa-status--run { background: var(--pl); color: var(--pt); }
.bfa-status--wait { background: #f1f5f9; color: var(--mut); font-weight: 400; }
.bfa-spin { width: 9px; height: 9px; border-radius: 50%; border: 2px solid rgba(7, 110, 128, .25); border-top-color: var(--pt); }
.bfa-footbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -20px -16px; padding: 9px 20px; background: #fff; border-top: 1px solid var(--bd); }
.bfa-footbar__note { font-size: 10px; color: var(--mut); }

/* ---------- Compliance ---------- */
.bfa-tabs { display: inline-flex; align-self: flex-start; gap: 2px; padding: 3px; background: #eef2f6; border-radius: 12px; font-size: 11px; }
.bfa-tabs span { padding: 5px 11px; border-radius: 9px; white-space: nowrap; }
.bfa-tabs .is-on { background: #fff; box-shadow: 0 1px 2px rgba(30, 41, 59, .08); }
.bfa-tabs em { font-style: normal; font-size: 9.5px; color: var(--mut); margin-left: 3px; }
.bfa-quote { padding: 13px 16px 15px; }
.bfa-quote__num { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.bfa-quote__num small { font-size: 16px; }
.bfa-quote__sub { font-size: 10px; color: #334155; margin-bottom: 9px; }
.bfa-stack { display: flex; gap: 3px; height: 8px; }
.bfa-stack i { display: block; width: var(--w); border-radius: 4px; }
.bfa-stack__ok { background: var(--ok); } .bfa-stack__warn { background: var(--warn); } .bfa-stack__bad { background: var(--bad); }
.bfa-status4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bfa-st { padding: 10px 11px; border-radius: 12px; border: 1px solid; display: flex; flex-direction: column; gap: 3px; }
.bfa-st b { display: flex; align-items: center; gap: 5px; font-size: 11px; }
.bfa-st b i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.bfa-st span { font-size: 10px; }
.bfa-st strong { font-size: 20px; margin-right: 3px; }
.bfa-st small { font-size: 9.5px; line-height: 1.35; color: #334155; }
.bfa-st--ok { background: #f0faf3; border-color: #b7e2c4; } .bfa-st--ok b { color: var(--okt); }
.bfa-st--warn { background: #fef8ef; border-color: #f4d3a5; } .bfa-st--warn b { color: var(--warnt); }
.bfa-st--bad { background: #fdf2f2; border-color: #f2b8b8; } .bfa-st--bad b { color: var(--badt); }
.bfa-st--idle { background: #fff; border-color: var(--bd); } .bfa-st--idle b { color: var(--mut); }

.bfa-todo { overflow: hidden; }
.bfa-todo__head { padding: 9px 14px; border-bottom: 1px solid var(--bd); display: flex; flex-direction: column; }
.bfa-todo__head b { font-size: 11.5px; font-weight: 400; }
.bfa-todo__head small, .bfa-todo__row small { font-size: 9.5px; color: #334155; }
.bfa-todo__row { display: flex; align-items: center; gap: 12px; padding: 7px 14px; }
.bfa-todo__row > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.bfa-todo__row b { font-size: 11px; font-weight: 400; }
.bfa-todo__n { width: 28px; height: 28px; border-radius: 50%; background: var(--badb); color: var(--badt); display: grid; place-items: center; font-size: 12px; font-weight: 600; flex-shrink: 0; }

/* ---------- Live-Termine ---------- */
.bfa-table { overflow: hidden; }
.bfa-tr { display: grid; grid-template-columns: 1.9fr .8fr .95fr .7fr .8fr 1.2fr; gap: 8px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--bd); font-size: 11px; }
.bfa-tr--head { border-top: 0; font-weight: 400; color: var(--ink); }
.bfa-tr--3 { grid-template-columns: 2.4fr 1fr 1.2fr; }
.bfa-tr__act { display: flex; gap: 4px; justify-content: flex-end; }
.bfa-tr__act i { font-style: normal; font-size: 9.5px; padding: 3px 7px; border: 1px solid var(--bd); border-radius: 6px; white-space: nowrap; }
.bfa-num, .bfa-tr--head > span:nth-child(5) { text-align: center; }
.bfa-art { font-style: normal; display: inline-block; padding: 2px 7px; border-radius: 999px; font-size: 8.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: #475569; color: #fff; }
.bfa-art--on { background: #0e7490; }
.bfa-tr--new { max-height: 60px; overflow: hidden; }
.bfa-sub { font-size: 13px; margin-top: 2px; }
.bfv--live .bfa-main, .bfv--live .bfa-page { position: static; }
.bfa-modal { position: absolute; inset: 0; z-index: 5; background: rgba(30, 41, 59, .45); display: grid; place-items: center; opacity: 0; visibility: hidden; }
.bfa-modal__box { width: 300px; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 20px 50px rgba(15, 23, 42, .3); display: flex; flex-direction: column; gap: 2px; }
.bfa-modal__box label { margin-top: 6px; }
.bfa-modal__title { font-size: 12.5px; }
.bfa-modal__foot { display: flex; justify-content: flex-end; gap: 6px; margin-top: 12px; }

/* ---------- Add-ons ---------- */
.bfa-count { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; white-space: nowrap; margin-top: 8px; }
.bfa-count i { width: 70px; height: 4px; border-radius: 2px; background: #e2e8f0; overflow: hidden; margin-left: 6px; }
.bfa-filter { display: flex; gap: 6px; }
.bfa-filter span { padding: 4px 10px; border: 1px solid var(--bd); border-radius: 999px; font-size: 10.5px; background: #fff; }
.bfa-filter .is-on { background: var(--pl); border-color: #9be4ec; color: var(--pt); }
.bfa-cap--wide { letter-spacing: .14em; font-weight: 400; color: #334155; }
.bfa-list { overflow: hidden; }
.bfa-li { display: flex; align-items: center; gap: 11px; padding: 8px 14px; border-top: 1px solid var(--bd); }
.bfa-li:first-child { border-top: 0; }
.bfa-li__ic { width: 26px; height: 26px; border-radius: 7px; background: var(--pl); color: var(--ps); display: grid; place-items: center; font-size: 13px; flex-shrink: 0; }
.bfa-li__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bfa-li__txt b { font-size: 11.5px; font-weight: 400; }
.bfa-li__txt code { font-family: ui-monospace, Menlo, monospace; font-size: 9px; color: var(--mut); margin-left: 4px; background: none; padding: 0; }
.bfa-li__txt small { font-size: 9.5px; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bfa-li__state { font-size: 10px; color: var(--mut); text-align: right; min-width: 74px; justify-items: end; }
.bfa-toggle { position: relative; width: 34px; height: 19px; border-radius: 999px; background: var(--ps); flex-shrink: 0; }
.bfa-toggle i { position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transform: translateX(15px); }

/* ======================================================================
 * Animationen (nur mit .is-live und ohne reduzierte Bewegung).
 * Ohne Animation gilt der Endzustand (siehe Regeln oben).
 * ==================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .bfv:not(.is-live) * { animation-play-state: paused !important; }

  /* Umschalter zwischen Szene A und B */
  .bfv.is-live .bfa-scene--a { animation: bfaSceneA var(--cyc) infinite both; }
  .bfv.is-live .bfa-scene--b { animation: bfaSceneB var(--cyc) infinite both; }
  .bfv.is-live .bfa-swap__a { animation: bfaSwapA var(--cyc) infinite both; }
  .bfv.is-live .bfa-swap__b { animation: bfaSwapB var(--cyc) infinite both; }

  /* Einblenden nacheinander (in Szene B) */
  .bfv.is-live .bfa-scene--b .bfa-in { animation: bfaInB var(--cyc) infinite both; }
  .bfv.is-live .bfa-in--2 { animation-delay: .9s !important; }
  .bfv.is-live .bfa-in--3 { animation-delay: 1.8s !important; }
  .bfv.is-live .bfa-in--4 { animation-delay: 2.7s !important; }
  .bfv.is-live .bfa-in--5 { animation-delay: 3.6s !important; }
  .bfv.is-live .bfa-dots i { animation: bfaDot 1s ease-in-out infinite; }
  .bfv.is-live .bfa-dots i:nth-child(2) { animation-delay: .15s; }
  .bfv.is-live .bfa-dots i:nth-child(3) { animation-delay: .3s; }
  .bfv.is-live .bfa-spin { animation: bfaSpin .9s linear infinite; }

  /* Lernbegleiter: Klick auf „Skill-Check starten“ */
  .bfv--lernbegleiter.is-live .bfa-hover { animation: bfaHover var(--cyc) infinite both; }
  .bfv--lernbegleiter.is-live .bfa-cmp__sub { animation: bfaSceneB var(--cyc) infinite both; }

  /* Skill-Profil: Start → Heute */
  .bfv--skills.is-live .bfa-seg__knob { animation: bfaKnob var(--cyc) infinite both; }
  .bfv--skills.is-live .bfa-seg__a { animation: bfaSegA var(--cyc) infinite both; }
  .bfv--skills.is-live .bfa-seg__b { animation: bfaSegB var(--cyc) infinite both; }
  .bfv--skills.is-live .bfa-grow { animation: bfaGrow var(--cyc) infinite both; }

  /* Autorentool: Briefing tippen → Gliederung → Generierung */
  .bfv--autorentool.is-live .bfa-type { animation: bfaType var(--cyc) steps(40) infinite both; }
  .bfv--autorentool.is-live .bfa-btn--wake { animation: bfaWake var(--cyc) infinite both; }
  .bfv--autorentool.is-live .bfa-step--1 .bfa-step__n { animation: bfaStepActiveToDone var(--cyc) infinite both; }
  .bfv--autorentool.is-live .bfa-step--1 em { animation: bfaSwapA var(--cyc) infinite both; }
  .bfv--autorentool.is-live .bfa-step--1 i,
  .bfv--autorentool.is-live .bfa-step--2 i { animation: bfaSwapB var(--cyc) infinite both; }
  .bfv--autorentool.is-live .bfa-step--2 .bfa-step__n { animation: bfaStepIdleToDone var(--cyc) infinite both; }
  .bfv--autorentool.is-live .bfa-step--2 em { animation: bfaSwapA var(--cyc) infinite both; }
  .bfv--autorentool.is-live .bfa-step--2 b,
  .bfv--autorentool.is-live .bfa-step--3 b { animation: bfaInkLate var(--cyc) infinite both; }
  .bfv--autorentool.is-live .bfa-step--3 .bfa-step__n { animation: bfaStepIdleToActive var(--cyc) infinite both; }
  .bfv--autorentool.is-live .bfa-gen .bfa-grow { animation: bfaGrowLate var(--cyc) infinite both; }

  /* Compliance: Balken + Karten */
  .bfv--pflicht.is-live .bfa-stack i { animation: bfaStack var(--cyc) infinite both; }
  .bfv--pflicht.is-live .bfa-stack__warn { animation-delay: .5s; }
  .bfv--pflicht.is-live .bfa-stack__bad { animation-delay: .8s; }
  .bfv--pflicht.is-live .bfa-quote__num { animation: bfaInEarly var(--cyc) infinite both; }
  .bfv--pflicht.is-live .bfa-st { animation: bfaInEarly var(--cyc) infinite both; animation-delay: 1.2s; }
  .bfv--pflicht.is-live .bfa-st.bfa-in--2 { animation-delay: 1.5s !important; }
  .bfv--pflicht.is-live .bfa-st.bfa-in--3 { animation-delay: 1.8s !important; }
  .bfv--pflicht.is-live .bfa-st.bfa-in--4 { animation-delay: 2.1s !important; }
  .bfv--pflicht.is-live .bfa-st--bad { animation-name: bfaInEarlyFocus; }
  .bfv--pflicht.is-live .bfa-todo { animation: bfaInEarly var(--cyc) infinite both; animation-delay: 2.4s !important; }

  /* Live-Termine: Formular → neue Zeile */
  .bfv--live.is-live .bfa-press { animation: bfaPress var(--cyc) infinite both; }
  .bfv--live.is-live .bfa-modal { animation: bfaModal var(--cyc) infinite both; }
  .bfv--live.is-live .bfa-modal__box { animation: bfaModalBox var(--cyc) infinite both; }
  .bfv--live.is-live .bfa-type--fast { animation: bfaTypeModal var(--cyc) steps(36) infinite both; }
  .bfv--live.is-live .bfa-press2 { animation: bfaPress2 var(--cyc) infinite both; }
  .bfv--live.is-live .bfa-tr--new { animation: bfaRow var(--cyc) infinite both; }
  .bfv--live.is-live .bfa-swap__a { animation-name: bfaSwapA75; }
  .bfv--live.is-live .bfa-swap__b { animation-name: bfaSwapB75; }

  /* Add-ons: zwei Integrationen werden aktiviert */
  .bfv--integrationen.is-live .bfa-li--late .bfa-toggle { animation: bfaToggleBg var(--cyc) infinite both; }
  .bfv--integrationen.is-live .bfa-li--late .bfa-toggle i { animation: bfaToggleKnob var(--cyc) infinite both; }
  .bfv--integrationen.is-live .bfa-li--late { animation: bfaRowFlash var(--cyc) infinite both; }
  .bfv--integrationen.is-live .bfa-li--late1 .bfa-swap__a { animation-name: bfaSwapA30; }
  .bfv--integrationen.is-live .bfa-li--late1 .bfa-swap__b { animation-name: bfaSwapB30; }
  .bfv--integrationen.is-live .bfa-li--late1 .bfa-toggle { animation-name: bfaToggleBg30; }
  .bfv--integrationen.is-live .bfa-li--late1 .bfa-toggle i { animation-name: bfaToggleKnob30; }
  .bfv--integrationen.is-live .bfa-li--late1 { animation-name: bfaRowFlash30; }
  .bfv--integrationen.is-live .bfa-count .bfa-grow { animation: bfaGrowLate var(--cyc) infinite both; }
}

/* Szenen: A bis 44 %, B von 47 % bis 95 % */
@keyframes bfaSceneA { 0%, 43% { opacity: 1; visibility: visible; } 46%, 96% { opacity: 0; visibility: hidden; } 99%, 100% { opacity: 1; visibility: visible; } }
@keyframes bfaSceneB { 0%, 44% { opacity: 0; visibility: hidden; transform: translateY(6px); } 48%, 95% { opacity: 1; visibility: visible; transform: none; } 98%, 100% { opacity: 0; visibility: hidden; } }
@keyframes bfaSwapA { 0%, 45% { visibility: visible; } 46%, 97% { visibility: hidden; } 98%, 100% { visibility: visible; } }
@keyframes bfaSwapB { 0%, 45% { visibility: hidden; } 46%, 97% { visibility: visible; } 98%, 100% { visibility: hidden; } }
@keyframes bfaSwapA30 { 0%, 29% { visibility: visible; } 30%, 97% { visibility: hidden; } 98%, 100% { visibility: visible; } }
@keyframes bfaSwapB30 { 0%, 29% { visibility: hidden; } 30%, 97% { visibility: visible; } 98%, 100% { visibility: hidden; } }
@keyframes bfaSwapA75 { 0%, 74% { visibility: visible; } 75%, 97% { visibility: hidden; } 98%, 100% { visibility: visible; } }
@keyframes bfaSwapB75 { 0%, 74% { visibility: hidden; } 75%, 97% { visibility: visible; } 98%, 100% { visibility: hidden; } }
@keyframes bfaInB { 0%, 47% { opacity: 0; transform: translateY(8px); } 51%, 100% { opacity: 1; transform: none; } }
@keyframes bfaInEarly { 0%, 2% { opacity: 0; transform: translateY(8px); } 8%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes bfaInEarlyFocus {
  0%, 2% { opacity: 0; transform: translateY(8px); } 8%, 50% { opacity: 1; transform: none; box-shadow: none; }
  56%, 80% { box-shadow: 0 0 0 3px rgba(220, 38, 38, .18); transform: translateY(-2px); } 86%, 92% { opacity: 1; box-shadow: none; transform: none; } 97%, 100% { opacity: 0; }
}
@keyframes bfaDot { 0%, 100% { opacity: .35; transform: none; } 50% { opacity: 1; transform: translateY(-2px); } }
@keyframes bfaSpin { to { transform: rotate(360deg); } }
@keyframes bfaHover {
  0%, 20% { border-color: var(--bd); background: #fff; transform: none; }
  25%, 38% { border-color: #8fdde6; background: #f0fbfc; transform: translateY(-1px); }
  40% { transform: scale(.98); } 43%, 100% { border-color: var(--bd); background: #fff; transform: none; }
}
@keyframes bfaKnob { 0%, 38% { transform: translateX(0); } 44%, 95% { transform: translateX(100%); } 99%, 100% { transform: translateX(0); } }
@keyframes bfaSegA { 0%, 40% { color: #fff; } 43%, 96% { color: var(--ink); } 99%, 100% { color: #fff; } }
@keyframes bfaSegB { 0%, 40% { color: var(--ink); } 43%, 96% { color: #fff; } 99%, 100% { color: var(--ink); } }
@keyframes bfaGrow { 0%, 44% { width: var(--from); } 58%, 95% { width: var(--to); } 99%, 100% { width: var(--from); } }
@keyframes bfaGrowLate { 0%, 50% { width: var(--from); } 90%, 95% { width: var(--to); } 99%, 100% { width: var(--from); } }
@keyframes bfaType { 0%, 3% { clip-path: inset(0 100% 0 0); } 28%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes bfaWake {
  0%, 29% { background: #8fd3dd; transform: none; } 31%, 39% { background: var(--ps); transform: none; }
  41% { transform: scale(.95); } 44%, 100% { background: var(--ps); transform: none; }
}
@keyframes bfaStepActiveToDone { 0%, 45% { background: var(--ps); border-color: var(--ps); color: #fff; } 46%, 97% { background: var(--pl); border-color: var(--pl); color: var(--pt); } 98%, 100% { background: var(--ps); border-color: var(--ps); color: #fff; } }
@keyframes bfaStepIdleToDone { 0%, 45% { background: #fff; border-color: var(--bd); color: var(--lt); } 46%, 97% { background: var(--pl); border-color: var(--pl); color: var(--pt); } 98%, 100% { background: #fff; border-color: var(--bd); color: var(--lt); } }
@keyframes bfaStepIdleToActive { 0%, 45% { background: #fff; border-color: var(--bd); color: var(--lt); } 46%, 97% { background: var(--ps); border-color: var(--ps); color: #fff; } 98%, 100% { background: #fff; border-color: var(--bd); color: var(--lt); } }
@keyframes bfaInkLate { 0%, 45% { color: var(--lt); } 46%, 97% { color: var(--ink); } 98%, 100% { color: var(--lt); } }
@keyframes bfaStack { 0%, 2% { width: 0; } 20%, 94% { width: var(--w); } 98%, 100% { width: 0; } }
@keyframes bfaPress { 0%, 6% { transform: none; } 8% { transform: scale(.94); } 10%, 100% { transform: none; } }
@keyframes bfaPress2 { 0%, 46% { transform: none; filter: none; } 48% { transform: scale(.93); filter: brightness(.9); } 50%, 100% { transform: none; filter: none; } }
@keyframes bfaModal { 0%, 9% { opacity: 0; visibility: hidden; } 12%, 50% { opacity: 1; visibility: visible; } 54%, 100% { opacity: 0; visibility: hidden; } }
@keyframes bfaModalBox { 0%, 9% { transform: translateY(12px) scale(.97); } 13%, 100% { transform: none; } }
@keyframes bfaTypeModal { 0%, 15% { clip-path: inset(0 100% 0 0); } 34%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes bfaRow {
  0%, 53% { max-height: 0; padding-top: 0; padding-bottom: 0; border-top-width: 0; opacity: 0; background: #e8f9fb; }
  59%, 70% { max-height: 60px; padding-top: 9px; padding-bottom: 9px; border-top-width: 1px; opacity: 1; background: #e8f9fb; }
  85%, 95% { max-height: 60px; padding-top: 9px; padding-bottom: 9px; border-top-width: 1px; opacity: 1; background: #fff; }
  99%, 100% { max-height: 0; padding-top: 0; padding-bottom: 0; border-top-width: 0; opacity: 0; }
}
@keyframes bfaToggleBg { 0%, 45% { background: #94a3b8; } 46%, 96% { background: var(--ps); } 99%, 100% { background: #94a3b8; } }
@keyframes bfaToggleKnob { 0%, 45% { transform: translateX(0); } 46%, 96% { transform: translateX(15px); } 99%, 100% { transform: translateX(0); } }
@keyframes bfaRowFlash { 0%, 44% { background: #fff; } 46%, 60% { background: #f0fbfc; } 75%, 100% { background: #fff; } }
@keyframes bfaToggleBg30 { 0%, 29% { background: #94a3b8; } 30%, 96% { background: var(--ps); } 99%, 100% { background: #94a3b8; } }
@keyframes bfaToggleKnob30 { 0%, 29% { transform: translateX(0); } 30%, 96% { transform: translateX(15px); } 99%, 100% { transform: translateX(0); } }
@keyframes bfaRowFlash30 { 0%, 28% { background: #fff; } 30%, 44% { background: #f0fbfc; } 59%, 100% { background: #fff; } }
