/* ============================================================
   Mitgliedsantrag – Formular, Auswahlgruppen & Unterschriftenfeld
   Baut auf den globalen Tokens/Formularstilen aus styles.css auf.
   ============================================================ */

.antrag-form {
  display: block;
}

.form-intro {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.form-intro .req,
.req {
  color: var(--error);
  font-weight: 700;
}

/* ---------- Sektionen ---------- */
.antrag-section {
  border: none;
  border-top: 1px solid var(--line-soft);
  margin: 0;
  padding: 30px 0 4px;
}

.antrag-section:first-of-type {
  border-top: none;
  padding-top: 4px;
}

.antrag-section > legend {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  margin-bottom: 20px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 600;
}

.sec-no {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
}

.section-hint {
  margin: -6px 0 16px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

/* ---------- Feldbreiten ---------- */
.col-span-2 {
  grid-column: 1 / -1;
}

.antrag-form label.stack {
  margin-top: 16px;
}

.mt {
  margin-top: 4px;
}

/* ---------- Auswahlgruppen (Radio / Checkbox in einer Reihe) ---------- */
.field-group {
  border: none;
  padding: 0;
  margin: 4px 0 18px;
}

.field-group > legend {
  padding: 0;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

/* .choice überschreibt das globale grid-Layout von .form label */
.antrag-form label.choice {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 11px 16px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.antrag-form label.choice:hover {
  border-color: var(--navy);
}

.antrag-form label.choice input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--navy);
  cursor: pointer;
}

.antrag-form label.choice:has(input:checked) {
  border-color: var(--navy);
  background: color-mix(in srgb, var(--navy) 8%, var(--white));
}

/* ---------- Erklärungs-Checkboxen ---------- */
.antrag-section .checkbox {
  margin-bottom: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.antrag-section .checkbox em {
  color: var(--muted);
  font-style: normal;
  font-weight: 500;
}

/* ---------- Unterschriftenfeld ---------- */
.signature {
  margin-top: 8px;
}

.signature-label {
  margin-bottom: 9px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
}

.signature-stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  overflow: hidden;
}

.signature-pad {
  display: block;
  width: 100%;
  height: 210px;
  /* verhindert Scrollen/Zoomen beim Zeichnen auf Touchgeräten */
  touch-action: none;
  cursor: crosshair;
  background:
    repeating-linear-gradient(0deg, transparent 0 41px, var(--line-soft) 41px 42px);
}

.signature-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.2s var(--ease);
}

.signature.has-signature .signature-hint {
  opacity: 0;
}

.signature.invalid .signature-stage {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.signature-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.button-small {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.button-block {
  width: 100%;
  margin-top: 26px;
  justify-content: center;
}

/* ---------- Honeypot (unsichtbar, nur für Bots) ---------- */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Sende-Zustand ---------- */
.antrag-form.is-sending .button-block {
  opacity: 0.6;
  pointer-events: none;
}

.form-status.success,
.form-status.error {
  font-size: 0.95rem;
  line-height: 1.5;
}
