/* === Jobs Page – extends kitas-page.css === */

/* Badge im Hero */
.ps-jobs-badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 18px;
  border-radius: 999px;
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,0.35);
}

/* Section Headings (konsistent mit Kita/Schulen) */
.ps-jobs-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 20px;
  overflow: visible;
  scroll-margin-top: 70px;
}
.ps-jobs-heading {
  text-align: center;
  color: var(--brand-red);
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem);
  font-weight: 900;
  margin: 0 0 6px;
}
.ps-jobs-subheading {
  text-align: center;
  color: #888;
  font-size: 0.95rem;
  margin: 0 0 24px;
}

/* Filter Pills (angepasst an Tag-Style) */
.ps-jobs-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
}
.ps-filter-pill {
  background: #fff;
  border: 2px solid var(--brand-red);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-red);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.ps-filter-pill:hover {
  background: rgba(204,0,51,0.06);
  transform: translateY(-1px);
}
.ps-filter-pill.active {
  background: var(--brand-red);
  color: #fff;
}

/* === Job Cards (basiert auf ps-kita-card) === */
.ps-jobs-list { gap: 24px; }

.ps-job-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.ps-job-card .ps-kita-card-inner.ps-job-card-inner {
  grid-template-columns: auto 1fr;
  align-items: center;
}

/* Emoji Icon Spalte */
.ps-job-icon-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 24px 24px;
}
.ps-job-emoji {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: rgba(204,0,51,0.06);
  border-radius: 16px;
  border: 2px solid rgba(204,0,51,0.12);
  transition: transform 0.2s ease, background 0.2s ease;
}
.ps-job-card:hover .ps-job-emoji {
  transform: scale(1.1) rotate(-4deg);
  background: rgba(204,0,51,0.1);
}

/* Info Spalte */
.ps-job-info {
  padding: 22px 24px 22px 8px;
}
.ps-job-info h2 {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  margin: 0 0 4px;
  transition: color 0.15s;
}
.ps-job-card:hover .ps-job-info h2 {
  color: var(--brand-red);
}

/* Kategorie Badge */
.ps-job-cat-badge {
  display: inline-block;
  width: fit-content;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(204,0,51,0.07);
  color: var(--brand-red);
  margin-bottom: 4px;
}

/* Actions in Card */
.ps-job-info .ps-kita-actions { margin-top: 10px; }
.ps-job-link-btn { font-size: 0.85rem; padding: 8px 18px; }
.ps-job-apply-btn { font-size: 0.85rem; padding: 8px 18px; }

/* === Benefits Grid (gleicher Style wie Partner-Grid) === */
.ps-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.ps-benefit-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: 0 3px 14px rgba(0,0,0,0.05);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ps-benefit-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--brand-red);
  border-radius: 16px 16px 0 0;
  opacity: 0;
  transition: opacity 0.15s;
}
.ps-benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 26px rgba(0,0,0,0.08);
  border-color: rgba(204,0,51,0.2);
}
.ps-benefit-card:hover::before { opacity: 1; }
.ps-benefit-image-wrap {
  height: 148px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0 0 12px;
}
.ps-benefit-icon-img {
  display: block;
  width: min(148px, 100%);
  max-height: 148px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}
.ps-benefit-card h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #222;
  min-height: 2.5em;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.ps-benefit-card p {
  margin: 0;
  font-size: 0.82rem;
  color: #666;
  line-height: 1.5;
}

/* === Bewerbungs-Steps === */
.ps-apply-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px auto 32px;
  max-width: 820px;
}
.ps-apply-step {
  text-align: center;
  padding: 20px 16px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.ps-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-red);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(204,0,51,0.25);
}
.ps-apply-step h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
  color: #222;
}
.ps-apply-step p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #666;
}
.ps-apply-cta {
  text-align: center;
  padding-bottom: 20px;
}

/* Empty State */
.ps-jobs-empty {
  text-align: center;
  padding: 40px 20px;
}
.ps-jobs-empty-img {
  display: block;
  margin: 0 auto 20px;
  width: clamp(180px, 30vw, 300px);
  height: auto;
}
.ps-jobs-empty p {
  color: #666;
  margin: 0 0 16px;
}

/* === Responsive === */
@media (max-width: 800px) {
  .ps-job-card .ps-kita-card-inner.ps-job-card-inner {
    grid-template-columns: 1fr;
  }
  .ps-job-icon-col {
    padding: 18px 18px 0;
    justify-content: flex-start;
  }
  .ps-job-emoji { width: 52px; height: 52px; font-size: 1.6rem; }
  .ps-job-info { padding: 12px 18px 18px; }
  .ps-benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .ps-apply-steps { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 500px) {
  .ps-jobs-section { padding: 32px 16px 16px; }
  .ps-benefits-grid { grid-template-columns: 1fr; }
  .ps-filter-pill { padding: 5px 12px; font-size: 0.78rem; }
  .ps-job-info .ps-kita-actions { flex-direction: column; }
}

.ps-apply-cta-image-wrap {
  margin: 24px auto 0;
  max-width: 520px;
}
.ps-apply-cta-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}
