/* WhatsApp, Chatbot, Schnellanfrage */
.fab-stack { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.konfig-page .fab-stack { right: 482px; }
.fab { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 26px rgba(14,27,43,.28); transition: transform .2s, box-shadow .2s; position: relative; }
.fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 30px rgba(14,27,43,.34); }
.fab svg { width: 28px; height: 28px; }
.fab-wa { background: #25d366; }
.fab-chat { background: var(--orange); }
.fab-chat .dot { position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; border-radius: 50%; background: #e53935; border: 2px solid #fff; }
.fab-tip { position: absolute; right: 70px; top: 50%; transform: translateY(-50%); background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; padding: 9px 13px; border-radius: 8px; white-space: nowrap; box-shadow: 0 6px 20px rgba(14,27,43,.16); pointer-events: none; opacity: 0; transition: opacity .2s; }
.fab:hover .fab-tip, .fab-tip.show { opacity: 1; }
.fab-tip::after { content: ''; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; background: #fff; transform: translateY(-50%) rotate(45deg); }

/* Chat */
.chat { position: fixed; right: 22px; bottom: 96px; width: 370px; max-height: min(620px, calc(100vh - 120px)); z-index: 95; background: #fff; border-radius: 14px; box-shadow: 0 24px 60px rgba(14,27,43,.3); display: flex; flex-direction: column; overflow: hidden; transform-origin: bottom right; transition: transform .22s, opacity .22s; }
.konfig-page .chat { right: 482px; }
.chat[hidden] { display: flex; transform: scale(.9) translateY(10px); opacity: 0; pointer-events: none; }
.chat-head { background: var(--navy); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.chat-av { width: 40px; height: 40px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; font-family: var(--font-h); font-weight: 800; font-size: 18px; flex: none; position: relative; }
.chat-av::after { content: ''; position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; border: 2px solid var(--navy); }
.chat-head b { display: block; font-size: 14.5px; }
.chat-head small { font-size: 12px; color: #aebccc; }
.chat-x { margin-left: auto; width: 32px; height: 32px; border-radius: 6px; color: #fff; font-size: 22px; line-height: 1; }
.chat-x:hover { background: rgba(255,255,255,.1); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px 14px 8px; background: #f4f6f9; display: flex; flex-direction: column; gap: 8px; min-height: 260px; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; color: var(--ink); animation: msgIn .25s ease; }
.msg.bot { background: #fff; border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(14,27,43,.06); }
.msg.me { background: var(--orange); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg a { color: var(--orange-d); font-weight: 600; }
.msg.typing { display: flex; gap: 4px; padding: 13px 15px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: #b3bbc5; animation: blink 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0 4px; }
.quick button { border: 1.5px solid var(--orange); color: var(--orange-d); background: #fff; padding: 6px 11px; border-radius: 16px; font-size: 12.5px; font-weight: 600; transition: background .15s, color .15s; }
.quick button:hover { background: var(--orange); color: #fff; }
.chat-in { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.chat-in input { flex: 1; height: 42px; border: 1.5px solid var(--line); border-radius: 21px; padding: 0 16px; font: inherit; font-size: 14px; outline: none; }
.chat-in input:focus { border-color: var(--orange); }
.chat-in button { width: 42px; height: 42px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; }
.chat-in button svg { width: 18px; }
.chat-note { font-size: 10.5px; color: var(--muted); text-align: center; padding: 0 10px 8px; background: #fff; }

/* Schnellanfrage-Modal */
.qf-back { position: fixed; inset: 0; background: rgba(9,17,28,.6); backdrop-filter: blur(3px); z-index: 120; display: grid; place-items: center; padding: 16px; animation: fadeIn .2s; }
.qf-back[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.qf { background: #fff; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: msgIn .25s; }
.qf-head { padding: 22px 26px 6px; position: relative; }
.qf-head .eyebrow { margin-bottom: 4px; }
.qf-head h3 { font-size: 23px; font-weight: 800; }
.qf-head p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.qf-head .chat-x { position: absolute; right: 14px; top: 14px; color: var(--ink); }
.qf-head .chat-x:hover { background: var(--bg-soft); }
.qf-prog { height: 4px; background: var(--bg-soft); margin: 14px 26px 0; border-radius: 2px; overflow: hidden; }
.qf-prog i { display: block; height: 100%; background: var(--orange); transition: width .3s; }
.qf-body { padding: 18px 26px 24px; }
.qf-q { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 10px; font-family: var(--font-h); }
.qf-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.qf-opts.two { grid-template-columns: 1fr 1fr; }
.qf-opt { border: 1.5px solid var(--line); border-radius: 8px; padding: 14px 8px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); background: #fff; transition: border-color .15s, background .15s, transform .15s; }
.qf-opt:hover { border-color: var(--orange); transform: translateY(-1px); }
.qf-opt .em { font-size: 24px; line-height: 1; }
.qf-opt small { font-size: 11px; color: var(--muted); font-weight: 500; }
.qf-opt.on { border-color: var(--orange); background: #fff4ec; color: var(--orange-d); box-shadow: 0 0 0 1px var(--orange); }
.qf-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; }
.qf-nav .back { font-size: 13px; font-weight: 600; color: var(--muted); }
.qf-nav .back:hover { color: var(--ink); }
.qf .field { display: grid; gap: 5px; margin-bottom: 12px; }
.qf .field span { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.qf .field input, .qf .field select, .qf .field textarea { height: 44px; border: 1.5px solid var(--line); border-radius: 6px; padding: 0 12px; font: inherit; font-size: 14px; outline: none; background: #fff; color: inherit; }
.qf .field textarea { height: 70px; padding: 10px 12px; resize: vertical; }
.qf .field input:focus, .qf .field select:focus, .qf .field textarea:focus { border-color: var(--orange); }
.qf .field.err input { border-color: #d93636; }
.qf .check { display: flex; gap: 10px; font-size: 12.5px; align-items: flex-start; margin: 6px 0 14px; color: var(--text); }
.qf .check input { margin-top: 3px; accent-color: var(--orange); }
.qf .check.err { color: #c62828; }
.qf-sum { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.qf-sum span { font-size: 12px; font-weight: 600; background: var(--bg-soft); color: var(--ink); padding: 5px 10px; border-radius: 14px; }
.qf-ok { text-align: center; padding: 10px 0 6px; }
.qf-ok .ok { width: 64px; height: 64px; border-radius: 50%; background: #e9f7ee; color: #1f9d55; display: grid; place-items: center; margin: 0 auto 14px; }
.qf-ok .ok svg { width: 32px; }
.qf-trust { display: flex; gap: 16px; justify-content: center; font-size: 12px; color: var(--muted); margin-top: 14px; flex-wrap: wrap; }
.qf-trust span::before { content: '✓ '; color: #1f9d55; font-weight: 700; }

/* Mobile Sticky-Leiste */
.m-bar { display: none; }
@media (max-width: 1000px) {
  .konfig-page .fab-stack { right: 16px; bottom: 96px; }
  .konfig-page .chat { right: 12px; }
}
@media (max-width: 760px) {
  body:not(.konfig-page) { padding-bottom: 64px; }
  .m-bar { display: grid; grid-template-columns: 1fr 1.4fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: #fff; border-top: 1px solid var(--line); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px; box-shadow: 0 -6px 20px rgba(14,27,43,.08); }
  .konfig-page .m-bar { display: none; }
  .m-bar a { height: 46px; border-radius: 6px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 14.5px; }
  .m-bar svg { width: 18px; height: 18px; }
  .m-bar .call { border: 1.5px solid var(--ink); color: var(--ink); }
  .m-bar .go { background: var(--cta); color: #fff; box-shadow: 0 4px 14px var(--cta-glow); }
  body:not(.konfig-page) .fab-stack { bottom: 78px; right: 14px; }
  .fab { width: 52px; height: 52px; }
  .chat { right: 8px; left: 8px; width: auto; bottom: 8px; max-height: calc(100vh - 16px); }
  .konfig-page .chat { right: 8px; }
  .qf-opts { grid-template-columns: 1fr 1fr; }
  .qf-head, .qf-body { padding-left: 18px; padding-right: 18px; }
  .qf-prog { margin-left: 18px; margin-right: 18px; }
}

.chat-open .fab-wa { opacity: 0; pointer-events: none; transform: scale(.8); }
.fab-wa { transition: transform .2s, box-shadow .2s, opacity .2s; }

/* Schnellanfrage-Knöpfe (öffnen das Modal über data-quickform) */
.fab-quick { display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 20px 0 8px; border-radius: 29px; background: var(--navy); color: #fff; box-shadow: 0 10px 26px rgba(14,27,43,.32); text-align: left; transition: transform .2s, box-shadow .2s; }
.fab-quick:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(14,27,43,.4); }
.fab-quick .ic { width: 42px; height: 42px; border-radius: 50%; background: var(--cta); display: grid; place-items: center; flex: none; position: relative; }
.fab-quick .ic::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--cta); animation: qPulse 2.4s ease-out infinite; }
.fab-quick .ic svg { width: 20px; height: 20px; }
.fab-quick b { display: block; font-size: 15px; line-height: 1.15; }
.fab-quick small { display: block; font-size: 11.5px; color: #c5d0dc; }
@keyframes qPulse { 0% { transform: scale(.9); opacity: .9; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
.chat-open .fab-quick { opacity: 0; pointer-events: none; }

.kf-quick { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 26px; background: #fff4ec; border-top: 1px solid #fbd9c2; color: var(--ink); font-size: 13px; line-height: 1.35; text-align: left; transition: background .15s; }
.kf-quick:hover { background: #ffe9da; }
.kf-quick b { color: var(--orange-d); }
.kf-quick .ic { width: 30px; height: 30px; border-radius: 50%; background: var(--cta); color: #fff; display: grid; place-items: center; flex: none; }
.kf-quick .ic svg { width: 16px; height: 16px; }
.kf-quick .arr { width: 18px; height: 18px; margin-left: auto; flex: none; color: var(--orange-d); }

.hero-quick { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; color: #e6ecf2; font-size: 15px; background: none; padding: 4px 0; text-align: left; }
.hero-quick b { color: #fff; text-decoration: underline; text-decoration-color: #4da3ff; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hero-quick .ic { width: 30px; height: 30px; border-radius: 50%; background: var(--cta); color: #fff; display: grid; place-items: center; flex: none; }
.hero-quick .ic svg { width: 16px; height: 16px; }
.hero-quick:hover b { color: #7cbcff; }

@media (max-width: 760px) {
  .m-bar { grid-template-columns: 1fr 1fr 1fr !important; }
  .m-bar a, .m-bar .qa { height: 46px; border-radius: 6px; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 14px; }
  .m-bar .qa { background: var(--navy); color: #fff; }
  .m-bar .qa svg { color: var(--orange); }
  body:not(.konfig-page) .fab-quick { display: none; }
  .fab-quick { height: 50px; padding-right: 16px; }
  .fab-quick .ic { width: 36px; height: 36px; }
  .fab-quick small { display: none; }
  .kf-quick { padding: 10px 16px; font-size: 12.5px; }
  .hero-quick { font-size: 14px; }
}
