/**
 * ID Metall — Karriere.
 */

body.studio-body main#studio-main.studio-main.idm-kar-main {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
}

.idm-kar-hero.idm-page-hero {
  height: clamp(22rem, 52vw, 34rem);
  min-height: clamp(22rem, 52vw, 34rem);
  background: #011627;
  color: #fff;
}

.idm-kar-hero .idm-page-hero__img {
  object-position: center 58%;
}

.idm-kar-hero .idm-page-hero__title--wide {
  max-width: 18em;
}

.idm-kar-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.idm-kar-hero__eyebrow span {
  display: block;
  width: 1.75rem;
  height: 2px;
  background: #c10807;
}

.idm-kar-intro,
.idm-kar-why,
.idm-kar-block {
  padding-block: clamp(3.5rem, 7vw, 5.25rem);
  background: #fff;
}

.idm-kar-jobs,
.idm-kar-block--alt {
  padding-block: clamp(3.5rem, 7vw, 5.25rem);
  background: #f6f4f2;
}

.idm-kar-apply {
  padding-block: clamp(3.5rem, 7vw, 5.25rem);
  background: #f6f4f2;
}

.idm-kar-apply__panel {
  max-width: 52rem;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: #fff;
  border-top: 3px solid #c10807;
}

.idm-kar-intro h2,
.idm-kar-jobs h2,
.idm-kar-why h2,
.idm-kar-block h2,
.idm-kar-apply h2 {
  margin: 0 0 1.25rem;
  max-width: 20em;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.idm-kar-prose {
  max-width: 46rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #24323d;
}

.idm-kar-prose p {
  margin: 0 0 1rem;
}

.idm-kar-prose p:last-child {
  margin-bottom: 0;
}

.idm-kar-card {
  max-width: 52rem;
  margin-top: 0;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: #fff;
  border-top: 3px solid #c10807;
}

.idm-kar-jobs__stage {
  margin-top: 0.5rem;
}

.idm-kar-jobs__stage .idm-kar-card {
  max-width: none;
  height: 100%;
  border-top: 0;
}

.idm-kar-card h3 {
  margin: 0 0 1rem;
  max-width: 22em;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.idm-kar-meta {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.idm-kar-meta li {
  padding-top: 0.55rem;
  border-top: 1px solid rgba(1, 22, 39, 0.12);
  font-size: 0.98rem;
  font-weight: 650;
}

.idm-kar-more {
  margin: 1.25rem 0 0.35rem;
  font-size: 0.95rem;
}

.idm-kar-textlink,
.idm-kar-back a,
.idm-kar-mail a {
  color: #c10807;
  font-weight: 700;
  text-underline-offset: 0.18em;
}

.idm-kar-mail,
.idm-kar-place,
.idm-kar-address,
.idm-kar-back {
  margin: 1rem 0 0;
  font-size: 1.05rem;
}

.idm-kar-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 1.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  background: #c10807;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.idm-kar-btn:hover,
.idm-kar-btn:focus-visible {
  background: #9c0706;
  color: #fff;
}

.idm-kar-list {
  max-width: 46rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.idm-kar-list li {
  position: relative;
  margin: 0;
  padding: 0.75rem 0 0.75rem 1.15rem;
  border-top: 1px solid rgba(1, 22, 39, 0.1);
  line-height: 1.55;
}

.idm-kar-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 0.45rem;
  height: 2px;
  background: #c10807;
}

.idm-job-lead {
  padding-block: clamp(2.25rem, 5vw, 3.5rem) clamp(3rem, 6vw, 4.5rem);
  background: #fff;
}

.idm-job-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 700px) {
  .idm-job-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .idm-job-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.idm-job-facts li {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
  padding: 1rem 1.05rem 1.15rem;
  background: #f6f4f2;
  border-top: 3px solid #c10807;
}

.idm-job-facts span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c10807;
}

.idm-job-facts strong {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  color: #011627;
}

.idm-job-lead__copy {
  max-width: 40rem;
}

.idm-job-stage {
  margin-top: 0.35rem;
  overflow: hidden;
  background: #f6f4f2;
  border-top: 3px solid #c10807;
}

.idm-job-stage--split {
  display: grid;
  gap: 0;
  align-items: stretch;
}

@media (min-width: 900px) {
  .idm-job-stage--split {
    grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.95fr);
    min-height: clamp(22rem, 42vw, 30rem);
  }
}

.idm-job-stage__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  background: #f6f4f2;
}

.idm-job-stage__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c10807;
}

.idm-job-stage__eyebrow span {
  width: 1.5rem;
  height: 2px;
  background: #c10807;
}

.idm-job-stage__copy .idm-job-lead__copy,
.idm-job-stage__copy .idm-kar-prose {
  max-width: 38rem;
}

.idm-job-stage__copy .idm-kar-prose p:first-child {
  font-size: 1.05em;
  font-weight: 550;
  color: #011627;
}

.idm-job-stage__media {
  margin: 0;
  position: relative;
  min-height: 16rem;
  overflow: hidden;
  background: #011627;
}

@media (min-width: 900px) {
  .idm-job-stage__media {
    min-height: 100%;
  }
}

.idm-job-stage__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 22%;
  transform: scale(1.02);
  transition: transform 0.7s ease;
}

.idm-job-stage--split:hover .idm-job-stage__media img,
.idm-job-stage--split:focus-within .idm-job-stage__media img {
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .idm-job-stage__media img {
    transition: none;
    transform: none;
  }
}

.idm-job-band {
  padding-block: clamp(3.25rem, 6vw, 4.75rem);
  background: #fff;
}

.idm-job-band--alt {
  background: #f6f4f2;
}

.idm-job-band h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.35rem;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #011627;
}

.idm-job-band h2::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  flex: none;
  background: #c10807;
}

.idm-job-grid {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .idm-job-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.idm-job-grid li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  margin: 0;
  padding: 1.05rem 1.1rem;
  background: #f6f4f2;
  line-height: 1.5;
}

.idm-job-band--alt .idm-job-grid li {
  background: #fff;
}

.idm-job-grid li span {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  color: #c10807;
  font-variant-numeric: tabular-nums;
}

.idm-job-note {
  max-width: none;
  margin-top: 0.9rem;
  padding: 1.1rem 1.2rem;
  background: #fff;
  border-left: 3px solid #c10807;
}

.idm-job-apply .idm-kar-apply__panel {
  max-width: none;
  display: grid;
  gap: 0.85rem;
  padding: 0;
  background: transparent;
  border: 0;
}

@media (min-width: 900px) {
  .idm-job-apply .idm-kar-apply__panel {
    grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
    align-items: stretch;
  }
}

.idm-job-apply__copy,
.idm-job-apply__side {
  padding: clamp(1.5rem, 3vw, 2.3rem);
}

.idm-job-apply__copy {
  background: #fff;
  border-top: 3px solid #c10807;
}

.idm-job-apply__copy .idm-kar-prose {
  max-width: none;
}

.idm-job-apply__side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #011627;
  color: #fff;
}

.idm-job-apply__side .idm-kar-mail,
.idm-job-apply__side .idm-kar-address {
  color: rgba(255, 255, 255, 0.88);
}

.idm-job-apply__side .idm-kar-mail a {
  color: #fff;
}

.idm-job-apply__side .idm-kar-btn {
  align-self: flex-start;
}

.idm-job-apply .idm-kar-back {
  margin-top: 1.15rem;
}

html[data-bs-theme="dark"] .idm-kar-intro,
html[data-bs-theme="dark"] .idm-kar-why,
html[data-bs-theme="dark"] .idm-kar-block {
  background: var(--studio-bg, #0a1018);
}

html[data-bs-theme="dark"] .idm-kar-jobs,
html[data-bs-theme="dark"] .idm-kar-block--alt,
html[data-bs-theme="dark"] .idm-kar-apply,
html[data-bs-theme="dark"] .idm-kar-card {
  background: var(--studio-surface, #121a24);
}

html[data-bs-theme="dark"] .idm-kar-apply__panel {
  background: #161f2b;
  border-top-color: #c10807;
}

html[data-bs-theme="dark"] .idm-kar-intro h2,
html[data-bs-theme="dark"] .idm-kar-jobs h2,
html[data-bs-theme="dark"] .idm-kar-why h2,
html[data-bs-theme="dark"] .idm-kar-card h3 {
  color: var(--studio-text-strong, #f3f5f7);
}

html[data-bs-theme="dark"] .idm-kar-prose,
html[data-bs-theme="dark"] .idm-kar-list li,
html[data-bs-theme="dark"] .idm-kar-meta li,
html[data-bs-theme="dark"] .idm-kar-more {
  color: var(--studio-text, #e8eaed);
}

/* Lead paragraph was hard-coded #011627 — unreadable on dark surfaces */
html[data-bs-theme="dark"] .idm-job-stage__copy .idm-kar-prose p:first-child {
  color: var(--studio-text-strong, #f3f5f7);
}

html[data-bs-theme="dark"] .idm-kar-list li,
html[data-bs-theme="dark"] .idm-kar-meta li {
  border-top-color: rgba(255, 255, 255, 0.14);
}

html[data-bs-theme="dark"] .idm-job-stage {
  background: var(--studio-surface, #121a24);
}

html[data-bs-theme="dark"] .idm-job-stage__copy,
html[data-bs-theme="dark"] .idm-kar-jobs__stage .idm-kar-card {
  background: var(--studio-surface, #121a24);
  color: var(--studio-text, #e8eaed);
}

html[data-bs-theme="dark"] .idm-job-stage__eyebrow {
  color: #d94948;
}

html[data-bs-theme="dark"] .idm-job-stage__eyebrow span {
  background: #d94948;
}

html[data-bs-theme="dark"] .idm-job-lead,
html[data-bs-theme="dark"] .idm-job-band,
html[data-bs-theme="dark"] .idm-job-apply__copy,
html[data-bs-theme="dark"] .idm-job-note,
html[data-bs-theme="dark"] .idm-job-band--alt .idm-job-grid li {
  background: var(--studio-bg, #0a1018);
}

html[data-bs-theme="dark"] .idm-job-band--alt,
html[data-bs-theme="dark"] .idm-job-facts li,
html[data-bs-theme="dark"] .idm-job-grid li {
  background: var(--studio-surface, #121a24);
}

html[data-bs-theme="dark"] .idm-job-facts strong,
html[data-bs-theme="dark"] .idm-job-band h2,
html[data-bs-theme="dark"] .idm-job-grid li,
html[data-bs-theme="dark"] .idm-job-note {
  color: var(--studio-text, #e8eaed);
}

html[data-bs-theme="dark"] .idm-job-facts li,
html[data-bs-theme="dark"] .idm-job-grid li {
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--studio-text, #e8eaed);
}

html[data-bs-theme="dark"] .idm-job-facts span {
  color: var(--studio-muted, #a8b0ba);
}

html[data-bs-theme="dark"] .idm-job-apply .idm-kar-apply__panel {
  background: transparent;
  border: 0;
}

html[data-bs-theme="dark"] .idm-job-apply__side {
  background: #07111b;
  border-top: 3px solid #c10807;
}
