/* Bewerbungsformular: Schritt-Leiste und Panels.
   Ohne JavaScript bleiben Leiste und Weiter/Zurück verborgen und alle Schritte
   stehen untereinander — die Klasse afs-form--stepped setzt erst das Skript. */

.afs-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}
.afs-form:not(.afs-form--stepped) .afs-steps { display: none; }

.afs-step-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 8px;
    border: 1px solid #e2e5e3;
    border-radius: 999px;
    background: #fff;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}
.afs-step-btn:disabled { cursor: default; opacity: .6; }
.afs-step-btn:not(:disabled):hover { border-color: #056136; color: #056136; }

.afs-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f1f3f2;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.afs-step.is-active .afs-step-btn {
    border-color: #056136;
    background: #eaf4ee;
    color: #056136;
    font-weight: 600;
}
.afs-step.is-active .afs-step-num { background: #056136; color: #fff; }
.afs-step.is-visited .afs-step-num { background: #cfe4d8; color: #056136; }

/* ---- Panels ---- */
.afs-panel { border: none; padding: 0; margin: 0 0 8px; }
.afs-form--stepped .afs-panel { display: none; }
.afs-form--stepped .afs-panel.is-active { display: block; }

.afs-panel-title { font-size: 20px; }
.afs-form--stepped .afs-panel-title { display: none; }
.afs-panel-desc { margin-top: -4px; }

/* ---- Datumsfeld ----
   Ohne Wert zeigen Chrome und Safari "tt.mm.jjjj" in Textfarbe — das sieht aus
   wie eine getaetigte Eingabe. Hier als Platzhalter eingefaerbt; das Attribut
   data-filled setzt das Skript. Dazu ein Padding-Reset auf dem Shadow-DOM des
   Wertes, damit er mit den Textfeldern auf einer Linie sitzt, und ein dezenteres
   Kalendersymbol. Firefox kennt diese Pseudo-Elemente nicht. */
.afs-form input[type="date"]::-webkit-datetime-edit,
.afs-form input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
}
.afs-form input[type="date"]:not([data-filled])::-webkit-datetime-edit {
    color: #9aa0a6;
}
.afs-form input[type="date"]::-webkit-calendar-picker-indicator {
    margin-inline-start: 8px;
    opacity: .5;
    cursor: pointer;
}
.afs-form input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.afs-heading {
    margin: 20px 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}
.afs-checkbox { display: flex; align-items: flex-start; gap: 8px; }
.afs-field[hidden] { display: none !important; }

/* ---- Navigation ---- */
.afs-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #eceeed;
}
.afs-nav-spacer { flex: 1; }
.afs-form:not(.afs-form--stepped) .afs-prev,
.afs-form:not(.afs-form--stepped) .afs-next { display: none; }
.afs-nav [hidden] { display: none !important; }
