/* Animated product screens (KI-Lernbegleiter and feature screens). Ported from the Brainfood theme and recoloured to the breed LMS red. */
/**
 * KI-Lernbegleiter Widget v2 (Plattform-Page).
 *
 * Self-contained component mit Namespace `.kb`. Vier Tabs, jeder Tab hat ein
 * eigenes Mockup-Panel mit eigener Animation. Quelle: design/brainfood_ki_lernbegleiter_v2.html.
 * Wird nur auf der Plattform-Seite geladen (siehe inc/enqueue.php).
 */

.kb, .kb * { box-sizing: border-box; }
.kb { font-family: Clan, Arial, sans-serif; color: #263237; padding: 1rem 0; background: #F5F4F0; border-radius: 18px; }
.kb__inner { padding: 1rem; }


/* ----- Tabs ----- */

/* ----- Explain-Box ----- */
.kb-explain { background: #fff; border: 1px solid #E4E2DC; border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; display: flex; align-items: flex-start; gap: 14px; }
.kb-explain__body { flex: 1; min-width: 0; }
.kb-explain__badge { font-size: .625rem; font-weight: 700; letter-spacing: .14em; color: #d41118; text-transform: uppercase; margin-bottom: 4px; }
.kb-explain__title { font-family: Clan, Arial, sans-serif; font-size: 1.125rem; font-weight: 400; line-height: 1.2; letter-spacing: -.01em; margin-bottom: 4px; }
.kb-explain__text { font-size: .78125rem; line-height: 1.5; color: #515B5F; }

/* ----- Stage + Panels ----- */
.kb-stage { position: relative; }
.kb-panel { display: none; }
.kb-panel[data-active="true"] { display: block; }
.kb-mockup { background: #fff; border-radius: 14px; border: 1px solid #D4D6D7; overflow: hidden; display: grid; grid-template-columns: 180px 1fr; box-shadow: 0 8px 28px rgba(38,50,55,.08); height: 540px; position: relative; }

/* ----- Sidebar ----- */
.kb-side { background: #F4F5F7; border-right: 1px solid #E5E7EA; padding: 14px 12px; display: flex; flex-direction: column; font-size: .71875rem; overflow: hidden; }
.kb-side__head { font-size: .59375rem; font-weight: 700; letter-spacing: .14em; color: #5f676b; text-transform: uppercase; margin-bottom: 10px; }
.kb-side__item { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 10px; cursor: pointer; color: #263237; font-weight: 500; margin-bottom: 3px; }
.kb-side__item i { font-size: .9375rem; color: #5f676b; }
.kb-side__item--active { background: #fbe3e4; color: #d41118; font-weight: 700; padding: 11px 12px; }
.kb-side__item--active i { color: #d41118; }
.kb-side__divider { height: 1px; background: #E5E7EA; margin: 10px -12px; }
.kb-side__history { flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 2px; }
.kb-side__row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; font-weight: 600; color: #263237; }
.kb-side__dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.kb-side__rowtxt { flex: 1; font-size: .71875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-side__rowcnt { font-size: .65625rem; color: #5f676b; font-weight: 500; margin-right: 2px; }
.kb-side__chev { color: #A8ADAF; font-size: .625rem; }
.kb-side__row--exp { background: #EAEDF0; }
.kb-side__sub { padding-left: 18px; margin-top: 2px; display: flex; flex-direction: column; gap: 2px; }
.kb-side__subrow { display: flex; align-items: center; gap: 7px; padding: 5px 8px; border-radius: 6px; font-size: .65625rem; color: #515B5F; }
.kb-side__subrow i { font-size: .6875rem; }
.kb-side__subrow--active { background: #fbe3e4; color: #d41118; font-weight: 600; }
.kb-side__subrow--active i { color: #d41118; }
.kb-side__subtime { margin-left: auto; font-size: .59375rem; color: #A8ADAF; }
.kb-side__bottom { margin-top: 10px; padding-top: 10px; border-top: 1px solid #E5E7EA; display: flex; flex-direction: column; gap: 8px; }
.kb-side__btn { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 7px; border: 1px solid #D4D6D7; border-radius: 8px; font-size: .65625rem; font-weight: 600; background: #fff; color: #263237; }

/* ----- Main pane ----- */
.kb-main { display: flex; flex-direction: column; min-width: 0; overflow: hidden; position: relative; }
.kb-main__header { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid #E5E7EA; flex-shrink: 0; background: #fff; z-index: 2; }
.kb-main__sidetog, .kb-main__head-spacer i { color: #5f676b; font-size: .875rem; }
.kb-main__sparkle { width: 22px; height: 22px; border-radius: 6px; background: #fbe3e4; color: #d41118; display: flex; align-items: center; justify-content: center; font-size: .8125rem; }
.kb-main__title { font-size: .78125rem; font-weight: 700; color: #263237; }
.kb-main__sub { font-size: .71875rem; color: #5f676b; }
.kb-main__head-spacer { margin-left: auto; display: flex; gap: 8px; }
.kb-main__body { flex: 1; overflow: hidden; position: relative; }
.kb-main__scroll { height: 100%; overflow-y: auto; padding: 18px; scroll-behavior: smooth; }

/* ----- Steps in Panel 1 (a/b/c sub-animations) ----- */
.kb-step { position: absolute; inset: 0; padding: 18px; opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility .55s; }
[data-step="a"] .kb-step--a,
[data-step="b"] .kb-step--b,
[data-step="c"] .kb-step--c { opacity: 1; visibility: visible; }
.kb-step--a { display: flex; flex-direction: column; align-items: center; padding-top: 8px; }

.kb-bigsparkle { width: 60px; height: 60px; border-radius: 16px; background: linear-gradient(155deg, #fbe3e4, #f5b9bc); color: #d41118; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; animation: kbSparklePulse 2.8s ease-in-out infinite; }
.kb-bigsparkle i { font-size: 1.875rem; }
@keyframes kbSparklePulse { 0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(232,67,74,.4); } 50% { transform: scale(1.04); box-shadow: 0 0 0 14px rgba(232,67,74,0); } }
.kb-p1__hello { font-family: Clan, Arial, sans-serif; font-size: 1.5rem; font-weight: 400; letter-spacing: -.01em; margin-bottom: 6px; }
.kb-p1__sub { font-size: .75rem; color: #515B5F; text-align: center; line-height: 1.5; margin-bottom: 8px; max-width: 340px; }
.kb-p1__sec { font-size: .625rem; font-weight: 700; letter-spacing: .14em; color: #5f676b; text-transform: uppercase; margin: 18px 0 10px; text-align: center; width: 100%; }
.kb-p1__opt { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #D4D6D7; border-radius: 11px; background: #fff; transition: all .3s ease; }
.kb-p1__opt--hl { border-color: #d41118; background: #fdf4f4; animation: kbHlPulse 2s ease-in-out infinite; }
@keyframes kbHlPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(212,17,24,.3); } 50% { box-shadow: 0 0 0 8px rgba(212,17,24,0); } }
.kb-p1__opticon { width: 28px; height: 28px; border-radius: 7px; background: #fbe3e4; color: #d41118; display: flex; align-items: center; justify-content: center; font-size: .8125rem; flex-shrink: 0; }
.kb-p1__optttl { font-size: .71875rem; font-weight: 600; line-height: 1.2; }
.kb-p1__optsub { font-size: .625rem; color: #5f676b; margin-top: 1px; }

.kb-p1b__head { font-size: .78125rem; color: #263237; font-weight: 600; margin-bottom: 14px; }
.kb-themes { display: flex; flex-wrap: wrap; gap: 8px; max-width: 420px; }
.kb-thm { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border: 1px solid #D4D6D7; border-radius: 999px; font-size: .71875rem; font-weight: 500; background: #fff; transition: all .3s ease; }
.kb-thm__dot { width: 8px; height: 8px; border-radius: 50%; }
.kb-thm--hl { border-color: #d41118; background: #fdf4f4; animation: kbHlPulse 2s ease-in-out infinite; }

/* ----- Chat (Panel 1c) ----- */
.kb-chat { display: flex; flex-direction: column; gap: 10px; }
.kb-msg { display: flex; gap: 8px; max-width: 90%; }
.kb-msg__icon { width: 22px; height: 22px; border-radius: 6px; background: #fbe3e4; color: #d41118; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .6875rem; margin-top: 3px; }
.kb-msg__bub { background: #fdf4f4; border-radius: 12px; padding: 10px 12px; font-size: .71875rem; line-height: 1.5; color: #263237; }
.kb-msg--user { margin-left: auto; flex-direction: row-reverse; }
.kb-msg--user .kb-msg__bub { background: #d41118; color: #fff; }
.kb-msg--anim { animation: kbMsgIn .5s cubic-bezier(.22,.61,.36,1) backwards; }
.kb-msg--anim:nth-child(1) { animation-delay: .15s; }
.kb-msg--anim:nth-child(2) { animation-delay: 1s; }
.kb-msg--anim:nth-child(3) { animation-delay: 1.8s; }
@keyframes kbMsgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ----- Panel 2 (Result + Radar + Bars + Recos) ----- */
.kb-p2__result { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.kb-p2__check { width: 22px; height: 22px; border-radius: 50%; background: #00BF9A; color: #fff; display: flex; align-items: center; justify-content: center; font-size: .75rem; }
.kb-p2__rtxt { font-size: .8125rem; font-weight: 700; color: #263237; }
.kb-p2__desc { font-size: .71875rem; color: #515B5F; line-height: 1.55; margin-bottom: 14px; }
.kb-p2__sechead { font-size: .625rem; font-weight: 700; letter-spacing: .14em; color: #5f676b; text-transform: uppercase; margin-bottom: 10px; }
.kb-bars { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.kb-bar { display: flex; align-items: center; gap: 10px; }
.kb-bar__name { flex: 1; font-size: .71875rem; color: #263237; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-bar__track { flex: 0 0 110px; height: 6px; background: #E5E7EA; border-radius: 3px; overflow: hidden; }
.kb-bar__fill { height: 100%; border-radius: 3px; width: 0; transition: width 1.1s cubic-bezier(.22,.61,.36,1) .4s; }
.kb-panel[data-active="true"] .kb-bar__fill { width: var(--w, 30%); }
.kb-recos { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.kb-reco { display: flex; align-items: flex-start; gap: 10px; padding: 9px 11px; border: 1px solid #E5E7EA; border-radius: 9px; }
.kb-reco__n { flex-shrink: 0; width: 18px; height: 18px; border-radius: 5px; background: #fbe3e4; color: #9c0d12; font-size: .625rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.kb-reco__title { font-size: .71875rem; font-weight: 600; color: #263237; margin-bottom: 2px; }
.kb-reco__sub { font-size: .65625rem; color: #5f676b; line-height: 1.4; }
.kb-p2__cta { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 11px; background: #d41118; color: #fff; font-size: .71875rem; font-weight: 600; border: 0; cursor: pointer; }

/* ----- Panel 3 (Quiz + Modal Overlay) ----- */
.kb-quiz { padding: 14px 16px; }
.kb-quiz__opts { display: flex; flex-direction: column; gap: 6px; }
.kb-quiz__opt { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid #E5E7EA; border-radius: 10px; background: #fff; font-size: .71875rem; color: #263237; cursor: pointer; transition: all .25s ease; }
.kb-quiz__opt:hover { border-color: #d41118; }
.kb-quiz__opt--sel { border-color: #d41118; background: #fdf4f4; animation: kbHlPulse 2.5s ease-in-out infinite; }

.kb-p3-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(38,50,55,.55); padding: 18px; transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1); z-index: 5; }
[data-step="modal"] .kb-p3-overlay { opacity: 1; pointer-events: auto; }
[data-step="quiz"] .kb-p3-overlay { opacity: 0; pointer-events: none; transform: scale(.85); }
.kb-modal { position: relative; background: #fff; border-radius: 16px; overflow: hidden; width: 100%; max-width: 340px; box-shadow: 0 18px 48px rgba(0,0,0,.18); animation: kbModalPop .5s cubic-bezier(.22,1.2,.36,1) backwards; }
@keyframes kbModalPop { from { opacity: 0; transform: scale(.94) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.kb-modal__head { background: linear-gradient(155deg, #e8434a, #d41118); color: #fff; padding: 18px 16px 14px; text-align: center; position: relative; }
.kb-modal__x { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: .8125rem; }
.kb-modal__check { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-size: 1.25rem; }
.kb-modal__ttl { font-family: Clan, Arial, sans-serif; font-size: 1.375rem; font-weight: 400; line-height: 1.05; letter-spacing: -.01em; }
.kb-modal__subt { font-size: .6875rem; opacity: .9; margin-top: 3px; padding: 0 14px; line-height: 1.4; }
.kb-modal__body { padding: 14px 16px; }
.kb-modal__eye { font-size: .5625rem; font-weight: 700; letter-spacing: .14em; color: #5f676b; text-transform: uppercase; margin-bottom: 6px; }
.kb-modal__card { background: #fdf4f4; border: 1px solid #fbe3e4; border-radius: 11px; padding: 10px 11px; }
.kb-modal__intro { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 10px; }
.kb-modal__introicon { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(155deg, #e8434a, #d41118); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .8125rem; }
.kb-modal__introtxt { font-size: .6875rem; line-height: 1.45; color: #263237; }
.kb-modal__opts { display: flex; flex-direction: column; gap: 5px; }
.kb-modal__opt { display: flex; align-items: center; gap: 9px; padding: 9px 10px; background: #fff; border: 1px solid #E5E7EA; border-radius: 9px; transition: all .25s ease; }
.kb-modal__opt--quiz { border-color: #d41118; animation: kbOptPulse 1.8s ease-in-out infinite; animation-delay: 1.8s; }
@keyframes kbOptPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(212,17,24,.3); } 50% { box-shadow: 0 0 0 8px rgba(212,17,24,0); } }
.kb-modal__opticon { width: 24px; height: 24px; border-radius: 6px; background: #fbe3e4; color: #d41118; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .6875rem; }
.kb-modal__optbody { flex: 1; min-width: 0; }
.kb-modal__optttl { font-size: .6875rem; font-weight: 700; color: #263237; line-height: 1.2; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kb-modal__pill { display: inline-block; font-size: .53125rem; font-weight: 700; letter-spacing: .06em; padding: 2px 6px; background: #fbe3e4; color: #9c0d12; border-radius: 999px; text-transform: uppercase; }
.kb-modal__optsub { font-size: .625rem; color: #5f676b; margin-top: 2px; line-height: 1.35; }
.kb-modal__optarrow { color: #5f676b; font-size: .8125rem; }

/* ----- Panel 4 (Skill-Profil mit Toggle) ----- */
.kb-p4__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 14px; }
.kb-p4__stat { background: #F4F5F7; border-radius: 10px; padding: 10px 6px; text-align: center; }
.kb-p4__statn { font-family: Clan, Arial, sans-serif; font-size: 1.375rem; font-weight: 400; color: #d41118; line-height: 1; transition: all .55s ease; }
.kb-p4__statl { font-size: .59375rem; color: #5f676b; margin-top: 4px; line-height: 1.25; }
.kb-p4__row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.kb-p4__sec { font-size: .625rem; font-weight: 700; letter-spacing: .14em; color: #5f676b; text-transform: uppercase; }
.kb-toggle { display: inline-flex; background: #EAEDF0; border-radius: 999px; padding: 3px; font-size: .65625rem; font-weight: 600; position: relative; }
.kb-toggle__opt { padding: 5px 14px; border-radius: 999px; color: #5f676b; transition: color .35s ease; position: relative; z-index: 2; cursor: pointer; }
.kb-toggle__opt--active { color: #fff; }
.kb-toggle__slide { position: absolute; top: 3px; bottom: 3px; width: calc(50% - 3px); background: #d41118; border-radius: 999px; transition: left .45s cubic-bezier(.22,.61,.36,1); z-index: 1; }
.kb-toggle--start .kb-toggle__slide { left: 3px; }
.kb-toggle--heute .kb-toggle__slide { left: 50%; }
.kb-info { background: #fdf4f4; border: 1px solid #fbe3e4; border-radius: 10px; padding: 10px 12px; display: flex; align-items: flex-start; gap: 9px; margin-bottom: 14px; }
.kb-info i { color: #d41118; font-size: .875rem; flex-shrink: 0; margin-top: 1px; }
.kb-info__t { font-size: .6875rem; line-height: 1.45; color: #263237; }
.kb-themes-list { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.kb-theme { display: flex; align-items: center; gap: 11px; padding: 11px 12px; background: #fff; border: 1px solid #E5E7EA; border-radius: 10px; }
.kb-theme__dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.kb-theme__name { flex: 1; min-width: 0; }
.kb-theme__title { font-size: .71875rem; font-weight: 700; color: #263237; line-height: 1.2; }
.kb-theme__count { font-size: .625rem; color: #5f676b; margin-top: 1px; }
.kb-theme__progress { flex: 0 0 90px; height: 4px; background: #E5E7EA; border-radius: 2px; overflow: hidden; }
.kb-theme__fill { height: 100%; border-radius: 2px; transition: width .65s cubic-bezier(.22,.61,.36,1); }
.kb-theme__chev { color: #A8ADAF; font-size: .8125rem; }
.kb-p4__cta { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 11px; border-radius: 11px; background: #d41118; color: #fff; font-weight: 600; font-size: .75rem; border: 0; cursor: pointer; }

/* ----- Mobile ----- */
@media (max-width: 640px) {
  .kb-mockup { grid-template-columns: 1fr; height: auto; min-height: 540px; }
  .kb-side { display: none; }
}

/* ----- Reduced motion: still toggle panels, but kill loops/keyframes ----- */
@media (prefers-reduced-motion: reduce) {
  .kb-bigsparkle,
  .kb-p1__opt--hl,
  .kb-thm--hl,
  .kb-quiz__opt--sel,
  .kb-modal__opt--quiz { animation: none; }
  .kb-msg--anim { animation-duration: .01s; }
  .kb-bar__fill,
  .kb-theme__fill,
  .kb-p4__statn { transition: none; }
}

/* ======================================================================
 * Stand LMS 3.3 (2026-10-28) – Mockups an den aktuellen Lernbegleiter
 * angeglichen (Vorlage: Screenshots aus dem LMS). Ergänzt/überschreibt
 * die Regeln oben.
 * ==================================================================== */

/* Seitenleiste: Lernkontext, Fußzeile „Powered by“, Unterzeilen */
.kb-side__btn { cursor: default; }
.kb-side__powered { font-size: .59375rem; color: #515B5F; text-align: center; }
.kb-side__subtxt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.kb-side__ok { color: #00A35C; font-size: .6875rem; flex-shrink: 0; }
.kb-side__item--active { background: #fbeaea; color: #9c0d12; }

/* Start: Aktionen als Liste mit Pfeil (statt 2×2-Raster) */
.kb-p1__hello { margin-bottom: 4px; }
.kb-p1__intro { font-size: .78125rem; color: #263237; margin-bottom: 4px; }
.kb-p1__sub { color: #5f676b; margin-bottom: 0; }
.kb-p1__sec { margin: 14px 0 8px; text-align: left; max-width: 380px; }
.kb-p1__list { display: flex; flex-direction: column; gap: 7px; width: 100%; max-width: 380px; }
.kb-p1__opt { padding: 9px 12px; }
.kb-p1__optbody { flex: 1; min-width: 0; }
.kb-p1__optchev { color: #5f676b; font-size: .9375rem; }

/* Themenwahl: Plattform-Rahmensatz zum Skill-Check */
.kb-frame { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; max-width: 420px; padding: 10px 12px; border-radius: 10px; background: #F4F5F7; border: 1px solid #E5E7EA; font-size: .6875rem; line-height: 1.45; color: #515B5F; }
.kb-frame i { color: #d41118; font-size: .8125rem; margin-top: 1px; }

/* Skill-Check im Gespräch: KI-Hinweis, Fortschritt, Eingabezeile */
.kb-step--c { display: flex; flex-direction: column; gap: 10px; padding: 14px 18px; }
.kb-step--c .kb-chat { flex: 1; min-height: 0; overflow: hidden; }
.kb-ainotice { display: flex; gap: 8px; align-items: flex-start; padding: 8px 11px; border-radius: 8px; background: #fdf4f4; border-left: 3px solid #d41118; font-size: .65625rem; line-height: 1.45; color: #263237; }
.kb-ainotice i { color: #d41118; font-size: .8125rem; }
.kb-ainotice u { color: #9c0d12; text-underline-offset: 2px; }
.kb-msg__bub { background: #F4F5F7; }
.kb-sc { border: 1px solid #E5E7EA; border-radius: 10px; padding: 9px 11px; background: #fff; }
.kb-msg--anim.kb-sc { animation-delay: 2.5s; }
.kb-sc__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.kb-sc__q { font-size: .6875rem; font-weight: 700; color: #263237; }
.kb-sc__btn { font-size: .65625rem; font-weight: 600; padding: 4px 10px; border: 1px solid #D4D6D7; border-radius: 8px; color: #263237; background: #fff; }
.kb-sc__bar { height: 5px; border-radius: 3px; background: #E5E7EA; overflow: hidden; }
.kb-sc__fill { display: block; height: 100%; width: 0; background: #d41118; border-radius: 3px; transition: width 1s cubic-bezier(.22,.61,.36,1) 2.8s; }
[data-step="c"] .kb-sc__fill { width: 66%; }
.kb-sc__hint { font-size: .625rem; color: #5f676b; margin-top: 6px; line-height: 1.4; }
.kb-composer { display: flex; gap: 8px; align-items: center; }
.kb-composer__input { flex: 1; display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; border: 1px solid #E5E7EA; border-radius: 999px; background: #F4F5F7; color: #A8ADAF; font-size: .6875rem; font-style: italic; }
.kb-composer__input i { color: #515B5F; font-size: .875rem; font-style: normal; }
.kb-composer__speak { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(212,17,24,.35); background: rgba(212,17,24,.12); color: #9c0d12; font-size: .6875rem; font-weight: 600; }
.kb-composer__speak i { font-size: .875rem; }

/* Ergebnis: Karte, Bänder statt Ampelfarben, Skill-Tags, abgeschlossen-Zeile */
.kb-main__body--closed, .kb-main__body--cta { display: flex; flex-direction: column; }
.kb-main__body--closed .kb-main__scroll, .kb-main__body--cta .kb-main__scroll { flex: 1; min-height: 0; height: auto; }
.kb-result { border: 1px solid #E5E7EA; border-radius: 12px; padding: 14px 16px; }
.kb-p2__check { background: #00A35C; }
.kb-bar { background: #F4F5F7; border-radius: 8px; padding: 6px 8px; }
.kb-bar__name { flex: 0 1 150px; }
.kb-bar__track { flex: 1 1 auto; }
.kb-bar__fill { background: #d41118; }
.kb-band, .kb-lvl { display: inline-flex; align-items: center; justify-content: center; min-width: 84px; padding: 2px 8px; border-radius: 4px; font-size: .625rem; font-weight: 600; line-height: 1.4; flex-shrink: 0; }
.kb-band--building, .kb-lvl--building { background: #FCEBD6; color: #8A4B00; }
.kb-band--mid, .kb-lvl--mid { background: #fbeaea; color: #9c0d12; }
.kb-lvl--strong { background: #DCF3E5; color: #17733A; }
.kb-reco__tag { display: inline-block; margin-top: 6px; padding: 2px 9px; border: 1px solid #E5E7EA; border-radius: 999px; font-size: .59375rem; color: #5f676b; }
.kb-p2__ctarow { display: flex; justify-content: flex-end; }
.kb-p2__cta { cursor: default; }
.kb-closed { display: flex; align-items: center; gap: 7px; margin: 0 14px 12px; padding: 8px 12px; border: 1px solid #E5E7EA; border-radius: 10px; background: #F4F5F7; font-size: .65625rem; color: #263237; flex-shrink: 0; }
.kb-closed i { color: #d41118; font-size: .8125rem; }

/* Abschluss-Dialog: Vorher → Jetzt */
.kb-modal__eye { margin-bottom: 8px; }
.kb-gain { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; font-size: .6875rem; color: #263237; }
.kb-gain__skill { font-weight: 600; flex-basis: 100%; }
.kb-gain__arrow { color: #5f676b; font-size: .75rem; }
.kb-gain .kb-lvl { min-width: 0; }

/* Übungsfragen: Karte mit Zähler, Hinweis, Radio-Auswahl, „Antwort prüfen“ */
.kb-quiz { padding: 18px; }
.kb-quiz__card { border: 1px solid #E5E7EA; border-radius: 12px; padding: 16px; }
.kb-quiz__counter { font-size: .65625rem; color: #5f676b; margin-bottom: 6px; }
.kb-quiz__prompt { font-size: .8125rem; font-weight: 700; line-height: 1.4; color: #263237; margin-bottom: 8px; }
.kb-quiz__hint { display: flex; align-items: center; gap: 5px; font-size: .65625rem; color: #5f676b; margin-bottom: 12px; }
.kb-quiz__opt { gap: 9px; }
.kb-quiz__radio { color: #A8ADAF; font-size: .9375rem; flex-shrink: 0; }
.kb-quiz__radio--on, .kb-quiz__opt--sel .kb-quiz__radio { display: none; }
.kb-quiz__opt--sel .kb-quiz__radio--on { display: inline; color: #d41118; }
.kb-quiz__opt span { flex: 1; }
.kb-quiz__mark { display: none; color: #17733A; font-size: .9375rem; }
.kb-quiz__foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.kb-quiz__check, .kb-quiz__next { padding: 8px 16px; border-radius: 10px; background: #d41118; color: #fff; font-size: .71875rem; font-weight: 600; }
.kb-quiz__next, .kb-quiz__feedback { display: none; }
.kb-quiz__feedback { margin-right: auto; align-items: center; gap: 5px; font-size: .75rem; font-weight: 700; color: #17733A; }
[data-step="feedback"] .kb-quiz__opt--sel { border-color: #3BB273; background: #EAF7EF; animation: none; }
[data-step="feedback"] .kb-quiz__opt--sel .kb-quiz__radio--on { color: #17733A; }
[data-step="feedback"] .kb-quiz__opt--sel .kb-quiz__mark { display: inline; }
[data-step="feedback"] .kb-quiz__check { display: none; }
[data-step="feedback"] .kb-quiz__next { display: inline-block; }
[data-step="feedback"] .kb-quiz__feedback { display: inline-flex; }
[data-step="feedback"] .kb-p3-overlay { opacity: 0; pointer-events: none; transform: scale(.85); }

/* Skill-Profil: aufklappbarer Bereich mit Herkunft je Skill */
.kb-theme { display: block; padding: 0; }
.kb-theme__head { display: flex; align-items: center; gap: 11px; padding: 11px 12px; }
.kb-theme__chev { font-size: .9375rem; }
.kb-skills { border-top: 1px solid #E5E7EA; padding: 4px 12px 8px; }
.kb-skill { padding: 8px 0; }
.kb-skill + .kb-skill { border-top: 1px solid #F0F1F2; }
.kb-skill__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kb-skill__name { font-size: .6875rem; color: #263237; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-skill__val, .kb-swap { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.kb-skill__src { font-size: .59375rem; color: #515B5F; }
.kb-skill__meta { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 4px; }
.kb-skill__date { font-size: .59375rem; color: #5f676b; margin-right: auto; }
.kb-skill__why { font-size: .625rem; font-weight: 700; color: #9c0d12; display: inline-flex; align-items: center; }
.kb-dots { display: inline-flex; gap: 3px; }
.kb-dots i { width: 6px; height: 6px; border-radius: 50%; background: #17A34A; }
.kb-ai { font-size: .53125rem; font-weight: 700; padding: 1px 4px; border: 1px solid #D4D6D7; border-radius: 3px; color: #263237; }
.kb-panel[data-toggle="heute"] .kb-swap--start,
.kb-panel[data-toggle="start"] .kb-swap--heute { display: none; }
.kb-p4__ctabar { padding: 10px 14px 12px; border-top: 1px solid #E5E7EA; flex-shrink: 0; }
.kb-p4__cta { cursor: default; }

@media (max-width: 640px) {
  .kb-bar__name { flex-basis: 110px; }
  .kb-composer__speak { padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .kb-sc__fill { transition: none; }
}
.kb-bar__fill, .kb-theme__fill { display: block; }
.kb-side__subtime { white-space: nowrap; flex-shrink: 0; }
.kb-side__subrow { min-width: 0; }
.kb-msg { max-width: 78%; }
@media (max-width: 640px) {
  .kb-skill__row { flex-wrap: wrap; }
  .kb-skill__name { flex-basis: 100%; }
  .kb-step--c .kb-msg:nth-child(3) { display: none; }
}


/* ======================================================================================================================
   breed adjustments: container, tabs as breed buttons, pause control, small screens
   ====================================================================================================================== */
.kb{background:#f2f2f0;border-radius:0;padding:clamp(14px,2.2vw,30px);color:#263237;font-size:1rem;line-height:1.4;text-align:left}
.kb__inner{padding:0}
.kb-explain{border-radius:0;border:0;background:#fff;padding:14px 16px;gap:14px;margin:14px 0 0}
.kb-explain__badge{color:#d41118;font-size:.75rem}
.kb-explain__title{font-size:1.25rem;font-weight:800;letter-spacing:-.01em}
.kb-explain__text{font-size:.9375rem;line-height:1.55;color:#3a3a3d}
.kb-pause{position:relative;display:grid;place-items:center;align-self:center;width:41px;height:41px;margin:14px 0 4px;padding:0;border:0;border-radius:50%;background:#0c0c0d;color:#fff;cursor:pointer;transition:transform .3s var(--ease,cubic-bezier(.22,1,.36,1)),opacity .25s}
.kb-pause:hover{transform:scale(1.08)}
.kb-pause i{font-size:1.1875rem}
.kb-pause i.ri-play-fill{translate:1px 0}
/* Icon only: the text stays in the markup for screen readers. */
.kb-pause span{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.kb__inner{display:flex;flex-direction:column}
.kb[data-paused] *,.kb[data-paused] *::before,.kb[data-paused] *::after{animation-play-state:paused!important}
@media(max-width:900px){
 .kb-mockup{grid-template-columns:1fr;height:480px}
 .kb-side{display:none}
}
@media(max-width:520px){
 .kb-mockup{height:440px}
}
@media(prefers-reduced-motion:reduce){.kb *,.kb *::before,.kb *::after{animation:none!important;transition:none!important}}


/* ======================================================================================================================
   Tabs: the navigation of the project reel on the home page ("01 ── 02 ━━ 03"), with the name of the area next to the number.
   The line grows from a short to a long stroke for the open area, same timing as the reel (.5s, same easing).
   ====================================================================================================================== */
.kb-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:6px 34px;margin:0 0 14px;padding:2px 16px 6px}
.kb-tab{display:flex;align-items:center;gap:10px;margin:0;padding:8px 0;border:0;border-radius:0;background:transparent;color:#0c0c0d;font:inherit;font-size:.9375rem;line-height:1.2;text-align:left;cursor:pointer}
.kb-tab__num{font-size:inherit;font-weight:700;letter-spacing:.02em;font-variant-numeric:tabular-nums;color:#5f676b;transition:color .4s}
.kb-tab__label{font-weight:600;color:#515b5f;transition:color .4s}
.kb-tab__line{display:block;flex:none;width:28px;height:1px;background:#0c0c0d66;transition:width .5s var(--ease,cubic-bezier(.22,1,.36,1)),background .4s}
.kb-tab:hover .kb-tab__line{width:44px;background:#0c0c0d}
.kb-tab:hover .kb-tab__label,.kb-tab:hover .kb-tab__num{color:#0c0c0d}
.kb-tab[aria-selected="true"] .kb-tab__line{width:65px;background:#d41118;height:2px}
.kb-tab[aria-selected="true"] .kb-tab__label{color:#0c0c0d;font-weight:800}
.kb-tab[aria-selected="true"] .kb-tab__num{color:#d41118}
.kb-tab:focus-visible{outline:2px solid #0c0c0d;outline-offset:4px}
@media(max-width:900px){
 .kb-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px 18px;padding-left:14px;padding-right:14px}
 .kb-tab{gap:8px;font-size:.875rem}
 .kb-tab__line{width:18px}
 .kb-tab:hover .kb-tab__line{width:26px}
 .kb-tab[aria-selected="true"] .kb-tab__line{width:36px}
}
@media(prefers-reduced-motion:reduce){.kb-tab__line,.kb-tab__num,.kb-tab__label{transition:none}}


/* ======================================================================================================================
   Screencast: real views of the platform faded over each other. Colours follow the surrounding text (dark and light sections).
   ====================================================================================================================== */
.sc{margin:0;color:inherit;text-align:left}
.sc__frame{position:relative;aspect-ratio:1555/784;overflow:hidden;border-radius:var(--image-radius,10px);background:#f8fafc;box-shadow:0 22px 70px #00000052;container-type:inline-size}
/* One scene = one view. The scenes lie on top of each other and fade with a very short zoom (only while they change). */
.sc__scene{position:absolute;inset:0;opacity:0;transform:scale(1.045);transition:opacity .7s ease,transform .7s cubic-bezier(.4,0,.2,1)}
.sc__scene.is-current{opacity:1;transform:none;z-index:1}
.sc__slide{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
/* Pages that scroll: the picture of the whole page content lies in a window right of the menu and below the header (1321 x 707 of 1545 x 779 px
   of the view); the script moves it up, so menu and header stay in place like in the real app. */
.sc__scroll{position:absolute;left:14.498%;top:9.242%;width:85.502%;height:90.757%;overflow:hidden}
.sc__layer{display:block;width:100%;height:auto;will-change:transform}
/* Click ring (there is no mouse pointer); the script sets its place. */
.sc__ripple{position:absolute;left:0;top:0;z-index:2;width:max(34px,4.8cqw);aspect-ratio:1;translate:-50% -50%;border-radius:50%;border:2px solid #d41118;background:#d4111829;pointer-events:none;opacity:0}
.sc__ripple.is-on{animation:sc-ripple .65s ease-out}
@keyframes sc-ripple{from{opacity:.95;transform:scale(.2)}to{opacity:0;transform:scale(1.15)}}
.sc__controls{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px 24px;margin-top:22px}
.sc__nav{grid-column:1;justify-self:start;display:flex;flex-wrap:wrap;gap:4px 14px}
.sc__nav button{display:flex;align-items:center;gap:8px;padding:10px 0;border:0;background:transparent;color:inherit;font:inherit;font-size:.75rem;font-variant-numeric:tabular-nums;cursor:pointer}
.sc__nav button span{display:block;width:28px;height:1px;background:currentColor;opacity:.4;transition:width .5s var(--ease,cubic-bezier(.22,1,.36,1)),opacity .4s}
.sc__nav button:hover span{width:44px;opacity:.8}
.sc__nav button[aria-pressed="true"] span{width:65px;opacity:1}
.sc__nav button:focus-visible,.sc__pause:focus-visible{outline:2px solid currentColor;outline-offset:4px}
/* Pause/play: a round white button in the middle with a filled icon; the name is only in the markup (.sc__sr) and the tooltip. */
.sc__pause{grid-column:2;display:grid;place-items:center;width:41px;height:41px;margin-bottom:4px;padding:0;border:0;border-radius:50%;background:#fff;color:#0c0c0d;box-shadow:0 0 0 1px #0000001f;cursor:pointer;transition:transform .3s var(--ease,cubic-bezier(.22,1,.36,1)),opacity .25s}
.sc__pause:hover{transform:scale(1.08)}
.sc__pause i{font-size:1.1875rem}
.sc__pause i.ri-play-fill{translate:1px 0}
/* A bolder pause symbol than the Remix one (its bars are only 2 of 24 units wide): two thick bars with softly rounded corners. */
.sc__pause i.ri-pause-fill,.kb-pause i.ri-pause-fill{--ri:url("data:image/svg+xml,%3Csvg%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3E%3Crect%20x='4.6'%20y='3.6'%20width='5.6'%20height='16.8'%20rx='1.5'/%3E%3Crect%20x='13.8'%20y='3.6'%20width='5.6'%20height='16.8'%20rx='1.5'/%3E%3C/svg%3E")}
/* The play symbol gets the same softly rounded corners as the pause bars (a filled triangle with a round-joined outline). */
.sc__pause i.ri-play-fill,.kb-pause i.ri-play-fill{--ri:url("data:image/svg+xml,%3Csvg%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3E%3Cpath%20d='M8.2%205.3v13.4L19.2%2012z'%20fill='%23000'%20stroke='%23000'%20stroke-width='2.6'%20stroke-linejoin='round'/%3E%3C/svg%3E")}
.sc__sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:700px){.sc__nav button span{width:16px}.sc__nav button[aria-pressed="true"] span{width:34px}.sc__controls{grid-template-columns:1fr;justify-items:center;gap:6px}.sc__nav{grid-column:1;justify-self:center;justify-content:center}.sc__pause{grid-column:1}}
@media(prefers-reduced-motion:reduce){.sc__scene{transition:none;transform:none}.sc__nav button span,.sc__pause{transition:none}.sc__ripple.is-on{animation:none}}

/* ======================================================================================================================
   Small pictures ("Was die Plattform kann"): a real cut-out of the platform. The finished picture is the default; with JS it
   is armed (zoomed in, transparent) and plays once, in about two seconds, when it scrolls into view.
   ====================================================================================================================== */
.fs{--fs-bg:#f8fafc;position:relative;aspect-ratio:16/10;margin:0 0 24px;overflow:hidden;border-radius:var(--image-radius,10px);border:1px solid #d4d6d7;background:var(--fs-bg)}
.fs-competencies{--fs-bg:#fff}
/* The whole cut-out is shown (contain), never cropped. The frame has the colour of the surroundings of the picture, so unused space is not visible, and its rounded corners hide the edges of the cut-out. */
.fs img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.fs.is-armed img{opacity:0;transform:scale(1.16);transform-origin:30% 20%}
.fs-compliance.is-armed img,.fs-integrations.is-armed img{transform-origin:60% 30%}
.fs-sessions.is-armed img,.fs-content.is-armed img{transform-origin:20% 40%}
.fs.is-armed.is-playing img{opacity:1;transform:scale(1);transition:opacity .7s ease,transform 1.8s var(--ease,cubic-bezier(.22,1,.36,1))}
@media(prefers-reduced-motion:reduce){.fs.is-armed img{opacity:1;transform:none}}

/* Product page: the KI-Lernbegleiter sits below the text of its section, over the full width. */
.bd-split>.bd-live{grid-column:1/-1;margin-top:clamp(28px,4vw,56px)}
.bd-split>.bd-live .kb{padding:0;background:transparent}

/* ======================================================================================================================
   Tabs with the number in a small circle; the text field is rounded and carries no number.
   Light surroundings: dark circle, red for the open area. Dark surroundings (home page): everything white, no red.
   ====================================================================================================================== */
.kb-tabs{padding-left:0;padding-right:0}
.kb-tab__num{display:grid;place-items:center;flex:none;width:26px;height:26px;border-radius:50%;background:#0c0c0d;color:#fff;font-size:.75rem;font-weight:700;letter-spacing:0;line-height:1;transition:background-color .4s,color .4s,opacity .4s}
.kb-tab:hover .kb-tab__num{background:#d41118;color:#fff}
.kb-tab[aria-selected="true"] .kb-tab__num{background:#d41118;color:#fff}
.kb-explain{border-radius:16px;padding:16px 20px;color:#263237}
@media(max-width:900px){.kb-tabs{padding-left:0;padding-right:0}.kb-tab__num{width:24px;height:24px;font-size:.6875rem}}

:is(.product-preview,.bd-dark) .kb{background:transparent;padding:0;color:#fff}
:is(.product-preview,.bd-dark) .kb-tab,:is(.product-preview,.bd-dark) .kb-tab:hover .kb-tab__label{color:#fff}
:is(.product-preview,.bd-dark) .kb-tab__label{color:#ffffffb8}
:is(.product-preview,.bd-dark) .kb-tab[aria-selected="true"] .kb-tab__label{color:#fff}
:is(.product-preview,.bd-dark) .kb-tab__num,:is(.product-preview,.bd-dark) .kb-tab:hover .kb-tab__num,:is(.product-preview,.bd-dark) .kb-tab[aria-selected="true"] .kb-tab__num{background:#fff;color:#0c0c0d}
:is(.product-preview,.bd-dark) .kb-tab:not([aria-selected="true"]) .kb-tab__num{opacity:.6}
:is(.product-preview,.bd-dark) .kb-tab__line,:is(.product-preview,.bd-dark) .kb-tab[aria-selected="true"] .kb-tab__line{background:#fff}
:is(.product-preview,.bd-dark) .kb-tab__line{opacity:.4}
:is(.product-preview,.bd-dark) .kb-tab:hover .kb-tab__line{opacity:.8}
:is(.product-preview,.bd-dark) .kb-tab[aria-selected="true"] .kb-tab__line{opacity:1}
:is(.product-preview,.bd-dark) .kb-tab:focus-visible,:is(.product-preview,.bd-dark) .kb-pause:focus-visible{outline-color:#fff}
:is(.product-preview,.bd-dark) .kb-explain__badge{color:#515b5f}
:is(.product-preview,.bd-dark) .kb-pause{background:#fff;color:#0c0c0d;box-shadow:0 0 0 1px #0000001f}
