/* BE PURE Discovery — Public Jobs Presentation Layer (Standalone Prototype v0.1)
   Eigenständiges Stylesheet, bewusst getrennt von style.css (Admin-Oberfläche).
   Designprinzipien: ruhig, hell, grosszügig, editorial, sachlich-ästhetisch.
   Siehe knowledgebase/content/architecture/
   be_pure_discovery_presentation_engine_concept_v0_1_20260719.md */

:root {
  --pj-bg: #faf8f4;
  --pj-bg-soft: #f2efe8;
  --pj-card: #ffffff;
  --pj-text: #1b1a17;
  --pj-muted: #6f6a60;
  --pj-line: #e7e2d8;
  --pj-accent: #1f5c4a;
  --pj-accent-soft: #e5efeb;
  --pj-badge-remote: #eaf3ec;
  --pj-badge-remote-text: #1f5c4a;
  --pj-badge-hybrid: #f6efe1;
  --pj-badge-hybrid-text: #8a5a1e;
  --pj-badge-onsite: #eef0f2;
  --pj-badge-onsite-text: #55606b;
  --pj-radius: 16px;
  --pj-radius-sm: 10px;
  --pj-shadow: 0 1px 2px rgba(20, 20, 15, 0.04), 0 8px 24px rgba(20, 20, 15, 0.05);
  --pj-shadow-hover: 0 2px 6px rgba(20, 20, 15, 0.06), 0 16px 32px rgba(20, 20, 15, 0.09);
}

.pj-body {
  margin: 0;
  background: var(--pj-bg);
  color: var(--pj-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.pj-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px 96px;
}

/* ── Top bar ─────────────────────────────────────────────────────────── */

.pj-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 8px;
}

.pj-wordmark {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--pj-text);
  text-decoration: none;
}

.pj-wordmark span {
  color: var(--pj-accent);
}

.pj-topbar-links a {
  color: var(--pj-muted);
  text-decoration: none;
  font-size: 14px;
  margin-left: 22px;
}

.pj-topbar-links a:hover { color: var(--pj-text); }

/* ── Sprachumschalter DE/EN/FR/IT ────────────────────────────────────── */
.pj-langswitch { display: inline-flex; gap: 2px; margin-left: 20px; vertical-align: middle; }
.pj-lang {
  color: var(--pj-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  padding: 3px 7px;
  border-radius: 6px;
  line-height: 1;
}
.pj-lang:hover { color: var(--pj-text); background: var(--pj-bg-soft); }
.pj-lang.active { color: var(--pj-accent); background: var(--pj-accent-soft); }
/* Hero-Variante (heller Text auf dem Bild) */
.pj-topbar--hero .pj-lang { color: rgba(255,255,255,.82); }
.pj-topbar--hero .pj-lang:hover { color: #fff; background: rgba(255,255,255,.16); }
.pj-topbar--hero .pj-lang.active { color: #fff; background: rgba(255,255,255,.24); }
/* Footer-Variante (eigene Zeile unter den Links) */
.pj-footer-links .pj-langswitch { margin-left: 0; margin-top: 12px; flex-basis: 100%; }

/* ── Hero ────────────────────────────────────────────────────────────── */

/* ── Hero (full-bleed): HG-Video / Jumbo-Foto + Gradient-Mesh-Fallback ──── */

.pj-hero {
  position: relative;
  min-height: 76vh;
  display: flex;
  overflow: hidden;
  /* Sichtbar solange KEIN Video/Foto-Asset unter static/hero/ liegt: ruhiges
     Gradient-Mesh in BE-PURE-Grün (editorial, nicht knallig). */
  background:
    radial-gradient(120% 90% at 12% 8%, #2c7a5f 0%, rgba(44,122,95,0) 55%),
    radial-gradient(90% 80% at 92% 18%, #17493b 0%, rgba(23,73,59,0) 60%),
    radial-gradient(150% 130% at 72% 108%, #0e352a 0%, rgba(14,53,42,0) 60%),
    linear-gradient(135deg, #123f33 0%, #1f5c4a 100%);
}

.pj-hero-media { position: absolute; inset: 0; z-index: 0; }
/* PLATZHALTER-Motiv (23.07.2026): zeigt die Hero-Wirkung mit Bild, bis ein
   echtes static/hero/hero.mp4 bzw. hero-poster.jpg vorliegt. ZUM ENTFERNEN
   einfach diese eine Regel löschen → dann trägt wieder das Gradient-Mesh. */
.pj-hero-media { background: url("/static/hero/hero-placeholder.svg") center/cover no-repeat; }
.pj-hero-video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* leere/fehlende <source> → Video-Element bleibt transparent, Mesh scheint durch */

.pj-hero-scrim { position: absolute; inset: 0; z-index: 1; }
.pj-hero--links .pj-hero-scrim {
  background:
    linear-gradient(90deg, rgba(9,26,20,.72) 0%, rgba(9,26,20,.32) 42%, rgba(9,26,20,0) 78%),
    linear-gradient(180deg, rgba(9,26,20,.14) 0%, rgba(9,26,20,0) 38%, rgba(9,26,20,.46) 100%);
}
.pj-hero--rechts .pj-hero-scrim {
  background:
    linear-gradient(270deg, rgba(9,26,20,.72) 0%, rgba(9,26,20,.32) 42%, rgba(9,26,20,0) 78%),
    linear-gradient(180deg, rgba(9,26,20,.14) 0%, rgba(9,26,20,0) 38%, rgba(9,26,20,.46) 100%);
}

.pj-hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1180px;
  margin: 0 auto; padding: 0 28px;
  display: flex; flex-direction: column;
}

.pj-topbar--hero { padding: 26px 0 0; }
.pj-topbar--hero .pj-wordmark,
.pj-topbar--hero .pj-topbar-links a { color: rgba(255,255,255,.9); }
.pj-topbar--hero .pj-wordmark span { color: rgba(255,255,255,.62); }
.pj-topbar--hero .pj-topbar-links a:hover { color: #fff; }

.pj-hero-content {
  margin-top: auto;
  margin-bottom: 8.5vh;
  max-width: 640px;
  color: #fff;
}
.pj-hero--links .pj-hero-content { margin-right: auto; text-align: left; }
.pj-hero--rechts .pj-hero-content { margin-left: auto; text-align: right; }

.pj-hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  margin: 0 0 16px;
}
.pj-hero-claim {
  font-size: clamp(38px, 5.6vw, 66px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 20px;
}
.pj-hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: rgba(255,255,255,.88);
  max-width: 520px;
  margin: 0 0 30px;
}
.pj-hero--rechts .pj-hero-sub { margin-left: auto; }

.pj-search-form { display: flex; gap: 8px; }
.pj-search-form--hero { max-width: 560px; margin: 0 0 22px; }
.pj-hero--rechts .pj-search-form--hero { margin-left: auto; }

.pj-search-form input[type="text"] {
  flex: 1;
  padding: 16px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.97);
  font-size: 15px;
  color: var(--pj-text);
  box-shadow: 0 12px 34px rgba(9,26,20,.24);
}
.pj-search-form input[type="text"]:focus { outline: none; border-color: #fff; }
.pj-search-form button {
  padding: 0 28px;
  border-radius: 999px;
  border: none;
  background: var(--pj-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.pj-search-form button:hover { background: #17493b; }

.pj-hero-trust { font-size: 13.5px; color: rgba(255,255,255,.82); margin: 0; }
.pj-hero-trust strong { color: #fff; }

/* ── Berufsbereich-Kacheln ───────────────────────────────────────────── */

.pj-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin: 40px 0 8px;
}

.pj-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--pj-line);
  background: var(--pj-card);
  color: var(--pj-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: border-color .15s ease, background .15s ease;
}

.pj-category-chip:hover {
  border-color: var(--pj-accent);
}

.pj-category-chip.active {
  background: var(--pj-accent);
  border-color: var(--pj-accent);
  color: #fff;
}

/* ── Vertrauenszeile ─────────────────────────────────────────────────── */

.pj-trustline {
  text-align: center;
  font-size: 13px;
  color: var(--pj-muted);
  margin: 22px 0 8px;
}

.pj-trustline strong { color: var(--pj-text); }

/* Stagnations-Notiz: bewusst LINKE Achse (keine Zentrierung), dezenter
   warmer Akzent links — sichtbar, aber nicht alarmierend. Erscheint nur,
   wenn >= 2 Tage kein neuer Job (is_stagnant). */
.pj-trustline-note {
  max-width: 520px;
  margin: 0 0 8px;
  padding: 6px 12px;
  border-left: 3px solid #c9a24b;
  font-size: 12.5px;
  color: var(--pj-muted);
}

/* ── Beta-Hinweis ────────────────────────────────────────────────────── */

.pj-beta-banner {
  margin: 18px 0 0;
  text-align: left;
  font-size: 13px;
  color: var(--pj-muted);
  padding: 10px 16px;
  border-left: 3px solid var(--pj-accent);
  border-radius: 0 var(--pj-radius-sm) var(--pj-radius-sm) 0;
  background: var(--pj-bg-soft);
}

.pj-beta-banner a { color: var(--pj-accent); text-decoration: none; font-weight: 600; }

/* ── Ergebnis-Kopfzeile ──────────────────────────────────────────────── */

.pj-results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 44px 0 20px;
  flex-wrap: wrap;
  gap: 8px;
}

.pj-results-head h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.1;
  padding-left: 14px;
  border-left: 3px solid var(--pj-accent);
}

.pj-results-head .pj-count {
  font-size: 14px;
  color: var(--pj-muted);
}

.pj-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.pj-filter-chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--pj-line);
  background: var(--pj-card);
  color: var(--pj-muted);
  text-decoration: none;
  font-size: 13px;
}

.pj-filter-chip.active {
  background: var(--pj-accent-soft);
  border-color: var(--pj-accent);
  color: var(--pj-accent);
  font-weight: 600;
}

/* ── Jobkarten-Raster ────────────────────────────────────────────────── */

.pj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.pj-card {
  background: var(--pj-card);
  border: 1px solid var(--pj-line);
  border-radius: var(--pj-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--pj-shadow);
  transition: box-shadow .18s ease, transform .18s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.pj-card:hover {
  box-shadow: var(--pj-shadow-hover);
  transform: translateY(-2px);
  border-color: var(--pj-accent);
}

.pj-card-new-dot {
  position: absolute;
  top: 20px;
  right: 22px;
  font-size: 11px;
  font-weight: 700;
  color: var(--pj-accent);
  background: var(--pj-accent-soft);
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: .02em;
}

.pj-card h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  padding-right: 60px;
}

.pj-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
  color: var(--pj-muted);
  margin-bottom: 10px;
}

.pj-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.pj-badge.remote { background: var(--pj-badge-remote); color: var(--pj-badge-remote-text); }
.pj-badge.hybrid { background: var(--pj-badge-hybrid); color: var(--pj-badge-hybrid-text); }
.pj-badge.onsite { background: var(--pj-badge-onsite); color: var(--pj-badge-onsite-text); }

.pj-card-company {
  font-size: 13px;
  color: var(--pj-muted);
  margin-bottom: 14px;
}

.pj-card-divider {
  border: none;
  border-top: 1px solid var(--pj-line);
  margin: 4px 0 14px;
}

.pj-card-excerpt {
  font-size: 14px;
  color: var(--pj-text);
  line-height: 1.55;
  margin: 0 0 18px;
  flex: 1;
}

.pj-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--pj-muted);
}

.pj-card-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--pj-accent);
}

/* ── Leerer Zustand ──────────────────────────────────────────────────── */

.pj-empty {
  text-align: center;
  padding: 64px 24px;
  color: var(--pj-muted);
  font-size: 15px;
}

/* ── "Mehr laden" ────────────────────────────────────────────────────── */

.pj-load-more {
  text-align: center;
  margin-top: 36px;
}

.pj-load-more a {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  border: 1px solid var(--pj-line);
  color: var(--pj-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  background: var(--pj-card);
}

.pj-load-more a:hover { border-color: var(--pj-accent); color: var(--pj-accent); }

/* ── Detailseite ─────────────────────────────────────────────────────── */

.pj-detail-back {
  display: inline-block;
  margin: 28px 0 20px;
  font-size: 14px;
  color: var(--pj-muted);
  text-decoration: none;
}

.pj-detail-back:hover { color: var(--pj-accent); }

.pj-detail-head {
  background: var(--pj-card);
  border: 1px solid var(--pj-line);
  border-radius: var(--pj-radius);
  padding: 40px 44px;
  box-shadow: var(--pj-shadow);
  margin-bottom: 28px;
}

.pj-detail-head h1 {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.pj-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 14px;
  color: var(--pj-muted);
  margin-bottom: 10px;
  align-items: center;
}

.pj-detail-company {
  font-size: 15px;
  color: var(--pj-muted);
  margin-bottom: 24px;
}

.pj-detail-cta {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--pj-accent);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.pj-detail-cta:hover { background: #17493b; }

.pj-detail-cta-hint {
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--pj-muted);
}

.pj-detail-body {
  background: var(--pj-card);
  border: 1px solid var(--pj-line);
  border-radius: var(--pj-radius);
  padding: 40px 44px;
  box-shadow: var(--pj-shadow);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.pj-detail-body h1, .pj-detail-body h2, .pj-detail-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 10px;
}

.pj-detail-body p { margin: 0 0 14px; }
.pj-detail-body ul, .pj-detail-body ol { margin: 0 0 14px 20px; padding: 0; }
.pj-detail-body li { margin-bottom: 6px; }

/* Link-out-Modus (Default, ohne Volltext-Freigabe): Excerpt + Deep-Link. */
.pj-detail-excerpt {
  margin: 0 0 22px;
  font-size: 15.5px;
  color: var(--pj-text);
}
.pj-detail-source {
  border-left: 3px solid #c9a24b;
  padding: 4px 0 4px 16px;
}
.pj-detail-source .pj-detail-cta { margin: 0 0 6px; }

.pj-detail-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  background: var(--pj-bg-soft);
  border-radius: var(--pj-radius-sm);
  padding: 20px 24px;
  margin-bottom: 28px;
  font-size: 13px;
}

.pj-detail-facts .pj-fact-label {
  color: var(--pj-muted);
  margin-bottom: 3px;
}

.pj-detail-facts .pj-fact-value {
  font-weight: 600;
  color: var(--pj-text);
}

.pj-similar-head {
  font-size: 18px;
  font-weight: 600;
  margin: 40px 0 16px;
}

.pj-similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* ── Feedback / So funktionierts ─────────────────────────────────────── */

.pj-info-page {
  background: var(--pj-card);
  border: 1px solid var(--pj-line);
  border-radius: var(--pj-radius);
  padding: 40px 44px;
  box-shadow: var(--pj-shadow);
  margin-top: 32px;
  font-size: 15px;
  line-height: 1.7;
}

.pj-info-page h1 { font-size: 26px; font-weight: 600; margin-top: 0; }

/* ── Footer (dunkles Band, Gegenstück zum Hero) ──────────────────────── */

.pj-footer {
  background: #0f3a2e;
  color: rgba(255,255,255,.85);
  padding: 52px 0;
}
.pj-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.pj-footer .pj-wordmark { color: #fff; }
.pj-footer .pj-wordmark span { color: rgba(255,255,255,.6); }
.pj-footer-note {
  max-width: 540px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,.68);
  margin: 14px 0 0;
}
.pj-footer-links { display: flex; flex-direction: column; gap: 10px; }
.pj-footer-links a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 14px;
}
.pj-footer-links a:hover { color: #fff; }

@media (max-width: 640px) {
  .pj-shell { padding: 0 16px 64px; }
  .pj-detail-head, .pj-detail-body, .pj-info-page { padding: 26px 22px; }
  .pj-search-form { flex-direction: column; }
  .pj-search-form button { padding: 14px 24px; }

  /* Hero mobil: kompakter, Inhalt immer linke Achse (rechts wird auf schmalen
     Screens eng) und mehr Bodenluft. */
  .pj-hero { min-height: 86vh; }
  .pj-hero-inner { padding: 0 18px; }
  .pj-hero-content,
  .pj-hero--rechts .pj-hero-content { text-align: left; margin: auto 0 6vh; max-width: 100%; }
  .pj-hero--rechts .pj-hero-sub,
  .pj-hero--rechts .pj-search-form--hero { margin-left: 0; }
  .pj-hero--rechts .pj-hero-scrim {
    background:
      linear-gradient(90deg, rgba(9,26,20,.72) 0%, rgba(9,26,20,.32) 42%, rgba(9,26,20,0) 82%),
      linear-gradient(180deg, rgba(9,26,20,.14) 0%, rgba(9,26,20,0) 38%, rgba(9,26,20,.5) 100%);
  }
  .pj-hero-claim { font-size: clamp(32px, 9vw, 44px); }
}
