/* Botofox Support-Widget — externalisiert (umgeht wpautop/wptexturize/KSES) */

/* ── Rabatt-Ticker ─────────────────────────────────────────────── */
.bf-rabatt-banner {
  background-color: #6C44E4;
  color: #fff;
  padding: 8px 0;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}
@media screen and (min-width: 768px) {
  .bf-rabatt-banner .bf-ticker-track {
    animation: none;
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .bf-rabatt-banner .bf-ticker-item + .bf-ticker-item { display: none; }
}
@media screen and (max-width: 767px) {
  .bf-rabatt-banner .bf-ticker-track {
    display: flex;
    width: max-content;
    animation: botofox-ticker 22s linear infinite;
  }
}
.bf-rabatt-banner .bf-ticker-item {
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  padding: 0 3rem;
}
.bf-rabatt-banner .bf-ticker-item strong { font-weight: 700; color: #FFE066; }
@keyframes botofox-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Chat-Widget ───────────────────────────────────────────────── */
#bf-chat-wrap { max-width: 780px; margin: 0 auto; padding: 50px 20px; font-family: inherit; }
#bf-chat-box {
  background: #fff;
  border: 1px solid #e8e0ff;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 2px 16px rgba(108, 68, 228, .08);
}
#bf-chat-header { background: #6C44E4; padding: 18px 22px; display: flex; align-items: center; gap: 12px; }
#bf-chat-header .bf-avatar {
  width: 36px; height: 36px;
  background: rgba(255, 255, 255, .2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2em;
}
#bf-chat-header .bf-title { color: #fff; font-weight: 700; font-size: 1em; }
#bf-chat-header .bf-status { color: rgba(255, 255, 255, .75); font-size: 0.8em; }
#bf-messages {
  height: 320px; overflow-y: auto; padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  background: #fafafa;
}
.bf-msg {
  max-width: 78%; padding: 11px 15px; border-radius: 12px;
  font-size: 0.93em; line-height: 1.6; word-break: break-word;
}
.bf-msg.bf-bot { background: #fff; border: 1px solid #e8e0ff; border-radius: 12px 12px 12px 2px; align-self: flex-start; color: #333; }
.bf-msg.bf-user { background: #6C44E4; color: #fff; border-radius: 12px 12px 2px 12px; align-self: flex-end; }
.bf-msg.bf-typing { color: #999; font-style: italic; font-size: 0.88em; }
.bf-msg.bf-has-video { max-width: 92%; }
.bf-video { position: relative; width: 100%; aspect-ratio: 16 / 9; margin-top: 10px; border-radius: 10px; overflow: hidden; background: #000; }
.bf-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#bf-chat-input-area { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid #f0ebff; background: #fff; }
#bf-chat-input {
  flex: 1; border: 1px solid #e0d8ff; border-radius: 24px;
  padding: 10px 16px; font-size: 0.93em; outline: none; font-family: inherit;
}
#bf-chat-input:focus { border-color: #6C44E4; }
#bf-send-btn {
  background: #6C44E4; color: #fff; border: none; border-radius: 50%;
  width: 40px; height: 40px; cursor: pointer; flex-shrink: 0;
  font-size: 1.1em; transition: background .2s;
}
#bf-send-btn:hover { background: #5a35d0; }
#bf-send-btn:disabled { background: #c4b5f7; cursor: not-allowed; }

/* Info-Karten unter dem Chat */
.bf-card { background: #fff; border: 1px solid #e8e0ff; border-radius: 14px; padding: 28px; margin-bottom: 28px; text-align: center; }
.bf-card--faq { background: #f8f8f8; border: 1px solid #eaeaea; padding: 24px; }
.bf-card .bf-icon { font-size: 1.8em; margin-bottom: 8px; }
.bf-card h3 { font-weight: 700; margin-bottom: 4px; color: #1a1a1a; }
.bf-card--faq h3 { margin-bottom: 6px; }
.bf-card p { color: #666; }
.bf-phone { font-size: 1.5em; font-weight: 700; color: #6C44E4; text-decoration: none; display: block; margin: 8px 0; }
.bf-hours { font-size: 0.9em; margin: 0; }
.bf-faq-btn { display: inline-block; border: 2px solid #6C44E4; color: #6C44E4; border-radius: 10px; padding: 10px 24px; font-weight: 600; text-decoration: none; }
