/* Pop-up im Chat-Stil unten rechts + Foto-Blase (templates/partials/lead-popup.php, lead-popup.js). Blog-Beiträge und Google-Ads-Landingpage. */
.lead-popup{position:fixed;right:20px;bottom:20px;z-index:900;width:min(350px,calc(100vw - 32px));padding:16px 18px 18px;background:#fff;border-radius:18px 18px 4px 18px;box-shadow:0 14px 44px rgba(29,9,4,.28);line-height:1.5;font-size:16px;opacity:0;transform:translateY(24px) scale(.96);transform-origin:bottom right}
.lead-popup[hidden],.lead-bubble[hidden],.lead-popup-msg[hidden],.lead-popup-typing[hidden]{display:none}
.lead-popup.is-visible{animation:lp-in .55s cubic-bezier(.2,1.4,.4,1) forwards}
.lead-popup.is-wiggle{animation:lp-wiggle .7s ease-in-out;opacity:1;transform:none}
.lead-popup.is-out{animation:lp-out .3s ease forwards}
@keyframes lp-in{0%{opacity:0;transform:translateY(24px) scale(.96)}100%{opacity:1;transform:none}}
@keyframes lp-out{0%{opacity:1;transform:none}100%{opacity:0;transform:translateY(16px) scale(.9)}}
@keyframes lp-wiggle{0%,100%{transform:none}20%{transform:rotate(-2.5deg)}40%{transform:rotate(2.5deg)}60%{transform:rotate(-1.5deg)}80%{transform:rotate(1deg)}}
.lead-popup-head{display:flex;align-items:center;gap:12px;margin:0 28px 12px 0}
.lead-popup-avatar{position:relative;flex:0 0 44px;width:44px;height:44px}
.lead-popup-avatar img{width:44px;height:44px;border-radius:50%;object-fit:cover;display:block}
.lead-popup-online{position:absolute;right:0;bottom:1px;width:12px;height:12px;background:#2ecc71;border:2px solid #fff;border-radius:50%}
.lead-popup-who{display:flex;flex-direction:column;line-height:1.25;color:#1d0904}
.lead-popup-who span{font-size:13px;color:#7a6a67}
.lead-popup-typing{display:inline-flex;gap:5px;padding:12px 14px;background:#f5ecea;border-radius:14px 14px 14px 4px}
.lead-popup-typing span{width:8px;height:8px;border-radius:50%;background:#b8a6a2;animation:lp-dot 1.2s infinite ease-in-out}
.lead-popup-typing span:nth-child(2){animation-delay:.15s}.lead-popup-typing span:nth-child(3){animation-delay:.3s}
@keyframes lp-dot{0%,60%,100%{transform:none;opacity:.5}30%{transform:translateY(-4px);opacity:1}}
.lead-popup-text{margin:0 0 14px;padding:12px 14px;background:#f5ecea;border-radius:14px 14px 14px 4px;color:#1d0904}
.lead-popup-btn{display:block;padding:12px 18px;background:var(--primary,#d54940);color:#fff!important;font-weight:700;text-align:center;border-radius:999px;text-decoration:none!important;line-height:1.3}
.lead-popup-btn:hover{filter:brightness(.92)}
.lead-popup-btn[hidden],.lead-popup-text[hidden]{display:none}
.lead-popup-btn--wa{display:flex;align-items:center;justify-content:center;gap:8px;background:#25d366;color:#0b3d1f!important}
.lead-popup-btn--wa svg{flex:0 0 20px}
.lead-popup-close{position:absolute;top:8px;right:8px;width:32px;height:32px;padding:0;border:0;background:transparent;color:#7a6a67;font-size:24px;line-height:1;cursor:pointer;border-radius:50%}
.lead-popup-close:hover,.lead-popup-close:focus-visible{background:#f5ecea;color:#1d0904}
.lead-bubble{position:fixed;right:20px;bottom:20px;z-index:900;width:60px;height:60px;padding:0;border:3px solid #fff;border-radius:50%;background:#fff;box-shadow:0 8px 26px rgba(29,9,4,.3);cursor:pointer;animation:lp-in .45s cubic-bezier(.2,1.4,.4,1)}
.lead-bubble img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}
.lead-bubble-badge{position:absolute;top:-13px;right:-7px;min-width:12px;height:16px;padding:0 3px;background:var(--primary,#d54940);color:#fff;font:700 10px/16px var(--f-bold,inherit);text-align:center;border-radius:8px;border:2px solid #fff;box-sizing:content-box}
.lead-bubble:focus-visible{outline:3px solid var(--primary,#d54940);outline-offset:3px}
@media (max-width:600px){.lead-popup{right:16px;bottom:16px;left:16px;width:auto}.lead-bubble{right:16px;bottom:16px}}
@media (prefers-reduced-motion:reduce){.lead-popup.is-visible,.lead-popup.is-wiggle,.lead-popup.is-out,.lead-bubble{animation:none;opacity:1;transform:none}.lead-popup-typing span{animation:none}}
