.omsag-lp-fab {
  --b:    var(--omsag-lp-brand, #50aa3c);
  --bl:   var(--omsag-lp-lime,  #a1d337);
  --ink:  var(--omsag-lp-ink,   #232730);
  --ts:   var(--omsag-lp-text-soft, #5a6270);
  --grad: var(--omsag-lp-brand-grad, linear-gradient(135deg,#50aa3c 0%,#a1d337 100%));
  --ez:   var(--omsag-lp-ease, cubic-bezier(.2,.7,.2,1));
  --font: var(--omsag-lp-font, 'Outfit', system-ui, sans-serif);

  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9990;
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 9px 18px 9px 9px;
  background: #fff;
  border: 1px solid rgba(15,17,21,.06);
  border-radius: 999px;
  box-shadow: 0 6px 18px -6px rgba(15,17,21,.18), 0 22px 48px -18px rgba(15,17,21,.28);
  text-decoration: none;
  font-family: var(--font);
  -webkit-backdrop-filter: saturate(1.2);
  backdrop-filter: saturate(1.2);
  transition: transform .35s var(--ez), box-shadow .35s var(--ez), opacity .35s var(--ez);
  animation: omsag-lp-fab-in .6s var(--ez) .8s backwards;
}
/* hidden while the linked (#kontakt) section is in view */
.omsag-lp-fab.is-hidden {
  opacity: 0;
  transform: translateY(16px) scale(.96);
  pointer-events: none;
}
.omsag-lp-fab,
.omsag-lp-fab *,
.omsag-lp-fab *::before,
.omsag-lp-fab *::after { box-sizing: border-box; }

@keyframes omsag-lp-fab-in {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
.omsag-lp-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -8px rgba(15,17,21,.25), 0 30px 60px -16px rgba(80,170,60,.28);
}

.omsag-lp-fab__avatar { position: relative; width: 48px; height: 48px; flex-shrink: 0; }
.omsag-lp-fab__avatar img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 0 1px rgba(15,17,21,.06);
}
.omsag-lp-fab__dot {
  position: absolute; top: -1px; right: -1px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #34c759;
  border: 2.5px solid #fff;
  animation: omsag-lp-fab-pulse 2.2s ease-out infinite;
}
@keyframes omsag-lp-fab-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52,199,89,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(52,199,89,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,199,89,0); }
}

.omsag-lp-fab__body { display: flex; flex-direction: column; gap: 3px; line-height: 1.2; }
.omsag-lp-fab__label { font-size: 11px; font-weight: 600; color: var(--ts); letter-spacing: .01em; }
.omsag-lp-fab__text  { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }

.omsag-lp-fab__arrow {
  width: 30px; height: 30px;
  flex-shrink: 0;
  margin-left: 2px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(80,170,60,.6);
  transition: transform .35s var(--ez);
}
.omsag-lp-fab__arrow svg { width: 16px; height: 16px; display: block; }
.omsag-lp-fab:hover .omsag-lp-fab__arrow { transform: translateX(2px) rotate(45deg); }

/* Editor preview — render inline, not floating */
.omsag-lp-fab--preview { position: static; animation: none; margin: 0 !important; }
.omsag-lp-fab--off { opacity: .5; }

/* Mobile */
@media (max-width: 760px) {
  .omsag-lp-fab { right: 14px; bottom: 14px; padding: 8px 15px 8px 8px; gap: 11px; }
  .omsag-lp-fab__avatar { width: 42px; height: 42px; }
  .omsag-lp-fab__text { font-size: 14px; }
  .omsag-lp-fab__label { font-size: 10.5px; }
  .omsag-lp-fab__arrow { width: 27px; height: 27px; }
  .omsag-lp-fab--no-mobile { display: none !important; }
  /* No intro animation on mobile — it would conflict with the pending → reveal
     transition and re-fire when the class is removed (causing a hard jump). */
  .omsag-lp-fab { animation: none; }
  /* Smoother reveal: a slightly longer transition only on mobile. */
  .omsag-lp-fab { transition: transform .55s var(--ez), box-shadow .35s var(--ez), opacity .55s var(--ez); }
  /* Pending: parked off to the right, invisible. Class is removed by JS once the hero scrolls past. */
  .omsag-lp-fab.is-pending-mobile {
    opacity: 0;
    transform: translateX(56px) scale(.96);
    pointer-events: none;
  }
}
/* Above mobile breakpoint, the pending class has no effect — FAB shows normally. */
@media (min-width: 761px) {
  .omsag-lp-fab.is-pending-mobile { opacity: 1; transform: none; pointer-events: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .omsag-lp-fab { animation: none; }
  .omsag-lp-fab__dot { animation: none; }
  .omsag-lp-fab, .omsag-lp-fab__arrow { transition: none; }
}
