/* ============================================================
   Bewerbungsformular – Upload-Feld + Dateiliste + Status
   (Grundoptik: .form-card/.form-grid/.form-field aus components.css)
   ============================================================ */

.af-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 26px 18px;
  border: 1.5px dashed var(--teal-soft, #9fd3db);
  border-radius: var(--radius);
  background: var(--teal-tint, #e6f3f4);
  color: var(--ink-mid);
  text-align: center;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.af-drop svg { width: 30px; height: 30px; color: var(--teal, #0a8ea0); }
.af-drop__text { font-size: 15px; color: var(--ink); }
.af-drop__text strong { color: var(--teal-deep, #087584); }
.af-drop__hint { font-size: 12.5px; color: var(--ink-soft); }

/* Das echte Dateifeld liegt unsichtbar über der ganzen Fläche (Klick + Drag & Drop) */
.af-drop input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; padding: 0; border: 0;
}
.af-drop:hover,
.af-drop.is-over { border-color: var(--teal, #0a8ea0); background: #d9eef1; }
.af-drop:focus-within { border-color: var(--teal, #0a8ea0); box-shadow: 0 0 0 4px rgba(0, 162, 184, 0.12); }
.af-drop.is-invalid { border-color: #c0392b; background: #fbe8e8; }

.af-files { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.af-files:empty { display: none; }
.af-files li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--white); font-size: 14px;
}
.af-files__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.af-files__size { color: var(--ink-soft); font-size: 12.5px; white-space: nowrap; }
.af-files__remove {
  border: 0; background: none; cursor: pointer; padding: 4px; line-height: 0;
  color: var(--ink-soft); border-radius: 6px;
}
.af-files__remove:hover, .af-files__remove:focus-visible { color: #c0392b; background: #fbe8e8; }
.af-files__remove svg { width: 16px; height: 16px; }

.form-field input.is-invalid,
.form-field select.is-invalid { border-color: #c0392b; }

.af-status { margin-top: 18px; padding: 14px 18px; border-radius: 14px; font-size: 15px; }
.af-status.is-ok    { background: #E6F4E9; color: #15613F; border: 1px solid #BFE0C8; }
.af-status.is-error { background: #FBE8E8; color: #7A2424; border: 1px solid #ECC0C0; }
