/* KIfix Assistent: Chat + Sprache, rechts unten */
#resi-launch{position:fixed;bottom:22px;right:22px;z-index:900;border:0;cursor:pointer;font-family:inherit;font-size:15px;font-weight:600;color:#fff;min-height:48px;display:flex;align-items:center;gap:10px;padding:12px 18px;background:#14283f;border-radius:3px;box-shadow:0 10px 30px rgba(11,22,36,.28);}
#resi-launch:hover{background:#0b1624;}
#resi-launch svg{width:18px;height:18px;flex:0 0 auto;}
#resi-panel{position:fixed;bottom:22px;right:22px;z-index:901;width:390px;max-width:calc(100vw - 28px);height:600px;max-height:calc(100vh - 44px);background:#fff;border-radius:6px;box-shadow:0 24px 60px rgba(11,22,36,.35);display:none;flex-direction:column;overflow:hidden;font-family:Inter,system-ui,'Segoe UI',Arial,sans-serif;color:#2b3138;}
#resi-panel.open{display:flex;}
#resi-head{background:#14283f;color:#fff;padding:14px 16px;display:flex;align-items:center;gap:12px;}
#resi-head b{font-size:16px;font-weight:600;} #resi-head small{display:block;opacity:.9;font-size:12px;}
#resi-head .x{margin-left:auto;background:transparent;border:0;color:#fff;font-size:14px;cursor:pointer;min-width:44px;min-height:44px;font-family:inherit;font-weight:600;}
#resi-bar{display:flex;align-items:center;gap:10px;padding:8px 14px;background:#faf8f4;border-bottom:1px solid #e6e0d2;font-size:13px;color:#2b3138;}
#resi-bar label{display:flex;align-items:center;gap:8px;cursor:pointer;min-height:32px;}
#resi-bar input{width:18px;height:18px;accent-color:#14283f;}
#resi-voice{margin-left:auto;font-size:12px;color:#4a525a;text-align:right;}
#resi-msgs{flex:1;overflow-y:auto;padding:16px;background:#faf8f4;}
.rmsg{max-width:88%;padding:10px 13px;border-radius:6px;margin-bottom:10px;font-size:14.5px;line-height:1.5;}
.rmsg.bot{background:#fff;border:1px solid #e6e0d2;color:#2b3138;}
.rmsg.bot a{color:#14283f;text-decoration:underline;}
.rmsg.user{background:#14283f;color:#fff;margin-left:auto;}
.rmsg .rtools{display:flex;gap:8px;margin-top:8px;align-items:center;flex-wrap:wrap;}
.rread{background:transparent;border:1px solid #14283f;color:#14283f;border-radius:3px;padding:6px 11px;font-size:12.5px;font-weight:600;cursor:pointer;min-height:34px;font-family:inherit;}
.rread:hover{background:#14283f;color:#fff;}
.rsrc{font-size:11.5px;color:#4a525a;}
#resi-quick{display:flex;flex-wrap:wrap;gap:7px;padding:0 16px 8px;background:#faf8f4;}
.rchip{background:#fff;color:#14283f;border:1px solid #c9bfa3;border-radius:3px;padding:8px 12px;font-size:13px;cursor:pointer;font-weight:600;min-height:40px;font-family:inherit;}
.rchip:hover{border-color:#14283f;}
.ract{display:flex;gap:8px;margin:9px 0;flex-wrap:wrap;}
.rbtn{background:#14283f;color:#fff !important;padding:10px 14px;border-radius:3px;font-size:13.5px;font-weight:600;text-decoration:none !important;display:inline-block;}
.rform{display:flex;flex-direction:column;gap:7px;margin-top:4px;}
.rform input,.rform textarea{border:1px solid #8b95a0;border-radius:3px;padding:9px 11px;font-size:14px;font-family:inherit;width:100%;box-sizing:border-box;}
.rsubmit{background:#c8a45d;color:#0b1624;border:0;border-radius:3px;padding:11px;font-weight:700;cursor:pointer;font-size:14.5px;font-family:inherit;}
.rnotice{background:#fff;border:1px solid #c9bfa3;border-radius:6px;padding:12px 13px;font-size:13.5px;line-height:1.5;margin-bottom:10px;}
.rnotice .ract{margin-bottom:0;}
#resi-in{display:flex;border-top:1px solid #e6e0d2;padding:9px;gap:8px;background:#fff;align-items:center;}
#resi-in input{flex:1;min-width:0;border:1px solid #8b95a0;border-radius:3px;padding:10px 12px;font-size:15px;font-family:inherit;}
#resi-in button{flex:0 0 auto;border:0;border-radius:3px;min-height:44px;font-family:inherit;cursor:pointer;font-weight:700;font-size:14.5px;}
#resi-send{background:#c8a45d;color:#0b1624;padding:0 16px;}
#resi-mic{background:#fff;color:#14283f;border:1px solid #14283f !important;width:44px;padding:0;display:flex;align-items:center;justify-content:center;}
#resi-mic svg{width:20px;height:20px;}
#resi-mic.on{background:#14283f;color:#fff;animation:rpulse 1.4s ease-in-out infinite;}
@keyframes rpulse{50%{box-shadow:0 0 0 6px rgba(20,40,63,.18);}}
@media(prefers-reduced-motion:reduce){#resi-mic.on{animation:none;}}
#resi-note{font-size:12px;color:#4a525a;text-align:center;padding:6px 10px;background:#fff;}
#resi-note a{color:#14283f;text-decoration:underline;}
#resi-launch:focus-visible,#resi-panel button:focus-visible,#resi-panel input:focus-visible{outline:2px solid #c8a45d;outline-offset:2px;}
@media(max-width:480px){#resi-panel{right:8px;bottom:8px;max-width:calc(100vw - 16px);height:calc(100vh - 16px);max-height:calc(100vh - 16px);}}
body:has(#kifix-consent[style*="display: block"]) #resi-panel{bottom:104px;max-height:calc(100vh - 126px);}
@media(max-width:600px){body:has(#kifix-consent[style*="display: block"]) #resi-panel{bottom:190px;max-height:calc(100vh - 200px);}}
body:has(#kifix-consent[style*="display: block"]) #resi-launch{bottom:104px;}
@media(max-width:600px){body:has(#kifix-consent[style*="display: block"]) #resi-launch{bottom:190px;}}
