/* =====================================================================
   ki-teams.css: Produktseite «KI-Agenten-Teams im Unternehmen».
   Ergaenzt stil.css, ueberschreibt nichts Globales. Alle Klassen kt-.
   Grundsatz: Ohne JavaScript ist alles sichtbar. Erst ki-teams.js setzt
   html.kt-an (nur ohne reduzierte Bewegung), dann werden Elemente fuer
   die Einblendung vorbereitet.
   ===================================================================== */

/* ---------- Held mit Canvas ------------------------------------------- */
.kt-held { position: relative; overflow: hidden; background: var(--nacht); color: var(--auf-nacht);
  padding: clamp(7.5rem, 14vw, 10rem) 0 clamp(4rem, 9vw, 7rem); isolation: isolate; }
.kt-held canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.kt-held::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(7,13,26,.92) 0%, rgba(7,13,26,.55) 55%, rgba(7,13,26,.15) 100%); }
@media (max-width: 52rem) { .kt-held::after { background: linear-gradient(180deg, rgba(7,13,26,.5) 0%, rgba(7,13,26,.88) 60%); } }
.kt-held .wo { font-size: .9rem; color: var(--auf-nacht-still); margin: 0 0 1.4rem; }
.kt-held .wo a { color: var(--auf-nacht-still); text-decoration: none; min-height: 2.75rem; display: inline-flex; align-items: center; }
.kt-held .wo a:hover { color: var(--cyan); }
.kt-kicker { display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 1.1rem; }
.kt-held h1 { font-family: var(--anzeige); font-weight: 400; font-size: clamp(2.6rem, 1.4rem + 5.4vw, 5.6rem); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 1.4rem; max-width: 15ch; color: var(--auf-nacht); }
.kt-held h1 em { font-style: italic; color: var(--cyan); }
.kt-held .kt-lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); max-width: 38rem; color: var(--auf-nacht-still); margin: 0 0 2rem; }
.kt-tun { display: flex; flex-wrap: wrap; gap: .75rem; }
.kt-fakten { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin-top: 2rem; font-size: .92rem; color: var(--auf-nacht-still); }
.kt-fakten b { color: var(--auf-nacht); font-weight: 600; }
.kt-held .w { display: inline-block; }

/* ---------- Abschnittskopf -------------------------------------------- */
.kt-kopf { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.kt-kopf h2 { font-family: var(--anzeige); font-weight: 400; font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); line-height: 1.06; margin: 0 0 1rem; }
.kt-kopf p { margin: 0; font-size: 1.08rem; }
.kt-dunkel { background: var(--nacht); color: var(--auf-nacht); }
.kt-dunkel .kt-kopf p, .kt-dunkel .still { color: var(--auf-nacht-still); }

/* ---------- Organigramm ----------------------------------------------- */
.kt-org { display: grid; gap: 2.2rem; justify-items: center; position: relative; }
.kt-org .reihe { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; position: relative; }
.kt-org .reihe + .reihe::before { content: ""; position: absolute; top: -2.2rem; left: 50%; width: 2px; height: 2.2rem; background: linear-gradient(var(--koenig), var(--cyan)); transform-origin: top; }
.kt-knoten { background: var(--nacht-2, #0C1628); border: 1px solid var(--nacht-linie); border-radius: 14px; padding: .85rem 1.1rem; text-align: center; min-width: 9.5rem; box-shadow: 0 24px 50px -36px rgba(41,89,196,.9); }
.kt-knoten b { display: block; font-size: 1rem; color: var(--auf-nacht); }
.kt-knoten span { display: block; font-size: .85rem; color: var(--auf-nacht-still); margin-top: .15rem; }
.kt-knoten--mensch { background: linear-gradient(180deg, #123063, #0C1628); border-color: var(--cyan); }
.kt-knoten--pruef { border-color: rgba(108,231,250,.55); }
@media (max-width: 30rem) { .kt-knoten { min-width: 0; flex: 1 1 42%; padding: .7rem .6rem; } .kt-knoten b { font-size: .92rem; } }
.kt-org-legende { margin-top: 2rem; display: grid; gap: .6rem; max-width: 44rem; margin-inline: auto; }
@media (min-width: 48rem) { .kt-org-legende { grid-template-columns: repeat(2, 1fr); } }
.kt-org-legende p { margin: 0; font-size: .97rem; color: var(--auf-nacht-still); }
.kt-org-legende b { color: var(--auf-nacht); }

/* ---------- Regeln (Karten) ------------------------------------------- */
.kt-regeln { display: grid; gap: 1rem; }
@media (min-width: 44rem) { .kt-regeln { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .kt-regeln { grid-template-columns: repeat(4, 1fr); } }
.kt-regel { background: #fff; border: 1px solid var(--papier-linie); border-radius: 14px; padding: 1.4rem 1.3rem 1.3rem; position: relative; overflow: hidden; }
.kt-regel .nr { font-family: var(--mono, ui-monospace, Consolas, monospace); font-size: .8rem; color: var(--akzent-text); letter-spacing: .08em; }
.kt-regel h3 { font-size: 1.15rem; margin: .5rem 0 .5rem; }
.kt-regel p { margin: 0; font-size: .97rem; color: var(--auf-papier-still); }
.kt-regel::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--koenig), var(--cyan)); transform-origin: left; }

/* ---------- Ablauf: Agent baut, Agent prueft, Mensch gibt frei ---------- */
.kt-fluss { display: grid; gap: .8rem; margin-top: 2.5rem; counter-reset: s; }
@media (min-width: 52rem) { .kt-fluss { grid-template-columns: repeat(4, 1fr); } }
.kt-schritt { border: 1px solid var(--papier-linie); border-radius: 12px; padding: 1rem 1.1rem; background: var(--papier); position: relative; }
.kt-schritt b { display: block; font-size: 1rem; }
.kt-schritt span { font-size: .9rem; color: var(--auf-papier-still); }
.kt-schritt--mensch { background: var(--tinte); color: #fff; border-color: var(--tinte); }
.kt-schritt--mensch span { color: #C9D4E5; }

/* ---------- Video ------------------------------------------------------ */
.kt-video { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--nacht-linie); background: #000; box-shadow: 0 40px 80px -50px rgba(41,89,196,.9); max-width: 64rem; margin-inline: auto; }
.kt-video video { display: block; width: 100%; height: auto; }
@media (max-width: 600px) { .kt-video { max-width: 22.5rem; } .kt-video video { aspect-ratio: 9 / 16; object-fit: cover; } }
.kt-video-liste { display: grid; gap: .5rem; margin-top: 1.5rem; padding: 0; list-style: none; max-width: 64rem; margin-inline: auto; }
@media (min-width: 48rem) { .kt-video-liste { grid-template-columns: repeat(5, 1fr); } }
.kt-video-liste li { font-size: .88rem; color: var(--auf-nacht-still); border-top: 2px solid var(--nacht-linie); padding-top: .5rem; }
.kt-video-liste li:first-child { border-top-color: var(--cyan); color: var(--auf-nacht); }

/* ---------- Inhalt ---------------------------------------------------- */
.kt-inhalt { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 56rem) { .kt-inhalt { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr); } }
.kt-ivz { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: k; }
.kt-ivz li { display: grid; grid-template-columns: 2.6rem 1fr; gap: .5rem; padding: .7rem 0; border-bottom: 1px solid var(--papier-linie); }
.kt-ivz li span { font-family: var(--mono, ui-monospace, Consolas, monospace); color: var(--akzent-text); font-size: .9rem; padding-top: .1rem; }
.kt-ivz li b { font-weight: 600; }
.kt-ivz li small { display: block; color: var(--auf-papier-still); font-size: .9rem; }
.kt-deckel { position: sticky; top: 6rem; }
.kt-deckel img { display: block; width: 100%; max-width: 20rem; height: auto; border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(7,13,26,.55); border: 1px solid rgba(7,13,26,.1); }
.kt-deckel p { font-size: .92rem; color: var(--auf-papier-still); margin: 1rem 0 0; }

/* ---------- Drei Stufen ------------------------------------------------ */
.kt-stufen { display: grid; gap: 1rem; }
@media (min-width: 60rem) { .kt-stufen { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.kt-stufe { background: var(--nacht-2, #0C1628); border: 1px solid var(--nacht-linie); border-radius: 16px; padding: 1.6rem 1.4rem; display: flex; flex-direction: column; gap: .9rem; }
.kt-stufe--stern { border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(108,231,250,.25), 0 40px 80px -50px rgba(108,231,250,.6); }
.kt-stufe .stufe { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); font-weight: 700; }
.kt-stufe h3 { font-size: 1.35rem; margin: 0; color: var(--auf-nacht); }
.kt-stufe .preis { font-family: var(--anzeige); font-size: 2.6rem; line-height: 1; color: var(--auf-nacht); }
.kt-stufe .preis small { display: block; font-family: var(--schrift); font-size: .85rem; color: var(--auf-nacht-still); margin-top: .45rem; }
.kt-stufe ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .95rem; color: var(--auf-nacht-still); flex: 1; }
.kt-stufe li { padding-left: 1.2rem; position: relative; }
.kt-stufe li::before { content: ""; position: absolute; left: 0; top: .62em; width: .45rem; height: .45rem; border-radius: 50%; background: var(--cyan); }
.kt-stufe .taste { justify-content: center; text-align: center; }
.kt-hinweis { font-size: .9rem; color: var(--auf-nacht-still); margin-top: 1.4rem; max-width: 52rem; }

/* ---------- Abgrenzung ------------------------------------------------- */
.kt-grenzen { display: grid; gap: 1rem; }
@media (min-width: 52rem) { .kt-grenzen { grid-template-columns: repeat(3, 1fr); } }
.kt-grenze { border-left: 3px solid var(--akzent-text); padding: .2rem 0 .2rem 1.1rem; }
.kt-grenze h3 { font-size: 1.1rem; margin: 0 0 .6rem; }
.kt-grenze ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; font-size: .96rem; color: var(--auf-papier-still); }


/* Kartentitel in der Grotesk, nicht in der Anzeigeschrift von stil.css */
.kt-regel h3, .kt-stufe h3, .kt-grenze h3, .kt-schritt b { font-family: var(--schrift); font-weight: 700; letter-spacing: 0; }
.kt-stufe h3 { font-size: 1.3rem; }
