/* ============================================================
   FORM-KOMPONENTE · mehrstufiges Formular (Schritt-Karten, 12er-Grid,
   Feld-Styles, Pill-/Check-Auswahl, Submit-Bar, Erfolgs-Box).
   Verwendet von: crew.html, mitglied.html.
   Sichtbarkeit der Erfolgs-Box wird ausschließlich über das
   HTML-Attribut `hidden` gesteuert (kein display:none hier).
   ============================================================ */
.form-step {
  background: white; border: 1px solid rgba(11,46,63,0.08);
  padding: 36px 40px; margin-bottom: 16px;
  position: relative;
}
.form-step .step-num {
  position: absolute; left: -24px; top: 24px;
  background: var(--red); color: white;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 900; font-style: normal; font-size: 20px;
}
.form-step .step-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  margin-bottom: 22px;
}
.form-step .step-head .h {
  font-family: var(--display); font-weight: 900; font-style: normal;
  font-size: 32px; text-transform: uppercase; color: var(--ink);
  line-height: 1; margin: 0;
}
.form-step .step-head .h .r { color: var(--red); }
.form-step .step-head .opt {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: #6B7B82;
}
.form-step-note {
  margin-top: 14px; font-family: var(--body); font-size: 13px; line-height: 1.5; color: #5b5853;
}

.form-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.col-12 { grid-column: span 12; }
.col-9 { grid-column: span 9; }
.col-8 { grid-column: span 8; }
.col-6 { grid-column: span 6; }
.col-5 { grid-column: span 5; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }
.col-2 { grid-column: span 2; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field .l {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink); font-weight: 700;
}
.field .l .req { color: var(--red); }
.field input,
.field select,
.field textarea {
  width: 100%; padding: 12px 14px;
  background: var(--paper);
  border: 1.5px solid rgba(11,46,63,0.10); border-radius: 0;
  font-family: var(--body); font-size: 15px; color: var(--ink);
  transition: border-color .12s;
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--red); }
.field textarea { min-height: 90px; resize: vertical; }
.field .hint {
  font-family: var(--body); font-size: 12px; color: #6B7B82; line-height: 1.4;
}
.field .hint.block { display: block; margin-top: 6px; }

.pill-group { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-group input[type=radio],
.pill-group input[type=checkbox] { position: absolute; opacity: 0; pointer-events: none; }
.pill-group label {
  cursor: pointer;
  background: white; color: var(--ink);
  padding: 10px 16px; border: 1.5px solid rgba(11,46,63,0.12);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 700;
  transition: all .12s;
}
.pill-group input:checked + label {
  background: var(--red); color: white; border-color: var(--red);
}

.check-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid rgba(11,46,63,0.06);
}
.check-row:last-child { border-bottom: none; }
.check-row.no-border { border: none; }
.check-row.boxed {
  border: 1.5px solid rgba(11,46,63,0.10); background: white;
  padding: 18px; align-items: flex-start;
}
.check-row input[type=checkbox] {
  flex-shrink: 0; width: 22px; height: 22px;
  accent-color: var(--red); margin-top: 2px;
}
.check-row .txt {
  font-family: var(--body); font-size: 14px; line-height: 1.55; color: var(--ink);
}
.check-row .txt strong { color: var(--ink); }
.check-row .txt a { color: var(--red); text-decoration: underline; }
.check-row .txt .req { color: var(--red); font-weight: 700; }

.submit-bar {
  background: var(--ink); color: white;
  padding: 32px 40px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.submit-bar .left {
  font-family: var(--display); font-weight: 900; font-style: normal;
  font-size: 26px; text-transform: uppercase; line-height: 0.95;
}
.submit-bar .left .r { color: var(--red); }
.submit-bar button {
  background: var(--red); color: white; border: none;
  font-family: var(--display); font-weight: 900; font-style: normal;
  font-size: 20px; padding: 18px 32px; text-transform: uppercase;
  letter-spacing: 0.02em; cursor: pointer;
  transition: background .12s;
}
.submit-bar button:hover { background: var(--red-deep); }

/* === Success-Box nach Absenden === */
.form-success {
  margin-top: 16px; background: var(--red); color: white;
  padding: 36px 40px; position: relative; overflow: hidden;
}
.form-success .ghost {
  position: absolute; right: -20px; top: -30px; font-family: var(--display);
  font-weight: 900; font-style: normal; font-size: 200px; color: white;
  line-height: 0.78; opacity: 0.18;
}
.form-success .content { position: relative; }
.form-success .eyebrow { color: rgba(255,255,255,0.85); }
.form-success .eyebrow .num { color: white; font-weight: 700; }
.form-success .display { font-size: 48px; color: white; margin-top: 10px; line-height: 0.95; }
.form-success .display .ink-accent { color: var(--ink); }
.form-success p {
  font-family: var(--body); font-size: 15px; line-height: 1.55; margin-top: 14px;
  color: rgba(255,255,255,0.92); max-width: 620px;
}
.form-success .actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.form-success .actions button,
.form-success .actions a {
  font-family: var(--display); font-weight: 900; font-style: normal; font-size: 16px;
  padding: 14px 22px; text-transform: uppercase; letter-spacing: 0.02em;
  cursor: pointer; border: none; text-decoration: none;
}
.form-success .actions .on-red { background: var(--ink); color: white; }
.form-success .actions .on-white { background: white; color: var(--ink); }
.form-success .actions .outline { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.5); }
.form-success .contact {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.7); margin-top: 18px;
}

/* === MOBILE ≤760px — Teil, der auf beiden Seiten identisch ist.
   Seiten-eigene Abweichungen (Form-Step-Innenabstand/Step-Num-Position,
   Erfolgs-Headline-Größe) stehen bewusst in pages/crew.css bzw.
   pages/mitglied.css, da sie sich zwischen den Seiten unterscheiden. === */
@media (max-width: 760px) {
  /* iOS-Zoom verhindern */
  input, select, textarea { font-size: 16px !important; }

  .form-grid { grid-template-columns: 1fr; }
  .col-12, .col-9, .col-8, .col-6, .col-5, .col-4, .col-3, .col-2 {
    grid-column: 1 / -1 !important;
  }

  .submit-bar { padding: 24px 20px; }
  .submit-bar .left { font-size: 22px; }
  .submit-bar button { width: 100%; font-size: 18px; padding: 16px 20px; }
  .form-success { padding: 28px 20px !important; }
}
