/* From Uiverse.io by Gaurang7717 */ 
.waBtn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  position: fixed;
  bottom: 20px;
  right: 20px;
  overflow: hidden;
  transition-duration: 0.3s;
  box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
  background-color: #25D366;
  z-index: 1000;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.sign {
  width: 100%;
  transition-duration: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sign svg {
  width: 30px;
  height: 30px;
}

.sign svg path {
  fill: white;
}
.text {
  position: absolute;
  right: 0%;
  width: 0%;
  opacity: 0;
  color: white;
  font-size: 1.2em;
  font-weight: 600;
  transition-duration: 0.3s;
}

.waBtn:hover {
  width: 180px;
  border-radius: 40px;
  transition-duration: 0.3s;
  animation-play-state: paused;
}

.waBtn:hover .sign {
  width: 30%;
  transition-duration: 0.3s;
  padding-left: 15px;
}

.waBtn:hover .text {
  opacity: 1;
  width: 70%;
  transition-duration: 0.3s;
  padding-right: 15px;
}
.waBtn:active {
  transform: translate(2px, 2px);
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .waBtn {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }
  
  .waBtn:hover {
    width: 160px;
  }
  
  .sign svg {
    width: 25px;
    height: 25px;
  }
}

/* Text ist nur bei Hover sichtbar */
.waBtn .text {
  display: none;
}

.waBtn:hover .text {
  display: block;
}
