/* Kontakt-Knopf (Anrufen / WhatsApp) */
.kyro-contact {
  --kyro-contact-color: #8f44bf;
  --kyro-contact-on: #fff;
  --kyro-contact-lift: 0px;
  position: fixed;
  z-index: 1900;
  bottom: calc(20px + var(--kyro-contact-lift));
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  transition: bottom 0.25s ease;
}

.kyro-contact--right {
  right: 20px;
  align-items: flex-end;
}

.kyro-contact--left {
  left: 20px;
  align-items: flex-start;
}

.kyro-contact-fab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 0 20px 0 17px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--kyro-contact-color) 78%, #fff) 0%,
    var(--kyro-contact-color) 55%,
    color-mix(in srgb, var(--kyro-contact-color) 82%, #000) 100%
  );
  color: var(--kyro-contact-on);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--kyro-contact-color) 34%, transparent);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.kyro-contact-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--kyro-contact-color) 42%, transparent);
}

.kyro-contact-fab:focus-visible,
.kyro-contact-option:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--kyro-contact-color) 45%, transparent);
  outline-offset: 3px;
}

.kyro-contact-fab svg,
.kyro-contact-label {
  position: relative;
}

/* Wie beim Logo: ein heller Schimmer zieht gelegentlich darueber, dazu ein
   leiser Ring, der auf den Knopf aufmerksam macht. */
.kyro-contact-fab--animated::before {
  position: absolute;
  inset: -12px;
  content: "";
  background: linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, 0.42), transparent 63%);
  transform: translateX(-70%);
  animation: kyro-contact-shine 7s ease-in-out infinite;
  pointer-events: none;
}

.kyro-contact-fab--animated::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  content: "";
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--kyro-contact-color) 45%, transparent);
  animation: kyro-contact-ring 7s ease-out infinite;
  pointer-events: none;
}

@keyframes kyro-contact-shine {
  0%,
  74%,
  100% {
    transform: translateX(-70%);
  }
  82% {
    transform: translateX(65%);
  }
}

@keyframes kyro-contact-ring {
  0%,
  70% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--kyro-contact-color) 45%, transparent);
  }
  88%,
  100% {
    box-shadow: 0 0 0 14px color-mix(in srgb, var(--kyro-contact-color) 0%, transparent);
  }
}

.kyro-contact--open .kyro-contact-fab::before,
.kyro-contact--open .kyro-contact-fab::after {
  animation: none;
}

.kyro-contact-menu {
  width: min(290px, calc(100vw - 40px));
  padding: 12px;
  border: 1px solid var(--line, rgba(23, 20, 33, 0.1));
  border-radius: 18px;
  background: var(--surface, #fff);
  color: var(--text, #15141b);
  box-shadow: 0 18px 50px rgba(20, 17, 40, 0.18);
  animation: kyro-contact-in 160ms ease-out;
}

.kyro-contact-menu[hidden] {
  display: none;
}

.kyro-contact-title {
  margin: 2px 4px 10px;
  font-size: 14px;
  font-weight: 800;
}

.kyro-contact-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 13px;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease;
}

.kyro-contact-option + .kyro-contact-option {
  margin-top: 6px;
}

.kyro-contact-option:hover {
  background: var(--surface-2, #f1f1f8);
}

.kyro-contact-option-icon {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: var(--kyro-contact-color);
  color: var(--kyro-contact-on);
}

.kyro-contact-option--whatsapp .kyro-contact-option-icon {
  background: #25d366;
  color: #fff;
}

.kyro-contact-option-copy strong {
  display: block;
  font-size: 15px;
}

.kyro-contact-option-copy small {
  display: block;
  color: var(--muted, #706f7c);
  font-size: 12px;
}

@keyframes kyro-contact-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 420px) {
  .kyro-contact--right {
    right: 14px;
  }
  .kyro-contact--left {
    left: 14px;
  }
  .kyro-contact-fab {
    width: 54px;
    padding: 0;
    justify-content: center;
  }
  .kyro-contact-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .kyro-contact,
  .kyro-contact-fab,
  .kyro-contact-menu {
    transition: none;
    animation: none;
  }
  .kyro-contact-fab--animated::before,
  .kyro-contact-fab--animated::after {
    animation: none;
    display: none;
  }
}
