/* BELTURO Leads · Chat-Widget · v1.4.0 – Markenfarben aus dem BELTURO Design System */
.bt-chat { position: fixed; left: 20px; bottom: 20px; z-index: 990; font-family: 'Inter', system-ui, sans-serif; }
.bt-chat__toggle { display: flex; align-items: center; gap: 10px; border: 0; cursor: pointer; padding: 12px 20px 12px 14px; border-radius: 999px;
  background: #1F4B3F; color: #fff; font: 600 15px/1 'Inter', system-ui, sans-serif; box-shadow: 0 16px 40px -14px rgba(21,51,43,.6); transition: transform .2s ease; }
.bt-chat__toggle:hover { transform: translateY(-2px); }
.bt-chat__icon { width: 30px; height: 30px; border-radius: 50%; background: #D6C59D url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F4B3F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.9 20A9 9 0 1 0 4 16.1L2 22Z'/%3E%3C/svg%3E") center / 16px no-repeat; }
.bt-chat.is-open .bt-chat__label { display: none; }
.bt-chat.is-open .bt-chat__toggle { padding: 12px; }
.bt-chat__panel { position: absolute; left: 0; bottom: 70px; width: min(380px, calc(100vw - 40px)); max-height: min(620px, calc(100vh - 120px));
  display: flex; flex-direction: column; background: #FBF8F2; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px -24px rgba(21,51,43,.55); border: 1px solid rgba(31,75,63,.1); }
.bt-chat__panel[hidden] { display: none; }
.bt-chat__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: #15332B; color: #fff; }
.bt-chat__head strong { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 18px; font-weight: 600; }
.bt-chat__head small { display: block; font-size: 12px; color: rgba(255,255,255,.65); margin-top: 2px; }
.bt-chat__close { border: 0; background: rgba(255,255,255,.1); color: #fff; width: 32px; height: 32px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; }
.bt-chat__body { flex: 1 1 auto; overflow: auto; padding: 16px 18px; font-size: 14px; color: #2D3A3F; }
.bt-chat__form p { margin: 0 0 12px; }
.bt-chat__form label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 10px; color: #15332B; }
.bt-chat__form input[type=text], .bt-chat__form input[type=email] { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid rgba(31,75,63,.16); background: #fff; font: 400 14px 'Inter', sans-serif; }
.bt-chat__form input:focus { outline: 0; border-color: #1F4B3F; box-shadow: 0 0 0 3px rgba(106,138,118,.35); }
.bt-chat__check { display: flex !important; gap: 8px; font-weight: 400 !important; font-size: 12px !important; line-height: 1.45; color: #41525A !important; }
.bt-chat__check input { margin-top: 2px; flex: none; }
.bt-chat__check a { color: #1F4B3F; }
.bt-chat__form button { width: 100%; border: 0; border-radius: 999px; padding: 12px; background: #1F4B3F; color: #fff; font: 600 15px 'Inter', sans-serif; cursor: pointer; margin-top: 6px; }
.bt-chat__err { color: #0F241E; font-weight: 600; background: #F2E9DC; border-left: 3px solid #D6C59D; border-radius: 8px; padding: 8px 10px; font-size: 13px; margin: 6px 0 0 !important; }
.bt-chat__log { display: flex; flex-direction: column; gap: 8px; }
.bt-chat__msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; line-height: 1.45; word-wrap: break-word; }
.bt-chat__msg a { color: inherit; text-decoration: underline; }
.bt-chat__msg--a { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.bt-chat__msg--u { align-self: flex-end; background: #1F4B3F; color: #fff; border-bottom-right-radius: 6px; }
.bt-chat__typing span { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: #6A8A76; animation: bt-dot 1s infinite ease-in-out; }
.bt-chat__typing span:nth-child(2) { animation-delay: .15s; } .bt-chat__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bt-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.bt-chat__note { font-size: 11px; color: #74858C; margin: 12px 0 0; }
.bt-chat__foot { border-top: 1px solid rgba(31,75,63,.1); background: #fff; }
.bt-chat__input { display: flex; gap: 8px; padding: 10px; }
.bt-chat__input input { flex: 1; border: 0; padding: 10px 12px; font: 400 14px 'Inter', sans-serif; background: #F6F1E8; border-radius: 999px; }
.bt-chat__input input:focus { outline: 2px solid rgba(106,138,118,.45); }
.bt-chat__input button { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  background: #1F4B3F url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / 18px no-repeat; }
@media (max-width: 639px) { .bt-chat { left: 12px; bottom: 12px; } .bt-chat__label { display: none; } .bt-chat__toggle { padding: 12px; } }
/* Aufmerksamkeit (ab 1.4.0): Einblenden, Puls-Ring um den Button, 3x kurzes Anstupsen. Endet, sobald der Chat einmal geöffnet wurde. */
.bt-chat__toggle { position: relative; }
.bt-chat__toggle::after { content: ""; position: absolute; inset: 0; border-radius: 999px; pointer-events: none; animation: bt-pulse 2.8s ease-out 1.6s infinite; }
.bt-chat__toggle { animation: bt-in .7s cubic-bezier(.2,.9,.3,1.25) .8s backwards, bt-nudge 8s ease-in-out 5s 3; }
.bt-chat.is-open .bt-chat__toggle, .bt-chat.bt-chat--seen .bt-chat__toggle { animation: none; }
.bt-chat.is-open .bt-chat__toggle::after, .bt-chat.bt-chat--seen .bt-chat__toggle::after { animation: none; }
@keyframes bt-in { from { opacity: 0; transform: translateY(24px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes bt-pulse { 0% { box-shadow: 0 0 0 0 rgba(214,197,157,.9); } 70% { box-shadow: 0 0 0 14px rgba(214,197,157,0); } 100% { box-shadow: 0 0 0 0 rgba(214,197,157,0); } }
@keyframes bt-nudge { 0%, 86%, 100% { transform: none; } 89% { transform: translateY(-7px) rotate(-3deg); } 92% { transform: translateY(0) rotate(2deg); } 95% { transform: translateY(-3px) rotate(0); } }
@media (prefers-reduced-motion: reduce) { .bt-chat__typing span { animation: none; } .bt-chat__toggle, .bt-chat__toggle::after { animation: none !important; } }

/* Whitepaper im Chat (v1.3.0) */
.bt-chat__chip { display: block; margin: 8px auto 0; border: 1.5px solid rgba(31,75,63,.25); background: #fff; color: #1F4B3F; border-radius: 999px; padding: 6px 14px; font: 600 13px Inter, system-ui, sans-serif; cursor: pointer; }
.bt-chat__chip:hover { border-color: #6A8A76; color: #6A8A76; }
.bt-chat__wp { background: #fff; border-radius: 14px; padding: 12px; margin: 8px 0; box-shadow: 0 6px 18px -10px rgba(21,51,43,.35); }
.bt-chat__wp select { width: 100%; box-sizing: border-box; margin-top: 4px; padding: 9px 10px; border-radius: 10px; border: 1.5px solid rgba(31,75,63,.18); background: #FBF8F2; font: inherit; }
.bt-chat__row { display: flex; gap: 8px; align-items: center; }
.bt-chat__row button { flex: 1; }
.bt-chat__ghost { background: transparent !important; color: #1F4B3F !important; border: 1.5px solid rgba(31,75,63,.25) !important; }
