/* MB Kira – Chat-Fenster. Farben über --mbk-farbe / --mbk-akzent (Einstellungen). */
.mbk{--mbk-farbe:#16233F;--mbk-akzent:#E9915B;--mbk-hell:#F7F4EF;--mbk-linie:#E4DDD2;--mbk-text:#1E2433;font-family:inherit;color:var(--mbk-text)}
.mbk *,.mbk *::before,.mbk *::after{box-sizing:border-box}
.mbk-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Theme-Knopfstile neutralisieren (z. B. Elementor-Kit „button“) */
.mbk button.mbk-knopf,.mbk button.mbk-ikon,.mbk button.mbk-senden,.mbk button.mbk-chip,.mbk button.mbk-btn,.mbk-frage button.mbk-chip,.mbk-frage .mbk-frage .mbk-frage__zeile button{margin:0;padding:0;min-height:0;box-shadow:none;text-transform:none;letter-spacing:normal;font-family:inherit;text-decoration:none}

.mbk svg,.mbk-frage svg{flex:0 0 auto;max-width:none}
.mbk button.mbk-ikon svg,.mbk button.mbk-senden svg,.mbk-frage .mbk-frage__zeile button svg{width:18px;height:18px}

/* Knopf */
.mbk button.mbk-knopf{position:fixed;right:24px;bottom:24px;z-index:9990;display:flex;align-items:center;gap:12px;background:var(--mbk-farbe);color:#fff;border:0;border-radius:999px;padding:7px 22px 7px 7px;box-shadow:0 18px 44px rgba(14,24,48,.32);font:inherit;cursor:pointer;transition:transform .15s}
.mbk button.mbk-knopf:hover{transform:translateY(-2px)}
.mbk-knopf:focus-visible,.mbk-ikon:focus-visible,.mbk-senden:focus-visible,.mbk-chip:focus-visible{outline:3px solid var(--mbk-akzent);outline-offset:2px}
.mbk-knopf__text{display:flex;flex-direction:column;line-height:1.2;text-align:left}
.mbk-knopf__text strong{font-size:15px}
.mbk-knopf__text span{font-size:13px;opacity:.75}
.mbk.mbk--offen button.mbk-knopf{display:none}
.mbk-knopf__chat{position:relative;display:inline-flex;flex:0 0 auto;width:48px;height:48px;border-radius:50%;background:var(--mbk-akzent);color:var(--mbk-farbe);align-items:center;justify-content:center}
.mbk .mbk-knopf__chat svg{width:32px;height:32px}
.mbk-knopf__kurz{display:none}
.mbk-ava{position:relative;flex:0 0 auto;display:inline-flex;width:44px;height:44px;border-radius:50%;background:var(--mbk-akzent);align-items:center;justify-content:center;overflow:visible}
.mbk-kopf .mbk-ava{width:40px;height:40px}
.mbk-ava img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}
.mbk-ava__init{font-weight:700;font-size:18px;color:var(--mbk-farbe)}
.mbk-online{position:absolute;right:0;bottom:1px;width:11px;height:11px;border-radius:50%;background:#3BB273;border:2px solid var(--mbk-farbe)}

/* Fenster */
.mbk-fenster{position:fixed;right:24px;bottom:24px;z-index:9991;width:min(410px,calc(100vw - 32px));height:min(640px,calc(100vh - 48px));background:#fff;border-radius:26px;box-shadow:0 30px 80px rgba(14,24,48,.35);display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--mbk-linie)}
.mbk-fenster[hidden]{display:none}
.mbk-kopf{display:flex;align-items:center;gap:12px;padding:14px 14px 14px 16px;background:var(--mbk-farbe);color:#fff}
.mbk-kopf__name{flex:1;display:flex;flex-direction:column;line-height:1.2}
.mbk-kopf__name strong{font-size:17px}
.mbk-kopf__name span{font-size:13px;opacity:.75}
.mbk button.mbk-ikon{width:38px;height:38px;border-radius:50%;border:0;background:rgba(255,255,255,.12);color:#fff;font:inherit;font-size:22px;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.mbk button.mbk-ikon:hover{background:rgba(255,255,255,.22)}

.mbk-log{flex:1;overflow-y:auto;padding:16px;background:var(--mbk-hell);display:flex;flex-direction:column;gap:12px;overscroll-behavior:contain}
.mbk-msg{display:flex;flex-direction:column;gap:8px}
.mbk-msg--user{align-items:flex-end}
.mbk-blase{max-width:88%;padding:11px 15px;font-size:15px;line-height:1.55;border-radius:18px}
.mbk-blase p{margin:0}
.mbk-blase p+p,.mbk-blase p+ul,.mbk-blase ul+p{margin-top:8px}
.mbk-blase ul{margin:6px 0 0;padding-left:20px}
.mbk-blase li{margin:2px 0}
.mbk-blase--kira{align-self:flex-start;background:#fff;border-bottom-left-radius:5px;box-shadow:0 1px 2px rgba(14,24,48,.06)}
.mbk-blase--user{background:var(--mbk-farbe);color:#fff;border-bottom-right-radius:5px}
.mbk-blase a{color:inherit;text-decoration:underline;text-decoration-color:var(--mbk-akzent);text-decoration-thickness:2px;text-underline-offset:2px;font-weight:600}

.mbk-chips{display:flex;flex-wrap:wrap;gap:8px}
.mbk button.mbk-chip,.mbk-frage button.mbk-chip{border:1px solid var(--mbk-linie);background:#fff;border-radius:999px;padding:8px 13px;font:inherit;font-size:14px;color:var(--mbk-farbe);cursor:pointer;text-align:left}
.mbk button.mbk-chip:hover,.mbk-frage button.mbk-chip:hover{border-color:var(--mbk-akzent)}

/* Karten */
.mbk-karten{display:flex;flex-direction:column;gap:8px;width:100%}
.mbk-karte{display:flex;gap:12px;align-items:center;background:#fff;border:1px solid var(--mbk-linie);border-radius:16px;padding:10px;text-decoration:none;color:inherit;transition:border-color .15s}
a.mbk-karte:hover{border-color:var(--mbk-akzent)}
.mbk-karte img{width:72px;height:72px;object-fit:contain;border-radius:10px;background:var(--mbk-hell);flex:0 0 auto}
.mbk-karte__text{display:flex;flex-direction:column;gap:2px;font-size:13px;line-height:1.4;min-width:0}
.mbk-karte__text strong{font-size:14px}
.mbk-karte__preis{font-weight:700;color:var(--mbk-farbe)}
.mbk-karte__lager{color:#2E7D4F}
.mbk-karte--html{display:block;padding:0;border:0;background:none}

/* Aktions-Knöpfe */
.mbk .mbk-cta,.mbk button.mbk-cta{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;background:var(--mbk-akzent);color:var(--mbk-farbe)!important;border:0;border-radius:999px;padding:11px 18px;margin:0;font:inherit;font-weight:700;font-size:15px;line-height:1.2;text-decoration:none!important;cursor:pointer;box-shadow:none;min-height:0}
.mbk .mbk-cta:hover{filter:brightness(1.05)}
.mbk .mbk-cta svg{width:16px;height:16px}
.mbk button.mbk-cta--zweit{background:#fff;border:1.5px solid var(--mbk-farbe);color:var(--mbk-farbe)!important}

/* Übergabe */
.mbk-uebergabe{background:#fff;border:1px solid var(--mbk-linie);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:10px;width:100%}
.mbk-uebergabe__titel{margin:0;font-weight:700;font-size:15px}
.mbk-wa{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#25D366;color:#fff!important;border-radius:999px;padding:10px 16px;font-weight:700;font-size:15px;text-decoration:none}
.mbk-form{display:flex;flex-direction:column;gap:8px}
.mbk-form label{display:flex;flex-direction:column;gap:4px;font-size:13px;font-weight:600}
.mbk-form input,.mbk-form textarea{font:inherit;font-size:15px;font-weight:400;border:1px solid var(--mbk-linie);border-radius:10px;padding:8px 10px;width:100%}
.mbk-form .mbk-check{flex-direction:row;align-items:center;gap:8px;font-weight:400}
.mbk-form .mbk-check input{width:auto}
.mbk-hp{position:absolute!important;left:-9999px!important}
.mbk button.mbk-btn{border:0;border-radius:999px;background:var(--mbk-akzent);color:var(--mbk-farbe);font:inherit;font-weight:700;font-size:15px;padding:11px 16px;cursor:pointer}
.mbk button.mbk-btn:disabled{opacity:.6}
.mbk-ok{margin:0;font-size:15px}

/* Tippen */
.mbk-tippt{display:flex;align-items:center;gap:4px;font-size:13px;color:#5A6478}
.mbk-tippt span{width:7px;height:7px;border-radius:50%;background:var(--mbk-akzent);animation:mbk-p 1s infinite ease-in-out}
.mbk-tippt span:nth-child(2){animation-delay:.15s}
.mbk-tippt span:nth-child(3){animation-delay:.3s}
.mbk-tippt em{font-style:normal;margin-left:6px}
@keyframes mbk-p{0%,80%,100%{opacity:.3;transform:scale(.8)}40%{opacity:1;transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.mbk-tippt span{animation:none}.mbk-knopf{transition:none}}

/* Eingabe */
.mbk-eingabe{display:flex;align-items:flex-end;gap:8px;padding:12px;border-top:1px solid var(--mbk-linie);background:#fff}
.mbk-eingabe textarea{flex:1;resize:none;font:inherit;font-size:16px;line-height:1.4;border:1px solid var(--mbk-linie);border-radius:22px;padding:11px 16px;max-height:140px;min-height:46px}
.mbk-eingabe textarea:focus{outline:none;border-color:var(--mbk-farbe)}
.mbk button.mbk-senden{flex:0 0 auto;width:46px;height:46px;border-radius:50%;border:0;background:var(--mbk-akzent);color:var(--mbk-farbe);cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.mbk-hinweis{margin:0;padding:0 14px 10px;font-size:12px;line-height:1.4;color:#5A6478;text-align:center;background:#fff}
.mbk-hinweis a{color:inherit}

/* Fragefeld im Inhalt [mb_kira_frage] */
.mbk-frage{display:flex;flex-direction:column;gap:12px}
.mbk-frage__titel{margin:0;font-weight:600}
.mbk-frage__zeile{display:flex;gap:8px;align-items:center;background:#fff;border:1px solid #E4DDD2;border-radius:999px;padding:6px 6px 6px 18px}
.mbk-frage__zeile input{flex:1;border:0;background:none;font:inherit;font-size:16px;padding:8px 0;min-width:0}
.mbk-frage__zeile input:focus{outline:none}
.mbk-frage .mbk-frage__zeile button{width:46px;height:46px;border-radius:50%;border:0;background:#E9915B;color:#16233F;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.mbk-frage__chips{display:flex;flex-wrap:wrap;gap:8px}
.mbk-frage button.mbk-chip{border-color:#E4DDD2}

@media (max-width:600px){
	.mbk-fenster{right:0;bottom:0;width:100vw;height:100dvh;max-height:100dvh;border-radius:0;border:0}
	/* Handy: Pille mit Sprechblase + dauerhaftem Kurztext; Abstand nach unten über --mbk-unten anpassbar */
	.mbk button.mbk-knopf{right:16px;bottom:var(--mbk-unten,16px);padding:4px 16px 4px 4px;gap:8px;height:52px}
	.mbk .mbk-knopf__chat{width:44px;height:44px}
	.mbk .mbk-knopf__chat svg{width:30px;height:30px}
	.mbk .mbk-knopf__text strong{font-size:14px;white-space:nowrap}
	.mbk .mbk-knopf__text span{font-size:11px;white-space:nowrap}
	.mbk .mbk-knopf__rolle{display:none}
	.mbk .mbk-knopf__kurz{display:block}
	.mbk-kopf{padding-top:max(14px,env(safe-area-inset-top))}
	.mbk-hinweis{padding-bottom:max(10px,env(safe-area-inset-bottom))}
}
html.mbk-offen-mobil,html.mbk-offen-mobil body{overflow:hidden!important}
