/**
 * WhatsApp Widget Styles
 * Version: 1.0.0
 */

/* ═══════════════════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES (Variablen für einfache Anpassung)
   ═══════════════════════════════════════════════════════════════ */
:root {
  --wa-green: #25D366;
  --wa-green-hover: #128C7E;
  --wa-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  --wa-shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.25);
  --wa-button-size: 60px;
  --wa-position-bottom: 24px;
  --wa-position-right: 24px;
  --wa-z-index: 9999;
}

/* ═══════════════════════════════════════════════════════════════
   WIDGET CONTAINER
   ═══════════════════════════════════════════════════════════════ */
#wa-widget {
  position: fixed;
  bottom: var(--wa-position-bottom);
  right: var(--wa-position-right);
  z-index: var(--wa-z-index);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   TOOLTIP
   ═══════════════════════════════════════════════════════════════ */
#wa-tooltip {
  background-color: #fff;
  color: #333;
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: var(--wa-shadow);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

/* Tooltip ausgeblendet */
#wa-tooltip.wa-tooltip--hidden {
  opacity: 0;
  transform: translateY(10px);
}

/* Tooltip-Pfeil */
#wa-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 26px;
  width: 12px;
  height: 12px;
  background-color: #fff;
  transform: rotate(45deg);
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* ═══════════════════════════════════════════════════════════════
   BUTTON
   ═══════════════════════════════════════════════════════════════ */
#wa-button {
  width: var(--wa-button-size);
  height: var(--wa-button-size);
  border-radius: 50%;
  background-color: var(--wa-green);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--wa-shadow);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#wa-button:hover {
  background-color: var(--wa-green-hover);
  transform: scale(1.08);
  box-shadow: var(--wa-shadow-hover);
}

#wa-button:focus {
  outline: 3px solid rgba(37, 211, 102, 0.4);
  outline-offset: 2px;
}

#wa-button:active {
  transform: scale(0.96);
}

/* SVG Icon im Button */
#wa-button svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE ANPASSUNGEN
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  :root {
    --wa-button-size: 54px;
    --wa-position-bottom: 16px;
    --wa-position-right: 16px;
  }

  #wa-tooltip {
    font-size: 13px;
    padding: 8px 12px;
  }

  #wa-button svg {
    width: 28px;
    height: 28px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION (Barrierefreiheit)
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  #wa-button,
  #wa-tooltip {
    transition: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   PRINT STYLES (Widget im Druck ausblenden)
   ═══════════════════════════════════════════════════════════════ */
@media print {
  #wa-widget {
    display: none !important;
  }
}
