/* AdventureRooms Chatbot – Farben und Schriften wie die Website (Rot #ef182f, Roboto, Barlow Condensed). */
.arcb {
  --arcb-accent: #ef182f;
  --arcb-ink: #1d1d1f;
  --arcb-muted: #5c5c63;
  --arcb-bg: #ffffff;
  --arcb-soft: #f3f3f5;
  --arcb-line: #d9d9de;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  font: 400 15px/1.45 Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--arcb-ink);
}
.arcb *, .arcb *::before, .arcb *::after { box-sizing: border-box; }
.arcb-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.arcb-launch {
  display: flex; align-items: center; gap: 8px; margin-left: auto;
  border: 0; border-radius: 999px; padding: 12px 18px; cursor: pointer;
  background: var(--arcb-accent); color: #fff;
  font: 600 18px/1 "Barlow Condensed", Roboto, sans-serif; letter-spacing: .02em; text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.arcb-launch:hover { filter: brightness(1.08); }
.arcb-is-open .arcb-launch span { display: none; }
.arcb-is-open .arcb-launch { padding: 12px; }

.arcb-panel {
  position: absolute; right: 0; bottom: 64px;
  width: 380px; max-width: calc(100vw - 40px); height: 560px; max-height: calc(100vh - 110px);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--arcb-bg); border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
}
.arcb-panel[hidden] { display: none; }
.arcb-head { display: flex; align-items: center; gap: 4px; padding: 10px 10px 10px 16px; background: var(--arcb-accent); color: #fff; }
.arcb-head h2 { flex: 1; margin: 0; padding: 0; color: #fff; font: 600 22px/1.1 "Barlow Condensed", Roboto, sans-serif; text-transform: uppercase; letter-spacing: .02em; }
.arcb-icon { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; padding: 0; }
.arcb-icon:hover { background: rgba(255, 255, 255, .18); }

.arcb-log { flex: 1; overflow-y: auto; padding: 14px; background: var(--arcb-soft); overscroll-behavior: contain; }
.arcb-msg { margin: 0 0 12px; display: flex; flex-direction: column; align-items: flex-start; }
.arcb-me { align-items: flex-end; }
.arcb-bubble { max-width: 88%; padding: 9px 12px; border-radius: 12px; background: var(--arcb-bg); border: 1px solid var(--arcb-line); word-wrap: break-word; overflow-wrap: anywhere; }
.arcb-me .arcb-bubble { background: var(--arcb-ink); border-color: var(--arcb-ink); color: #fff; }
.arcb-bubble a { color: var(--arcb-accent); text-decoration: underline; }
.arcb-bubble small { color: var(--arcb-muted); font-size: 13px; }
.arcb-h { margin: 8px 0 2px; font: 600 17px/1.2 "Barlow Condensed", Roboto, sans-serif; text-transform: uppercase; }
.arcb-h:first-child { margin-top: 0; }
.arcb-list { margin: 0 0 6px; padding-left: 18px; }
.arcb-list li { margin: 2px 0; }

.arcb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; max-width: 100%; }
.arcb-chip {
  display: inline-block; border: 1.5px solid var(--arcb-accent); border-radius: 999px; padding: 6px 12px; min-height: 34px;
  background: var(--arcb-bg); color: var(--arcb-accent); font: 500 14px/1.3 Roboto, sans-serif; text-align: left; cursor: pointer; text-decoration: none;
}
.arcb-chip:hover { background: var(--arcb-accent); color: #fff; }
.arcb-chip.arcb-primary { background: var(--arcb-accent); color: #fff; }
.arcb-chip.arcb-primary:hover { filter: brightness(1.08); }
.arcb-chip.arcb-num { min-width: 40px; text-align: center; }
.arcb-chips[data-old] .arcb-chip { opacity: .65; }
.arcb-datefield { display: inline-flex; gap: 6px; align-items: center; }
.arcb-datefield input { border: 1.5px solid var(--arcb-line); border-radius: 8px; padding: 5px 8px; font: inherit; min-height: 34px; }

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

.arcb-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--arcb-line); background: var(--arcb-bg); }
.arcb-form input { flex: 1; min-width: 0; border: 1.5px solid var(--arcb-line); border-radius: 999px; padding: 9px 14px; font: 400 16px/1.2 Roboto, sans-serif; color: var(--arcb-ink); background: #fff; }
.arcb-send { width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: var(--arcb-accent); color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; }

.arcb button:focus-visible, .arcb a:focus-visible, .arcb input:focus-visible, .arcb-log:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }

@media (max-width: 480px) {
  .arcb { right: 12px; bottom: 12px; }
  .arcb-is-open { inset: 0; right: 0; bottom: 0; }
  .arcb-is-open .arcb-launch { display: none; }
  .arcb-panel { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .arcb-dots i { animation: none; opacity: .7; }
}
