/* KI-Hub (funktionen/_tpl/ki-hub.php): vier Kacheln um ein Gehirn, Leitungen mit Datenfluss.
   Farben aus den Tokens von feature-page.css (--fp-*), Hell und Dunkel. */
.ki-hub { position: relative; display: grid; gap: 14px; margin-top: 22px; }
.ki-hub-net { display: none; }
.ki-hub-brain { display: flex; justify-content: center; margin-bottom: 4px; }
.ki-hub-brain span { position: relative; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: #fff; color: var(--fp-accent); border: 1px solid var(--fp-line); box-shadow: 0 0 0 8px rgba(117, 49, 174, .06), 0 14px 30px -14px rgba(117, 49, 174, .45); }
.ki-hub-brain span::before, .ki-hub-brain span::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid var(--fp-accent); opacity: 0; }

.ki-card { position: relative; z-index: 2; padding: 20px 22px 22px; border: 1px solid var(--fp-line); border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(20, 16, 40, .04), 0 18px 40px -28px rgba(20, 16, 40, .35); transition: border-color .4s, box-shadow .4s, transform .4s; }
.ki-card-head { display: flex; align-items: flex-start; justify-content: space-between; }
.ki-card-head em { font-style: normal; font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; font-weight: 700; color: var(--fp-accent); }
.ki-card-head i { display: grid; place-items: center; width: 52px; height: 52px; margin: -6px -6px 0 0; transition: transform .4s cubic-bezier(.2, .7, .2, 1), filter .4s; }
.ki-card-head i img { width: 46px; height: 46px; display: block; }
.ki-card h4 { margin: 6px 0 8px; font-family: var(--font-display); font-size: 19px; line-height: 1.2; color: var(--fp-ink); }
.ki-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--fp-muted); }
.ki-card.is-on { border-color: color-mix(in srgb, var(--fp-accent) 45%, var(--fp-line)); box-shadow: 0 0 0 3px rgba(117, 49, 174, .08), 0 22px 46px -26px rgba(117, 49, 174, .55); }
.ki-card.is-on .ki-card-head i { transform: translateY(-3px) scale(1.08); filter: drop-shadow(0 8px 14px rgba(117, 49, 174, .35)); }

@media (min-width: 900px) {
  .ki-hub { grid-template-columns: 1fr 1fr; gap: 64px 64px; padding: 4px 0; }
  .ki-hub-net { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
  .ki-hub-brain { position: absolute; z-index: 3; left: 50%; top: 50%; margin: 0; transform: translate(-50%, -50%); }
  .ki-line { fill: none; stroke: color-mix(in srgb, var(--fp-accent) 30%, transparent); stroke-width: 1.5; stroke-dasharray: 4 5; }
  .ki-flow { fill: none; stroke: var(--fp-accent); stroke-width: 1.5; stroke-dasharray: 8 92; stroke-dashoffset: 100; opacity: 0; }
  .ki-dot { fill: var(--fp-accent); opacity: 0; filter: drop-shadow(0 0 4px rgba(117, 49, 174, .7)); }
  .ki-dot.is-run { opacity: 1; }
}

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .ki-hub.is-live .ki-flow { opacity: .55; animation: kiFlow 3.2s linear infinite; }
  .ki-hub.is-live .ki-hub-brain span::before { animation: kiRing 3.2s ease-out infinite; }
  .ki-hub-brain.is-hit span { animation: kiHit .6s ease-out; }
  .ki-hub-brain.is-hit span::after { animation: kiRing .9s ease-out; }
}
@keyframes kiFlow { to { stroke-dashoffset: 0; } }
@keyframes kiRing { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes kiHit { 0% { transform: scale(1); } 40% { transform: scale(1.1); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .ki-card, .ki-card-head i { transition: none; } }

[data-theme="dark"] .ki-card { background: #1B1D24; border-color: rgba(255, 255, 255, .1); box-shadow: none; }
[data-theme="dark"] .ki-hub-brain span { background: #1B1D24; border-color: rgba(255, 255, 255, .14); box-shadow: 0 0 0 8px rgba(155, 109, 230, .1); }

/* =====================================================================
   Aus feature-page.css hierher verschoben (19.10.2026): Stile nur für die beiden KI-Seiten, die diese Datei
   laden (/ki-eventmanagement/, /en/ai-event-management/). In feature-page.css kosteten sie mobil auf
   /branchen/ und /en/customers/ den 95er-Wert in Lighthouse.
   - Hero-Bühne fp_ki_stage() (funktionen/_tpl/views/ki-stage.php, assets/js/ki-stage.js; Storyboard Martin
     18.10.2026). Grundzustand = Endzustand; .is-anim (nur ab 981 px) blendet Schritte ohne .is-on aus bzw. ab.
   - Architektur fp_ki_arch(), Anwendungswelten fp_ki_worlds(), Szenarien fp_ki_scenarios()
     (funktionen/_tpl/ki-blocks.php). Ebenen untereinander, Bewegung nur an den Verbindungen.
   - Hauptseite: vier Schritte als Reihe, zwei Ansichten nebeneinander, zentrierter CTA.
   Die Chat-Bausteine (.ks-chat, .ks-msg) und fp_ki_use() bleiben in feature-page.css (elf Funktionsseiten).
   ===================================================================== */
@keyframes ksIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes kaDot { 0% { top: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { top: calc(100% - 10px); opacity: 0; } }
.ks { position: relative; margin-top: clamp(36px, 5vw, 64px); text-align: left; }
.ks::before { content: ""; position: absolute; left: 50%; top: 48%; width: 680px; height: 680px; max-width: 100%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(117, 49, 174, .14), rgba(117, 49, 174, .03) 60%, transparent 74%); pointer-events: none; }
.ks-map { position: relative; display: grid; grid-template-columns: 27% 30% 27%; column-gap: 8%; min-height: 540px; }
.ks-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ks-line { fill: none; stroke: var(--fp-accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 10; opacity: .55; animation: fpIhubFlow 1.6s linear infinite; transition: opacity .4s ease; }
.ks-left { display: grid; grid-template-rows: minmax(0, 68fr) minmax(0, 32fr); gap: 14px; position: relative; }
.ks-chat-logos { display: flex; flex: none; }
.ks-chat-logos img { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--ds-color-white); box-shadow: 0 0 0 2px var(--ds-surface-default); }
.ks-chat-logos img + img { margin-left: -6px; }
.ks-input { display: flex; align-items: center; gap: 8px; margin: 0 12px 12px; padding: 8px 8px 8px 12px; border: 1px solid var(--fp-line); border-radius: 12px; font-size: 11.5px; color: var(--fp-muted); }
.ks-input span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ks-input i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--fp-accent); color: var(--ds-color-white); }
.ks-node {
  align-self: center; display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; list-style: none;
  border-radius: 14px; border: 1px solid var(--fp-line); background: var(--ds-surface-default); box-shadow: 0 10px 28px rgba(28, 20, 55, .08);
  transition: opacity .45s ease, filter .45s ease, box-shadow .35s ease, border-color .35s ease;
}
.ks-node i { flex: none; display: flex; }
.ks-node i .illuicon { width: 32px; height: 32px; }
.ks-node > span { min-width: 0; }
.ks-node b { display: block; font-size: 14px; }
.ks-node small { display: block; font-size: 11.5px; line-height: 1.4; color: var(--fp-muted); }
.ks-st { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 6px; background: var(--fp-accent-soft); color: var(--fp-accent); font-style: normal; font-size: 11px; font-family: var(--font-micro); font-weight: 600; }
.ks-st--live { background: var(--fp-ok-soft); color: var(--fp-ok); }
.ks-core { position: relative; align-self: center; display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 18px; border: 1px solid var(--fp-line); background: var(--ds-surface-default); box-shadow: 0 18px 48px rgba(28, 20, 55, .14); }
.ks-core-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ks-core-logo { display: block; width: 77px; height: auto; }
.ks-core-ev b { display: block; font-family: var(--font-display); font-size: 19px; }
.ks-core-ev small { display: block; font-size: 12px; color: var(--fp-muted); }
.ks-kpis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ks-kpis li { padding: 10px 6px; border-radius: 10px; background: var(--fp-soft); text-align: center; }
.ks-kpis b { display: block; font-size: 18px; font-family: var(--font-display); }
.ks-kpis small { display: block; font-size: 11px; color: var(--fp-muted); }
.ks-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 0; height: 148px; overflow: hidden; }
.ks-log li { flex: none; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-top: 1px dashed var(--fp-line); font-size: 12px; }
.ks-log span { color: var(--fp-faint); font-family: var(--font-micro); font-size: 11px; }
.ks-log b { font-weight: 600; }
.ks-out { list-style: none; margin: 0; padding: 0; display: grid; grid-template-rows: repeat(5, minmax(0, 1fr)); gap: 12px; position: relative; }
.ks-out .ks-node { align-self: stretch; align-items: center; }
.ks-out .ks-st { margin: 0 0 0 auto; }
.ks-out .ks-node > span { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; align-items: center; flex: 1; }
.ks-out .ks-node small { grid-column: 1; }
.ks-out .ks-node .ks-st { grid-column: 2; grid-row: 1 / span 2; }
[data-theme="dark"] .ks-core-logo { filter: brightness(0) invert(1); }
.ks-chat--solo .ks-msgs { justify-content: flex-start; overflow: visible; }
.ks-chat--solo .mx-call { flex: none; }
.ks-q { margin: 0 0 10px; font-size: 12.5px; font-weight: 600; color: var(--fp-accent); }
.ks.is-anim .ks-msg:not(.is-on), .ks.is-anim .ks-log li:not(.is-on) { display: none; }
.ks.is-anim .ks-msg.is-on, .ks.is-anim .ks-log li.is-on { animation: ksIn .45s ease both; }
.ks.is-anim .ks-node:not(.is-on) { opacity: .35; filter: grayscale(1); box-shadow: none; }
.ks.is-anim .ks-node.is-now { border-color: var(--fp-accent); box-shadow: 0 0 0 4px var(--fp-accent-soft), 0 14px 32px rgba(28, 20, 55, .12); }
.ks.is-anim .ks-line:not(.is-on) { opacity: .12; }
@media (max-width: 980px) {
  .ks-map { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; min-height: 0; }
}
@media (max-width: 980px) {
  .ks-lines { display: none; }
}
@media (max-width: 980px) {
  .ks-left { grid-template-rows: none; }
}
@media (max-width: 980px) {
  .ks-out { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .ks-log { height: auto; }
}
@media (max-width: 760px) {
  .ks-map, .ks-out { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .ks-log { display: none; }
}
@media (prefers-reduced-motion: reduce), (max-width: 760px) { .ks-line { animation: none; } }
.ks-chat-h .ks-chat-pill { margin-left: auto; padding: 3px 8px; border-radius: 999px; background: var(--fp-soft); color: var(--fp-ink); font-size: 11px; font-weight: 600; }
.ka { position: relative; margin: clamp(28px, 4vw, 48px) 0 0; display: flex; flex-direction: column; align-items: stretch; }
.ka::before { content: ""; position: absolute; left: 50%; top: 50%; width: 760px; height: 760px; max-width: 100%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(117, 49, 174, .12), transparent 72%); pointer-events: none; }
.ka-tier { position: relative; padding: 18px; border-radius: var(--fp-radius); border: 1px dashed var(--fp-line); background: var(--ds-surface-default); }
.ka-label { display: block; margin-bottom: 12px; font-family: var(--font-micro); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fp-faint); }
.ka-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 761px) { .ka-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 761px) { .ka-chips--ai { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1241px) { .ka-chips:not(.ka-chips--ai) { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.ka-chip { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 12px; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--fp-accent) 45%, transparent); background: var(--ds-surface-default); }
.ka-chip.is-std { border-style: solid; border-color: color-mix(in srgb, var(--fp-ok) 45%, transparent); }
.ka-chip b { font-size: 14px; overflow-wrap: anywhere; }
.ka-chip-head { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ka-logo { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #fff; border: 1px solid var(--fp-line); color: var(--fp-ink); }
.ka-logo img, .ka-logo svg { width: 20px; height: 20px; display: block; }
.ka-chip .ka-chip-head + small { margin-top: 2px; }
[data-theme="dark"] .ka-logo { background: #fff; border-color: transparent; color: #14161C; }
.ka-chip small { font-size: 11.5px; color: var(--fp-muted); }
.ka-chip .ka-st { align-self: flex-start; margin-top: 4px; }
.ka-st { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--fp-accent-soft); color: var(--fp-accent); font-size: 11px; font-family: var(--font-micro); font-weight: 600; white-space: nowrap; }
.ka-st--std { background: var(--fp-ok-soft); color: var(--fp-ok); }
.ka-link { position: relative; display: flex; justify-content: center; padding: 26px 0; }
.ka-link::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: repeating-linear-gradient(180deg, var(--fp-accent) 0 4px, transparent 4px 10px); opacity: .6; }
.ka-link i { position: absolute; left: 50%; top: 0; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--fp-accent); box-shadow: 0 0 0 4px var(--fp-accent-soft); opacity: 0; }
.ka-link span { position: relative; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--fp-line); background: var(--ds-surface-default); font-size: 12.5px; font-weight: 600; text-align: center; }
.ka-core { position: relative; padding: clamp(18px, 3vw, 28px); border-radius: var(--fp-radius); border: 1px solid var(--fp-accent); background: var(--ds-surface-default); box-shadow: 0 18px 48px rgba(28, 20, 55, .14); }
.ka-core-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 14px; }
.ka-core-head img { width: 96px; height: auto; }
.ka-core-head span { font-size: 14px; color: var(--fp-muted); }
.ka-mods { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ka-mods li { padding: 7px 12px; border-radius: 999px; background: var(--fp-accent-soft); color: var(--fp-accent); font-size: 13px; font-weight: 600; }
.ka figcaption { position: relative; margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--fp-muted); }
[data-theme="dark"] .ka-core-head img { filter: brightness(0) invert(1); }
@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  .ka-link i { animation: kaDot 2.4s linear infinite; }
}
@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  .ka-link:nth-of-type(odd) i { animation-direction: reverse; }
}

.kw-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: clamp(28px, 4vw, 44px); }
@media (min-width: 761px) { .kw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1241px) { .kw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kw-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--fp-radius); border: 1px solid var(--fp-line); background: var(--ds-surface-default); }
.kw-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kw-top i .illuicon { width: 34px; height: 34px; }
.kw-card h3 { margin: 4px 0 0; font-size: 19px; }
.kw-card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--fp-muted); }
.kw-card .kw-q { padding: 10px 12px; border-radius: 12px; border-bottom-right-radius: 4px; background: var(--fp-accent-soft); color: var(--fp-ink); font-size: 13.5px; }
.kw-card .kw-flow { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--fp-line); font-size: 13px; }
.kw-flow b { color: var(--fp-ink); }

.ksc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: clamp(28px, 4vw, 44px); }
@media (min-width: 981px) { .ksc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ksc-card { padding: 24px; border-radius: var(--fp-radius); border: 1px solid var(--fp-line); background: var(--ds-surface-default); }
.ksc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ksc-sys { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ksc-sys li { padding: 4px 10px; border-radius: 999px; background: var(--fp-soft); font-size: 12px; font-weight: 600; }
.ksc-card h3 { margin: 14px 0 12px; font-size: 19px; }
.ksc-steps { list-style: none; margin: 0; padding: 0; counter-reset: ksc; display: grid; gap: 10px; }
.ksc-steps li { counter-increment: ksc; display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 10px; font-size: 14px; line-height: 1.5; }
.ksc-steps li::before { content: counter(ksc); grid-row: 1 / span 2; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--fp-accent-soft); color: var(--fp-accent); font-size: 12px; font-weight: 700; }
.ksc-steps b { font-size: 12px; font-family: var(--font-micro); text-transform: uppercase; letter-spacing: .06em; color: var(--fp-faint); }
.ksc-steps span { color: var(--fp-muted); }
[data-theme="dark"] .ka-tier, [data-theme="dark"] .ka-chip, [data-theme="dark"] .ka-core, [data-theme="dark"] .ka-link span, [data-theme="dark"] .kw-card, [data-theme="dark"] .ksc-card { background: var(--ds-surface-default); }
.fp-steps-row { list-style: none; margin: clamp(24px, 3vw, 36px) 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 761px) { .fp-steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1241px) { .fp-steps-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fp-steps-row li { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--fp-line); background: var(--ds-surface-default); }
.fp-steps-row b { display: block; margin-bottom: 4px; font-size: 15px; }
.fp-steps-row span { font-size: 13.5px; line-height: 1.5; color: var(--fp-muted); }
.fp-split--top { align-items: start; }
.fp-actions--center { justify-content: center; margin-top: clamp(24px, 3vw, 36px); }
