/* ============================================================
   job.css — Layout der einzelnen Stellenseiten (karriere/*.html)
   Nur Weiß / Schwarz / Nuhn-Gelb. Anton + Barlow. Radien: 0.
   Keine Abhängigkeit zu rest.css — die Stellenseiten laden nur
   tokens.css, base.css und diese Datei.
   ============================================================ */

/* ---------- 1 — Kopfzeile ---------- */

.job-top {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: var(--bg-1);
  border-bottom: 1px solid var(--line);
}
.job-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  min-height: 72px;
}
.job-top__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 44px;
}
.job-top__logo {
  width: 44px;
  height: auto;
  flex: none;
}
.job-top__tag {
  color: var(--fg-muted);
  text-transform: uppercase;
  line-height: 1.2;
}
.job-top__back {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  min-height: 44px;
  color: var(--fg-muted);
  text-transform: uppercase;
  text-align: right;
  transition: color 0.3s ease;
}
.job-top__back:hover,
.job-top__back:focus-visible { color: var(--fg-1); }

@media (max-width: 620px) {
  .job-top__tag { display: none; }
}

/* ---------- 2 — Breadcrumb ---------- */

.breadcrumb { border-bottom: 1px solid var(--line); }
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.55rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.breadcrumb__list li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.breadcrumb a,
.breadcrumb__current {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fg-muted);
  text-transform: uppercase;
}
.breadcrumb a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}
.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--fg-1);
  text-decoration-color: var(--fg-1);
}
.breadcrumb__current { color: var(--fg-1); }
.breadcrumb__sep {
  color: var(--line-strong);
  flex: none;
}

/* ---------- 3 — Seitenkopf ---------- */

.job { padding-block: clamp(2.25rem, 6vw, 4rem) clamp(3.5rem, 9vw, 6rem); }

.job__head {
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
  border-bottom: 1px solid var(--line);
}
.job__eyebrow { margin-bottom: var(--space-s); }
.job__title {
  font-size: clamp(2.125rem, 5.6vw, 4.25rem);
  max-width: 18ch;
}
.job__metaline {
  margin-top: var(--space-m);
  color: var(--fg-1);
  text-transform: uppercase;
}
.job__metaline .sep {
  color: var(--line-strong);
  padding-inline: 0.35em;
}
.job__head .strich { margin-top: var(--space-m); }

/* ---------- 4 — Zweispalten-Layout ---------- */

.job__layout {
  display: grid;
  gap: clamp(2.5rem, 6vw, 3.5rem);
  align-items: start;
}
@media (min-width: 960px) {
  .job__layout {
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 21rem);
    gap: clamp(3rem, 6vw, 6rem);
  }
}

.job__content { max-width: 68ch; }
.job__content > * + * { margin-top: var(--space-s); }
.job__content p { max-width: none; }

.job__lead {
  font-size: var(--t-l);
  line-height: 1.55;
  color: var(--fg-1);
}

.job__content h2 {
  font-size: var(--t-xl);
  text-transform: uppercase;
  margin-top: clamp(2.25rem, 5vw, 3rem);
  padding-top: var(--space-m);
  border-top: 1px solid var(--line);
}
.job__content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.job__content h2 + * { margin-top: var(--space-m); }

/* ---------- 5 — Listen mit Kellenstrich als Marker ---------- */

.job-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.job-list li {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 0 0.85rem;
  align-items: start;
}
.job-list li + li { margin-top: 0.7rem; }
.job-list__mark {
  width: 1.5rem;
  margin-top: 0.6em;
  color: var(--fg-1);
}

/* ---------- 6 — Bewerbungs-Block (dunkel, damit Gelb trägt) ---------- */

.apply {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--ink-surface);
  color: var(--fg-on-dark);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.apply__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--t-xl);
  line-height: var(--display-line-height);
  letter-spacing: var(--display-letter-spacing);
  text-transform: uppercase;
  color: var(--fg-on-dark);
}
.apply .strich {
  color: var(--accent);
  margin-bottom: var(--space-s);
}
.apply__text {
  margin-top: 0.75rem;
  color: var(--fg-on-dark);
  max-width: 52ch;
}
.apply__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  margin-top: var(--space-m);
}
.apply__fallback {
  margin-top: var(--space-m);
  padding-top: var(--space-s);
  border-top: 1px solid var(--line-on-dark);
  color: var(--fg-on-dark);
  opacity: 0.8;
}
/* Buttons auf dunklem Grund */
.apply .btn--ghost {
  box-shadow: inset 0 0 0 2px var(--fg-on-dark);
  color: var(--fg-on-dark);
}
.apply .btn::after { background: var(--fg-on-dark); }
.apply .btn:hover,
.apply .btn:focus-visible { color: var(--accent-ink); }

/* Touch-Ziele */
.job-page .btn { min-height: 48px; }

/* ---------- 7 — Seitenspalte: Etiketten + kompakte Bewerbung ---------- */

.job__aside {
  display: grid;
  gap: var(--space-m);
}
@media (min-width: 960px) {
  .job__aside {
    position: sticky;
    top: 96px;
  }
}

.job-facts {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 3vw, 1.6rem);
  margin: 0;
}
.job-facts__row + .job-facts__row {
  margin-top: var(--space-s);
  padding-top: var(--space-s);
  border-top: 1px solid var(--line);
}
.job-facts dt {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: var(--mono-letter-spacing);
  text-transform: uppercase;
  line-height: 1.3;
  padding: 0.25em 0.6em;
}
.job-facts dd {
  margin: 0.5rem 0 0;
  color: var(--fg-1);
  font-size: var(--t-s);
  font-weight: 600;
  line-height: 1.45;
}
.job-facts dd a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s ease;
}
.job-facts dd a:hover,
.job-facts dd a:focus-visible { text-decoration-color: var(--fg-1); }

.job-aside-cta {
  border: 2px solid var(--fg-1);
  padding: clamp(1.25rem, 3vw, 1.6rem);
}
.job-aside-cta__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--t-l);
  line-height: var(--display-line-height);
  text-transform: uppercase;
  color: var(--fg-1);
}
.job-aside-cta p {
  margin-top: 0.6rem;
  font-size: var(--t-s);
}
.job-aside-cta .btn {
  margin-top: var(--space-s);
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* ---------- 8 — Weitere Stellen (Karten-Raster) ---------- */

.weitere {
  margin-top: clamp(3.5rem, 8vw, 5.5rem);
  padding-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--line);
}
.weitere__title {
  font-size: var(--t-xl);
  text-transform: uppercase;
}
.weitere__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: var(--space-m);
}
.jobcard {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: var(--bg-1);
  padding: clamp(1.1rem, 3vw, 1.6rem);
  min-height: 44px;
  transition: background 0.35s ease;
}
.jobcard:hover,
.jobcard:focus-visible { background: var(--bg-2); }
.jobcard__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--t-l);
  line-height: var(--display-line-height);
  letter-spacing: var(--display-letter-spacing);
  text-transform: uppercase;
  color: var(--fg-1);
}
.jobcard__meta { color: var(--fg-muted); }
.jobcard__go {
  margin-top: auto;
  padding-top: 0.75rem;
  color: var(--fg-1);
}
.weitere__back {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 44px;
  margin-top: var(--space-m);
  color: var(--fg-1);
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.3s ease;
}
.weitere__back:hover,
.weitere__back:focus-visible { text-decoration-color: var(--fg-1); }

/* ---------- 9 — Footer ---------- */

.job-foot {
  border-top: 1px solid var(--line);
  padding-block: clamp(1.75rem, 4vw, 2.5rem);
}
.job-foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s) var(--space-l);
}
.job-foot__brand {
  display: flex;
  align-items: center;
  gap: var(--space-s);
}
.job-foot__logo {
  width: 52px;
  height: auto;
  flex: none;
}
.job-foot__copy { color: var(--fg-muted); }
.job-foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s) var(--space-m);
}
.job-foot__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fg-2);
  transition: color 0.3s ease;
}
.job-foot__nav a:hover,
.job-foot__nav a:focus-visible { color: var(--fg-1); }
