/*! konrad-griesser.de – KI-Assistent (Chat-Fenster unten rechts)
   Design & Entwicklung: Konrad Griesser · Digitalmarketing Griesser · konrad-griesser.de · seo-genie.de */
.kgc-knopf { position: fixed; right: 18px; bottom: 18px; z-index: 2147482000; display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: #0a0a0a; color: #fff; font: 700 14px/1 "Manrope", "Segoe UI", system-ui, sans-serif; cursor: pointer; box-shadow: 0 18px 40px -16px rgba(0,0,0,.6); transition: transform .25s cubic-bezier(.22,.8,.2,1), background .25s; }
.kgc-knopf:hover { transform: translateY(-2px); background: #e40f1a; }
.kgc-knopf:focus-visible { outline: 3px solid #e40f1a; outline-offset: 3px; }
.kgc-knopf i { width: 28px; height: 28px; border-radius: 50%; background: #e40f1a; display: grid; place-items: center; }
.kgc-knopf i svg { width: 16px; height: 16px; }
.kgc-knopf .kgc-punkt { width: 8px; height: 8px; border-radius: 50%; background: #5ee28a; box-shadow: 0 0 0 0 rgba(94,226,138,.6); animation: kgcPuls 2.4s infinite; }
@keyframes kgcPuls { 70% { box-shadow: 0 0 0 10px rgba(94,226,138,0); } 100% { box-shadow: 0 0 0 0 rgba(94,226,138,0); } }
body.kgc-offen .kgc-knopf { display: none; }

.kgc { position: fixed; right: 18px; bottom: 18px; z-index: 2147482001; width: min(400px, calc(100vw - 24px)); height: min(640px, calc(100vh - 36px)); display: none; flex-direction: column; background: #0f1014; color: #f4f2ee; border: 1px solid rgba(255,255,255,.1); border-radius: 22px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.8); overflow: hidden; font: 400 15px/1.5 "Inter", "Segoe UI", system-ui, sans-serif; }
.kgc.ist-offen { display: flex; animation: kgcAuf .35s cubic-bezier(.22,.8,.2,1); }
@keyframes kgcAuf { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.kgc-kopf { display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, #16171d, #0f1014); }
.kgc-kopf img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: top; background: #fff; flex: none; }
.kgc-kopf b { display: block; font: 700 15px/1.2 "Manrope", "Segoe UI", system-ui, sans-serif; }
.kgc-kopf small { display: block; font-size: 11.5px; color: #a7a5ad; margin-top: 2px; }
.kgc-kopf small i { font-style: normal; display: inline-block; padding: 1px 6px; border-radius: 999px; background: rgba(228,15,26,.18); color: #ff5b62; font-weight: 700; letter-spacing: .04em; margin-right: 6px; }
.kgc-zu { margin-left: auto; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.06); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.kgc-zu:hover { background: rgba(255,255,255,.14); }
.kgc-zu:focus-visible { outline: 2px solid #fff; }

.kgc-verlauf { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.kgc-m { max-width: 88%; padding: 10px 14px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.kgc-m.bot { align-self: flex-start; background: #1b1c23; border-bottom-left-radius: 6px; }
.kgc-m.nutzer { align-self: flex-end; background: #e40f1a; color: #fff; border-bottom-right-radius: 6px; }
.kgc-m a { color: #ffb3b7; text-decoration: underline; text-underline-offset: 3px; }
.kgc-m.nutzer a { color: #fff; }
.kgc-m.tipp { color: #a7a5ad; font-size: 13.5px; background: transparent; border: 1px dashed rgba(255,255,255,.14); }
.kgc-m .kgc-zeile { display: block; }
.kgc-tippt { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; background: #1b1c23; border-radius: 16px; }
.kgc-tippt i { width: 7px; height: 7px; border-radius: 50%; background: #8a8890; animation: kgcTipp 1.2s infinite; }
.kgc-tippt i:nth-child(2) { animation-delay: .2s; } .kgc-tippt i:nth-child(3) { animation-delay: .4s; }
@keyframes kgcTipp { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

.kgc-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.kgc-chips button, .kgc-chips a { border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); color: #f4f2ee; font: 600 12.5px/1 inherit; padding: 9px 12px; border-radius: 999px; cursor: pointer; text-decoration: none; min-height: 34px; transition: border-color .2s, background .2s; }
.kgc-chips button:hover, .kgc-chips a:hover { border-color: #ff5b62; background: rgba(228,15,26,.12); }

.kgc-hinweis { margin: 6px 14px 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); font-size: 12.5px; color: #c9c7cf; }
.kgc-hinweis a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.kgc-hinweis button { display: block; margin-top: 10px; min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: #e40f1a; color: #fff; font: 700 13px/1 "Manrope", "Segoe UI", system-ui, sans-serif; cursor: pointer; }

.kgc-form { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid rgba(255,255,255,.08); background: #0f1014; }
.kgc-form textarea { flex: 1; resize: none; min-height: 46px; max-height: 120px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.14); background: #16171d; color: #fff; font: inherit; line-height: 1.4; }
.kgc-form textarea:focus { outline: none; border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.kgc-form textarea::placeholder { color: #7c7a84; }
.kgc-form button { width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%; background: #e40f1a; color: #fff; cursor: pointer; display: grid; place-items: center; transition: transform .2s, background .2s; }
.kgc-form button:hover { transform: translateY(-1px); background: #ff2a35; }
.kgc-form button:disabled { opacity: .5; cursor: default; transform: none; }
.kgc-form button svg { width: 18px; height: 18px; }
.kgc-fuss { padding: 0 14px 10px; font-size: 11px; color: #7c7a84; text-align: center; }
.kgc-fuss a { color: #a7a5ad; }

@media (max-width: 600px) {
  .kgc { right: 0; bottom: 0; width: 100vw; height: min(88vh, 100dvh); border-radius: 22px 22px 0 0; }
  .kgc-knopf { right: 12px; bottom: 12px; }
  .kgc-knopf span { display: none; }
  .kgc-knopf { padding: 0 13px; }
}
@media (prefers-reduced-motion: reduce) { .kgc.ist-offen, .kgc-knopf .kgc-punkt, .kgc-tippt i { animation: none; } }
