/* Team-Bewerbungen (ROADMAP 8F): /team/apply, /team/apply/{id}, /team/apply/mine und Cockpit-Reiter "Applications".
   Baut auf site.css + support.css auf (Verlauf .sup-thread/.sup-msg). Nur Design-Tokens -> hell/dunkel automatisch. */

.apply-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.apply-side { display: grid; gap: 0; align-content: start; }
.apply-positions { display: grid; gap: 16px; }

.apply-pos { display: grid; gap: 12px; }
.apply-pos .card-title { margin: 0; }
.apply-pos-head { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.apply-group { display: inline-flex; gap: 6px; align-items: center; }
.apply-group .icon { width: 14px; height: 14px; }
.apply-desc { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); }
.apply-pos-req { padding: 12px 14px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--border); }
.apply-pos-req .label { margin: 0 0 8px; }
.apply-pos-foot { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.apply-pos-foot .hint { flex-basis: 100%; margin: 0; }
.apply-blocker { margin: 0; }

/* Bedingungen: ohne Prüfung (Liste) und mit Prüfung (erfüllt/nicht erfüllt) */
.apply-reqs, .apply-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.apply-reqs li, .apply-checks li { display: flex; gap: 10px; align-items: flex-start; }
.apply-reqs .icon, .apply-checks .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--muted); }
.apply-checks li.is-met .icon { color: var(--ok); }
.apply-checks li.is-unmet .icon { color: var(--bad); }
.apply-checks li.is-unmet .apply-check-label { font-weight: 650; }
.apply-check-text { display: grid; gap: 2px; min-width: 0; }

/* Formular */
.apply-form { display: grid; gap: 4px; }
.apply-q label { font-weight: 650; }
.apply-choices { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.apply-choice {
  display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: var(--radius); cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--border); font-weight: 600;
}
.apply-choice:hover { border-color: var(--border-strong); }
.apply-choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.apply-choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Meine Bewerbungen */
.apply-mine-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; align-items: start; }
.apply-answers { margin: 10px 0 0; display: grid; gap: 4px; }
.apply-answers dt { font-weight: 650; margin-top: 8px; }
.apply-answers dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); }
.apply-answers-box { padding: 10px 14px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--border); }
.apply-answers-box summary { cursor: pointer; font-weight: 650; }
.sup-msg.apply-status-entry { background: var(--surface); }

/* Cockpit */
.apply-admin-sec { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.apply-admin-h { display: flex; gap: 8px; align-items: center; margin: 0 0 10px; font-size: 15px; }
.apply-admin-h .icon { width: 16px; height: 16px; color: var(--muted); }
.apply-admin-form { display: grid; gap: 8px; }
.apply-admin-form select { width: auto; }
.apply-rate-form { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
.apply-ratings { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; }
.apply-ratings b { color: var(--accent-text); letter-spacing: 1px; }
.apply-pos-form .form-grid { margin-bottom: 4px; }
.apply-qe-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: q; }
.apply-qe {
  display: grid; gap: 8px; padding: 12px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--border);
  counter-increment: q;
}
.apply-qe::before { content: counter(q) "."; font-weight: 700; color: var(--muted); }
.apply-qe .row { flex-wrap: wrap; }
.apply-qe-len .field { flex: 1 1 140px; margin: 0; }

@media (max-width: 900px) {
  .apply-layout, .apply-mine-layout { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .apply-rate-form { grid-template-columns: 1fr; }
  .apply-pos-foot .btn { width: 100%; justify-content: center; }
}
