/* Allgemeines Formular-Layout */
#gec-form {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  font-family: Arial, sans-serif;
  line-height: 1.5;
  box-sizing: border-box;
}

#gec-form h2 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  color: #0073aa;
  font-weight: 400;
}

#gec-form h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: #333;
}

#gec-form p {
  margin: 0.5rem 0;
  font-weight: 500;
  color: #444;
}

/* Inputs */
#gec-form label {
  display: block;
  margin: 0.4rem 0;
  cursor: pointer;
  font-size: 0.95rem;
}

#gec-form input[type="radio"],
#gec-form input[type="checkbox"] {
  margin-right: 0.5rem;
}

#gec-form input[type="email"],
#gec-form input[type="text"] {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  margin-top: 0.3rem;
  box-sizing: border-box;
}

/* Navigation Buttons */
#gec-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  gap: 0.5rem;
}

#gec-form button,
#gec-prev,
#gec-next {
  flex: 1;
  background: #292b2d;
  color: #fff;
  border: none;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

#gec-form button:hover,
#gec-prev:hover,
#gec-next:hover {
  background: #005a87;
}

#gec-form button:disabled,
#gec-prev:disabled,
#gec-next:disabled {
  background: #ccc;
  cursor: not-allowed;
}

#gec-prev {
  background: #fff !important;
  color: #333 !important;
}
#gec-prev:hover {
  background: #aaa !important;
}

#gec-submit {
  background: #17771f !important;
  color: #fff !important;
  padding: 1rem 2rem !important;
  font-size: 1.1rem !important;
  width: 100%;
}

/* Fortschrittsanzeige */
#gec-progress {
  width: 100%;
  background: #f0f0f0;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  height: 10px;
  overflow: hidden;
}

#gec-progress-bar {
  height: 10px;
  width: 0;
  background: #0073aa;
  border-radius: 8px;
  transition: width 0.3s ease;
}

/* Ergebnis-Ausgabe */
#gec-response {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
  font-size: 1rem;
  text-align: center;
}

/* Ampelsystem auf Ergebnisseite */
.gec-result {
  max-width: 600px;
  margin: 2rem auto;
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.ampel {
  font-size: 1.4rem;
  font-weight: bold;
  padding: 1rem;
  margin: 1rem auto;
  border-radius: 8px;
}

.ampel-green {
  background: #c8f7c5;
  color: #2d7a2d;
}
.ampel-yellow {
  background: #fff5b1;
  color: #8a7400;
}
.ampel-red {
  background: #f7c5c5;
  color: #7a1c1c;
}


/* Standard-Label */
#gec-form label {
  display: block;
  padding: 0.6rem 1rem;
  margin: 0.4rem 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f9f9f9;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

#gec-form label.contactdata {
  display: block;
  padding: 0 !important;
  margin: 0.4rem 0;
  border: 0px solid #ccc;
  border-radius: 0px;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

/* wenn ausgewählt */
#gec-form label.selected {
  background: #0073aa;
  color: #fff;
  border-color: #005a87;
  font-weight: 600;
}

/* Blink-Animation */
@keyframes blink {
  0%   { background-color: #0073aa; }
  50%  { background-color: #339fd6; }
  100% { background-color: #0073aa; }
}

/* wenn gerade ausgewählt → kurz animieren */
#gec-form label.blink {
  animation: blink 0.4s ease;
}


/* 📱 Responsive Design */
@media (max-width: 768px) {
  #gec-form {
    padding: 1rem;
    width: 100% !important;
    max-width: 100%;
  }
  #gec-form h2, #gec-form h3 {
    font-size: 1rem;
  }
  #gec-form label {
    font-size: 0.9rem;
  }
  #gec-nav {
    flex-direction: column;
  }
  #gec-nav button {
    width: 100%;
    margin: 0.3rem 0;
    font-size: 1.1rem;
    padding: 1rem;
  }
}


/* Spinner Animation */
#gec-loader {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #555;
}

#gec-loader .spinner {
  margin: 0 auto 0.5rem;
  width: 32px;
  height: 32px;
  border: 4px solid #ccc;
  border-top-color: #0073aa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

