/* Zwevende WhatsApp- en Telegram-knoppen (rechtsonder), gedeeld op alle pagina's */

.floating-contact-buttons {
  position: fixed;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: max(26px, env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 99999;
}

.floating-contact-button {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  position: relative;
  overflow: hidden;
}

.floating-contact-button::after {
  content: attr(data-label);
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 18, 36, 0.92);
  color: #fff;
  font: 600 13px/1 "Poppins", sans-serif;
  letter-spacing: 0.2px;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.floating-contact-button:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.35);
  filter: brightness(1.04);
}

.floating-contact-button:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(-2px);
}

.floating-contact-button svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.floating-contact-button.whatsapp {
  background: linear-gradient(135deg, #25d366, #1cb558);
}

.floating-contact-button.telegram {
  background: linear-gradient(135deg, #2aa5e0, #1f8cc3);
}

@media (max-width: 768px) {
  .floating-contact-buttons {
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
  }

  .floating-contact-button {
    width: 54px;
    height: 54px;
  }

  .floating-contact-button::after {
    display: none;
  }
}

/* Zeer smalle schermen: knoppen blijven voldoende groot en binnen het kader */
@media (max-width: 360px) {
  .floating-contact-button {
    width: 52px;
    height: 52px;
  }

  .floating-contact-button svg {
    width: 26px;
    height: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-contact-button {
    transition: none;
  }

  .floating-contact-button:hover {
    transform: none;
  }

  .floating-contact-button::after {
    transition: none;
  }
}
