/* kiro-chat.css · KI-Chat, der live abspielt. JS: js/kiro-chat.js */
/* ---- KI-Assistent: zentriert, Chat läuft live ab ---- */
.kicker { color: var(--accent-text); font-weight: 500; margin-bottom: 1rem; }
.ki2__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.ki2__head { max-width: 34rem; }
.ki2 h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); letter-spacing: -.03em; }
.ki2__lead { margin: 1.2rem 0 0; color: var(--ink-soft); font-size: clamp(1.02rem, 1.8vw, 1.2rem); max-width: 40ch; }
.ki2__lead b { color: var(--ink); font-weight: 500; }
.chat2 { width: 100%; max-width: 460px; justify-self: end; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 1.1rem 1.1rem 1.4rem; box-shadow: 0 30px 60px -30px rgba(0,0,0,.25); }
.chat2__head { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--ink-soft); padding: 0 .3rem .9rem; border-bottom: 1px solid var(--line); }
.chat2__head i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.chat2__body { display: flex; flex-direction: column; gap: .6rem; padding-top: 1rem; height: 19rem; overflow: hidden; }
.b2 { max-width: 82%; padding: .7rem .95rem; border-radius: 18px 18px 18px 6px; background: var(--surface-2, var(--base)); border: 1px solid var(--line); font-size: .92rem; line-height: 1.45; align-self: flex-start;
  opacity: 0; transform: translateY(8px) scale(.98); transform-origin: left bottom; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.b2--user { align-self: flex-end; background: var(--accent); border-color: var(--accent); color: #fff; border-radius: 18px 18px 6px 18px; transform-origin: right bottom; }
.b2.on { opacity: 1; transform: none; }
.b2.gone { display: none; }
.b2--typing { display: none; gap: 4px; padding: .8rem .95rem; }
.b2--typing.on { display: inline-flex; }
.b2--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft); opacity: .4; animation: dot 1s infinite; }
.b2--typing span:nth-child(2) { animation-delay: .15s; } .b2--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.chat2__input { display: flex; align-items: center; gap: .5rem; margin-top: .9rem; padding: .35rem .35rem .35rem 1rem; border-radius: 999px; background: var(--base); border: 1px solid var(--line);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-base) var(--ease); }
/* Framer-Prinzip: das Eingabefeld ist das Objekt. Während getippt wird, leuchtet es ruhig in Kobalt auf (kein Neon) */
.chat2.typing .chat2__input { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent), 0 14px 30px -18px color-mix(in srgb, var(--accent) 70%, transparent); }
.chat2__field { flex: 1; min-width: 0; font-size: .92rem; white-space: nowrap; overflow: hidden; display: flex; align-items: center; }
.chat2__ph { color: var(--ink-soft); }
.chat2.typing .chat2__ph { display: none; }
.chat2__field .caret { width: 1.5px; height: 1.1em; margin: 0 0 0 1px; }
.chat2__send { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--ink-soft);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.chat2.typing .chat2__send { background: var(--accent); color: #fff; }
.chat2.sent .chat2__send { transform: scale(.88); }
.chat2__send svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ki2__points { list-style: none; display: grid; gap: .8rem; margin-top: clamp(1.4rem, 3vw, 2rem); }
.ki2__points li { display: flex; align-items: center; gap: .6rem; color: var(--ink-soft); }
.ki2__points svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@media (max-width: 860px) { .ki2__grid { grid-template-columns: 1fr; } .chat2 { justify-self: stretch; max-width: none; } .chat2__body { height: auto; min-height: 18.5rem; } }
/* Handy: Chat kompakter, damit er komplett auf den Bildschirm passt. Er spielt erst ab, wenn er ganz zu sehen ist (start.js) */
@media (max-width: 700px) {
  .ki2__grid { gap: 1.6rem; }
  .ki2__points { gap: .55rem; margin-top: 1.1rem; }
  .ki2__points li { font-size: .95rem; }
  .chat2 { padding: .9rem .9rem 1rem; border-radius: 20px; }
  .chat2__head { padding-bottom: .7rem; }
  .chat2__body { min-height: 15.5rem; gap: .5rem; padding-top: .8rem; }
  .b2 { font-size: .88rem; padding: .6rem .85rem; }
  .chat2__input { margin-top: .7rem; }
}
@media (prefers-reduced-motion: reduce) { .b2 { opacity: 1; transform: none; transition: none; } .b2--typing { display: none !important; } }
/* Ohne JS: Unterhaltung fertig zeigen statt leerem Chat */
html:not(.js) .b2 { opacity: 1; transform: none; }
html:not(.js) .b2--typing { display: none !important; }
