/* Stellendetailseite: Kopf über volle Breite, darunter Inhalt und Eckdaten-Spalte */

.job-shell {
  width: min(100%, 72rem);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .job-shell { padding: 0 1.5rem; }
}

/* ── Kopf ── */
.job-hero {
  margin-top: 0.75rem;
  padding: 1.75rem 1.6rem 1.6rem;
  border-radius: 20px;
  border: 1px solid rgba(15, 44, 58, 0.1);
  background: linear-gradient(150deg, #f4f9ff 0%, #ffffff 55%, #f0fbff 100%);
  box-shadow: 0 18px 44px -32px rgba(15, 44, 58, 0.5);
}
@media (min-width: 768px) {
  .job-hero { padding: 2.1rem 2rem 1.9rem; }
}
.job-hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
.job-hero-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #64748b;
}
.job-hero-title {
  margin: 0;
  font-size: clamp(1.6rem, 1.1rem + 1.9vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  color: #0f2c3a;
}
.job-hero-company {
  margin: 0.6rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: #475569;
}
.job-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

/* ── Buttons ── */
.job-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 0.85rem;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.job-btn--primary {
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(37, 99, 235, 0.85);
}
.job-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -14px rgba(37, 99, 235, 0.9);
}
.job-btn--ghost {
  border-color: rgba(15, 44, 58, 0.16);
  background: #fff;
  color: #334155;
}
.job-btn--ghost:hover {
  border-color: rgba(37, 99, 235, 0.45);
  color: #1d4ed8;
}
.job-btn--full {
  background: #e2e8f0;
  color: #475569;
  cursor: default;
}
.job-btn--block { width: 100%; margin-top: 1rem; }
.job-btn:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }

/* ── Zweispaltiges Layout ── */
.job-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21rem;
  gap: 1.75rem;
  margin-top: 1.75rem;
}
@media (max-width: 1023px) {
  .job-layout { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
}

.job-main > * + * { margin-top: 1.25rem; }
.job-main #bewerbung { margin-top: 1.75rem; scroll-margin-top: 8rem; }

/* ── Inhaltskarten ── */
.job-card {
  padding: 1.5rem 1.5rem 1.6rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 44, 58, 0.1);
  background: #fff;
}
@media (min-width: 768px) {
  .job-card { padding: 1.75rem 1.9rem 1.8rem; }
}
.job-card-title {
  margin: 0 0 0.9rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(15, 44, 58, 0.08);
  font-size: 1.12rem;
  font-weight: 750;
  color: #0f2c3a;
}

.job-prose { color: #334155; line-height: 1.7; }
.job-prose p { margin: 0 0 0.9rem; }
.job-prose p:last-child { margin-bottom: 0; }
.job-prose a {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}
.job-prose a:hover { color: #0e7490; }

.job-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}
.job-list + p { margin-top: 0.9rem; }
.job-list li {
  position: relative;
  padding-left: 1.9rem;
}
.job-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid rgba(37, 99, 235, 0.28);
}
.job-list li::after {
  content: '';
  position: absolute;
  left: 0.36rem;
  top: 0.68rem;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 999px;
  background: #2563eb;
}
/* Benefits bekommen ein Häkchen statt eines Punktes */
.job-card--benefits .job-list li::before {
  background: #ecfdf5;
  border-color: rgba(16, 185, 129, 0.35);
}
.job-card--benefits .job-list li::after {
  left: 0.36rem;
  top: 0.66rem;
  width: 0.36rem;
  height: 0.2rem;
  border-radius: 0;
  border-left: 2px solid #059669;
  border-bottom: 2px solid #059669;
  background: none;
  transform: rotate(-45deg);
}

/* ── Seitenspalte ── */
.job-aside-inner {
  display: grid;
  gap: 1rem;
}
@media (min-width: 1024px) {
  .job-aside-inner {
    position: sticky;
    top: 7.5rem;
  }
}

.job-facts {
  padding: 1.35rem 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 44, 58, 0.1);
  background: #fff;
}
.job-facts-title {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0e7490;
}
.job-facts dl { margin: 0; display: grid; gap: 0.9rem; }
.job-fact {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.job-fact-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.7rem;
  background: #f1f5f9;
  color: #0e7490;
}
.job-fact-icon svg { width: 1.15rem; height: 1.15rem; }
.job-fact dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}
.job-fact dd {
  margin: 0.1rem 0 0;
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.45;
  color: #0f2c3a;
}

.job-cta {
  padding: 1.35rem 1.4rem 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 44, 58, 0.12);
  background: linear-gradient(160deg, #0f2c3a 0%, #134e5e 100%);
  color: #e2f4fa;
}
.job-cta-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7dd3fc;
}
.job-cta-free {
  margin: 0.35rem 0 0;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}
.job-cta-free.is-full { color: #fca5a5; }
.job-cta-bar {
  height: 0.4rem;
  margin-top: 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}
.job-cta-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #a5e3f5);
}
.job-cta-meta {
  margin: 0.6rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #a5e3f5;
}
.job-cta .job-btn--primary {
  background: #fff;
  color: #0f2c3a;
  box-shadow: none;
}
.job-cta .job-btn--primary:hover { background: #e0f2fe; }

.job-links {
  display: grid;
  padding: 0.5rem 0.6rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 44, 58, 0.1);
  background: #fff;
}
.job-links a {
  padding: 0.65rem 0.75rem;
  border-radius: 0.7rem;
  font-size: 0.9rem;
  font-weight: 650;
  color: #334155;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.job-links a:hover { background: #f1f5f9; color: #1d4ed8; }
.job-links a:focus-visible { outline: 2px solid #2563eb; outline-offset: -2px; }

/* ── Einspaltig: Reihenfolge neu sortieren ──
   Muss nach den Basisregeln stehen, sonst gewinnt deren display-Wert. */
@media (max-width: 1023px) {
  /* display:contents löst die Seitenspalte auf, damit sich ihre Karten
     einzeln zwischen Kopf und Inhalt einsortieren lassen. */
  .job-aside,
  .job-aside-inner { display: contents; }
  .job-facts { order: -2; }
  .job-cta { order: -1; }
  .job-main { order: 0; }
  .job-links { order: 1; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .job-facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; }
  .job-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .job-btn,
  .job-links a { transition: none; }
  .job-btn--primary:hover { transform: none; }
}
