/* GW Mitgliedschaft Bewerbungsformular */

#gw-membership-form-wrapper {
  max-width: 720px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  color: #222;
}

/* ---- Schritt-Indikator ---- */
.gw-steps {
  display: flex;
  gap: 0;
  margin-bottom: 36px;
  counter-reset: step;
}
.gw-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  opacity: 0.4;
  transition: opacity .2s;
}
.gw-step.active,
.gw-step.done {
  opacity: 1;
}
.gw-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ddd;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  position: relative;
  z-index: 1;
}
.gw-step.active .gw-step-num {
  background: #245876;
  color: #fff;
}
.gw-step.done .gw-step-num {
  background: #245876;
  color: #fff;
}
.gw-step::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  height: 2px;
  background: #ddd;
  z-index: 0;
}
.gw-step:first-child::before { left: 50%; }
.gw-step:last-child::before  { right: 50%; }
.gw-step.done::before,
.gw-step.done + .gw-step::before {
  background: #245876;
}
.gw-step-label {
  font-size: 12px;
  text-align: center;
  color: #555;
  white-space: nowrap;
}
@media (max-width: 500px) {
  .gw-step-label { display: none; }
}

/* ---- Responsive (Mobile) ---- */
@media (max-width: 540px) {
  /* Wrapper-Padding auf kleinen Screens */
  #gw-membership-form-wrapper {
    padding: 0 4px;
  }

  /* Split-Zeilen untereinander stapeln */
  .gw-form-row-split {
    flex-direction: column;
    gap: 0;
  }
  .gw-form-row-split > div {
    max-width: 100% !important;
  }

  /* Mitgliedschaftstyp-Karten: einzeln pro Zeile */
  .gw-membership-type-cards {
    flex-direction: column;
  }
  .gw-type-card {
    min-width: 0;
  }

  /* Buttons: volle Breite, umgekehrte Reihenfolge (Weiter oben) */
  .gw-nav-buttons {
    flex-direction: column-reverse;
  }
  .gw-btn {
    width: 100%;
    justify-content: center;
  }

  /* Zusammenfassung: Tabelle lesbar halten */
  .gw-summary-box td:first-child {
    width: auto;
    display: block;
    padding-bottom: 2px;
  }
  .gw-summary-box td:last-child {
    display: block;
    padding-top: 0;
    padding-bottom: 10px;
  }
  .gw-summary-box tr {
    display: block;
  }

  /* Überschriften etwas kleiner */
  .gw-form-step h2 {
    font-size: 19px;
  }
}

/* ---- Formularbereich ---- */
.gw-form-step h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #245876;
}
.gw-form-step h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #eee;
}

.gw-form-row {
  margin-bottom: 18px;
}
.gw-form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}
.gw-form-row input[type="text"],
.gw-form-row input[type="email"],
.gw-form-row input[type="tel"],
.gw-form-row input[type="number"],
.gw-form-row select,
.gw-form-row textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #d0d0d0;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color .15s;
  background: #fff;
}
.gw-form-row input:focus,
.gw-form-row select:focus,
.gw-form-row textarea:focus {
  border-color: #245876;
  outline: none;
  box-shadow: 0 0 0 3px rgba(36,88,118,.1);
}
.gw-form-row input.gw-error,
.gw-form-row select.gw-error,
.gw-form-row textarea.gw-error {
  border-color: #ff5657;
}
.gw-form-row textarea {
  resize: vertical;
  min-height: 90px;
}
.gw-form-row-split {
  display: flex;
  gap: 16px;
}
.gw-form-row-split > div {
  flex: 1;
}
.req    { color: #ff5657; }
.optional { color: #999; font-weight: 400; font-size: 13px; }
.gw-hint  { font-size: 12px; color: #777; margin-top: 5px; }

/* ---- Mitgliedschafts-Karten ---- */
.gw-membership-type-cards {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.gw-type-card {
  flex: 1;
  min-width: 220px;
  cursor: pointer;
}
.gw-type-card input[type="radio"] {
  display: none;
}
.gw-type-card-inner {
  border: 2px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: border-color .15s, box-shadow .15s;
  height: 100%;
  box-sizing: border-box;
}
.gw-type-card input:checked + .gw-type-card-inner {
  border-color: #245876;
  box-shadow: 0 0 0 3px rgba(36,88,118,.12);
}
.gw-type-icon  { font-size: 36px; margin-bottom: 8px; }
.gw-type-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.gw-type-price { font-size: 24px; font-weight: 700; color: #245876; margin-bottom: 10px; }
.gw-type-desc  { font-size: 13px; color: #555; line-height: 1.5; }

/* ---- Steuer-Hinweis ---- */
.gw-tax-hint {
  background: #eef5f9;
  border-left: 4px solid #245876;
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 13px;
  color: #333;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ---- Beitrags-Optionen ---- */
.gw-fee-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gw-fee-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s;
}
.gw-fee-option input[type="radio"] {
  margin-top: 3px;
  flex-shrink: 0;
}
.gw-fee-option:has(input:checked) {
  border-color: #245876;
}
.gw-fee-label { line-height: 1.5; }

/* ---- Checkboxes ---- */
.gw-checkboxes { margin-bottom: 24px; }
.gw-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  cursor: pointer;
  line-height: 1.5;
}
.gw-checkbox-row input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: #245876;
}

/* ---- Zusammenfassung ---- */
.gw-summary-box {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}
.gw-summary-box table { width: 100%; border-collapse: collapse; }
.gw-summary-box td { padding: 6px 8px; font-size: 14px; vertical-align: top; }
.gw-summary-box td:first-child { font-weight: 600; color: #555; width: 160px; }

/* ---- Buttons ---- */
.gw-nav-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 28px;
  flex-wrap: wrap;
}
.gw-btn {
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.gw-btn-primary {
  background: #245876;
  color: #fff;
}
.gw-btn-primary:hover { background: #1c4560; }
.gw-btn-primary:disabled { background: #999; cursor: not-allowed; }
.gw-btn-secondary {
  background: transparent;
  color: #245876;
  border-color: #245876;
}
.gw-btn-secondary:hover { background: #eef5f9; }

/* ---- Fehler- und Erfolgsboxen ---- */
.gw-error-box {
  background: #fff3f3;
  border: 1px solid #ff5657;
  border-radius: 6px;
  padding: 14px 18px;
  color: #cc2222;
  font-size: 14px;
  margin-bottom: 16px;
}
.gw-success-box,
.gw-verify-box {
  text-align: center;
  padding: 48px 24px;
}
.gw-success-icon { font-size: 56px; margin-bottom: 16px; }
.gw-success-box h2,
.gw-verify-box h2 { font-size: 26px; margin-bottom: 16px; color: #245876; }
.gw-verify-success h2 { color: #245876; }
.gw-verify-error h2   { color: #ff5657; }
