/* Globaler Footer-Kontakt: unter Navigation (50) und mobiler Kontaktleiste (49). */
.whatsapp-float {
  position: fixed;
  z-index: 40;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  max-width: calc(100vw - 48px);
  min-height: 60px;
  align-items: center;
  gap: 12px;
  padding: 11px 20px 11px 16px;
  border: 1px solid var(--brass, #b39a69);
  border-radius: 999px;
  background: var(--paper, #f4f2ed);
  color: var(--ink, #191a1a);
  box-shadow: 0 6px 24px rgba(25, 26, 26, .12);
  font-family: var(--body, "DM Sans", Arial, sans-serif);
  text-decoration: none;
  opacity: 1;
  transform: translateY(0);
  transition: background .2s ease, box-shadow .2s ease;
  animation: whatsapp-appear .45s var(--ease, cubic-bezier(.22, .7, .25, 1)) .15s backwards;
}

.whatsapp-float__icon {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: #1f8051;
  fill: currentColor;
}

.whatsapp-float__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  white-space: nowrap;
}

.whatsapp-float__label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.3;
}

.whatsapp-float__detail {
  color: var(--graphite, #353635);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .025em;
  line-height: 1.4;
}

@media (hover: hover) {
  .whatsapp-float:hover {
    background: var(--paper-deep, #eae8e1);
    box-shadow: 0 7px 26px rgba(25, 26, 26, .16);
  }
}

.whatsapp-float:focus-visible {
  outline: 3px solid var(--brass, #b39a69);
  outline-offset: 4px;
}

/* Kein konkurrierender Kontakt während geöffneter Dialoge oder Navigation. */
html:has(dialog[open]) .whatsapp-float,
body:has([data-main-nav].is-open) .whatsapp-float {
  display: none;
}

@keyframes whatsapp-appear {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .whatsapp-float {
    right: 16px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    max-width: calc(100vw - 32px);
    min-height: 48px;
    gap: 9px;
    padding: 11px 16px;
  }

  .whatsapp-float__icon { width: 22px; height: 22px; }
  .whatsapp-float__detail { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}
