/* ═══════════════════════════════════════════════════════════
   PFLEGEJOB-PORTAL – Ergaenzende Stile
   Nutzt ausschliesslich Design-Tokens aus css/styles.css.
   Klassen-Praefix: .pj- (Pflegeportal, kein Konflikt mit global)
════════════════════════════════════════════════════════════ */

/* ─── Job-Listenitem ──────────────────────────────────────── */
.pj-job-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pj-job-item {
  display: block;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(94, 14, 56, 0.05);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.pj-job-item:hover {
  border-color: rgba(173, 17, 96, 0.35);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.pj-job-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.3;
}

.pj-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--muted);
}

.pj-job-meta li {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.pj-job-meta svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.pj-job-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
}

/* ─── Filter-Form ─────────────────────────────────────────── */
.pj-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  align-items: flex-end;
}

.pj-filters .field,
.pj-filters .select {
  flex: 1 1 200px;
  min-width: 140px;
  max-width: 320px;
}

.pj-filters-btn {
  flex-shrink: 0;
}

/* ─── Paginierung ─────────────────────────────────────────── */
.pj-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.pj-pagination a,
.pj-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.pj-pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.pj-pagination .is-current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  pointer-events: none;
}

.pj-pagination .is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ─── Kein-Ergebnis-Box ───────────────────────────────────── */
.pj-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}

.pj-empty p { margin: 0.5rem 0 0; }

/* ─── Berufe-Kachelraster ─────────────────────────────────── */
.pj-beruf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
}

.pj-beruf-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  box-shadow: 0 2px 8px rgba(94, 14, 56, 0.05);
}

.pj-beruf-card:hover {
  border-color: rgba(173, 17, 96, 0.35);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.pj-beruf-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  overflow: hidden;
}

.pj-beruf-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pj-beruf-card__img svg {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

.pj-beruf-card__body {
  padding: 1rem 1.15rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pj-beruf-card__name {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.pj-beruf-card__count {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.pj-beruf-card__arrow {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ─── Job-Detail ──────────────────────────────────────────── */
.pj-detail-header {
  margin-bottom: 2rem;
}

.pj-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pj-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.pj-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.5rem;
  align-items: start;
}

.pj-detail-sidebar {
  position: sticky;
  top: 120px;
}

.pj-sidebar-box {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.pj-sidebar-box h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.pj-meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pj-meta-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text);
}

.pj-meta-list strong {
  min-width: 110px;
  color: var(--muted);
  font-weight: 600;
}

.pj-detail-blocks h2 {
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.pj-detail-blocks ul {
  padding-left: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--text);
  line-height: 1.7;
}

.pj-detail-blocks li { margin-bottom: 0.3rem; }

.pj-block-section {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(94, 14, 56, 0.04);
}

.pj-beispiel-hinweis {
  padding: 0.75rem 1rem;
  background: rgba(255, 200, 0, 0.1);
  border: 1px solid rgba(200, 160, 0, 0.25);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: #7a5c00;
  margin-bottom: 1.5rem;
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .pj-detail-grid {
    grid-template-columns: 1fr;
  }
  .pj-detail-sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 600px) {
  .pj-beruf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pj-filters .field,
  .pj-filters .select {
    max-width: 100%;
  }
}

@media (max-width: 380px) {
  .pj-beruf-grid {
    grid-template-columns: 1fr;
  }
}
