/* Schwebender WhatsApp-Button, uebernommen von den Surfschul-Seiten.
 *
 * Reines HTML und CSS, kein Skript. Farben nach docs/BRAND.md:
 * WhatsApp-Zeichen #25d366, Beschriftung #128c7e auf Weiss, beim Hover
 * gefuellte WhatsApp-Flaeche mit weisser Schrift.
 * z-index 90 liegt ueber den Seiteninhalten, aber unter dem mobilen
 * Navigations-Overlay (z-index 1000/1001).
 */

.sfn-wa {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 17px;
  color: #12181f !important;
  background: #fff;
  border: 1px solid rgba(37, 211, 102, 0.45);
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(37, 211, 102, 0.26),
              0 3px 8px rgba(18, 24, 31, 0.10);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease,
              box-shadow 0.2s ease;
}

.sfn-wa-icon {
  flex: 0 0 auto;
  color: #25d366;
  transition: color 0.2s ease;
}

.sfn-wa-text {
  color: #128c7e;
  transition: color 0.2s ease;
}

.sfn-wa:hover,
.sfn-wa:focus-visible {
  color: #fff !important;
  background: #25d366;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(37, 211, 102, 0.38),
              0 3px 8px rgba(18, 24, 31, 0.14);
}

.sfn-wa:hover .sfn-wa-icon,
.sfn-wa:focus-visible .sfn-wa-icon,
.sfn-wa:hover .sfn-wa-text,
.sfn-wa:focus-visible .sfn-wa-text {
  color: #fff;
}

@media (max-width: 560px) {
  .sfn-wa {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
    padding: 11px 16px 11px 14px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sfn-wa,
  .sfn-wa:hover,
  .sfn-wa:focus-visible {
    transform: none;
  }
}
