#apbot-btn{position:fixed;right:20px;bottom:20px;z-index:99999;background:#1A3A5C;color:#fff;border:0;border-radius:999px;padding:12px 18px;font:600 14px/1 'DM Sans',Inter,system-ui,sans-serif;box-shadow:0 6px 20px rgba(15,34,64,.25);cursor:pointer}
#apbot-btn:hover{background:#0F2240}
#apbot-panel{position:fixed;right:20px;bottom:76px;z-index:99999;width:380px;max-width:calc(100vw - 32px);height:560px;max-height:calc(100vh - 110px);background:#fff;border:1px solid #E2E8F0;border-radius:14px;box-shadow:0 12px 40px rgba(15,34,64,.2);display:none;flex-direction:column;overflow:hidden;font:14px/1.5 Inter,system-ui,sans-serif;color:#1A2332}
#apbot-panel.open{display:flex}
.apbot-head{background:#1A3A5C;color:#fff;padding:12px 14px;display:flex;justify-content:space-between;align-items:center}
.apbot-head b{font:600 15px 'DM Sans',Inter,sans-serif}
.apbot-head button{background:none;border:0;color:#fff;font-size:20px;cursor:pointer;line-height:1}
.apbot-note{background:#F1F5F9;color:#64748B;font-size:11.5px;padding:8px 14px;border-bottom:1px solid #E2E8F0}
.apbot-log{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px;background:#F8FAFB}
.apbot-msg{max-width:88%;padding:9px 12px;border-radius:12px;white-space:pre-wrap;word-wrap:break-word}
.apbot-msg.user{align-self:flex-end;background:#1A3A5C;color:#fff;border-bottom-right-radius:4px}
.apbot-msg.assistant{align-self:flex-start;background:#fff;border:1px solid #E2E8F0;border-bottom-left-radius:4px}
.apbot-msg.err{align-self:center;background:#fef2f2;color:#c62828;font-size:12.5px}
.apbot-form{display:flex;gap:8px;padding:10px;border-top:1px solid #E2E8F0;background:#fff}
.apbot-form textarea{flex:1;resize:none;border:1px solid #E2E8F0;border-radius:8px;padding:8px 10px;font:inherit;height:40px;max-height:120px}
.apbot-form button{background:#1A3A5C;color:#fff;border:0;border-radius:8px;padding:0 14px;font-weight:600;cursor:pointer}
.apbot-form button:disabled{opacity:.5;cursor:default}

/* v1.2: Mobil als Vollbild, kein iOS-Zoom beim Tippen */
.apbot-form textarea{font-size:16px}
body.apbot-lock{overflow:hidden}
@media (max-width:600px){
#apbot-btn{right:12px;bottom:calc(12px + env(safe-area-inset-bottom));padding:11px 15px;font-size:13px}
#apbot-btn.hide{display:none}
#apbot-panel{inset:0;width:100%;max-width:none;height:100%;height:100dvh;max-height:none;border:0;border-radius:0;right:0;left:0;bottom:0;top:0}
.apbot-head{padding-top:calc(12px + env(safe-area-inset-top))}
.apbot-head button{font-size:28px;padding:4px 8px}
.apbot-form{padding-bottom:calc(10px + env(safe-area-inset-bottom))}
.apbot-log{overscroll-behavior:contain}
}
