/* =========================================================
   HPS – Karriere (loaded after styles.css, career page only)
   ========================================================= */

/* nav: current page */
.nav__links a[aria-current="page"] { opacity: 1; background: rgb(255 255 255 / .12); }
.nav.is-light .nav__links a[aria-current="page"] { background: rgb(12 24 34 / .07); }
.nav__big a[aria-current="page"] { color: var(--glacier); }

/* ---------- hero ---------- */
.hero--sub { min-height: min(78svh, 720px); }
.hero--sub .hero__media img { filter: saturate(.5) contrast(1.05) brightness(.95); }
@media (min-aspect-ratio: 4/5) {
  /* photo on the right, headline keeps the dark left side */
  .hero--sub .hero__media img {
    inset: 0 0 0 34%; width: 66%; object-position: 30% 45%;
    -webkit-mask: linear-gradient(90deg, transparent, #000 34%); mask: linear-gradient(90deg, transparent, #000 34%);
  }
}
@media (max-aspect-ratio: 4/5) {
  .hero--sub .hero__media img { object-position: 30% 30%; }
}
.proof__icon { width: 26px; height: 26px; color: var(--glacier); }
.proof__item .proof__meta { gap: 3px; }
@media (max-width: 560px) {
  .hero--sub .hero__ctas { grid-template-columns: 1fr 1fr; }
  .hero--sub .hero__ctas .btn { min-width: 0; padding: 0 12px; gap: 8px; }
}
@media (max-width: 374px) { .hero--sub .hero__ctas .icon { display: none; } }

/* ---------- jobs ---------- */
#stellen { padding-top: clamp(56px, 5vw, 80px); }
.job-list { border-top: 1px solid var(--line); }
.job { border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
.job::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--ease-out), content-visibility .45s allow-discrete; }
.job[open]::details-content { block-size: auto; }
.job__head {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: minmax(0, 1fr) 150px 190px 44px; align-items: center; column-gap: 24px;
  padding: 22px 0; min-height: 88px;
}
.job__head::-webkit-details-marker { display: none; }
.job__title { font-size: clamp(1.3rem, 2.1vw, 1.75rem); font-stretch: 115%; font-weight: 780; letter-spacing: -.025em; transition: color .2s; }
.job__title small { font-size: .55em; font-weight: 550; font-stretch: 100%; letter-spacing: 0; color: var(--text-muted); }
.job__meta { display: contents; }
.job__area, .job__kind { font-size: var(--fs-small); color: var(--text-muted); }
@media (hover: hover) { .job__head:hover .job__title { color: var(--cta); } }
.job__toggle { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); transition: transform .45s var(--ease-spring), background-color .25s, color .25s; }
.job__toggle .icon { width: 18px; height: 18px; }
.job[open] .job__toggle { transform: rotate(45deg); background: var(--navy); color: #fff; box-shadow: none; }
.job__body { display: grid; gap: 24px; padding: 2px 0 34px; max-width: 980px; }
.job__intro { font-size: var(--fs-lead); line-height: 1.4; max-width: 58ch; }
.job__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: start; }
/* one rule per column, directly under the heading: same stroke, same distance, same height in both columns */
.job__cols h4 { font-size: var(--fs-small); font-weight: 700; letter-spacing: 0; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.job__cols ul { display: grid; gap: 8px; padding-top: 16px; }
/* compact list: small brand dot on the first line, hanging indent for wrapped lines */
.job__cols li { position: relative; padding-left: 18px; color: var(--text-muted); font-size: var(--fs-small); line-height: 1.45; }
.job__cols li::before { content: ""; position: absolute; left: 2px; top: calc(.725em - 2.5px); width: 5px; height: 5px; border-radius: 50%; background: var(--cta); }
.job__apply { justify-self: start; }
@media (max-width: 760px) {
  .job__head { grid-template-columns: minmax(0, 1fr) 44px; row-gap: 4px; padding: 20px 0; min-height: 0; }
  .job__title { grid-column: 1; }
  .job__meta { display: block; grid-column: 1; grid-row: 2; }
  .job__kind::before { content: ", "; }
  .job__toggle { grid-column: 2; grid-row: 1 / span 2; }
  .job__cols { grid-template-columns: 1fr; }
}

/* ---------- why ---------- */
.why { background: var(--ink); color: var(--on-dark); padding: var(--section-y) 0 calc(var(--section-y) + var(--overlap)); }
.why__band { margin: 0 0 14px; border-radius: var(--r-xl); overflow: clip; aspect-ratio: 21 / 7; background: var(--navy); }
.why__band img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; filter: saturate(.8); }
.why__cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.why__cards .panel { display: grid; gap: 10px; align-content: start; }
.why__cards .icon { width: 28px; height: 28px; color: var(--glacier); }
.why__cards h3 { font-size: var(--fs-h3); font-stretch: 112%; }
.why__cards p { color: var(--on-dark-muted); font-size: var(--fs-small); }
@media (max-width: 980px) { .why__cards { grid-template-columns: 1fr 1fr; } .why__band { aspect-ratio: 16 / 7; } }
@media (max-width: 560px) {
  .why__cards { grid-template-columns: 1fr; }
  .why__cards .panel { grid-template-columns: 28px 1fr; column-gap: 14px; row-gap: 4px; }
  .why__cards .panel .icon { grid-row: span 2; }
  .why__band { aspect-ratio: 16 / 9; }
}

/* ---------- apply ---------- */
.apply .req { box-shadow: inset 0 0 0 1px var(--line); }
.apply .req__aside h3 { font-size: var(--fs-h3); font-stretch: 112%; }
.howto { counter-reset: step; display: grid; gap: 12px; }
.howto li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: center; font-weight: 550; font-size: var(--fs-small); }
.howto li::before { content: counter(step); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); color: var(--cta); font-weight: 700; }
/* the form sets the card height, the photo fills the rest of the side column */
.apply .req__img { flex: 1 1 0; height: 0; min-height: 140px; aspect-ratio: auto; }
.tel-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.req__contact .tel-link { min-height: 32px; }
@media (max-width: 900px) {
  .apply .req__main { order: -1; }
  .apply .req__contact { display: flex; }
  #apply-form .form-nav > .legal { display: none; }
  #apply-form .form-nav .btn { width: 100%; }
}

#initiativ .job__title { color: var(--text-muted); }
#initiativ[open] .job__title { color: var(--text); }

/* Anti-template pass */
.why__cards { gap: 0 32px; }
.why__cards .panel { background: none; box-shadow: none; border-radius: 0; padding: 20px 0 8px; border-top: 1px solid var(--line-dark); grid-template-columns: 1fr; }
.howto li::before { background: none; box-shadow: none; }

/* =========================================================
   Mobile polish – career content sections (append to karriere.css)
   Phones / portrait tablets only; desktop (>= 901px) untouched.
   ========================================================= */

/* ---------- hero ---------- */
@media (max-width: 900px) {
  /* the CTAs sat flush on the rounded edge of the next sheet */
  .hero--sub .hero__inner { padding-bottom: calc(var(--overlap) + clamp(32px, 6vw, 48px)); }
}
@media (max-width: 560px) {
  /* stacked proof items: icons share one column, both text blocks start on one line */
  .hero--sub .proof { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
  .hero--sub .proof__item:first-child { gap: 5px; }
  .hero--sub .proof__icon { margin-left: -5px; }
  .hero--sub .proof__award { display: inline-flex; gap: 13px; }
  .hero--sub .hero__row { margin-top: 20px; }
}

/* ---------- open positions ---------- */
@media (min-width: 761px) and (max-width: 900px) {
  /* portrait tablet: narrower meta columns so "(m/w/d)" stays on the title line */
  .job__head { grid-template-columns: minmax(0, 1fr) 110px 160px 44px; column-gap: 16px; }
}
@media (max-width: 760px) {
  .job__head { column-gap: 16px; -webkit-tap-highlight-color: transparent; }
  .job__title small { white-space: nowrap; }
  .job:not([open]) .job__head:active .job__toggle { transform: scale(.92); }
  /* a nowrap button used to widen the whole body past the screen edge (360px: text cut off) */
  .job__body { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-bottom: 28px; }
  .job__cols { gap: 24px; }
  .job__cols li { text-wrap: pretty; }
  .job__apply { justify-self: stretch; white-space: normal; text-align: center; line-height: 1.2; padding: 12px 20px; }
}
@media (max-width: 560px) {
  .job__title { font-size: 1.25rem; }
  .job__title small { font-size: .6em; }
}
@media (max-width: 374px) {
  /* keeps "(m/w/d)" on the title line for the long titles */
  .job__title { font-size: 1.125rem; }
}

/* ---------- why HPS ---------- */
@media (max-width: 560px) {
  .why__band { margin-bottom: 20px; }
  .why__cards .panel { padding: 18px 0 16px; row-gap: 6px; }
  .why__cards h3 { font-size: 1.3125rem; }
}

/* ---------- application ---------- */
@media (max-width: 900px) {
  /* the grey steps panel painted over the card outline: the card looked cut open below the form */
  .apply .req { box-shadow: none; border: 1px solid var(--line); }
  .apply .req__aside { border-top: 1px solid var(--line); gap: 4px; }
  .apply .req__aside h3 { margin-bottom: 8px; }
  /* steps: hairline rows like the job lists, number on the first text line, no "E-|Mail" break */
  .howto { gap: 0; }
  .howto li { grid-template-columns: 20px 1fr; gap: 10px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); text-wrap: balance; line-height: 1.4; }
  .howto li::before { display: block; width: auto; height: auto; line-height: inherit; }
  /* contact: label left, number as a 44px tap target right */
  .apply .req__contact { min-height: 0; margin-top: 0; padding-top: 12px; }
  .apply .req__contact > span:last-child { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .apply .req__contact small { font-size: var(--fs-small); }
  .apply .req__contact .tel-link {
    min-height: 44px; padding: 0 16px; border-radius: 14px;
    background: var(--white); box-shadow: inset 0 0 0 1px var(--line); color: var(--text);
  }
}
@media (max-width: 560px) {
  .apply .req__aside { padding: 24px 22px 22px; }
  .apply .req__aside h3 { font-size: 1.375rem; }
  .apply .success { padding: 18px 0 6px; }
}
