/* Floating Buttons */
:root {
  --fa-gap: 10px;
  --fa-size: 40px;           /* Button-Größe */
  --fa-bg: #fff;          /* Hauptfarbe */
  --fa-txt: #000;         /* Icon Standardfarbe */
  --fa-shadow: 0 6px 20px rgba(0,0,0,.18);
  --fa-z: 9999;
  --fa-radius: 999px;
  --fa-tooltip-bg: #000;  /* Tooltip-Hintergrund in Markenfarbe */
  --fa-tooltip-txt: #fff;    /* Tooltip-Textfarbe */
}

.floating-actions {
  position: fixed;
  top: 40%;
  left: 10px;
  transform: translateY(-40%);
  display: flex;
  flex-direction: column;
  gap: var(--fa-gap);
  z-index: var(--fa-z);
  pointer-events: none;
}

.floating-actions .fa-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--fa-size);
  height: var(--fa-size);
  border-radius: var(--fa-radius);
  background: var(--fa-bg);
  color: var(--fa-txt);
  text-decoration: none;
  box-shadow: var(--fa-shadow);
  transition: all .2s ease;
  position: relative;
  font-size: 1 rem;
  overflow: visible;
}

/* Tooltip */
.floating-actions .fa-label {
  position: absolute;
  top: 50%;
  left: calc(100% + 10px);
  transform: translateY(-50%) translateX(6px);
  background: var(--fa-tooltip-bg);
  color: var(--fa-tooltip-txt);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.2;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

/* Hover/Focus States */
.floating-actions .fa-btn:hover,
.floating-actions .fa-btn:focus-visible {
  background: var(--fa-txt);
  color: var(--fa-bg);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

.floating-actions .fa-btn:hover .fa-label,
.floating-actions .fa-btn:focus-visible .fa-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Scroll to top: deliberately lighter than the two contact buttons. */
.sapura-scroll-top,
button.sapura-scroll-top {
  -webkit-appearance: none;
  align-items: center;
  appearance: none;
  background: #fff !important;
  background-color: #fff !important;
  border: 0 !important;
  border-radius: var(--fa-radius) !important;
  box-sizing: border-box;
  bottom: 24px;
  color: #000 !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.20) !important;
  cursor: pointer;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  opacity: 0;
  padding: 0;
  pointer-events: none;
  position: fixed;
  right: 20px;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  visibility: hidden;
  width: 40px;
  z-index: calc(var(--fa-z) - 1);
}

.sapura-scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.sapura-scroll-top svg {
  fill: none;
  height: 24px;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.8;
  width: 24px;
}

.sapura-scroll-top:hover,
.sapura-scroll-top:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.22) !important;
}

.sapura-scroll-top:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Desktop uses the same warm beige as the regular button hover state. */
@media (min-width: 768px) {
  .sapura-scroll-top,
  button.sapura-scroll-top {
    background: #ebcd8d !important;
    background-color: #ebcd8d !important;
    color: #34353a !important;
  }
}

/* Mobil: unten rechts */
@media (max-width: 767px) {
  .floating-actions {
    top: auto;
    left: auto;
    bottom: 96px;
    right: 16px;
    transform: none;
  }
  .floating-actions .fa-label {
    display: none; /* Tooltips auf Mobil deaktivieren */
  }

  body.woocommerce-cart .floating-actions,
  body.woocommerce-checkout .floating-actions {
    display: none;
  }

  /* Sits under the two contact bubbles, with its own clear touch area. */
  .floating-actions,
  .sapura-scroll-top {
    right: 16px !important;
  }

  .sapura-scroll-top {
    bottom: 24px;
    height: var(--fa-size);
    width: var(--fa-size);
  }

  body.woocommerce-cart .sapura-scroll-top,
  body.woocommerce-checkout .sapura-scroll-top {
    display: none;
  }
}

/* Bewegungen respektieren */
@media (prefers-reduced-motion: reduce) {
.floating-actions .fa-btn,
  .floating-actions .fa-label,
  .sapura-scroll-top {
    transition: none !important;
  }
}
