/* TD365 KI-Chat-Assistentin (2026-10-27) */
.td365chat{position:fixed;right:18px;bottom:18px;z-index:1040;font-family:inherit;color:#242622}
.td365chat__launcher{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #ddded5;border-radius:999px;padding:5px 16px 5px 5px;box-shadow:0 8px 24px rgba(36,38,34,.18);cursor:pointer;font-size:13px;color:#242622;line-height:1.2;animation:td365chat-in .5s ease-out both}
.td365chat__launcher:hover{border-color:#c94420}
.td365chat__launcher:focus-visible,.td365chat__close:focus-visible,.td365chat__send:focus-visible{outline:2px solid #c94420;outline-offset:2px}
.td365chat__hint strong{color:#ad3515}
.td365chat__avatar{border-radius:50%;flex:0 0 auto;display:block}
.td365chat.is-open .td365chat__launcher{display:none}
.td365chat__panel{width:min(370px,calc(100vw - 24px));height:min(540px,calc(100vh - 110px));background:#fff;border:1px solid #ddded5;border-radius:10px;box-shadow:0 16px 40px rgba(36,38,34,.25);display:flex;flex-direction:column;overflow:hidden}
.td365chat__panel[hidden]{display:none}
.td365chat__head{display:flex;align-items:center;gap:10px;padding:10px 12px;background:#ad3515;color:#fff}
.td365chat__title{margin:0;font-size:15px;font-weight:700;color:#fff;line-height:1.2}
.td365chat__sub{margin:0;font-size:11px;color:#fff;opacity:.9}
.td365chat__close{margin-left:auto;background:transparent;border:0;color:#fff;font-size:26px;line-height:1;cursor:pointer;padding:0 4px}
.td365chat__log{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:8px;background:#f7f5f0}
.td365chat__msg{max-width:85%;padding:8px 11px;border-radius:10px;font-size:13px;line-height:1.45;white-space:pre-wrap;word-wrap:break-word}
.td365chat__msg--bot{background:#fff;border:1px solid #e4e6de;align-self:flex-start}
.td365chat__msg--user{background:#242622;color:#fff;align-self:flex-end}
.td365chat__msg a{color:#ad3515;text-decoration:underline;font-weight:600}
.td365chat__msg.is-typing{color:#686d62;animation:td365chat-blink 1s ease-in-out infinite}
.td365chat__form{display:flex;gap:6px;padding:8px;border-top:1px solid #e4e6de;background:#fff}
.td365chat__input{flex:1;resize:none;border:1px solid #cad1c1;border-radius:6px;padding:8px 10px;font:inherit;font-size:16px;min-height:38px;max-height:110px;color:#242622}
.td365chat__send{background:#ad3515;color:#fff;border:0;border-radius:6px;width:42px;font-size:16px;cursor:pointer}
.td365chat__send:disabled{opacity:.5;cursor:wait}
.td365chat__note{margin:0;padding:6px 10px 8px;font-size:11px;line-height:1.4;color:#686d62;background:#fff}
.td365chat__note a{color:#686d62;text-decoration:underline}
@keyframes td365chat-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes td365chat-blink{50%{opacity:.35}}
@media(max-width:767px){.td365chat{right:10px;bottom:10px}.td365chat__hint{display:none}.td365chat__launcher{padding:4px}.td365chat__panel{height:min(520px,calc(100vh - 90px))}}
@media(prefers-reduced-motion:reduce){.td365chat__launcher,.td365chat__msg.is-typing{animation:none}}
