/* Kundenchat */
.chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(201,153,58,.55);
  border-radius: 999px;
  background: linear-gradient(135deg,var(--gold),var(--gold-light));
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 50px rgba(0,0,0,.34);
  cursor: pointer;
  z-index: 9998;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.chat-launcher:hover { transform: translateY(-2px); box-shadow: 0 22px 60px rgba(0,0,0,.42); }
.chat-launcher svg { width: 29px; height: 29px; }
.chat-widget {
  position: fixed;
  right: 22px;
  bottom: 96px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 128px);
  background: #fff;
  color: var(--navy-deep);
  border: 1px solid rgba(201,153,58,.38);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
}
.chat-widget.is-open { display: flex; }
.chat-header {
  background: linear-gradient(135deg,var(--navy-deep),var(--navy));
  color: #fff;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(201,153,58,.3);
}
.chat-title { font-weight: 700; font-size: .98rem; letter-spacing: .04em; }
.chat-subtitle { display: block; margin-top: 2px; color: rgba(255,255,255,.64); font-size: .74rem; font-weight: 400; }
.chat-close {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}
.chat-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  background: #f5f2ec;
}
.msg {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  max-width: 86%;
  line-height: 1.45;
  white-space: pre-wrap;
  font-size: .92rem;
}
.msg.user {
  margin-left: auto;
  background: var(--navy);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg.bot {
  margin-right: auto;
  background: #fff;
  color: var(--navy-deep);
  border: 1px solid rgba(11,30,56,.1);
  border-bottom-left-radius: 4px;
}
.chat-suggestions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 10px 12px 0;
  background: #fff;
  border-top: 1px solid rgba(11,30,56,.08);
}
.chat-suggestions button {
  border: 1px solid rgba(201,153,58,.35);
  background: rgba(201,153,58,.08);
  color: var(--navy);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: .78rem;
  cursor: pointer;
}
.chat-suggestions button:hover { background: rgba(201,153,58,.16); }
.chat-privacy {
  padding: 8px 12px 0;
  font-size: .72rem;
  line-height: 1.35;
  color: rgba(11,30,56,.58);
  background: #fff;
}
.chat-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(11,30,56,.08);
  background: #fff;
}
.chat-input input {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(11,30,56,.18);
  border-radius: 11px;
  outline: none;
  font-family: inherit;
  color: var(--navy-deep);
}
.chat-input input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,153,58,.12); }
.chat-input button {
  border: none;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 10px 13px;
  border-radius: 11px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
}
.chat-input button:disabled { opacity: .55; cursor: not-allowed; }
.chat-input input:disabled { background: #f7f7f7; cursor: wait; }
@media (max-width: 560px) {
  .chat-launcher { right: 16px; bottom: 16px; width: 58px; height: 58px; }
  .chat-widget { right: 10px; bottom: 84px; width: calc(100vw - 20px); height: min(560px, calc(100vh - 104px)); }
}
