/* Assistent: kühles Grau-Blau, Fragen immer sichtbar */
#as-launch{position:fixed;right:18px;bottom:18px;z-index:2147483000;display:inline-flex;align-items:center;gap:8px;background:#34434f;color:#fff;border:0;border-radius:999px;padding:12px 18px 12px 14px;font:600 14px/1 "Noto Sans","Segoe UI",Roboto,Arial,sans-serif;box-shadow:0 8px 24px rgba(20,35,45,.28);cursor:pointer}
#as-launch svg{width:18px;height:18px;flex:0 0 auto}
#as-launch:focus-visible,#as-panel button:focus-visible,#as-panel input:focus-visible,#as-panel a:focus-visible{outline:3px solid #9fb6c6;outline-offset:2px}

#as-panel{position:fixed;right:18px;bottom:76px;width:380px;max-width:calc(100vw - 24px);height:min(680px,calc(100vh - 100px));display:none;flex-direction:column;background:#eef2f5;border:1px solid #c9d4dd;border-radius:18px;box-shadow:0 24px 60px rgba(20,35,45,.3);overflow:hidden;z-index:2147483000;font-family:"Noto Sans","Segoe UI",Roboto,Arial,sans-serif;color:#1f2b35}
#as-panel.open{display:flex}

.as-head{display:flex;align-items:center;gap:12px;padding:14px 16px;background:#34434f;color:#fff}
.as-avatar{width:38px;height:38px;border-radius:50%;background:#dbe4ec;color:#34434f;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;letter-spacing:.04em;flex:0 0 auto}
.as-title{font-weight:600;font-size:15px;line-height:1.2}
.as-sub{font-size:12px;opacity:.85;margin-top:3px}
#as-close{margin-left:auto;background:transparent;border:0;color:#fff;font-size:24px;line-height:1;cursor:pointer;padding:2px 6px;border-radius:8px}

/* Verlauf: scrollt, die Fragenliste darunter bleibt stehen */
.as-log{position:relative;flex:1 1 auto;min-height:120px;overflow-y:auto;padding:14px 14px 8px;display:flex;flex-direction:column;gap:12px}
.as-block{display:flex;flex-direction:column;gap:8px}
.as-row{display:flex;gap:8px;align-items:flex-end}
.as-row.me{justify-content:flex-end}
.as-mini{width:26px;height:26px;border-radius:50%;background:#34434f;color:#fff;font-size:9px;font-weight:700;letter-spacing:.03em;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.as-bubble{max-width:82%;padding:10px 13px;border-radius:16px;font-size:14.5px;line-height:1.5;background:#fff;border:1px solid #d3dde5;box-shadow:0 1px 2px rgba(20,35,45,.05)}
.as-bubble p{margin:0}
.as-bubble p+p{margin-top:6px}
.as-bubble.bot{border-bottom-left-radius:6px}
.as-bubble.me{background:#3e5566;color:#fff;border-color:#3e5566;border-bottom-right-radius:6px}

/* Fragenliste: immer sichtbar */
.as-faqs{flex:0 0 auto;background:#fff;border-top:1px solid #d3dde5;padding:10px 12px 10px}
.as-faqs-label{font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:#5f7383;margin:0 2px 8px}
.as-faq-list{display:flex;flex-direction:row;flex-wrap:wrap;gap:6px;max-height:96px;overflow-y:auto;padding-right:0}
.as-faq{display:inline-flex;align-items:center;width:auto;text-align:left;padding:6px 11px;border:1px solid #cbd7e0;border-radius:999px;background:#f6f8fa;color:#1f2b35;font-family:inherit;font-size:13px;line-height:1.25;cursor:pointer}
.as-faq:hover{background:#e3eaf0;border-color:#b6c6d3}

/* Antwortblock */
.as-label{margin:6px 0 -2px 34px;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#5f7383;font-weight:600}
.as-primary{display:block;margin:0 0 0 34px;padding:11px 14px;border-radius:12px;background:#3e5566;color:#fff;text-decoration:none;font-weight:600;font-size:14px;line-height:1.3;text-align:center}
.as-primary:hover{background:#4d6679}
.as-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 0 34px}
.as-cbtn{display:flex;flex-direction:column;gap:3px;padding:10px 12px;border-radius:12px;border:1px solid #cbd7e0;background:#fff;color:#1f2b35;text-decoration:none;min-width:0}
.as-cbtn:hover{background:#e8eef3}
.as-ct{font-weight:600;font-size:13.5px;line-height:1.2;color:#34434f}
.as-cs{font-size:12px;line-height:1.3;color:#5f7383;overflow-wrap:anywhere}

.as-typing{display:inline-flex;align-items:center;gap:4px;padding:12px 14px}
.as-typing span{width:6px;height:6px;border-radius:50%;background:#7d93a3;animation:as-bounce 1.2s infinite ease-in-out}
.as-typing span:nth-child(2){animation-delay:.15s}
.as-typing span:nth-child(3){animation-delay:.3s}
@keyframes as-bounce{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}

.as-note{padding:6px 14px 6px;font-size:11px;color:#5f7383;text-align:center;background:#fff}
.as-form{display:flex;gap:8px;align-items:center;padding:10px 12px 12px;background:#fff;border-top:1px solid #d3dde5}
.as-form input{flex:1;min-width:0;border:1px solid #aebfcc;border-radius:999px;padding:10px 14px;font-family:inherit;font-size:14.5px;color:#1f2b35;background:#f6f8fa}
.as-form button{width:42px;height:42px;border-radius:50%;border:0;background:#34434f;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.as-form button svg{width:18px;height:18px}

@media (max-width:520px){
  #as-panel{right:0;left:0;width:auto;max-width:none;bottom:0;height:86vh;border-radius:18px 18px 0 0}
  .as-head{padding:10px 14px}
  .as-avatar{width:32px;height:32px;font-size:12px}
  .as-faqs{padding:8px 10px}
  .as-faqs-label{margin:0 2px 6px}
  .as-faq-list{max-height:88px}
  .as-faq{width:auto;padding:6px 11px;font-size:13px;border-radius:999px}
  .as-faq::after{display:none}
  .as-log{padding:12px 12px 8px}
  #as-launch{right:12px;bottom:12px}
  .as-bubble{max-width:88%}
  .as-primary,.as-grid,.as-label{margin-left:0}
  .as-label{margin-left:34px}
}
@media (prefers-reduced-motion:reduce){.as-typing span{animation:none;opacity:.7}}

