/* ── /mitglied-werden — Member application form ──
   Lives in the same dark Fortuna look as the rest of the site:
   blue accents, Bebas-Caps for section titles, Outfit for body text.
   Each .mw-block is one logical step (Persönliches, Mitgliedschaft, …). */

.mw-section{
  padding:64px 24px 96px;
  max-width:980px;
  margin:0 auto;
  color:var(--white);
}

.mw-flash{
  padding:14px 18px;border-radius:12px;
  font-weight:600;font-size:14px;
  margin-bottom:24px;
}
.mw-flash-ok{background:rgba(74,222,128,0.12);border:1px solid rgba(74,222,128,0.4);color:#a6f3c0}
.mw-flash-err{background:rgba(255,80,80,0.12);border:1px solid rgba(255,80,80,0.4);color:#ffb4b4}

/* ── checklist banner ── */
.mw-checklist{
  background:linear-gradient(180deg,rgba(26,79,160,0.18),rgba(15,47,96,0.10));
  border:1px solid rgba(37,99,212,0.35);
  border-radius:16px;
  padding:20px 24px;
  margin-bottom:32px;
}
.mw-check-title{
  font-family:'Bebas Neue',sans-serif;
  letter-spacing:0.08em;
  color:var(--blue-bright);
  font-size:18px;margin-bottom:10px;
}
.mw-checklist ul{list-style:none;padding:0;display:grid;gap:6px}
.mw-checklist li{
  font-size:14px;color:rgba(255,255,255,0.85);
  padding-left:22px;position:relative;line-height:1.5;
}
.mw-checklist li::before{
  content:"✓";
  position:absolute;left:0;top:0;
  color:var(--blue-bright);font-weight:700;
}

/* ── form blocks ── */
.mw-form{display:grid;gap:28px}

.mw-block{
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:18px;
  padding:28px 28px 24px;
}
.mw-block-title{
  font-family:'Bebas Neue',sans-serif;
  letter-spacing:0.06em;
  color:var(--white);
  font-size:22px;
  margin-bottom:18px;
  display:flex;align-items:center;gap:14px;
}
.mw-step{
  display:inline-flex;align-items:center;justify-content:center;
  width:32px;height:32px;border-radius:50%;
  background:var(--blue);color:var(--white);
  font-family:'Outfit',sans-serif;font-weight:700;font-size:15px;
  letter-spacing:0;
}
.mw-block-sub{
  font-family:'Bebas Neue',sans-serif;
  letter-spacing:0.05em;
  color:rgba(255,255,255,0.78);
  font-size:14px;
  margin:12px 0 8px;
}
.mw-lead{font-size:13.5px;color:rgba(255,255,255,0.70);line-height:1.6;margin-bottom:14px}
.mw-hint{font-size:12px;color:rgba(255,255,255,0.55);margin-top:6px;line-height:1.5}

/* ── fields ── */
.mw-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:12px}
.mw-grid-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px;margin-bottom:12px}
.mw-span-2{grid-column:span 2}

.mw-field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.mw-field label{
  font-size:11px;letter-spacing:0.08em;text-transform:uppercase;
  color:rgba(255,255,255,0.7);font-weight:600;
}
.mw-field input,
.mw-field select,
.mw-field textarea{
  background:rgba(0,0,0,0.35);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:10px;
  padding:11px 13px;
  font-family:'Outfit',sans-serif;font-size:15px;
  color:var(--white);
  transition:border-color 0.15s,box-shadow 0.15s;
}
.mw-field input:focus,
.mw-field select:focus,
.mw-field textarea:focus{
  outline:none;
  border-color:var(--blue-bright);
  box-shadow:0 0 0 3px rgba(37,99,212,0.22);
}
.mw-field input[type=file]{
  background:rgba(0,0,0,0.20);
  padding:9px 11px;font-size:13px;cursor:pointer;
}
.mw-field input[type=file]::file-selector-button{
  background:var(--blue);color:var(--white);border:none;
  padding:7px 14px;border-radius:6px;cursor:pointer;
  font-family:'Outfit',sans-serif;font-weight:600;
  margin-right:12px;
}
.mw-field input[type=file]::file-selector-button:hover{background:var(--blue-bright)}

/* ── radio + pill choices ── */
.mw-radio-row{display:flex;flex-wrap:wrap;gap:10px;padding-top:4px}
.mw-radio{
  display:inline-flex;align-items:center;gap:6px;
  color:rgba(255,255,255,0.85);font-size:14px;cursor:pointer;
}
.mw-radio input{accent-color:var(--blue-bright)}

.mw-pill-choices{
  display:flex;flex-wrap:wrap;gap:8px;
}
.mw-pill{
  display:inline-flex;align-items:center;
  background:rgba(0,0,0,0.30);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:999px;
  padding:9px 14px;cursor:pointer;
  font-size:14px;color:rgba(255,255,255,0.85);
  transition:border-color 0.15s,background 0.15s;
}
.mw-pill input{appearance:none;-webkit-appearance:none;width:0;height:0;margin:0;border:none;outline:none}
.mw-pill span{display:inline-flex;flex-direction:column;line-height:1.3}
.mw-pill span strong{color:var(--white);font-weight:600}
.mw-pill span em{font-style:normal;font-size:11px;color:rgba(255,255,255,0.55);margin-top:1px}
.mw-pill:hover{border-color:rgba(37,99,212,0.5)}
.mw-pill:has(input:checked){
  background:rgba(37,99,212,0.20);
  border-color:var(--blue-bright);
  color:var(--white);
}

/* ── checkbox rows ── */
.mw-check{
  display:flex;gap:10px;align-items:flex-start;
  padding:8px 0;
  color:rgba(255,255,255,0.82);font-size:14px;line-height:1.5;
  cursor:pointer;
}
.mw-check input[type=checkbox]{
  width:18px;height:18px;margin-top:2px;flex-shrink:0;
  accent-color:var(--blue-bright);cursor:pointer;
}
.mw-check:has(input:disabled){
  opacity:0.45;cursor:not-allowed;
}
.mw-check:has(input:disabled) input[type=checkbox]{cursor:not-allowed;}
.mw-check-strong{
  background:rgba(37,99,212,0.10);
  border:1px solid rgba(37,99,212,0.30);
  border-radius:12px;
  padding:14px 16px;
  font-weight:500;color:var(--white);
}

.mw-consents{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,0.08);
}
.mw-consents-title{
  font-size:11px;letter-spacing:0.08em;text-transform:uppercase;
  color:rgba(255,255,255,0.6);margin-bottom:8px;
}

/* ── signature pad ── */
.mw-sig{margin-top:14px}
.mw-sig-head{
  display:flex;justify-content:space-between;align-items:center;
  gap:10px;flex-wrap:wrap;
  margin-bottom:6px;
}
.mw-sig-label{
  font-size:11px;letter-spacing:0.08em;text-transform:uppercase;
  color:rgba(255,255,255,0.7);font-weight:600;
}
.mw-sig-actions{display:flex;gap:8px;flex-wrap:wrap}
.mw-sig-clear,
.mw-sig-type{
  background:transparent;border:1px solid rgba(255,255,255,0.20);
  color:rgba(255,255,255,0.85);
  padding:5px 12px;border-radius:6px;font-size:12px;cursor:pointer;
  font-family:'Outfit',sans-serif;
}
.mw-sig-clear:hover,
.mw-sig-type:hover{background:rgba(255,255,255,0.06);color:#fff}
.mw-sig-type{
  background:rgba(37,99,212,0.18);
  border-color:rgba(37,99,212,0.45);
  color:#cfe0ff;
}
.mw-sig-type:hover{background:rgba(37,99,212,0.30);color:#fff}
.mw-sig-pad{
  display:block;width:100%;height:180px;
  background:#fff;
  border:1px solid rgba(255,255,255,0.20);
  border-radius:10px;
  touch-action:none;cursor:crosshair;
}
.mw-sig-hint{
  margin-top:6px;
  font-size:12px;color:rgba(255,255,255,0.55);line-height:1.5;
}

/* ── Info-Boxen (Aktiv-Pass, Aufnahmegebühr, Warnhinweise) ── */
.mw-info{
  background:rgba(37,99,212,0.10);
  border:1px solid rgba(37,99,212,0.30);
  border-radius:12px;
  padding:14px 18px;
  margin:12px 0;
}
.mw-info-title{
  font-family:'Bebas Neue',sans-serif;
  letter-spacing:0.06em;
  color:var(--blue-bright);
  font-size:16px;margin-bottom:6px;
}
.mw-info p{
  font-size:13px;color:rgba(255,255,255,0.78);
  line-height:1.55;margin:6px 0;
}
.mw-info p strong{color:var(--white)}
.mw-info a{color:var(--blue-bright);text-decoration:underline}
.mw-info-list{
  font-size:13px;color:rgba(255,255,255,0.78);
  line-height:1.55;margin:6px 0 6px 20px;padding:0;
}
.mw-info-list li{margin-bottom:4px}

/* Warn-Variante für Pflicht-Hinweise (Senioren-Gemeinschaftsarbeit, SEPA-Rückweisung) */
.mw-info-warn{
  background:rgba(250,204,21,0.08);
  border-color:rgba(250,204,21,0.32);
}
.mw-info-warn .mw-info-title{color:#facc15}

/* ── Pflichtfeld-Markierung nach Submit-Versuch ──
   Sobald JS .mw-was-validated auf das Form setzt, malt der Browser die nativ
   ungültigen Inputs rot — der Anwender sieht direkt, was fehlt. */
.mw-was-validated input:invalid:not([type=file]):not([type=hidden]),
.mw-was-validated select:invalid,
.mw-was-validated textarea:invalid{
  border-color:#ff6b6b;
  background:rgba(255,80,80,0.08);
  box-shadow:0 0 0 3px rgba(255,107,107,0.15);
}
.mw-was-validated input[type=file]:invalid{
  border:1px solid #ff6b6b;
  background:rgba(255,80,80,0.08);
}
/* Pflicht-Checkbox am Ende: roter Rahmen wenn nicht angehakt */
.mw-was-validated #termsAcceptanceRow:has(input:invalid){
  border-color:#ff6b6b;
  background:rgba(255,80,80,0.08);
}
/* Marker-Label für ungültige Felder */
.mw-was-validated .mw-field:has(input:invalid) > label,
.mw-was-validated .mw-field:has(select:invalid) > label{
  color:#ffb4b4;
}
.mw-was-validated .mw-field:has(input:invalid)::after,
.mw-was-validated .mw-field:has(select:invalid)::after{
  content:"Pflichtfeld";
  font-size:11px;color:#ff8d8d;
  margin-top:4px;letter-spacing:0.04em;
}

/* ── conditional sections — hidden by default, JS adds .is-visible ── */
.mw-conditional{display:none}
.mw-conditional.is-visible{display:block}
fieldset.mw-conditional.is-visible{display:block}
.mw-conditional.is-visible.mw-field{display:flex}
label.mw-conditional.is-visible.mw-check{display:flex}

/* nested under .mw-conditional, switch the inner controls back on */
.mw-conditional.is-visible .mw-field{display:flex}

/* ── honeypot — fully removed from layout, but not display:none */
.mw-honeypot{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* ── submit + fineprint ── */
.mw-submit{
  background:var(--blue);
  color:var(--white);
  border:none;
  padding:18px 32px;
  border-radius:12px;
  font-family:'Bebas Neue',sans-serif;
  font-size:20px;letter-spacing:0.08em;
  cursor:pointer;
  transition:background 0.15s,transform 0.15s,box-shadow 0.15s;
  align-self:center;justify-self:center;
  margin-top:8px;
}
.mw-submit:hover{
  background:var(--blue-bright);
  transform:translateY(-2px);
  box-shadow:0 12px 32px rgba(26,79,160,0.40);
}
.mw-fineprint{
  text-align:center;
  font-size:12px;color:rgba(255,255,255,0.55);
  margin-top:14px;line-height:1.5;
}
.mw-fineprint a{color:var(--blue-bright);text-decoration:underline}

/* Hinweis-Kachel oben im Formular, wenn der Nutzer per "Zurueck zum
   Bearbeiten" aus der Vorschau kommt und Uploads bereits vorliegen. */
.mw-prefill-notice{
  margin-bottom:24px;padding:14px 18px;
  background:rgba(38,99,212,0.14);border-left:3px solid var(--blue-bright);
  border-radius:8px;color:#e7ecf3;font-size:14px;line-height:1.5;
}
.mw-prefill-notice ul{margin:8px 0 0;padding-left:22px}
.mw-prefill-notice li{margin:2px 0}

/* Dev-Fallback-Kachel: kein normales Success/Error, sondern eigener Look,
   damit klar ist, dass hier nur im Entwicklungsmodus etwas passiert. */
.mw-flash-dev{
  margin-bottom:24px;padding:16px 20px;
  background:rgba(255,193,7,0.10);border-left:4px solid #ffc107;border-radius:8px;
  color:#f5efd8;font-size:14px;line-height:1.5;
}
.mw-flash-dev code{
  background:rgba(255,255,255,0.08);padding:1px 6px;border-radius:4px;
}

/* DSGVO-Hinweis oberhalb des Submit-Buttons — informiert ueber die
   befristete Zwischenspeicherung fuer den Bestaetigungs-Flow. */
.mw-privacy-notice{
  margin:24px auto 14px;padding:12px 16px;max-width:640px;
  background:rgba(38,99,212,0.10);border-left:3px solid var(--blue-bright);border-radius:8px;
  color:#dfe6f2;font-size:13px;line-height:1.55;text-align:left;
}

/* Banner, den das Autospeichern zeigt, wenn ein alter Entwurf wieder ins
   Formular geladen wurde. */
.mw-autosave-banner{
  display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;
  margin-bottom:20px;padding:12px 16px;
  background:rgba(255,193,7,0.10);border-left:3px solid #ffc107;border-radius:8px;
  color:#f5efd8;font-size:14px;
}
.mw-autosave-discard{
  background:transparent;color:#ffe58a;border:1px solid rgba(255,229,138,0.5);
  padding:6px 12px;border-radius:6px;cursor:pointer;font-size:13px;
}
.mw-autosave-discard:hover{background:rgba(255,229,138,0.14);border-color:#ffe58a}

/* ── moderne Datei-Upload-Zone (Ausweis, Passbild, Geburtsurkunde, …) ──
   Das echte <input type=file> bleibt oben drauf liegen (opacity:0, volle
   Flaeche) statt display:none/hidden — so bleiben native HTML5-Validierung,
   Fokus und Drag&Drop ohne jede Handarbeit erhalten. Die dahinterliegende
   .mw-upload-visual ist nur die Deko-Schicht drunter. */
.mw-upload{position:relative;min-height:92px;border-radius:12px}
.mw-upload input[type=file]{
  position:absolute;inset:0;width:100%;height:100%;
  opacity:0;cursor:pointer;z-index:2;margin:0;
}
.mw-upload-visual{
  position:absolute;inset:0;z-index:1;
  display:flex;align-items:center;gap:14px;
  padding:14px 18px;
  background:rgba(0,0,0,0.20);
  border:2px dashed rgba(255,255,255,0.16);
  border-radius:12px;
  transition:border-color 0.15s,background 0.15s;
  pointer-events:none;
}
.mw-upload-icon{
  flex-shrink:0;width:40px;height:40px;border-radius:9px;
  display:flex;align-items:center;justify-content:center;
  font-size:19px;background:rgba(255,255,255,0.06);
  overflow:hidden;
}
.mw-upload-thumb{width:100%;height:100%;object-fit:cover;border-radius:9px}
.mw-upload-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.mw-upload-title{
  font-size:14px;font-weight:600;color:var(--white);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.mw-upload-hint{font-size:12px;color:rgba(255,255,255,0.55)}
.mw-upload-remove{
  position:absolute;top:8px;right:8px;z-index:3;
  pointer-events:auto;
  width:26px;height:26px;border-radius:50%;
  background:rgba(0,0,0,0.45);border:1px solid rgba(255,255,255,0.2);
  color:#fff;font-size:15px;line-height:1;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
}
.mw-upload-remove:hover{background:rgba(255,80,80,0.35);border-color:rgba(255,80,80,0.5)}

.mw-upload:hover .mw-upload-visual{border-color:rgba(255,255,255,0.30)}
.mw-upload[data-dragover] .mw-upload-visual{
  border-color:var(--blue-bright);
  background:rgba(37,99,212,0.14);
}
.mw-upload[data-filled] .mw-upload-visual{
  border-style:solid;
  border-color:rgba(74,222,128,0.4);
  background:rgba(74,222,128,0.07);
}
.mw-upload[data-prefilled] .mw-upload-visual{
  border-style:solid;
  border-color:rgba(37,99,212,0.45);
  background:rgba(37,99,212,0.10);
}
.mw-upload[data-invalid] .mw-upload-visual{
  border-color:#ff6b6b;
  background:rgba(255,80,80,0.08);
}
.mw-was-validated .mw-upload:has(input:invalid) .mw-upload-visual{
  border-color:#ff6b6b;
  background:rgba(255,80,80,0.08);
}

/* ── responsive ── */
@media (max-width:760px){
  .mw-section{padding:48px 16px 80px}
  .mw-block{padding:22px 18px 18px}
  .mw-block-title{font-size:18px}
  .mw-grid-2,.mw-grid-3{grid-template-columns:1fr}
  .mw-span-2{grid-column:auto}
  .mw-sig-pad{height:140px}
  .mw-pill-choices{flex-direction:column;align-items:stretch}
  .mw-pill{justify-content:flex-start}
  .mw-upload{min-height:76px}
  .mw-upload-icon{width:34px;height:34px;font-size:16px}
}
