/* =====================================================
   BÖHM & SCHAAF — Job Subpage Styles
   Extends styles.css
   ===================================================== */

/* ===== Job Hero ===== */
.job-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 0;
}
.job-hero .hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.job-hero .hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.job-hero .hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(15,15,18,0.5) 0%,
    rgba(15,15,18,0.4) 40%,
    rgba(15,15,18,0.92) 100%);
}
.job-hero-content {
  position: relative; z-index: 2;
  width: 100%;
  padding-bottom: 80px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
}
.breadcrumb a { color: rgba(255,255,255,0.7); transition: color .2s var(--ease); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { color: var(--red); font-style: italic; }
.breadcrumb .current { color: var(--white); }

.job-role {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: 8px 16px 8px 12px;
  border-radius: 2px;
  margin-bottom: 24px;
}
.job-role::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--white);
  border-radius: 50%;
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

.job-hero h1 { max-width: 22ch; }
.job-hero .lead {
  margin-top: 28px;
  color: rgba(255,255,255,0.92);
  font-size: clamp(17px, 1.3vw, 21px);
  max-width: 64ch;
}
.job-hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.job-hero-actions .btn--ghost { color: var(--white); border-color: rgba(255,255,255,0.6); }
.job-hero-actions .btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ===== Quick Facts strip ===== */
.facts {
  background: var(--white);
  position: relative;
  z-index: 3;
  border-bottom: 1px solid var(--line);
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.fact {
  padding: 28px 32px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fact:last-child { border-right: none; }
.fact-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.fact-label svg { width: 14px; height: 14px; }
.fact-value {
  font-size: 20px;
  font-weight: 800;
  font-style: italic;
  color: var(--ink);
  line-height: 1.1;
}
.fact-sub { font-size: 13px; color: var(--steel); }

/* ===== Job Benefits ===== */
.job-benefits {
  padding: 120px 0;
  background: var(--white);
}
.job-benefits-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 64px;
}
.job-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.job-benefit {
  background: var(--paper);
  padding: 40px 36px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  align-items: flex-start;
  border-left: 4px solid var(--red);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.job-benefit:hover { background: var(--bone); transform: translateY(-2px); }
.job-benefit-icon {
  width: 56px; height: 56px;
  background: var(--red);
  color: var(--white);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.job-benefit-icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.job-benefit h3 { font-size: 22px; line-height: 1.1; margin-bottom: 10px; }
.job-benefit p { font-size: 15.5px; line-height: 1.55; color: var(--graphite); }

/* ===== Salary Section ===== */
.salary {
  padding: 140px 0;
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.salary::before {
  content: "€";
  position: absolute;
  top: -60px;
  right: -40px;
  font-size: clamp(280px, 30vw, 480px);
  font-weight: 900;
  font-style: italic;
  color: rgba(181,19,29,0.18);
  line-height: 0.8;
  pointer-events: none;
  font-family: var(--font);
}
.salary-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.salary h2 { color: var(--white); }
.salary .lead { color: rgba(255,255,255,0.78); }
.salary .eyebrow { color: var(--white); }
.salary .eyebrow::before { background: var(--red); }

.salary-range {
  font-weight: 900;
  font-style: italic;
  line-height: 0.9;
  margin: 24px 0 16px;
}
.salary-range .from {
  display: block;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-style: normal;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 12px;
}
.salary-range .amount {
  font-size: clamp(56px, 7vw, 96px);
  letter-spacing: -0.03em;
}
.salary-range .amount .sep {
  color: var(--red);
  margin: 0 8px;
}
.salary-range .unit {
  display: block;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-style: normal;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  margin-top: 14px;
}

.salary-extras {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255,255,255,0.08);
}
.salary-extra {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: center;
  padding: 22px 28px;
  background: rgba(0,0,0,0.25);
  transition: background .25s var(--ease);
}
.salary-extra:hover { background: rgba(0,0,0,0.4); }
.salary-extra-icon {
  width: 44px; height: 44px;
  border: 2px solid var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
}
.salary-extra-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.salary-extra-text strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  font-style: italic;
  color: var(--white);
  margin-bottom: 2px;
}
.salary-extra-text span {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

/* ===== Tasks Section ===== */
.tasks {
  padding: 140px 0;
  background: var(--paper);
}
.tasks-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: flex-start;
}
.tasks-head .eyebrow { margin-bottom: 18px; }
.tasks-head .lead { margin-top: 24px; }

.tasks-list {
  display: flex;
  flex-direction: column;
}
.task-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.task-item:last-child { border-bottom: 1px solid var(--line); }
.task-num {
  font-size: 56px;
  font-weight: 900;
  font-style: italic;
  color: var(--red);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.task-content h3 {
  font-size: 24px;
  margin-bottom: 12px;
  line-height: 1.1;
}
.task-content p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--graphite);
  max-width: 60ch;
}

/* ===== Requirements ===== */
.requirements {
  padding: 140px 0;
  background: var(--white);
  position: relative;
}
.requirements-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: flex-start;
}
.requirements-visual {
  position: sticky;
  top: 120px;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bone);
}
.requirements-visual img { width: 100%; height: 100%; object-fit: cover; }
.requirements-visual::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 60%; height: 8px;
  background: var(--red);
}
.requirements-content .eyebrow { margin-bottom: 18px; }
.requirements-content h2 { margin-bottom: 24px; }
.requirements-content .lead { margin-bottom: 40px; }

.req-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.req-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 20px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.req-item:last-child { border-bottom: none; }
.req-check {
  width: 28px; height: 28px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.req-check svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.req-item strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 4px;
}
.req-item span {
  font-size: 15.5px;
  color: var(--graphite);
  line-height: 1.55;
}

/* ===== Related jobs ===== */
.related {
  padding: 120px 0;
  background: var(--bone);
}
.related-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact { border-bottom: 1px solid var(--line); }
  .fact:nth-child(2) { border-right: none; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .job-hero { min-height: auto; padding-top: 100px; }
  .job-hero-content { padding-bottom: 60px; }
  .job-benefits, .salary, .tasks, .requirements, .related { padding: 80px 0; }
  .facts-grid { grid-template-columns: 1fr; }
  .fact { border-right: none; border-bottom: 1px solid var(--line); }
  .job-benefits-head, .salary-inner, .tasks-inner, .requirements-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .job-benefits-grid { grid-template-columns: 1fr; }
  .requirements-visual { position: relative; top: 0; aspect-ratio: 16/10; }
  .related-grid { grid-template-columns: 1fr; }
  .task-item { grid-template-columns: 60px 1fr; gap: 20px; padding: 28px 0; }
  .task-num { font-size: 42px; }
}
