/* =========================================
   KLICK-FUNNEL (wiederverwendbar)
   Eingebunden auf: index, elektroinstallation, e-mobilitaet, kontakt
   Logik: assets/js/funnel.js
   ========================================= */
.funnel-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 70px;
  box-sizing: border-box;
  font-family: inherit;
}

.funnel-widget {
  background: var(--white);
  width: 100%;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
  padding-bottom: 20px;
  scroll-margin-top: 120px;
}

.widget-header {
  padding: 30px;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
  background: #fafafa;
}
.widget-header h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 1.7rem;
  font-weight: 700;
}
.widget-header p {
  margin: 8px 0 0 0;
  color: var(--text-grey);
}

.progress-container {
  background-color: #e2e8f0;
  height: 6px;
  width: 100%;
}
.progress-bar {
  background-color: var(--blue-tech);
  height: 100%;
  width: 0%;
  transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(0, 176, 255, 0.4);
}

.step-container {
  padding: 50px 40px;
  display: none;
  text-align: center;
  animation: fadeIn 0.4s;
  width: 100%;
  box-sizing: border-box;
}
.step-container.active {
  display: block;
}

.step-title {
  margin-top: 0;
  color: var(--text-dark);
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 700;
}
.step-title:focus-visible {
  outline: 2px solid var(--blue-tech);
  outline-offset: 4px;
}
p.subtitle {
  color: var(--text-grey);
  font-size: 1.1rem;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.options-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  width: 100%;
}

.option-card {
  background: var(--bg-color-solid);
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  padding: 25px 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 150px;
  max-width: 200px;
  min-height: 150px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
}

.option-card:hover,
.option-card:focus-visible {
  border-color: var(--blue-tech);
  background-color: var(--white);
  box-shadow: 0 10px 25px rgba(0, 176, 255, 0.15);
  transform: translateY(-5px);
  z-index: 2;
}

.option-card.selected {
  border-color: var(--blue-tech) !important;
  background-color: var(--blue-dark) !important;
  color: var(--white) !important;
  transform: scale(0.98);
}
.option-card.selected * {
  color: var(--white) !important;
}

.option-icon {
  font-size: 2.3rem;
  margin-bottom: 12px;
}
.option-label {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1.05rem;
  margin-bottom: 4px;
  line-height: 1.2;
}
.option-sub {
  font-size: 0.85rem;
  color: var(--text-grey);
  opacity: 0.9;
}

.btn-back {
  margin-top: 30px;
  background: none;
  border: none;
  color: var(--text-grey);
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.9rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.btn-back:hover,
.btn-back:focus-visible {
  color: var(--text-dark);
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}
.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.form-group {
  width: 100%;
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 18px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: var(--text-dark);
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
  font-family: inherit;
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue-tech);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 176, 255, 0.25);
}

.btn-submit {
  background-color: var(--blue-dark);
  color: var(--white);
  border: none;
  padding: 20px 30px;
  font-size: 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  width: 100%;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  margin-top: 10px;
  box-shadow: 0 10px 24px -12px rgba(0, 35, 57, 0.6);
}
.btn-submit:hover,
.btn-submit:focus-visible {
  background-color: #003b5e;
  transform: translateY(-2px);
}
.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .step-container {
    padding: 30px 15px;
  }
  .widget-header h2 {
    font-size: 1.4rem;
  }
  .option-card {
    flex: 1 1 40%;
    min-width: 130px;
    max-width: none;
    padding: 15px 5px;
    min-height: 120px;
  }
  .option-icon {
    font-size: 1.8rem;
  }
  .option-label {
    font-size: 0.9rem;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
