/* Berr Chat – gemeinsame Optik für Website-Widget und Mitarbeiter-App.
   Farben kommen aus den Einstellungen: --bchat-primary, --bchat-header, --bchat-button */

/* DM Sans (SIL Open Font License) – lokal eingebunden, keine Verbindung zu Google */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/dm-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/dm-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/dm-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/dm-sans-latin-700-normal.woff2') format('woff2'); }

.bchat-root {
  --bchat-primary: #0b5ea8;
  --bchat-header: var(--bchat-primary);
  --bchat-button: var(--bchat-primary);
  --bchat-bg: #ffffff;
  --bchat-surface: #f3f5f8;
  --bchat-text: #1d2430;
  --bchat-muted: #6b7484;
  --bchat-border: #dfe3ea;
  --bchat-radius: 14px;
  --bchat-shadow: 0 12px 40px rgba(16, 24, 40, .18);
  --bchat-font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-family: var(--bchat-font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--bchat-text);
  box-sizing: border-box;
}
.bchat-root *, .bchat-root *::before, .bchat-root *::after { box-sizing: inherit; }
.bchat-root svg { width: 22px; height: 22px; display: block; }
.bchat-root button { font: inherit; cursor: pointer; }
.bchat-root [hidden] { display: none !important; }

/* ---------- Bausteine ---------- */

.bchat-header {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 12px 12px 16px;
  background: var(--bchat-header); color: #fff;
}
.bchat-header__title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bchat-header__title strong { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bchat-header__sub { opacity: .85; font-size: 12px; }

.bchat-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: transparent; color: inherit; text-decoration: none;
}
.bchat-icon-btn:hover, .bchat-icon-btn:focus-visible { background: rgba(255, 255, 255, .18); outline: none; }
.bchat-icon-btn svg { width: 20px; height: 20px; }

.bchat-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border: 0; border-radius: 10px;
  background: var(--bchat-button); color: #fff; font-weight: 600;
}
.bchat-btn:hover { filter: brightness(1.08); }
.bchat-btn:disabled { opacity: .6; cursor: default; }
.bchat-btn svg { width: 18px; height: 18px; }
.bchat-btn--ghost { background: transparent; color: var(--bchat-button); border: 1px solid currentColor; }
.bchat-btn--inline { align-self: flex-start; margin: 4px 0 8px; font-size: 14px; padding: 8px 14px; }
.bchat-link { border: 0; background: none; color: var(--bchat-primary); text-decoration: underline; padding: 0; font-size: 13px; }

.bchat-banner {
  padding: 8px 16px; font-size: 13px;
  background: color-mix(in srgb, var(--bchat-primary) 12%, var(--bchat-bg));
  color: var(--bchat-text); border-bottom: 1px solid var(--bchat-border);
}

.bchat-badge {
  display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600;
  background: var(--bchat-surface); color: var(--bchat-muted);
}
.bchat-badge--warn { background: #fff1d6; color: #8a5a00; }
.bchat-badge--count { background: var(--bchat-primary); color: #fff; }
.bchat-muted { color: var(--bchat-muted); font-size: 13px; }

/* Nachrichten */
.bchat-messages {
  flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 4px;
  background: var(--bchat-surface); overscroll-behavior: contain;
}
.bchat-msg { display: flex; flex-direction: column; max-width: 85%; margin-bottom: 6px; }
.bchat-msg--own { align-self: flex-end; align-items: flex-end; }
.bchat-msg--other { align-self: flex-start; }
.bchat-msg--system { align-self: center; max-width: 95%; text-align: center; font-size: 12px; color: var(--bchat-muted); margin: 6px 0; }
.bchat-bubble {
  padding: 9px 13px; border-radius: 16px; background: var(--bchat-bg);
  border: 1px solid var(--bchat-border); word-wrap: break-word; overflow-wrap: anywhere;
}
.bchat-msg--own .bchat-bubble { background: var(--bchat-primary); color: #fff; border-color: transparent; border-bottom-right-radius: 4px; }
.bchat-msg--other .bchat-bubble { border-bottom-left-radius: 4px; }
.bchat-msg--own .bchat-bubble a { color: #fff; }
.bchat-bubble a { color: var(--bchat-primary); }
.bchat-msg--pending { opacity: .6; }
.bchat-msg--cont { margin-top: -2px; }
.bchat-msg:not(.bchat-msg--cont):not(.bchat-msg--system) { margin-top: 8px; }
.bchat-msg__head {
  display: flex; align-items: center; gap: 6px; margin-bottom: 5px; padding: 0 2px;
  font-size: 12px; color: var(--bchat-muted);
}
.bchat-msg__head span:first-of-type { color: var(--bchat-text); font-weight: 600; }
.bchat-dot { opacity: .6; }

/* Themen-Buttons */
.bchat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; max-width: 95%; }
.bchat-chip {
  display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 10px;
  border: 2px solid var(--bchat-header); background: var(--bchat-bg); color: var(--bchat-text);
  font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2;
}
.bchat-chip:hover, .bchat-chip:focus-visible { background: var(--bchat-header); color: #fff; outline: none; }
.bchat-dark .bchat-chip { border-color: color-mix(in srgb, var(--bchat-header) 50%, #fff); }

/* Avatar */
.bchat-avatar {
  flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bchat-bg); border: 1px solid var(--bchat-border);
}
.bchat-avatar--icon { background: var(--bchat-primary); color: #fff; border-color: transparent; }
.bchat-avatar--icon svg { width: 18px !important; height: 18px !important; }
.bchat-avatar--initial { background: var(--bchat-header); color: #fff; font-size: 13px; font-weight: 700; border-color: transparent; }
.bchat-avatar--header { width: 38px; height: 38px; border: 2px solid rgba(255, 255, 255, .7); margin-right: 4px; }
.bchat-avatar--header.bchat-avatar--icon { background: rgba(255, 255, 255, .18); }
.bchat-avatar--header svg { width: 22px !important; height: 22px !important; }

.bchat-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.bchat-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--bchat-muted); animation: bchat-dot 1.2s infinite ease-in-out; }
.bchat-typing i:nth-child(2) { animation-delay: .15s; }
.bchat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bchat-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* Eingabe */
.bchat-composer {
  display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px;
  border-top: 1px solid var(--bchat-border); background: var(--bchat-bg);
}
.bchat-composer textarea {
  flex: 1; resize: none; border: 1px solid var(--bchat-border); border-radius: 12px;
  padding: 9px 12px; font: inherit; font-size: 16px; /* 16px verhindert Zoom auf iOS */
  max-height: 120px; color: var(--bchat-text); background: var(--bchat-bg);
}
.bchat-composer textarea:focus { outline: 2px solid color-mix(in srgb, var(--bchat-primary) 40%, transparent); border-color: var(--bchat-primary); }
.bchat-send {
  flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: var(--bchat-button); color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.bchat-send svg { width: 20px; height: 20px; }
.bchat-composer.is-busy .bchat-send { opacity: .5; pointer-events: none; }
.bchat-composer.is-disabled { opacity: .5; pointer-events: none; }

/* Overlay-Karten (Einwilligung, Formulare) */
.bchat-body { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.bchat-overlay {
  position: absolute; inset: 0; background: color-mix(in srgb, var(--bchat-surface) 96%, transparent);
  display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto;
}
.bchat-card {
  position: relative; width: 100%; background: var(--bchat-bg); border-radius: var(--bchat-radius);
  padding: 20px; box-shadow: 0 4px 16px rgba(16, 24, 40, .08); display: flex; flex-direction: column; gap: 10px;
}
.bchat-card h3 { margin: 0; font-size: 17px; }
.bchat-card p { margin: 0; font-size: 14px; color: var(--bchat-muted); }
.bchat-card a { color: var(--bchat-primary); }
.bchat-card label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.bchat-card label small { font-weight: 400; color: var(--bchat-muted); }
.bchat-card input, .bchat-card textarea {
  background: var(--bchat-bg); color: var(--bchat-text);
  font: inherit; font-size: 16px; padding: 9px 11px; border: 1px solid var(--bchat-border); border-radius: 10px; font-weight: 400;
}
.bchat-card__close { position: absolute; top: 8px; right: 8px; border: 0; background: none; color: var(--bchat-muted); width: 32px; height: 32px; }
.bchat-card__close svg { width: 18px; height: 18px; margin: auto; }
.bchat-error { color: #b42318 !important; }

/* ---------- Website-Widget ---------- */

.bchat-widget { position: fixed; bottom: var(--bchat-offset-y, 20px); z-index: 2147483000; }
.bchat-pos-right { right: var(--bchat-offset-x, 20px); }
.bchat-pos-left { left: var(--bchat-offset-x, 20px); }

/* Chat-Button: Form, Größe, Farbe, Text, eigenes Bild (Einstellungen → Chat-Button) */
.bchat-size-s { --bchat-launcher-size: 52px; }
.bchat-size-m { --bchat-launcher-size: 60px; }
.bchat-size-l { --bchat-launcher-size: 68px; }
.bchat-launcher {
  width: var(--bchat-launcher-size, 60px); height: var(--bchat-launcher-size, 60px); border-radius: 50%; border: 0; padding: 0;
  background: var(--bchat-launcher-bg, var(--bchat-button)); color: #fff; box-shadow: var(--bchat-shadow);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; position: relative;
  transition: transform .15s ease, box-shadow .15s ease; font-family: var(--bchat-font);
}
.bchat-launcher--s { --bchat-launcher-size: 52px; }
.bchat-launcher--m { --bchat-launcher-size: 60px; }
.bchat-launcher--l { --bchat-launcher-size: 68px; }
.bchat-launcher--square { border-radius: 30%; }
.bchat-launcher:hover { transform: scale(1.06); }
.bchat-launcher__icon { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.bchat-launcher svg { width: calc(var(--bchat-launcher-size) * .46); height: calc(var(--bchat-launcher-size) * .46); }
.bchat-launcher.has-image:not(.is-open) .bchat-launcher__icon { width: 100%; height: 100%; border-radius: inherit; overflow: hidden; }
.bchat-launcher.has-image .bchat-launcher__icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bchat-launcher.has-label { width: auto; padding: 0 22px 0 16px; border-radius: calc(var(--bchat-launcher-size) / 2); }
.bchat-launcher--square.has-label { border-radius: 16px; }
.bchat-launcher.has-label:hover { transform: translateY(-2px); }
.bchat-launcher__label { font-size: 15px; font-weight: 600; white-space: nowrap; }
.bchat-launcher.has-label.has-image:not(.is-open) { padding-left: 6px; }
.bchat-launcher.has-label.has-image:not(.is-open) .bchat-launcher__icon { width: calc(var(--bchat-launcher-size) - 12px); height: calc(var(--bchat-launcher-size) - 12px); border-radius: 50%; }
.bchat-launcher.is-open { width: var(--bchat-launcher-size); padding: 0; }
.bchat-launcher.is-open .bchat-launcher__label { display: none; }
.bchat-launcher.is-pulse:not(.is-open)::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--bchat-launcher-bg, var(--bchat-button)) 55%, transparent);
  animation: bchat-pulse 2.4s ease-out infinite;
}
@keyframes bchat-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--bchat-launcher-bg, var(--bchat-button)) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 16px transparent; } }

/* Sprechblase neben dem Button */
.bchat-teaser {
  position: absolute; bottom: calc(var(--bchat-launcher-size, 60px) + 14px); width: max-content; max-width: min(280px, calc(100vw - 40px));
  padding: 12px 34px 12px 14px; border-radius: 14px; background: var(--bchat-bg); color: var(--bchat-text);
  box-shadow: var(--bchat-shadow); font-size: 14.5px; line-height: 1.4; cursor: pointer; animation: bchat-in .25s ease-out;
}
.bchat-teaser[hidden] { display: none; }
.bchat-pos-right .bchat-teaser { right: 0; border-bottom-right-radius: 4px; }
.bchat-pos-left .bchat-teaser { left: 0; border-bottom-left-radius: 4px; }
.bchat-teaser__close { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border: 0; background: none; color: var(--bchat-muted); display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.bchat-teaser__close:hover { background: var(--bchat-surface); }
.bchat-teaser__close svg { width: 14px !important; height: 14px !important; }
.bchat-launcher.has-unread::after {
  content: ""; position: absolute; top: 4px; right: 4px; width: 14px; height: 14px;
  border-radius: 50%; background: #e5484d; border: 2px solid #fff;
}
.bchat-widget .bchat-panel {
  position: absolute; bottom: calc(var(--bchat-launcher-size, 60px) + 16px); width: 380px; height: min(620px, calc(100vh - 120px));
  background: var(--bchat-bg); border-radius: var(--bchat-radius); box-shadow: var(--bchat-shadow);
  display: flex; flex-direction: column; overflow: hidden;
  animation: bchat-in .18s ease-out;
}
.bchat-pos-right .bchat-panel { right: 0; }
.bchat-pos-left .bchat-panel { left: 0; }
@keyframes bchat-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 480px) {
  .bchat-widget { bottom: min(var(--bchat-offset-y, 20px), 40vh); }
  .bchat-pos-right { right: min(var(--bchat-offset-x, 14px), 24px); }
  .bchat-pos-left { left: min(var(--bchat-offset-x, 14px), 24px); }
  .bchat-launcher__label { font-size: 14px; }
  .bchat-widget .bchat-panel {
    position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; bottom: 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .bchat-widget.is-open .bchat-launcher { display: none; }
}

/* ---------- Nachtansicht ---------- */
.bchat-root.bchat-dark {
  --bchat-bg: #1a1f29;
  --bchat-surface: #10141b;
  --bchat-text: #e7eaf0;
  --bchat-muted: #98a1b1;
  --bchat-border: #2c3442;
  --bchat-shadow: 0 12px 40px rgba(0, 0, 0, .55);
  color-scheme: dark;
}
.bchat-dark .bchat-bubble a { color: color-mix(in srgb, var(--bchat-primary) 55%, #fff); }
.bchat-dark .bchat-msg--own .bchat-bubble a { color: #fff; }
.bchat-dark .bchat-badge--warn { background: #4a3500; color: #ffd27a; }
.bchat-dark .bchat-link, .bchat-dark .bchat-card a, .bchat-dark .bchat-app__info a { color: color-mix(in srgb, var(--bchat-primary) 55%, #fff); }
.bchat-dark .bchat-btn--ghost { color: color-mix(in srgb, var(--bchat-button) 55%, #fff); }
.bchat-dark .bchat-launcher.has-unread::after { border-color: var(--bchat-bg); }
.bchat-agent-body:has(.bchat-dark) { background: #10141b; }

/* ---------- Dialoge (wiederverwendbar) ---------- */
.bchat-modal {
  position: fixed; inset: 0; z-index: 2147483100; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(10, 14, 22, .45); animation: bchat-in .15s ease-out;
}
.bchat-modal__card { width: 100%; max-width: 440px; max-height: calc(100dvh - 32px); overflow-y: auto; }
.bchat-modal__card--wide { max-width: 760px; }
.bchat-modal__body { display: flex; flex-direction: column; gap: 10px; }
.bchat-modal__foot { display: flex; justify-content: flex-end; gap: 8px; }
.bchat-card select {
  font: inherit; font-size: 16px; padding: 9px 11px; border: 1px solid var(--bchat-border); border-radius: 10px;
  background: var(--bchat-bg); color: var(--bchat-text); font-weight: 400;
}
.bchat-card input[readonly] { background: var(--bchat-surface); color: var(--bchat-muted); }
.bchat-card label small { display: block; }
.bchat-card .bchat-check { flex-direction: row; align-items: center; gap: 8px; font-weight: 600; }
.bchat-card .bchat-check input { width: 18px; height: 18px; accent-color: var(--bchat-button); }
.bchat-fieldset { border: 1px solid var(--bchat-border); border-radius: 12px; padding: 12px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.bchat-fieldset legend { font-size: 13px; font-weight: 700; padding: 0 6px; }
.bchat-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bchat-inline > input { flex: 1; min-width: 140px; }
.bchat-link--danger { color: #b42318; align-self: flex-start; }
.bchat-icon-btn--danger { color: var(--bchat-muted); width: 32px; height: 32px; }
.bchat-icon-btn--danger:hover { color: #b42318; background: color-mix(in srgb, #b42318 12%, transparent) !important; }
.bchat-root code { font-size: 12px; padding: 1px 5px; border-radius: 5px; background: var(--bchat-surface); border: 1px solid var(--bchat-border); }

/* Tabs */
.bchat-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--bchat-border); margin-bottom: 4px; }
.bchat-tab { border: 0; background: none; color: var(--bchat-muted); padding: 8px 12px; font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.bchat-tab.is-active { color: var(--bchat-text); border-bottom-color: var(--bchat-button); }
.bchat-tabpanel { display: flex; flex-direction: column; gap: 12px; }
.bchat-tabpanel > .bchat-btn { align-self: flex-start; }

/* Tabelle */
.bchat-table-wrap { overflow-x: auto; }
.bchat-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bchat-table th { text-align: left; font-size: 12px; color: var(--bchat-muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--bchat-border); }
.bchat-table td { padding: 10px 8px; border-bottom: 1px solid var(--bchat-border); vertical-align: top; }
.bchat-table tr.is-inactive td { opacity: .55; }
.bchat-table td .bchat-muted { font-size: 12px; }

/* Standardantworten: Auswahl im Chat */
.bchat-composer__tool { color: var(--bchat-muted); flex: none; align-self: center; }
.bchat-composer__tool:hover { background: var(--bchat-surface) !important; color: var(--bchat-button); }
.bchat-canned {
  max-height: 260px; overflow-y: auto; border-top: 1px solid var(--bchat-border);
  background: var(--bchat-bg); padding: 6px;
}
.bchat-canned__item {
  display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left;
  border: 0; border-radius: 10px; background: none; color: var(--bchat-text); padding: 8px 10px;
}
.bchat-canned__item:hover, .bchat-canned__item.is-sel { background: color-mix(in srgb, var(--bchat-primary) 12%, var(--bchat-bg)); }
.bchat-canned__title { font-weight: 600; font-size: 14px; }
.bchat-canned__text { font-size: 13px; color: var(--bchat-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bchat-canned__empty { padding: 10px; font-size: 13px; color: var(--bchat-muted); }

/* Standardantworten: Bearbeiten */
.bchat-canned-edit { display: flex; flex-direction: column; gap: 10px; }
.bchat-canned-edit__row { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--bchat-border); border-radius: 12px; }
.bchat-canned-edit__row textarea { resize: vertical; }
.bchat-prefix { display: inline-flex; align-items: center; gap: 2px; color: var(--bchat-muted); font-weight: 600; }
.bchat-prefix input { width: 130px; }

/* Anmeldung */
.bchat-login { flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--bchat-surface); }
.bchat-login__card { max-width: 380px; }
.bchat-login__icon { display: flex; justify-content: center; }
.bchat-avatar--login { width: 64px; height: 64px; }
.bchat-avatar--login svg { width: 36px !important; height: 36px !important; }
.bchat-login__card h3 { text-align: center; }
.bchat-login__wp { text-align: center; font-size: 13px; }
.bchat-dark .bchat-login__wp, .bchat-dark .bchat-link { color: color-mix(in srgb, var(--bchat-primary) 55%, #fff); }

/* ---------- Warteschlange / Verbinden (Widget) ---------- */
.bchat-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bchat-banner__text { flex: 1; min-width: 160px; }
.bchat-banner--waiting { background: color-mix(in srgb, #f5a524 16%, var(--bchat-bg)); }
.bchat-banner--active { background: color-mix(in srgb, #34c759 14%, var(--bchat-bg)); }
.bchat-spinner {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid color-mix(in srgb, var(--bchat-primary) 25%, transparent);
  border-top-color: var(--bchat-primary); animation: bchat-spin .9s linear infinite;
}
@keyframes bchat-spin { to { transform: rotate(360deg); } }
.bchat-dot-online { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 3px color-mix(in srgb, #34c759 25%, transparent); }
.bchat-btn--small { padding: 6px 12px; font-size: 13px; }

/* Interne Notiz (nur Mitarbeiter) */
.bchat-msg--note { align-self: stretch; max-width: 100%; margin: 6px 0; }
.bchat-note {
  font-size: 13px; padding: 8px 12px; border-radius: 10px;
  background: color-mix(in srgb, #f5c524 22%, var(--bchat-bg)); border: 1px dashed color-mix(in srgb, #b8860b 60%, transparent);
}
.bchat-note strong { color: #8a5a00; }
.bchat-dark .bchat-note strong { color: #ffd27a; }

/* Seitenwechsel des Kunden (nur Mitarbeiter) */
.bchat-msg--page { align-self: center; max-width: 95%; margin: 4px 0; }
.bchat-pageevent { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--bchat-muted); padding: 4px 10px; border-radius: 999px; background: var(--bchat-bg); border: 1px solid var(--bchat-border); }
.bchat-pageevent svg { width: 13px !important; height: 13px !important; flex: none; }
.bchat-pageevent a { color: var(--bchat-text); font-weight: 600; }

/* Versions- und Urheberhinweis */
.bchat-credit { font-size: 10.5px; line-height: 1.4; color: var(--bchat-muted); opacity: .75; text-align: center; letter-spacing: .01em; user-select: none; }
.bchat-heart { color: #e5484d; }
.bchat-credit--widget { padding: 0 12px 7px; background: var(--bchat-bg); }
.bchat-stage { display: inline-block; padding: 0 5px; border-radius: 4px; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 14px; vertical-align: 1px; color: #fff; background: #009ea4; opacity: .9; }
