.aibh-chatbot{box-sizing:border-box;max-width:800px;padding:20px;border:1px solid #dcdcde;border-radius:8px;background:#fff;font-family:Arial,sans-serif}
.aibh-chatbot *,.aibh-chatbot *::before,.aibh-chatbot *::after{box-sizing:border-box}
.aibh-chatbot__header{display:flex;flex-direction:column;gap:4px;margin-bottom:18px}
.aibh-chatbot__header strong{font-size:18px}
.aibh-chatbot__header span{color:#646970;font-size:13px}
.aibh-chatbot__label{display:block;margin-bottom:7px;font-weight:600}
.aibh-chatbot__row{display:flex;gap:10px}
.aibh-chatbot__input{flex:1;min-width:0;padding:11px 12px;border:1px solid #8c8f94;border-radius:5px;font-size:15px}
.aibh-chatbot__button{padding:10px 18px;border:0;border-radius:5px;background:#2271b1;color:#fff;font-weight:600;cursor:pointer}
.aibh-chatbot__button:disabled{opacity:.6;cursor:wait}
.aibh-chatbot__result{margin-top:18px}
.aibh-chatbot__message{padding:14px;border-left:4px solid #72aee6;background:#f6f7f7}
.aibh-chatbot__message--success{border-left-color:#00a32a}
.aibh-chatbot__message--error{border-left-color:#d63638}
.aibh-chatbot__status{margin-bottom:8px;font-weight:700}
.aibh-chatbot__answer{font-size:16px}
.aibh-chatbot__meta{margin-top:10px;color:#646970;font-size:12px}
@media(max-width:600px){.aibh-chatbot__row{flex-direction:column}.aibh-chatbot__button{width:100%}}


.aibh-chatbot__sourcebox{
    margin-top:14px;
    padding:12px 14px;
    border:1px solid #dcdcde;
    border-radius:5px;
    background:#fff;
    font-size:13px;
    line-height:1.45;
}

.aibh-chatbot__sourcebox a{
    text-decoration:underline;
}

.aibh-chatbot__disclaimer{
    margin-top:8px;
    color:#646970;
}


.aibh-chatbot__select{
    width:100%;
    max-width:320px;
    padding:10px 12px;
    border:1px solid #8c8f94;
    border-radius:5px;
    background:#fff;
    font-size:14px;
}

/* Test 036: Floating Chat Launcher */
.aibh-floating-chat{position:fixed;right:22px;bottom:22px;z-index:999999;font-family:Arial,sans-serif}
.aibh-floating-chat *,.aibh-floating-chat *::before,.aibh-floating-chat *::after{box-sizing:border-box}
.aibh-floating-chat__launcher{width:64px;height:64px;padding:3px;border:2px solid #fff;border-radius:50%;background:#0b3b6f;color:#fff;box-shadow:0 10px 28px rgba(0,0,0,.24);display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease}
.aibh-floating-chat__launcher:hover{transform:translateY(-2px);box-shadow:0 13px 32px rgba(0,0,0,.27)}
.aibh-floating-chat__launcher:focus-visible,.aibh-floating-chat__send:focus-visible,.aibh-floating-chat__close:focus-visible,.aibh-floating-chat__input:focus-visible{outline:3px solid rgba(34,113,177,.28);outline-offset:2px}
.aibh-floating-chat__launcher svg{display:none}.aibh-floating-chat__launcher-logo{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.aibh-floating-chat__panel{position:absolute;right:0;bottom:76px;width:min(380px,calc(100vw - 28px));height:min(560px,calc(100vh - 120px));display:none;flex-direction:column;overflow:hidden;border:1px solid #dcdcde;border-radius:16px;background:#fff;box-shadow:0 18px 48px rgba(0,0,0,.22)}
.aibh-floating-chat.is-open .aibh-floating-chat__panel{display:flex}
.aibh-floating-chat__header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 14px;background:linear-gradient(135deg,#0b3b6f,#2271b1);color:#fff}
.aibh-floating-chat__brand{display:flex;align-items:center;gap:10px;min-width:0}.aibh-floating-chat__brand-logo{width:38px;height:38px;flex:0 0 38px;border-radius:50%;object-fit:cover;background:#fff;border:1px solid rgba(255,255,255,.65)}.aibh-floating-chat__brand-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.aibh-floating-chat__header strong{font-size:16px;line-height:1.3}
.aibh-floating-chat__header span{font-size:12px;opacity:.85}
.aibh-floating-chat__close{width:34px;height:34px;border:0;border-radius:50%;background:rgba(255,255,255,.15);color:#fff;font-size:25px;line-height:1;cursor:pointer}
.aibh-floating-chat__messages{flex:1;overflow:auto;padding:16px;background:#f6f7f7;display:flex;flex-direction:column;gap:10px}
.aibh-floating-chat__bubble{max-width:88%;padding:10px 12px;border-radius:14px;font-size:14px;line-height:1.45;word-break:break-word;white-space:pre-wrap}
.aibh-floating-chat__bubble--bot{align-self:flex-start;border-bottom-left-radius:5px;background:#fff;color:#1d2327;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.aibh-floating-chat__bubble--user{align-self:flex-end;border-bottom-right-radius:5px;background:#2271b1;color:#fff}
.aibh-floating-chat__bubble--status{align-self:flex-start;background:#eef4f8;color:#50575e;font-size:13px}
.aibh-floating-chat__bubble--error{align-self:flex-start;background:#fff0f0;color:#8a2424;border:1px solid #f1c0c0}
.aibh-floating-chat__source{display:block;margin-top:7px;padding-top:7px;border-top:1px solid rgba(0,0,0,.08);font-size:11px;color:#646970}
.aibh-floating-chat__source a{color:inherit;text-decoration:underline}
.aibh-floating-chat__form{display:flex;gap:8px;padding:12px;border-top:1px solid #dcdcde;background:#fff;align-items:flex-end}
.aibh-floating-chat__input{flex:1;min-height:44px;max-height:110px;resize:none;padding:10px 11px;border:1px solid #8c8f94;border-radius:10px;font:inherit;font-size:14px;line-height:1.35}
.aibh-floating-chat__send{min-height:44px;padding:0 14px;border:0;border-radius:10px;background:#2271b1;color:#fff;font-weight:700;cursor:pointer}
.aibh-floating-chat__send:disabled{opacity:.55;cursor:wait}
.aibh-floating-chat__footer{padding:8px 12px 10px;text-align:center;background:#fff;color:#777;font-size:11px}
@media(max-width:600px){.aibh-floating-chat{right:14px;bottom:14px}.aibh-floating-chat__launcher{width:56px;height:56px}.aibh-floating-chat__panel{position:fixed;left:10px;right:10px;bottom:80px;width:auto;height:min(68vh,560px);border-radius:14px}}

/* v0.34.4 – Launcher/Close-Button und erste Rückfrage-Chips */
.aibh-floating-chat__launcher{
    padding:8px;
    background:#0b3b6f;
    border:2px solid #fff;
}
.aibh-floating-chat__launcher-logo{
    width:100%;
    height:100%;
    object-fit:contain;
    border-radius:0;
}
.aibh-floating-chat__brand-logo{
    width:38px;
    height:38px;
    flex:0 0 38px;
    object-fit:contain;
    border-radius:0;
    padding:5px;
    background:rgba(255,255,255,.10);
    border:1px solid rgba(255,255,255,.28);
}
.aibh-floating-chat__close{
    flex:0 0 34px;
    width:34px;
    height:34px;
    padding:0;
    display:flex;
    align-items:center;
    justify-content:center;
    border:0;
    border-radius:50%;
    background:rgba(255,255,255,.16);
    color:#fff;
    font-family:Arial,sans-serif;
    font-size:22px;
    font-weight:400;
    line-height:1;
    text-align:center;
}
.aibh-floating-chat__bubble--clarification{
    border:1px solid #cfe0ef;
    background:#fff;
}
.aibh-floating-chat__suggestions{
    align-self:flex-start;
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    max-width:92%;
}
.aibh-floating-chat__suggestion{
    appearance:none;
    border:1px solid #2271b1;
    border-radius:999px;
    background:#fff;
    color:#135e96;
    padding:7px 10px;
    font:inherit;
    font-size:12px;
    line-height:1.25;
    cursor:pointer;
}
.aibh-floating-chat__suggestion:hover{
    background:#eef6fc;
}
.aibh-chatbot__suggestions{
    margin-top:10px;
    font-size:13px;
    line-height:1.55;
}


/* v0.34.5 – klares Branding + Broschüren-Link */
.aibh-floating-chat__launcher{padding:0;overflow:hidden;background:#0b3b6f}
.aibh-floating-chat__launcher-logo{width:100%;height:100%;object-fit:contain;transform:scale(1.72);transform-origin:center center;border-radius:0}
.aibh-floating-chat__brand{gap:0}
.aibh-floating-chat__brand-logo{display:none!important}
.aibh-floating-chat__brand-text{padding-left:0}
.aibh-floating-chat__brochure-link{color:inherit;text-decoration:none;font-weight:600}
.aibh-floating-chat__brochure-link:hover,.aibh-floating-chat__brochure-link:focus{text-decoration:underline}
.aibh-floating-chat__footer .aibh-floating-chat__brochure-link{color:#5a6570}


/* v0.34.6 – Launcher neu + Thailand-Header + sichtbarer AiBasedHub-Link */
.aibh-floating-chat__launcher{
    width:66px;
    height:66px;
    padding:4px;
    border:3px solid #16b9c8;
    border-radius:50%;
    background:#fff;
    box-shadow:0 8px 24px rgba(11,59,111,.24),0 0 0 2px rgba(255,255,255,.85);
    overflow:hidden;
}
.aibh-floating-chat__launcher:hover{
    transform:translateY(-2px) scale(1.03);
    border-color:#0ea5b7;
    box-shadow:0 12px 30px rgba(11,59,111,.28),0 0 0 2px rgba(255,255,255,.95);
}
.aibh-floating-chat__launcher-logo{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center;
    transform:scale(1.18);
    transform-origin:center;
    border-radius:50%;
}
.aibh-floating-chat__header{
    background:linear-gradient(125deg,#c8102e 0%,#a41231 18%,#143f7d 56%,#075ea8 100%);
    color:#fff;
    padding:13px 14px;
    border-bottom:1px solid rgba(255,255,255,.18);
}
.aibh-floating-chat__header strong{
    color:#fff;
    text-shadow:0 1px 1px rgba(0,0,0,.12);
}
.aibh-floating-chat__header span{
    color:rgba(255,255,255,.94);
    opacity:1;
}
.aibh-floating-chat__header .aibh-floating-chat__brochure-link{
    color:#fff;
    text-decoration:none;
    font-weight:700;
    border-bottom:1px solid rgba(255,255,255,.52);
    transition:color .16s ease,border-color .16s ease,background .16s ease;
}
.aibh-floating-chat__header .aibh-floating-chat__brochure-link:hover,
.aibh-floating-chat__header .aibh-floating-chat__brochure-link:focus{
    color:#d9fbff;
    border-bottom-color:#d9fbff;
    text-decoration:none;
    background:rgba(255,255,255,.08);
}
.aibh-floating-chat__close{
    flex:0 0 34px;
    width:34px;
    height:34px;
    padding:0;
    display:grid;
    place-items:center;
    border:1px solid rgba(255,255,255,.22);
    border-radius:50%;
    background:rgba(255,255,255,.14);
    color:#fff;
    font-size:23px;
    font-weight:400;
    line-height:34px;
    cursor:pointer;
}
.aibh-floating-chat__close:hover{
    background:rgba(255,255,255,.24);
}
.aibh-floating-chat__close{ text-indent:0; }
@media(max-width:600px){
    .aibh-floating-chat__launcher{width:58px;height:58px;padding:4px}
}

/* v0.34.7 – Admin-Schnellaufnahme für Wissenslücken */
.aibh-floating-chat__admin-note{
    align-self:flex-start;
    max-width:94%;
    margin-top:-2px;
    padding:6px 9px;
    border:1px dashed #d6a100;
    border-radius:9px;
    background:#fffbea;
    color:#6b5600;
    font-size:11px;
    line-height:1.35;
}
.aibh-floating-chat__admin-capture{
    align-self:stretch;
    display:flex;
    flex-direction:column;
    gap:7px;
    max-width:100%;
}
.aibh-floating-chat__admin-trigger{
    align-self:flex-start;
    border:1px solid #b18a00;
    border-radius:999px;
    background:#fff8d6;
    color:#665000;
    padding:7px 10px;
    font:inherit;
    font-size:11px;
    font-weight:700;
    cursor:pointer;
}
.aibh-floating-chat__admin-trigger:hover{background:#fff1a8}
.aibh-floating-chat__admin-panel{
    padding:10px;
    border:1px solid #dcdcde;
    border-radius:12px;
    background:#fff;
    box-shadow:0 2px 8px rgba(0,0,0,.06);
}
.aibh-floating-chat__admin-title{
    margin-bottom:8px;
    font-size:12px;
    font-weight:700;
    color:#1d2327;
}
.aibh-floating-chat__admin-panel label{
    display:block;
    margin:7px 0;
    color:#50575e;
    font-size:10px;
    font-weight:700;
}
.aibh-floating-chat__admin-input{
    display:block;
    width:100%;
    margin-top:3px;
    padding:7px 8px;
    border:1px solid #8c8f94;
    border-radius:7px;
    background:#fff;
    color:#1d2327;
    font:inherit;
    font-size:12px;
    line-height:1.35;
}
textarea.aibh-floating-chat__admin-input{resize:vertical;min-height:78px}
.aibh-floating-chat__admin-actions{display:flex;gap:7px;margin-top:9px;flex-wrap:wrap}
.aibh-floating-chat__admin-save,.aibh-floating-chat__admin-cancel{
    border:0;
    border-radius:7px;
    padding:8px 10px;
    font:inherit;
    font-size:11px;
    font-weight:700;
    cursor:pointer;
}
.aibh-floating-chat__admin-save{background:#2271b1;color:#fff}
.aibh-floating-chat__admin-save:disabled{opacity:.55;cursor:wait}
.aibh-floating-chat__admin-cancel{background:#f0f0f1;color:#2c3338}
.aibh-floating-chat__admin-success{color:#157347;font-size:12px;font-weight:700}
.aibh-floating-chat__admin-edit-link{display:inline-block;margin-top:7px;color:#135e96;font-size:11px;font-weight:700;text-decoration:underline}

.aibh-floating-chat__admin-tools{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin:6px 10px 10px;
}
.aibh-floating-chat__admin-tool{
    border:1px solid #2f80c9;
    background:#eef7ff;
    color:#0f4f87;
    border-radius:999px;
    padding:6px 10px;
    font-size:12px;
    font-weight:700;
    cursor:pointer;
}
.aibh-floating-chat__admin-tool:hover{background:#dff0ff}
.aibh-floating-chat__admin-tool--warning{
    border-color:#d89a1c;
    background:#fff8e6;
    color:#8a5a00;
}
.aibh-floating-chat__admin-tool--warning:hover{background:#ffefc2}

/* v0.34.9 – BetterDocs source picker for admin quick review */
.aibh-floating-chat__source-search{margin-top:8px}.aibh-floating-chat__source-results{display:flex;flex-direction:column;gap:6px;margin-top:7px;max-height:190px;overflow:auto}.aibh-floating-chat__source-result{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;padding:8px 9px;border:1px solid #c9d7e8;border-radius:9px;background:#fff;color:#123b66;text-align:left;cursor:pointer}.aibh-floating-chat__source-result:hover{border-color:#14b8c4;background:#f4fcfd}.aibh-floating-chat__source-result.is-selected{border-color:#14b8c4;box-shadow:0 0 0 2px rgba(20,184,196,.14);background:#eefbfd}.aibh-floating-chat__source-result span{font-size:11px;font-weight:600;color:#567}.aibh-floating-chat__source-result small{font-size:11px;line-height:1.3;color:#667085}
