/* ==========================================================================
   All.in People & Culture — Seitenspezifische Styles: jobs.html
   Nur Layoutbloecke, fuer die das gemeinsame Design-System keine fertige
   Komponente bereitstellt (Kandidaten-Hero, Filterleiste, Initiativ-Block,
   Bewerbungsformular-Rahmen). Verwendet ausschliesslich bestehende Tokens.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero Kandidat:innen (Single, mit Korall-Overlay aus
   .pw-hero-overlay--candidate)
   -------------------------------------------------------------------------- */
.pw-hero-candidate {
  max-width: 720px;
  color: var(--pw-text-on-dark);
}

.pw-hero-candidate .pw-hero-headline {
  color: var(--pw-text-on-dark);
  margin-bottom: var(--pw-space-6);
}

.pw-hero-candidate .pw-section-header__eyebrow {
  color: var(--pw-text-on-dark);
}

.pw-hero-candidate__subtext {
  font-size: var(--pw-text-lg);
  line-height: var(--pw-leading-relaxed);
  color: var(--pw-neutral-050);
  margin-bottom: var(--pw-space-8);
  max-width: 56ch;
}

.pw-hero-candidate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pw-space-4);
}

/* --------------------------------------------------------------------------
   Filterleiste (semantisches <form> mit Label + Select)
   -------------------------------------------------------------------------- */
.pw-job-filter {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  align-items: end;
  gap: var(--pw-space-4);
  background: var(--pw-bg-card);
  border: 1px solid var(--pw-border-default);
  border-radius: var(--pw-radius-xl);
  padding: var(--pw-space-6);
  box-shadow: var(--pw-shadow-xs);
}

/* Felder im Filter brauchen keinen unteren Abstand (Grid steuert den Gap) */
.pw-job-filter .pw-field {
  margin-bottom: 0;
}

.pw-job-filter__actions {
  align-self: end;
}

@media (max-width: 1023px) {
  .pw-job-filter {
    grid-template-columns: 1fr 1fr;
  }
  .pw-job-filter__actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 479px) {
  .pw-job-filter {
    grid-template-columns: 1fr;
    padding: var(--pw-space-5);
  }
}

/* --------------------------------------------------------------------------
   Filter-Ergebnis: Live-Zähler + Leerzustand
   -------------------------------------------------------------------------- */
.pw-job-count {
  margin-top: var(--pw-space-6);
  font-size: var(--pw-text-sm);
  font-weight: var(--pw-weight-medium);
  color: var(--pw-text-muted);
  text-align: center;
}

.pw-job-empty {
  margin-top: var(--pw-space-8);
  padding: var(--pw-space-10) var(--pw-space-6);
  background: var(--pw-bg-card);
  border: 1px dashed var(--pw-border-strong, var(--pw-border-default));
  border-radius: var(--pw-radius-xl);
  text-align: center;
}

.pw-job-empty__title {
  font-size: var(--pw-text-xl);
  font-weight: var(--pw-weight-semibold);
  color: var(--pw-neutral-950);
  margin-bottom: var(--pw-space-2);
}

.pw-job-empty__text {
  font-size: var(--pw-text-base);
  line-height: var(--pw-leading-relaxed);
  color: var(--pw-text-secondary);
  max-width: 48ch;
  margin: 0 auto var(--pw-space-6);
}

/* --------------------------------------------------------------------------
   Initiativbewerbungs-Block (Innenleben des .pw-cta-block)
   -------------------------------------------------------------------------- */
.pw-initiativ__text {
  font-size: var(--pw-text-lg);
  line-height: var(--pw-leading-relaxed);
  color: var(--pw-text-secondary);
  max-width: 60ch;
}

.pw-initiativ__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--pw-space-4);
}

/* --------------------------------------------------------------------------
   Bewerbungsformular
   -------------------------------------------------------------------------- */
.pw-bewerben {
  max-width: 720px;
}

.pw-form-legend {
  font-size: var(--pw-text-sm);
  color: var(--pw-text-muted);
  margin-bottom: var(--pw-space-6);
}

.pw-bewerben__submit {
  margin-bottom: 0;
}
