/* ============================================================================
   ACM Markt — Verkaufs-Chatbot Widget ("Technik & Vertrauen")
   ========================================================================== */
:root{
	--acm-petrol:#0E3A40;--acm-petrol-700:#0B2D32;--acm-ice:#E8F1F2;--acm-signal:#18B6A6;--acm-line:#D8E3E4;
}

.acm-chat-fab{
	position:fixed;right:24px;bottom:24px;z-index:99990;width:60px;height:60px;border-radius:50%;
	background:var(--acm-petrol);color:#fff;border:0;cursor:pointer;display:flex;align-items:center;justify-content:center;
	box-shadow:0 10px 30px -8px rgba(14,58,64,.55);transition:transform .18s ease,background .2s ease;
}
.acm-chat-fab:hover{background:var(--acm-petrol-700);transform:translateY(-3px);}
.acm-chat-fab::after{content:"";position:absolute;top:12px;right:12px;width:11px;height:11px;border-radius:50%;background:var(--acm-signal);border:2px solid var(--acm-petrol);}
.acm-chat-fab.is-hidden{display:none;}

.acm-chat-panel{
	position:fixed;right:24px;bottom:24px;z-index:99991;width:380px;max-width:calc(100vw - 32px);height:560px;max-height:calc(100vh - 48px);
	background:#fff;border-radius:10px;overflow:hidden;display:none;flex-direction:column;
	box-shadow:0 24px 60px -16px rgba(14,58,64,.5);font-family:'Inter',-apple-system,sans-serif;
}
.acm-chat-panel.is-open{display:flex;animation:acm-chat-in .22s ease;}
@keyframes acm-chat-in{from{opacity:0;transform:translateY(14px);}to{opacity:1;transform:none;}}

.acm-chat-head{background:var(--acm-petrol);color:#fff;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;}
.acm-chat-head__id{display:flex;align-items:center;gap:11px;}
.acm-chat-avatar{width:38px;height:38px;border-radius:50%;background:var(--acm-signal);color:var(--acm-petrol-700);display:grid;place-items:center;font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:1.1rem;}
.acm-chat-head__id strong{font-family:'Space Grotesk',sans-serif;font-weight:600;font-size:1rem;display:block;line-height:1.1;}
.acm-chat-head__id span{font-size:.78rem;opacity:.8;}
.acm-chat-close{background:transparent;border:0;color:#fff;font-size:1.7rem;line-height:1;cursor:pointer;opacity:.85;padding:0 4px;}
.acm-chat-close:hover{opacity:1;}

.acm-chat-body{flex:1;overflow-y:auto;padding:18px 16px;background:var(--acm-ice);display:flex;flex-direction:column;gap:10px;}
.acm-chat-msg{max-width:85%;padding:11px 14px;border-radius:14px;font-size:.92rem;line-height:1.5;word-wrap:break-word;}
.acm-chat-msg--assistant{align-self:flex-start;background:#fff;color:#1a2426;border:1px solid var(--acm-line);border-bottom-left-radius:4px;}
.acm-chat-msg--user{align-self:flex-end;background:var(--acm-petrol);color:#fff;border-bottom-right-radius:4px;}
.acm-chat-msg a{color:var(--acm-signal);font-weight:600;text-decoration:underline;}
.acm-chat-msg--user a{color:#fff;}

.acm-chat-typing{display:flex;gap:5px;align-items:center;}
.acm-chat-typing span{width:7px;height:7px;border-radius:50%;background:var(--acm-signal);opacity:.5;animation:acm-blink 1s infinite;}
.acm-chat-typing span:nth-child(2){animation-delay:.2s;}
.acm-chat-typing span:nth-child(3){animation-delay:.4s;}
@keyframes acm-blink{0%,100%{opacity:.3;}50%{opacity:1;}}

.acm-chat-input{display:flex;gap:8px;padding:12px;border-top:1px solid var(--acm-line);background:#fff;}
.acm-chat-input input{flex:1;border:1px solid var(--acm-line);border-radius:24px;padding:11px 16px;font-size:.92rem;font-family:'Inter',sans-serif;outline:none;}
.acm-chat-input input:focus{border-color:var(--acm-signal);box-shadow:0 0 0 3px rgba(24,182,166,.12);}
.acm-chat-input button{flex:none;width:44px;height:44px;border-radius:50%;border:0;background:var(--acm-petrol);color:#fff;cursor:pointer;display:grid;place-items:center;transition:background .2s;}
.acm-chat-input button:hover{background:var(--acm-petrol-700);}

@media(max-width:480px){
	.acm-chat-panel{right:8px;bottom:8px;width:calc(100vw - 16px);height:calc(100vh - 16px);max-height:none;border-radius:10px;}
	.acm-chat-fab{right:16px;bottom:16px;}
}
