/* ===== KOMPLETTE ERSETZUNG für styles/components/lead-form.css ===== */

/* Enhanced CTA Button */
.cta-button-enhanced {
  background: linear-gradient(45deg, var(--primary-yellow), #ffdd4a);
  color: var(--text-dark);
  border: none;
  padding: 1.2rem 2.5rem;
  font-size: 1.3rem;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
  text-decoration: none;
  display: inline-block;
}

.cta-button-enhanced:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
  background: linear-gradient(45deg, #ffdd4a, var(--primary-yellow));
}

/* Flyer Card CTA Integration - NEUE KLEINERE VERSION */
.flyer-cta-button {
  background: var(--primary-yellow);
  color: var(--text-dark);
  border: none;
  padding: 0.6rem 1rem; /* ✅ KLEINER: war 0.8rem 1.5rem */
  font-size: 0.9rem; /* ✅ KLEINER: war 1rem */
  font-weight: bold;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
  width: auto; /* ✅ GEÄNDERT: war 100% */
  max-width: 200px; /* ✅ NEU: Maximale Breite */
  margin: 1rem auto 0; /* ✅ NEU: Zentriert */
  display: block; /* ✅ NEU: Für Zentrierung */
}

.flyer-cta-button:hover {
  background: #e6ac00;
  transform: translateY(-2px);
}

/* Lead Form Styles */
.lead-form-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--lead-form-overlay-bg);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: var(--z-modal);
  padding: var(--space-4);
}

.lead-form-modal {
  background: var(--bg-primary);
  border-radius: var(--lead-form-border-radius);
  padding: var(--lead-form-padding);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-modal);
}

.lead-form-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: none;
  border: none;
  font-size: var(--font-size-2xl);
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-fast);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
}

.lead-form-close:hover {
  background: var(--gray-light);
  color: var(--text-dark);
}

.lead-form h2 {
  margin-bottom: var(--space-6);
  color: var(--primary-blue);
  text-align: center;
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
}

.emergency-highlight {
  background: linear-gradient(135deg, var(--accent-warning), #ffdd4a);
  color: var(--text-dark);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  text-align: center;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-lg);
  border: 2px solid rgba(255, 193, 7, 0.3);
  animation: emergencyPulse 2s ease-in-out infinite;
}

@keyframes emergencyPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.lead-form-group {
  margin-bottom: var(--space-5);
}

.lead-form-group label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: var(--font-weight-semibold);
  color: var(--text-dark);
  font-size: var(--font-size-base);
}

.lead-form-group input,
.lead-form-group select,
.lead-form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-family: var(--font-primary);
  transition: var(--transition-fast);
  background: var(--bg-primary);
  color: var(--text-dark);
}

.lead-form-group input:focus,
.lead-form-group select:focus,
.lead-form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(30, 58, 95, 0.1);
}

.lead-form-group textarea {
  min-height: 80px;
  resize: vertical;
}

.lead-form-row {
  display: flex;
  gap: var(--space-4);
}

.lead-form-row .lead-form-group {
  flex: 1;
}

.lead-form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin: var(--space-6) 0;
}

.lead-form-checkbox input[type="checkbox"] {
  width: auto;
  margin-top: var(--space-1);
  transform: scale(1.2);
}

.lead-form-checkbox label {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  margin: 0;
  font-weight: var(--font-weight-normal);
}

.lead-form-checkbox a {
  color: var(--primary-blue);
  text-decoration: underline;
  transition: var(--transition-fast);
}

.lead-form-checkbox a:hover {
  color: var(--primary-blue-hover);
}

.lead-form-submit {
  background: var(--primary-yellow);
  color: var(--text-dark);
  border: none;
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  border-radius: var(--radius-full);
  cursor: pointer;
  width: 100%;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-button);
}

.lead-form-submit:hover {
  background: var(--primary-yellow-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-button-hover);
}

.lead-form-submit:disabled {
  background: var(--gray-medium);
  color: var(--text-disabled);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.lead-form-success,
.lead-form-error {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  text-align: center;
  font-weight: var(--font-weight-medium);
  display: none;
}

.lead-form-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.lead-form-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f1aeb5;
}

/* Responsive Design */
@media (max-width: 768px) {
  .lead-form-modal {
    padding: var(--space-6);
    width: 95%;
    margin: var(--space-4);
  }

  .lead-form-row {
    flex-direction: column;
    gap: 0;
  }

  .cta-button-enhanced {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-lg);
  }

  .flyer-cta-button {
    padding: 0.5rem 0.8rem; /* ✅ Noch kleiner auf Mobile */
    font-size: 0.85rem;
    max-width: 180px;
  }
}

@media (max-width: 480px) {
  .lead-form-modal {
    padding: var(--space-4);
    width: 98%;
    margin: var(--space-2);
  }

  .lead-form h2 {
    font-size: var(--font-size-xl);
  }

  .emergency-highlight {
    font-size: var(--font-size-base);
    padding: var(--space-3);
  }

  .lead-form-submit {
    padding: var(--space-3) var(--space-6);
    font-size: var(--font-size-base);
  }

  .cta-button-enhanced {
    padding: var(--space-3) var(--space-6);
    font-size: var(--font-size-base);
  }

  .flyer-cta-button {
    padding: 0.5rem 0.7rem; /* ✅ Noch kleiner auf sehr kleinen Bildschirmen */
    font-size: 0.8rem;
    max-width: 160px;
  }
}
