/* AISIGNO Assistent – Chat auf der Startseite (chat.js). Farben und Schrift aus site.css. Nie letter-spacing. */
.aichat-launch{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));z-index:70;display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:0 18px 0 14px;border:0;border-radius:var(--r-btn);background:var(--ink);color:var(--lime-hi);font-family:var(--font);font-size:16px;font-weight:700;line-height:1;cursor:pointer;box-shadow:0 10px 30px #10171040;transition:transform .25s var(--ease),background .2s}
.aichat-launch:hover{background:#1d281c;transform:translateY(-2px)}
.aichat-launch:focus-visible,.aichat-ico:focus-visible,.aichat-send:focus-visible,.aichat-chip:focus-visible{outline:2px solid var(--lime-hi);outline-offset:2px}
.aichat-launch svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
.aichat-launch.is-open{display:none}

.aichat{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));z-index:91;display:flex;flex-direction:column;width:min(384px,calc(100vw - 24px));height:min(580px,calc(100vh - 110px));height:min(580px,calc(100dvh - 110px));border-radius:18px;background:#0d100f;color:var(--on-dark);font-family:var(--font);font-size:15.5px;line-height:1.45;box-shadow:0 30px 80px #0008,0 0 0 1px #ffffff14;overflow:hidden;opacity:0;visibility:hidden;translate:0 12px;transition:opacity .22s,translate .22s var(--ease),visibility 0s .22s}
.aichat.is-open{opacity:1;visibility:visible;translate:0 0;transition:opacity .22s,translate .22s var(--ease)}
.aichat-head{display:flex;align-items:center;gap:4px;padding:10px 10px 10px 18px;border-bottom:1px solid var(--line-dark)}
.aichat-head strong{flex:1;font-size:16px;font-weight:700;color:#fff}
.aichat-ico{display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:var(--r-btn);background:none;color:var(--on-dark-2);cursor:pointer;transition:background .2s,color .2s}
.aichat-ico:hover{background:#ffffff12;color:#fff}
.aichat-ico svg,.aichat-send svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.aichat-list{flex:1;display:flex;flex-direction:column;gap:10px;padding:16px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ffffff30 transparent}
.aichat-msg{max-width:86%;padding:10px 14px;border-radius:14px;overflow-wrap:anywhere}
.aichat-msg--ai{align-self:flex-start;background:#1c241c;border-bottom-left-radius:4px}
.aichat-msg--user{align-self:flex-end;background:var(--lime-hi);color:var(--ink);font-weight:500;border-bottom-right-radius:4px}
.aichat-msg a{color:var(--lime-hi);text-decoration:underline;text-underline-offset:2px}
.aichat-msg--user a{color:inherit}
.aichat-wait{display:flex;gap:5px;padding:14px}
.aichat-wait i{width:6px;height:6px;border-radius:50%;background:var(--on-dark-2);animation:aichat-dot 1s infinite ease-in-out}
.aichat-wait i:nth-child(2){animation-delay:.15s}.aichat-wait i:nth-child(3){animation-delay:.3s}
@keyframes aichat-dot{0%,60%,100%{opacity:.3;transform:none}30%{opacity:1;transform:translateY(-3px)}}
.aichat-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:2px}
.aichat-chip{padding:8px 12px;border:1px solid #ffffff2e;border-radius:var(--r-btn);background:none;color:var(--on-dark);font-size:14.5px;text-align:left;cursor:pointer;transition:background .2s,border-color .2s}
.aichat-chip:hover{background:#ffffff10;border-color:#ffffff66}
.aichat-note{align-self:stretch;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:10px 12px;border:1px solid #ccff0040;border-radius:12px;background:#ccff000f;font-size:14.5px;color:var(--on-dark)}
.aichat-note-btn{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border-radius:var(--r-btn);background:var(--lime-hi);color:var(--ink);font-weight:700;text-decoration:none}

.aichat-form{display:flex;align-items:flex-end;gap:8px;margin:0 12px;padding:6px 6px 6px 14px;border:1px solid #ffffff26;border-radius:12px;background:#151a15;transition:border-color .2s}
.aichat-form:focus-within{border-color:var(--lime-hi)}
/* 16 px: darunter zoomt Safari auf dem iPhone beim Antippen ins Feld. */
.aichat-input{flex:1;min-height:36px;max-height:120px;padding:7px 0;border:0;outline:0;resize:none;background:none;color:#fff;font-size:16px;line-height:1.4}
.aichat-input::placeholder{color:#ffffff66}
.aichat-send{display:grid;place-items:center;flex:none;width:36px;height:36px;padding:0;border:0;border-radius:var(--r-btn);background:var(--lime-hi);color:var(--ink);cursor:pointer;transition:opacity .2s}
.aichat-send:disabled{opacity:.4;cursor:default}
.aichat-hint{margin:8px 16px 12px;font-size:12.5px;line-height:1.35;color:#ffffff80}
.aichat-hint a{color:inherit;text-decoration:underline}

@media (max-width:560px){
 .aichat-launch{padding:0 14px}.aichat-launch span{display:none}
 .aichat{right:12px;bottom:12px;height:min(580px,calc(100vh - 90px));height:min(580px,calc(100dvh - 90px))}
}
@media (prefers-reduced-motion:reduce){.aichat,.aichat-launch{transition:none}.aichat-wait i{animation:none;opacity:.7}}
.aichat [hidden]{display:none!important}
