/* KI-Check (11.11.2026, DM Hub 389) — Chat-Fenster, Ergebnis-Karte, Anfrage.
   Baut auf site.css auf (Farben, .btn, .form__*, .karte). Eigene Chip-Klasse .kc-chip, weil das
   Kontaktformular der Startseite ALLE .chip-Elemente per querySelectorAll anspricht. */

.kc{min-width:0}
.kc__fenster{background:var(--glas);border:1px solid var(--rand);border-radius:var(--r);overflow:hidden;
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.kc__kopf{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;
  padding:14px 18px;border-bottom:1px solid var(--rand);font-size:13px;color:var(--ink3)}
.kc__kopf-l{display:inline-flex;align-items:center;gap:9px;font-family:var(--ff-head);font-weight:700;
  font-size:15px;color:var(--ink);letter-spacing:-.01em}
.kc__led{width:8px;height:8px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 3px rgba(61,214,140,.16)}
.kc__kopf-r{font-size:12.5px}

.kc__verlauf{list-style:none;margin:0;padding:18px 16px 6px;display:flex;flex-direction:column;gap:10px}
.kc-msg{max-width:88%;padding:11px 14px;border-radius:16px;font-size:15px;line-height:1.55;
  overflow-wrap:break-word;min-width:0}
/* Frage-Blase sieht bewusst NICHT wie ein Eingabefeld aus (Daniel 11.11.: „das Kästchen schaut aus, als könnte man was eingeben“):
   gefüllt hellgrau, kein Rand, Sprechblasen-Ecke links unten — die Felder darunter sind dunkel mit Rand. */
.kc-msg--ki{align-self:flex-start;background:#23272C;border:1px solid transparent;color:var(--ink);
  border-bottom-left-radius:4px}
.kc-msg--du{align-self:flex-end;background:rgba(77,197,227,.14);border:1px solid rgba(77,197,227,.32);
  color:var(--ink);border-bottom-right-radius:6px}
.kc-msg--hinweis{border-color:rgba(245,179,65,.45)}
.kc-msg__p{margin:0}

.kc-schritte{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:8px}
.kc-schritt{display:flex;gap:9px;align-items:flex-start;font-size:14px;color:var(--ink3);line-height:1.45}
.kc-schritt span{min-width:0;overflow-wrap:anywhere}
.kc-schritt i{font-size:17px;flex:0 0 auto;margin-top:1px}
.kc-schritt--laeuft{color:var(--ink)}
.kc-schritt--laeuft i{color:var(--tl);animation:kc-dreh 1s linear infinite}
.kc-schritt--fertig{color:var(--ink2)}
.kc-schritt--fertig i{color:var(--ok)}
@keyframes kc-dreh{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.kc-schritt--laeuft i{animation:none}}

.kc__eingabe{padding:10px 16px 18px;border-top:1px solid transparent}
.kc__eingabe[hidden]{display:none}
.kc__label{display:block;font-size:13px;color:var(--ink2);margin:0 0 7px}
/* Zwei Felder je Schritt: nebeneinander, wenn je Feld ≥ 200 px Platz ist, sonst untereinander (Handy) */
.kc__felder{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px 14px}
.kc__gruppe{min-width:0}
.kc__feld{width:100%;min-width:0;font-size:16px}
.kc__hilfe{margin:6px 0 0;font-size:12.5px;color:var(--ink3);line-height:1.4}
.kc__aktion{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;margin-top:14px}
.kc__weiter{min-height:48px}
.kc__zurueck{padding:10px 2px;min-height:44px;background:none;border:0;color:var(--ink2);
  font:inherit;font-size:14.5px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.kc__zurueck:hover{color:var(--ink)}
.kc__zurueck[hidden],.kc__hinweis[hidden]{display:none}
.kc__hinweis{margin:12px 0 0;font-size:13px;color:var(--ink2);line-height:1.5}
.kc__hinweis a{color:var(--tl);text-decoration:underline;text-underline-offset:2px}
.kc__fehler{margin:10px 0 0}

/* Ergebnis */
.kc__ergebnis{margin-top:16px}
.kc__ergebnis[hidden],.kc__anfrage[hidden]{display:none}
.kc-erg{background:var(--glas);border:1px solid var(--rand);border-radius:var(--r);padding:22px 20px}
.kc-erg--rot{border-color:rgba(255,107,107,.45)}
.kc-erg--gelb{border-color:rgba(245,179,65,.45)}
.kc-erg--gruen{border-color:rgba(61,214,140,.45)}
.kc-erg__kopf{display:flex;gap:16px;align-items:center;margin-bottom:16px}
.kc-ampel{display:flex;flex-direction:column;gap:6px;padding:8px;border-radius:999px;background:#050607;
  border:1px solid var(--rand);flex:0 0 auto}
.kc-ampel__licht{width:16px;height:16px;border-radius:50%;opacity:.18}
.kc-ampel__licht--rot{background:#FF6B6B}
.kc-ampel__licht--gelb{background:#F5B341}
.kc-ampel__licht--gruen{background:#3DD68C}
.kc-ampel__licht.an{opacity:1;box-shadow:0 0 14px currentColor}
.kc-ampel__licht--rot.an{color:rgba(255,107,107,.7)}
.kc-ampel__licht--gelb.an{color:rgba(245,179,65,.7)}
.kc-ampel__licht--gruen.an{color:rgba(61,214,140,.7)}
.kc-erg__marke{margin:0 0 4px;font-size:13px;color:var(--ink3)}
.kc-erg--rot .kc-erg__marke{color:#FF8C8C}
.kc-erg--gelb .kc-erg__marke{color:#F5B341}
.kc-erg--gruen .kc-erg__marke{color:#3DD68C}
.kc-erg__titel{margin:0;font-family:var(--ff-head);font-weight:800;font-size:clamp(1.15rem,3.6vw,1.4rem);
  letter-spacing:-.02em;line-height:1.25}
.kc-erg__punkte{margin:0 0 6px;padding:0 0 0 22px;display:grid;gap:10px}
.kc-erg__punkte li{font-size:15.5px;line-height:1.6;color:var(--ink);padding-left:4px}
.kc-erg__punkte li::marker{color:var(--ink3);font-weight:700}
.kc-erg__mehr{margin-top:12px;border-top:1px solid var(--rand);padding-top:12px}
.kc-erg__mehr summary{cursor:pointer;font-size:14.5px;color:var(--ink2);min-height:32px;display:flex;align-items:center}
.kc-erg__mehr summary:hover{color:var(--ink)}
.kc-technik,.kc-quellen{list-style:none;margin:10px 0 2px;padding:0;display:grid;gap:8px}
.kc-technik__p{display:flex;gap:9px;align-items:flex-start;font-size:14px;line-height:1.45;color:var(--ink2)}
.kc-technik__p i{font-size:17px;flex:0 0 auto;margin-top:1px}
.kc-technik__p--ok i{color:var(--ok)}
.kc-technik__p--nein i{color:var(--err)}
.kc-quellen li{font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.kc-quellen a{color:var(--tl);text-decoration:underline;text-underline-offset:2px}
.kc-erg__fuss{margin:16px 0 0;font-size:12.5px;line-height:1.5;color:var(--ink3)}

/* Anfrage nach dem Ergebnis */
.kc__anfrage{margin-top:16px}
.kc-form{padding:22px 20px}
.kc-form:hover{transform:none}
.kc-chips{display:flex;flex-wrap:wrap;gap:9px}
.kc-chip{padding:10px 15px;min-height:44px;display:inline-flex;align-items:center;text-align:left;
  border-radius:var(--pill);border:1px solid var(--rand);background:transparent;color:var(--ink2);
  font:inherit;font-size:14.5px;line-height:1.3;cursor:pointer;transition:border-color .15s,background .15s,color .15s}
.kc-chip:hover{border-color:var(--rand-hell);color:var(--ink)}
.kc-chip.gewaehlt{background:var(--tl);border-color:var(--tl);color:var(--tl-ink);font-weight:600}
.kc-form__text{min-height:96px}
.kc-form__knopf{width:100%}
.kc-form__ok h3{margin:0 0 8px;font-family:var(--ff-head)}
.kc-form__ok p{margin:0;color:var(--ink2)}
.kc-form__ok[hidden]{display:none}
.kc-form form[hidden]{display:none}

/* Startseiten-Block unter dem Hero */
.kc-block{display:grid;gap:28px;align-items:start}
.kc-block__text .section-sub{margin-bottom:18px}
.kc-block__mehr{color:var(--tl);text-decoration:underline;text-underline-offset:3px;font-size:15px}
@media (min-width:960px){
  .kc-block{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:56px}
  .kc-block__text{position:sticky;top:110px}
}

@media (max-width:420px){
  .kc__verlauf{padding:14px 12px 4px}
  .kc__eingabe{padding:8px 12px 14px}
  .kc-msg{max-width:94%;font-size:14.5px}
  .kc-erg,.kc-form{padding:18px 16px}
}
