/* Fragebogen Wizard Styles */

/* Basis-Styling für den Fragebogen Container */
#fragebogen_zuschu_meu {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Alle Fragen-Gruppen standardmäßig ausblenden */
.question-group {
  display: none;
  padding: 40px;
  min-height: 400px;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.4s ease-in-out;
}

/* Aktive Fragen-Gruppe anzeigen */
.question-group.active {
  display: block !important;
  opacity: 1;
  transform: translateX(0);
}

/* Fragen-Header */
.question-header {
  background: linear-gradient(135deg, var(--col-fach, #002e63), #0056b3);
  color: white;
  padding: 20px 40px;
  margin: -40px -40px 30px -40px;
  border-radius: 12px 12px 0 0;
}

.question-number {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 5px;
}

.question-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: white;
}

/* Widget-Styling - nur innerhalb des Fragebogens */
#fragebogen_zuschu_meu .widget {
  margin-bottom: 25px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  /*border-left: 4px solid var(--col-fach, #002e63);*/
  transition: all 0.3s ease;
}

#fragebogen_zuschu_meu .widget:hover {
  background: #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Label-Styling - nur innerhalb des Fragebogens */
#fragebogen_zuschu_meu .widget label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #333;
  font-size: 16px;
}

/* Input-Styling - nur innerhalb des Fragebogens */
#fragebogen_zuschu_meu .widget input[type="text"],
#fragebogen_zuschu_meu .widget input[type="number"],
#fragebogen_zuschu_meu .widget input[type="email"],
#fragebogen_zuschu_meu .widget select,
#fragebogen_zuschu_meu .widget textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  line-height: 1.5;
}

/* Spezielle Anpassung für Select-Felder - nur innerhalb des Fragebogens */
#fragebogen_zuschu_meu .widget select {
  min-height: 50px;
  padding: 14px 16px;
  background-color: white;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

#fragebogen_zuschu_meu .widget input[type="text"]:focus,
#fragebogen_zuschu_meu .widget input[type="number"]:focus,
#fragebogen_zuschu_meu .widget input[type="email"]:focus,
#fragebogen_zuschu_meu .widget select:focus,
#fragebogen_zuschu_meu .widget textarea:focus {
  outline: none;
  border-color: var(--col-fach, #002e63);
  box-shadow: 0 0 0 3px rgba(0, 46, 99, 0.1);
}

/* Radio Button Styling - nur innerhalb des Fragebogens */
#fragebogen_zuschu_meu .radio_container {
  border: none;
  padding: 0;
  margin: 0;
}

#fragebogen_zuschu_meu .radio_container legend {
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  font-size: 16px;
}

#fragebogen_zuschu_meu .widget .radio_container span {
  display: block;
  margin-bottom: 10px;
  padding: 10px 15px;
  background: white;
  border: 2px solid #ddd;
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

#fragebogen_zuschu_meu .widget .radio_container span:hover {
  border-color: var(--col-fach, #002e63);
  background: #f0f7ff;
}

#fragebogen_zuschu_meu .widget .radio_container input[type="radio"] {
  margin-right: 10px;
  transform: scale(1.2);
  cursor: pointer;
}

#fragebogen_zuschu_meu .widget .radio_container label {
  cursor: pointer;
  margin: 0;
  font-weight: normal;
  display: inline;
  width: auto;
}

#fragebogen_zuschu_meu
  .widget
  .radio_container
  input[type="radio"]:checked
  + label {
  color: var(--col-fach, #002e63);
  font-weight: 600;
}

#fragebogen_zuschu_meu
  .widget
  .radio_container
  span:has(input[type="radio"]:checked) {
  border-color: var(--col-fach, #002e63);
  background: #f0f7ff;
}

/* Fallback für Browser ohne :has() Support - nur innerhalb des Fragebogens */
#fragebogen_zuschu_meu .widget .radio_container span.checked {
  border-color: var(--col-fach, #002e63);
  background: #f0f7ff;
}

/* Navigation Buttons - nur innerhalb des Fragebogens */
#fragebogen_zuschu_meu .wizard-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: #f8f9fa;
  border-top: 1px solid #dee2e6;
}

#fragebogen_zuschu_meu .nav-button {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#fragebogen_zuschu_meu .nav-button.primary {
  background: var(--col-fach, #002e63);
  color: white;
}

#fragebogen_zuschu_meu .nav-button.primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 46, 99, 0.3);
}

#fragebogen_zuschu_meu .nav-button.secondary {
  background: #6c757d;
  color: white;
}

#fragebogen_zuschu_meu .nav-button.secondary:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

#fragebogen_zuschu_meu .nav-button:disabled {
  background: #e9ecef;
  color: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Progress Bar - nur innerhalb des Fragebogens */
#fragebogen_zuschu_meu .progress-container {
  background: #e9ecef;
  height: 6px;
  margin-bottom: 0;
}

#fragebogen_zuschu_meu .progress-bar {
  background: linear-gradient(90deg, var(--col-fach, #002e63), #0056b3);
  height: 100%;
  width: 0%;
  transition: width 0.4s ease;
}

/* Progress Info - nur innerhalb des Fragebogens */
#fragebogen_zuschu_meu .progress-info {
  text-align: center;
  padding: 15px;
  background: #f8f9fa;
  color: #6c757d;
  font-size: 14px;
}

/* Mandatory Field Indicator komplett deaktiviert */
.mandatory::after {
  display: none !important;
}

/* Verstecke auch HTML-Sternchen die direkt als span.mandatory im HTML stehen */
span.mandatory {
  display: none !important;
}

/* Falls explizit gewünscht, nur für spezifische Labels aktivieren */
/*.widget label.mandatory::after,
.widget legend.mandatory::after {
  content: " *";
  color: #dc3545;
}*/

/* Responsive Design */
@media (max-width: 768px) {
  #fragebogen_zuschu_meu {
    margin: 10px;
    border-radius: 8px;
  }

  #fragebogen_zuschu_meu .question-group {
    padding: 20px;
    min-height: 300px;
  }

  #fragebogen_zuschu_meu .question-header {
    padding: 15px 20px;
    margin: -20px -20px 20px -20px;
  }

  #fragebogen_zuschu_meu .wizard-navigation {
    padding: 15px 20px;
    flex-direction: column;
    gap: 10px;
  }

  #fragebogen_zuschu_meu .nav-button {
    width: 100%;
    padding: 15px;
  }
}

/* Animation für Fragewechsel */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

#fragebogen_zuschu_meu .question-group.active {
  animation: slideInRight 0.4s ease-out;
}

/* Zusätzliche visuelle Verbesserungen - nur innerhalb des Fragebogens */
#fragebogen_zuschu_meu .widget textarea {
  min-height: 120px;
  resize: vertical;
}

#fragebogen_zuschu_meu .invisible {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

/* Submit Button Styling - nur innerhalb des Fragebogens */
#fragebogen_zuschu_meu input[type="submit"] {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 100%;
  margin-top: 20px;
}

#fragebogen_zuschu_meu input[type="submit"]:hover {
  background: linear-gradient(135deg, #218838, #1fa085);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Verstecke Elemente die vom JavaScript als nicht mehr benötigt markiert werden - nur innerhalb des Fragebogens */
#fragebogen_zuschu_meu .wizard-hidden {
  display: none !important;
}
