/* =========================================================
   DRIVER Karriere — Grav theme stylesheet
   Rebuilt from the original Divi/WordPress site.
   Design tokens (colors, type scale, spacing, breakpoints)
   were extracted from the live site's compiled CSS; the
   component code itself is hand-written and framework-free.
   ========================================================= */

:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-yellow: #fed100;
  --color-gray-bg: #f5f5f5;
  --color-gray-text: #444444;

  --font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --container-max: 1480px;
  --section-padding-y: 54px;
  --section-padding-y-mobile: 32px;
  --row-padding-y: 27px;

  --radius: 4px;
}

/* -------------------- Reset / base -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-family);
  font-weight: 400;
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-black); text-decoration: underline var(--color-yellow); text-underline-offset: 2px; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

h1, h2, h3, h4, h5, p {
  -webkit-hyphens: auto; hyphens: auto;
  margin-top: 0;
}
h1 {
  font-weight: 700;
  font-size: 70px;
  text-transform: uppercase;
  margin-bottom: .1em;
  line-height: 1.05;
}
h2 {
  font-weight: 200;
  font-size: 2.1875em;
  text-transform: uppercase;
  margin-bottom: .5em;
}
h3 {
  font-weight: 200;
  font-size: 1.625em;
  text-transform: uppercase;
  margin-bottom: .5em;
}
h4 {
  font-weight: 700;
  font-size: 1.5em;
  margin-bottom: .5em;
}
h5 {
  font-weight: 700;
  font-size: 1.25em;
  margin-bottom: .5em;
}
strong { font-weight: 700; }
.et_pb_text_inner li,
p + ul li { margin-top: .5em; }

@media all and (max-width: 980px) {
  h1 { font-size: 45px; }
}
@media all and (max-width: 467px) {
  h2 { font-size: 1.9em; }
  h3 { font-size: 1.5em; }
}

/* -------------------- Layout helpers -------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 5%;
}
.section {
  padding: var(--section-padding-y) 0;
}
.section--tight { padding: calc(var(--section-padding-y) / 2) 0; }
.section--dark { background: var(--color-black); color: var(--color-white); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--color-white); }
.section--gray { background: var(--color-gray-bg); }
.text-center { text-align: center; }

@media all and (max-width: 980px) {
  .section { padding: var(--section-padding-y-mobile) 0; }
}

.grid {
  display: grid;
  gap: 30px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
@media all and (max-width: 980px) {
  .grid--3, .grid--4, .grid--5 { grid-template-columns: repeat(2, 1fr); }
}
@media all and (max-width: 600px) {
  .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: 1fr; }
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-block;
  background: var(--color-yellow);
  color: var(--color-black) !important;
  border: 2px solid var(--color-yellow);
  border-radius: var(--radius);
  font-weight: 700;
  padding: .7em 2em;
  text-decoration: none;
  box-shadow: 0 0 0 0 rgba(0,0,0,.1);
  transition: box-shadow .3s ease;
  cursor: pointer;
}
.btn:hover { box-shadow: 0 2px 18px 0 rgba(0,0,0,.1); }
.btn--outline {
  background: transparent;
  color: var(--color-white) !important;
  border-color: var(--color-white);
}

/* -------------------- Site header -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__top {
  background: var(--color-black);
  padding: .6em 0;
}
.site-header__logo img { max-height: 38px; width: auto; }
.site-header__nav {
  background: var(--color-white);
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
.site-header__nav .container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
}
.main-nav ul {
  display: flex;
  gap: 4.375em;
}
.main-nav a {
  text-decoration: none;
  font-size: 1em;
  color: var(--color-black);
}
.main-nav .current a,
.main-nav a:hover {
  font-weight: 700;
  text-decoration: underline var(--color-yellow);
  text-underline-offset: 4px;
}
.nav-toggle { display: none; }

@media all and (max-width: 980px) {
  .main-nav { display: none; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 10px;
    margin-left: auto;
  }
  .nav-toggle span { width: 26px; height: 2px; background: var(--color-black); }
  .site-header__nav .container { justify-content: flex-start; }
  .main-nav.is-open {
    display: block;
    position: absolute;
    left: 0; right: 0;
    background: var(--color-white);
    box-shadow: 0 8px 14px rgba(0,0,0,.08);
  }
  .main-nav.is-open ul {
    flex-direction: column;
    gap: 0;
    padding: 0 5%;
  }
  .main-nav.is-open li { border-top: 1px solid #eee; }
  .main-nav.is-open a { display: block; padding: 1em 0; }
}

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
}
.hero__image img { width: 100%; }
.hero__panel {
  background: var(--color-black);
  color: var(--color-white);
  text-align: center;
  padding: 4em 8% 3em;
}
.hero__eyebrow {
  margin: 0 0 .2em;
  letter-spacing: .04em;
}
.hero__panel .btn { margin-top: 1em; }

/* -------------------- Intro + card links -------------------- */
.intro-text {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.card-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-white) !important;
  min-height: 220px;
}
.card-link img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
  transition: transform .4s ease;
}
.card-link:hover img { transform: scale(1.05); }
.card-link__label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  height: 220px;
  padding: 1.2em;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.75) 100%);
}
.card-link__label strong {
  font-size: 1.15em;
  text-transform: uppercase;
}

/* -------------------- Video -------------------- */
.video-wrap video {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

/* -------------------- Testimonials -------------------- */
.testimonials {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding-bottom: 1em;
  scroll-snap-type: x proximity;
}
.testimonial {
  flex: 0 0 280px;
  scroll-snap-align: start;
  text-align: center;
}
.testimonial img {
  width: 110px; height: 110px;
  border-radius: 50%;
  border: 2px solid var(--color-yellow);
  object-fit: cover;
  margin: 0 auto 1em;
}
.testimonial__quote {
  font-size: 1em;
  line-height: 1.6;
  min-height: 4.8em;
}
.testimonial__name { font-weight: 700; margin-top: .8em; }
.testimonial__role { color: var(--color-gray-text); font-size: .9em; }

@media all and (max-width: 980px) {
  .testimonials { flex-direction: column; align-items: center; overflow: visible; }
  .testimonial { flex: none; width: 100%; max-width: 340px; }
}

/* -------------------- Job category grid -------------------- */
.category-group + .category-group { margin-top: 2.5em; }
.category-group__title {
  text-align: center;
  margin-bottom: 1em;
}
.category-tile {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  aspect-ratio: 1 / 1;
}
.category-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: box-shadow .3s ease, transform .3s ease;
}
.category-tile:hover img {
  box-shadow: 0 0 18px rgba(0,0,0,.3);
}
.category-tile__label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .8em .6em;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.7) 100%);
  color: var(--color-white);
  font-size: .9em;
  font-weight: 700;
  text-align: center;
}

/* -------------------- Benefits -------------------- */
.benefit-card { text-align: left; border-left: 1px solid #e2e2e2; padding-left: 1.5em; }
.benefit-card:first-child { border-left: none; padding-left: 0; }
.benefit-card img { height: 70px; width: auto; margin-bottom: 1em; }
.benefit-card ul li {
  position: relative;
  padding-left: 1.2em;
  margin-top: .5em;
}
.benefit-card ul li::before {
  content: "";
  position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px;
  background: var(--color-yellow);
  border-radius: 50%;
}
@media all and (max-width: 980px) {
  .benefit-card { border-left: none; padding-left: 0; border-top: 1px solid #e2e2e2; padding-top: 1.5em; }
  .benefit-card:first-child { border-top: none; padding-top: 0; }
}

/* -------------------- CTA banner (parallax replacement) -------------------- */
.cta-banner {
  background-color: var(--color-black);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--color-white);
  text-align: center;
  padding: 5em 5%;
}
@media all and (max-width: 980px) {
  .cta-banner { background-attachment: scroll; }
}
.cta-banner__eyebrow { margin-bottom: .2em; }
.cta-banner p a { color: var(--color-white); }

/* -------------------- Contact block -------------------- */
.contact-block {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2em;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}
.contact-block img { border-radius: var(--radius); }
.contact-block address { font-style: normal; }
@media all and (max-width: 600px) {
  .contact-block { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: var(--section-padding-y) 0 2em;
}
.site-footer a { color: var(--color-white); text-decoration: none; }
.site-footer__logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2em;
  margin-bottom: 2em;
  flex-wrap: wrap;
}
.site-footer__logos img { max-height: 42px; width: auto; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 2em;
}
.footer-social { display: flex; gap: 1em; }
.footer-social a svg { width: 22px; height: 22px; fill: var(--color-white); }
.footer-menu ul { display: flex; gap: 1.5em; flex-wrap: wrap; }
.footer-copyright { color: rgba(255,255,255,.7); font-size: .9em; }

@media all and (max-width: 667px) {
  .site-footer__logos { flex-direction: column; align-items: flex-start; }
}

/* -------------------- Über uns: feature list -------------------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3em;
  align-items: center;
}
.feature-row:nth-child(even) .feature-row__text { order: 2; }
.feature-row img { border-radius: var(--radius); }
.feature-row + .feature-row { margin-top: 3em; }
@media all and (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row:nth-child(even) .feature-row__text { order: 0; }
}
.stats-row { align-items: start; }
.stats-row img { border-radius: 0; }

/* -------------------- FAQ accordion -------------------- */
.faq-group + .faq-group { margin-top: 2.5em; }
.faq-group__title { margin-bottom: 1em; }
.faq-item {
  border-bottom: 1px solid #e2e2e2;
}
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  background: none;
  border: 0;
  text-align: left;
  padding: 1em 0;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  color: var(--color-black);
}
.faq-item__icon {
  flex: none;
  width: 22px; height: 22px;
  position: relative;
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--color-black);
  transition: transform .2s ease;
}
.faq-item__icon::before { left: 0; top: 50%; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-item__icon::after { top: 0; left: 50%; width: 2px; height: 100%; transform: translateX(-50%); }
.faq-item.is-open .faq-item__icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.faq-item.is-open .faq-item__a { max-height: 600px; }
.faq-item__a p { padding: 0 0 1.2em; margin: 0; }

/* -------------------- Stellenbörse: filter + job table -------------------- */
.job-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  align-items: flex-end;
  margin-bottom: 2em;
}
.job-filter__field { display: flex; flex-direction: column; gap: .4em; }
.job-filter__field label { font-size: .85em; font-weight: 700; }
.job-filter select,
.job-filter input[type="text"] {
  padding: .7em 1em;
  border: 2px solid #ddd;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .95em;
  min-width: 180px;
}
.job-filter__note {
  font-size: .85em;
  color: var(--color-gray-text);
  margin: -1em 0 2em;
}

.job-table { width: 100%; border-collapse: collapse; }
.job-table__head {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  background: var(--color-black);
  color: var(--color-white);
}
.job-table__head > div { padding: 1em; font-weight: 700; }
.job-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  align-items: center;
  border-bottom: 1px solid #e2e2e2;
  text-decoration: none;
  color: var(--color-black);
}
.job-row:hover { background: var(--color-gray-bg); }
.job-row > div { padding: 1em; }
.job-row__title { font-weight: 700; }
.job-row__category { font-size: .85em; color: var(--color-gray-text); }

@media all and (max-width: 1120px) {
  .job-table__head, .job-row { grid-template-columns: 1fr 1fr; }
  .job-table__head > div:nth-child(3),
  .job-table__head > div:nth-child(4),
  .job-row > div:nth-child(3),
  .job-row > div:nth-child(4) { display: none; }
}
@media all and (max-width: 600px) {
  .job-table__head { display: none; }
  .job-row {
    grid-template-columns: 1fr;
    padding: 1em 0;
    border: 1px solid #e2e2e2;
    border-radius: var(--radius);
    margin-bottom: .8em;
  }
  .job-row > div { padding: .2em 1em; }
}

/* -------------------- Scroll-to-top -------------------- */
.scroll-top {
  position: fixed;
  right: 1.5em; bottom: 1.5em;
  width: 44px; height: 44px;
  background: var(--color-yellow);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
  z-index: 90;
}
.scroll-top.is-visible { opacity: 1; pointer-events: auto; }
.scroll-top svg { width: 18px; height: 18px; fill: var(--color-black); }
