/* ============================================================
   MEMBERSHIP FORM DESIGN (Firefox-safe)
   Datei: /fileadmin/css/membership-form.css
   ============================================================ */


/* ============================================================
   1) FORM SCOPE (nur dieses Formular!)
   ============================================================ */

.form-container.form-identifier-mG-Antrag-FFHB-5978 {
  max-width: 980px;
  margin: 40px auto;
  padding: 0 18px;
}


/* ============================================================
   2) MAIN WHITE CARD
   ============================================================ */

.form-container.form-identifier-mG-Antrag-FFHB-5978 form {
  background: #ffffff;
  border: 1px solid #d8d8d8;
  border-radius: 22px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  padding: 46px 50px;
}


/* ============================================================
   3) TYPOGRAPHY
   ============================================================ */

.form-container.form-identifier-mG-Antrag-FFHB-5978 h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.15;
}

.form-container.form-identifier-mG-Antrag-FFHB-5978 p {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 22px;
}


/* ============================================================
   4) FIELDSET / BLOCKS (Cards)
   ============================================================ */

.form-container.form-identifier-mG-Antrag-FFHB-5978 fieldset {
  background: #f6f6f6;              /* leicht graues Innenleben */
  border: 2px solid #cfcfcf;        /* stärkerer Rahmen */
  border-radius: 18px;
  padding: 28px 30px;
  margin: 28px 0;
}

.form-container.form-identifier-mG-Antrag-FFHB-5978 legend {
  font-size: 30px;
  font-weight: 800;
  color: #111;
  padding: 0 10px;
}


/* ============================================================
   5) FORM GROUPS
   ============================================================ */

.form-container.form-identifier-mG-Antrag-FFHB-5978 .form-group {
  margin-bottom: 18px;
}

.form-container.form-identifier-mG-Antrag-FFHB-5978 label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #111;
}

.form-container.form-identifier-mG-Antrag-FFHB-5978 label .required {
  color: #7b0f1c;
  font-weight: 800;
  margin-left: 2px;
}


/* ============================================================
   6) INPUTS / SELECTS / TEXTAREAS
   ============================================================ */

.form-container.form-identifier-mG-Antrag-FFHB-5978 input[type="text"],
.form-container.form-identifier-mG-Antrag-FFHB-5978 input[type="email"],
.form-container.form-identifier-mG-Antrag-FFHB-5978 input[type="number"],
.form-container.form-identifier-mG-Antrag-FFHB-5978 input[type="tel"],
.form-container.form-identifier-mG-Antrag-FFHB-5978 select,
.form-container.form-identifier-mG-Antrag-FFHB-5978 textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #cfcfcf;
  background: #ffffff;
  font-size: 16px;
  color: #222;
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.04);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.form-container.form-identifier-mG-Antrag-FFHB-5978 input:focus,
.form-container.form-identifier-mG-Antrag-FFHB-5978 select:focus,
.form-container.form-identifier-mG-Antrag-FFHB-5978 textarea:focus {
  outline: none;
  border-color: #7b0f1c;
  box-shadow: 0 0 0 4px rgba(123, 15, 28, 0.15);
}


/* ============================================================
   7) DESCRIPTION TEXTS (kleine Hinweise)
   ============================================================ */

.form-container.form-identifier-mG-Antrag-FFHB-5978 .form-text {
  margin-top: 6px;
  font-size: 13px;
  color: #555;
  line-height: 1.4;
}


/* ============================================================
   8) CHECKBOXES / RADIO LOOK
   ============================================================ */

.form-container.form-identifier-mG-Antrag-FFHB-5978 .form-group-checkbox label,
.form-container.form-identifier-mG-Antrag-FFHB-5978 .form-group-multicheckbox label {
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.form-container.form-identifier-mG-Antrag-FFHB-5978 input[type="checkbox"],
.form-container.form-identifier-mG-Antrag-FFHB-5978 input[type="radio"] {
  margin-top: 4px;
  transform: scale(1.2);
}


/* ============================================================
   9) FLEX GRID (2 columns for selected fieldsets)
   Firefox-safe: flex-wrap
   ============================================================ */

.form-container.form-identifier-mG-Antrag-FFHB-5978 fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 22px;
}

.form-container.form-identifier-mG-Antrag-FFHB-5978 fieldset > .form-group {
  flex: 0 0 100%;
}

/* 2-Spalten-Layout nur bei Kontakt + Zahlungsangaben */
.form-container.form-identifier-mG-Antrag-FFHB-5978
fieldset#mG-Antrag-FFHB-5978-fieldset-1 > .form-group,
.form-container.form-identifier-mG-Antrag-FFHB-5978
fieldset#mG-Antrag-FFHB-5978-fieldset-4 > .form-group {
  flex: 0 0 calc(50% - 11px);
}

/* Felder, die IMMER 100% bleiben sollen */
.form-container.form-identifier-mG-Antrag-FFHB-5978
fieldset#mG-Antrag-FFHB-5978-fieldset-1 .form-group:has([id$="-email"]),
.form-container.form-identifier-mG-Antrag-FFHB-5978
fieldset#mG-Antrag-FFHB-5978-fieldset-4 .form-group:has([id$="-iban"]) {
  flex: 0 0 100%;
}

/* Checkboxen immer 100% */
.form-container.form-identifier-mG-Antrag-FFHB-5978
fieldset .form-group.form-group-checkbox,
.form-container.form-identifier-mG-Antrag-FFHB-5978
fieldset .form-group.form-group-multicheckbox {
  flex: 0 0 100%;
}


/* ============================================================
   10) BUTTONS
   ============================================================ */

.form-container.form-identifier-mG-Antrag-FFHB-5978 .form-actions {
  margin-top: 30px;
  display: flex;
  justify-content: flex-end;
}

.form-container.form-identifier-mG-Antrag-FFHB-5978 button,
.form-container.form-identifier-mG-Antrag-FFHB-5978 input[type="submit"] {
  background: #7b0f1c;
  color: #fff;
  border: none;
  padding: 14px 26px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.form-container.form-identifier-mG-Antrag-FFHB-5978 button:hover,
.form-container.form-identifier-mG-Antrag-FFHB-5978 input[type="submit"]:hover {
  background: #5f0b15;
  transform: translateY(-1px);
}


/* ============================================================
   11) MOBILE FIX
   ============================================================ */

@media (max-width: 850px) {

  .form-container.form-identifier-mG-Antrag-FFHB-5978 form {
    padding: 26px 20px;
  }

  .form-container.form-identifier-mG-Antrag-FFHB-5978 h2 {
    font-size: 32px;
  }

  .form-container.form-identifier-mG-Antrag-FFHB-5978 fieldset {
    padding: 20px 18px;
  }

  /* Mobile: alles untereinander */
  .form-container.form-identifier-mG-Antrag-FFHB-5978
  fieldset#mG-Antrag-FFHB-5978-fieldset-1 > .form-group,
  .form-container.form-identifier-mG-Antrag-FFHB-5978
  fieldset#mG-Antrag-FFHB-5978-fieldset-4 > .form-group {
    flex: 0 0 100%;
  }
}
