/* =========================================================
   MOVEA Komplettservice – Karriere (karriere.html)
   Ergaenzt css/style.css + css/seiten.css.
   Seitenkopf mit Foto (3:1) und dunkler Textbox, Stellenkarten,
   Ablauf in 3 Schritten, Bewerbungsformular.
   ========================================================= */

/* ---------- Seitenkopf ----------
   Das Foto ist sehr breit (1800 x 598). Es beginnt unter der Navigation
   und wird fast im Originalformat gezeigt, damit Team, Lkw und Logos
   sichtbar bleiben. Der Text steht links in einer dunklen Box. */
.pagehead--karriere {
  min-height: clamp(560px, calc(33.3vw + 76px + var(--safe-top)), 820px);
  padding-bottom: clamp(40px, 4vw, 64px);
}
/* Die weisse Navigation ist 76px hoch (bis 1100px: 72px), --nav-h ist groesser */
.pagehead--karriere .pagehead__bg { top: calc(76px + var(--safe-top)); }
@media (max-width: 1100px) { .pagehead--karriere .pagehead__bg { top: calc(72px + var(--safe-top)); } }
.pagehead--karriere .pagehead__bg img { object-position: 62% 40%; }
.pagehead--karriere .pagehead__bg::after {
  background: linear-gradient(90deg,
    rgba(17,17,17,.55) 0%,
    rgba(17,17,17,.20) 38%,
    rgba(17,17,17,0) 60%);
}

.jobbox {
  position: relative;
  max-width: 580px;
  padding: clamp(28px, 3vw, 44px);
  border-radius: 10px;
  background: rgba(17, 17, 17, .88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
}
.jobbox .crumb { margin-bottom: 20px; }
.jobbox .eyebrow { margin-bottom: 14px; }
.jobbox__body { border-left: 4px solid var(--red); padding-left: clamp(18px, 2vw, 26px); }
.jobbox .pagehead__title { font-size: clamp(38px, 3.9vw, 60px); max-width: none; }
.jobbox .pagehead__lead { margin-top: 18px; font-size: clamp(16px, 1.2vw, 19px); }
.jobbox .pagehead__actions { margin-top: 28px; }
.jobbox__facts {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  margin-top: 22px; font-size: 14px; font-weight: 600; color: var(--text-light);
}
.jobbox__facts li { display: inline-flex; align-items: center; gap: 7px; }
.jobbox__facts .i { width: 16px; height: 16px; color: var(--red); }

/* ---------- Stellenangebote ---------- */
.jobs { padding-block: clamp(64px, 8vw, 112px); background: var(--grey-100); }
.jobs .section__head { margin-bottom: clamp(32px, 4vw, 48px); }

.btn--outline-red { border: 2px solid var(--red); background: var(--white); color: var(--red); }
.btn--outline-red:hover { background: var(--red); color: var(--white); }

.jobs__grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.job {
  position: relative;
  display: flex; flex-direction: column;
  padding: 32px 30px 30px;
  border-radius: 14px; background: var(--white);
  border: 1px solid var(--grey-200);
  transition: transform .25s, box-shadow .25s;
}
.job:hover { transform: translateY(-4px); box-shadow: 0 22px 48px rgba(0, 0, 0, .09); }
.job__icon { width: 58px; height: 58px; color: var(--red); margin-bottom: 22px; }
.job__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.job h3 {
  font-family: var(--f-display); font-stretch: 106%; font-weight: 800;
  font-size: 21px; line-height: 1.2; letter-spacing: -.01em;
}
.job__sub { margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--grey-600); }
.job__text { margin-top: 16px; font-size: 15px; line-height: 1.6; color: var(--grey-600); }
.job__tag {
  align-self: flex-start;
  margin-top: 18px; padding: 6px 12px; border-radius: 999px;
  background: var(--grey-100); font-size: 13px; font-weight: 700; color: var(--black);
}
.job .card__more { margin-top: auto; padding-top: 22px; }
/* ganze Karte klickbar */
.job .card__more::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.job--partner { background: var(--black); border-color: var(--black); color: var(--white); }
.job--partner .job__sub, .job--partner .job__text { color: var(--text-light); }
.job--partner .job__tag { background: var(--grey-800); color: var(--white); }
.job--partner .card__more { color: #ff5a5d; }

/* ---------- So laeuft die Bewerbung ---------- */
.ablaufjob { padding-block: clamp(64px, 8vw, 112px); }
.ablaufjob__grid {
  display: grid; gap: 20px; counter-reset: ablauf;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ablaufjob__step {
  counter-increment: ablauf;
  padding: 30px; border-radius: 14px; border: 1px solid var(--grey-200);
}
.ablaufjob__step::before {
  content: counter(ablauf, decimal-leading-zero);
  display: block; margin-bottom: 16px;
  font-family: var(--f-display); font-stretch: 112%; font-weight: 900;
  font-size: 15px; letter-spacing: .18em; color: var(--red);
}
.ablaufjob__step h3 { font-family: var(--f-display); font-weight: 800; font-size: 20px; margin-bottom: 8px; }
.ablaufjob__step p { font-size: 15px; line-height: 1.6; color: var(--grey-600); }

/* ---------- Bewerbungsformular ---------- */
.bewerbung { padding-block: clamp(64px, 8vw, 112px); background: var(--black); color: var(--white); scroll-margin-top: 40px; }
.bewerbung__inner {
  display: grid; gap: clamp(32px, 5vw, 80px);
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
}
.bewerbung__text { position: sticky; top: 120px; }
.bewerbung__text > p { margin-top: 22px; font-size: 17px; line-height: 1.65; color: var(--text-light); max-width: 52ch; }
.bewerbung__liste { margin-top: 28px; display: grid; gap: 12px; }
.bewerbung__liste li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; }
.bewerbung__liste .i { color: var(--red); margin-top: 2px; }
.bewerbung__kontakt {
  margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--grey-800);
  font-size: 15px; line-height: 1.7; color: var(--text-light);
}
.bewerbung__kontakt a { color: var(--white); font-weight: 700; }
.bewerbung__kontakt a:hover { color: #ff5a5d; }

.jobform {
  position: relative;
  padding: clamp(24px, 3vw, 40px); border-radius: 18px;
  background: var(--white); color: var(--black);
  display: grid; gap: 16px;
}
.jobform__title {
  font-family: var(--f-display); font-stretch: 110%; font-weight: 900;
  font-size: clamp(24px, 2vw, 30px); letter-spacing: -.02em;
}
.jobform__hint { font-size: 14px; color: var(--grey-600); margin-top: -8px; }
.jobform .field { font-size: 13px; }
.jobform .field small { font-weight: 500; color: #737373; }
.field textarea {
  min-height: 120px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--grey-300);
  background: var(--white); color: var(--black); font: inherit; font-size: 15px; font-weight: 400;
  width: 100%; resize: vertical;
}
.field textarea:focus, .field input[type="file"]:focus { outline: none; border-color: var(--black); }
.field select.is-invalid { border-color: var(--red); }

/* Datei-Upload */
.upload {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 12px;
  border: 1.5px dashed #bbb; background: var(--grey-100);
  cursor: pointer; transition: border-color .2s, background-color .2s;
}
.upload:hover, .upload.is-drag { border-color: var(--black); background: #ececec; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.upload input:focus-visible + .upload__icon { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 8px; }
.upload__icon { width: 36px; height: 36px; flex: 0 0 auto; color: var(--red); }
.upload__txt { font-size: 14px; font-weight: 500; color: var(--grey-600); line-height: 1.45; }
.upload__txt strong { display: block; color: var(--black); font-size: 15px; }
.upload__list { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.upload__list:empty { display: none; }
.upload__list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 8px; background: var(--grey-100); }
.upload__list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload__list em { font-style: normal; color: #737373; flex: 0 0 auto; }

.jobform__firma[hidden] { display: none; }
.jobform .btn { justify-self: start; }
.jobform__error { font-size: 14px; font-weight: 600; color: var(--red); }
.jobform__error:empty { display: none; }

.jobform__done { text-align: left; display: grid; gap: 14px; padding: 12px 0; }
.jobform__done[hidden] { display: none; }
.jobform__done .done__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--red); color: var(--white); display: grid; place-items: center; }
.jobform__done .done__icon svg { width: 32px; height: 32px; }
.jobform__done h3 { font-family: var(--f-display); font-weight: 900; font-size: 28px; }
.jobform__done p { font-size: 16px; line-height: 1.6; color: var(--grey-600); }

/* ---------- Responsiv ---------- */
@media (max-width: 1240px) {
  .jobs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 999px) {
  /* Handy/Tablet: Foto als Band oben, Textbox darunter */
  .pagehead--karriere {
    display: block; min-height: 0;
    padding: calc(72px + var(--safe-top)) 0 40px;
  }
  .pagehead--karriere .pagehead__bg { position: relative; inset: auto; top: auto; aspect-ratio: 16 / 9; }
  .pagehead--karriere .pagehead__bg img { object-position: 58% 50%; }
  .pagehead--karriere .pagehead__bg::after { background: linear-gradient(180deg, rgba(17,17,17,0) 60%, rgba(17,17,17,.9) 100%); }
  .pagehead--karriere .wrap { margin-top: -36px; }
  .jobbox { max-width: none; background: var(--grey-900); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .bewerbung__inner { grid-template-columns: minmax(0, 1fr); }
  .bewerbung__text { position: static; }
  .ablaufjob__grid { grid-template-columns: minmax(0, 1fr); }
  .jobs .section__head { flex-direction: column; align-items: flex-start; gap: 20px; }
}
@media (max-width: 640px) {
  .jobs__grid { grid-template-columns: minmax(0, 1fr); }
  .job { padding: 26px 22px 24px; }
  .jobform .grid2 { grid-template-columns: minmax(0, 1fr); }
  .jobform .btn { justify-self: stretch; }
  .jobbox .pagehead__actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .job, .job:hover { transition: none; transform: none; }
}

.jobform__fields { display: grid; gap: 16px; }
.jobform__fields[hidden] { display: none; }
.bewerbung + #kontakt { padding-top: clamp(72px, 9vw, 120px); }
