/* KanzleiEmpfang AI - eingebettetes Chat-Widget */
.kw-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #1f4e5f;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 26px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  z-index: 99999;
}
.kw-panel {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 360px;
  max-width: calc(100vw - 48px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.28);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 99999;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
.kw-panel.kw-open { display: flex; }
.kw-header {
  background: #1f4e5f;
  color: #fff;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 15px;
}
.kw-header small { display: block; font-weight: 400; opacity: 0.85; font-size: 12px; }
.kw-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: #f6f7f8;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kw-msg { max-width: 85%; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.4; white-space: pre-wrap; }
.kw-msg.kw-bot { align-self: flex-start; background: #fff; border: 1px solid #e3e6e8; }
.kw-msg.kw-user { align-self: flex-end; background: #1f4e5f; color: #fff; }
.kw-msg.kw-typing { font-style: italic; color: #888; }
.kw-input-row { display: flex; border-top: 1px solid #e3e6e8; }
.kw-input-row input {
  flex: 1; border: none; padding: 13px 14px; font-size: 14px; outline: none;
}
.kw-input-row button {
  border: none; background: #1f4e5f; color: #fff; padding: 0 18px; cursor: pointer; font-size: 14px;
}
.kw-disclaimer { font-size: 11px; color: #8a9197; text-align: center; padding: 6px; background: #f6f7f8; }
