/* Virtuelle Wendel Fabrik */

@font-face {
  font-family: "PlayfairDisplay";
  src: url("../fonts/playfair-display-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "SourceSansPro";
  src: url("../fonts/source-sans-pro-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --green: #215621;
  --logo-green: #05572c;
  --ink: #151515;
  --navy: #003057;
  --field: rgba(7, 14, 7, .2);
  --pale: #cccccc;
  --serif: "PlayfairDisplay", Georgia, serif;

  --body-size: 16px;
  --title-size: 40px;
  --title-gap: 26.8px;
  --sub-size: 19px;
  --sub-gap: 31.7px;
  --contact-size: 33px;
  --contact-gap: 27.4px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: "SourceSansPro", Arial, sans-serif;
  font-size: var(--body-size);
}

img, video { display: block; max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  color: var(--green);
  font-family: var(--serif);
  font-weight: 400;
  overflow-wrap: break-word;
}

p { margin: 0 0 var(--body-size); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #0000ff;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #ffffff;
}

.inner { width: 100%; max-width: 960px; margin-inline: auto; }

/* Die Abschnitte überlappen sich wie im Original um 1px. */
.site-header, main section, .logos, .footer-bar { margin-top: -1px; }

.green { background: var(--green); color: #ffffff; }
.green h1, .green h2 { color: #ffffff; }

.skip {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 400;
  padding: .5rem 1rem;
  background: #ffffff;
  color: var(--ink);
}
.skip:focus { top: 1rem; }

/* Kopfzeile */

.site-header { position: relative; background: #ffffff; }

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.site-logo { flex: none; }
.site-logo img { width: 138.7px; }

.site-nav { display: flex; }

.site-nav a,
.footer-nav a {
  display: block;
  height: 40px;
  margin-right: 8px;
  padding: 8px 10px;
  border: 2px solid transparent;
  border-radius: 4px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--logo-green); }
.footer-nav a:hover { color: var(--green); }

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--logo-green);
  border-radius: 0;
  color: var(--logo-green);
}
.footer-nav a[aria-current="page"] {
  border-bottom-color: var(--green);
  border-radius: 0;
  color: var(--green);
}

.menu-toggle {
  display: none;
  position: relative;
  z-index: 305;
  width: 32px;
  height: 32px;
  border: 0;
  padding: 4px;
  background: none;
  cursor: pointer;
}
.menu-toggle svg { display: block; width: 24px; height: 24px; fill: var(--ink); }
.menu-toggle .icon-close { display: none; }

/* Startbereich */

.hero .inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  padding: 16px;
}

.hero-text { padding: 32px 32px 32px 0; }

.hero h1 {
  margin: var(--title-gap) 0;
  font-size: 48px;
}

.hero-text p {
  color: #070e07;
  font-family: var(--serif);
  font-size: 24px;
}

.hero-video { padding: 16px 8px 24px; }
.hero-video video { width: 100%; aspect-ratio: 1; }

/* Einleitung */

.intro .inner { padding: 48px 24px; }
.intro p { margin: var(--body-size) 0; font-size: 20px; text-align: center; }

/* Vollbreite Videos */

.video-full .inner {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 100px);
  padding: 32px 24px;
}
.video-full video { width: 100%; aspect-ratio: 16 / 9; margin-bottom: 28px; }

.video-replay .inner { padding: 96px 24px 104px; }
.video-replay video { width: 100%; aspect-ratio: 16 / 9; }

/* Leistungen */

.capabilities .inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 12px;
  align-content: start;
  min-height: 440px;
  padding-top: 16px;
}

.capability-media { display: flow-root; height: 208px; }
.capability-media img { width: 100%; }
.capabilities li:nth-child(2) img { width: 88.67%; margin-top: 10.2px; }
.capabilities li:nth-child(3) img { margin-top: 52px; }

.capabilities h2 {
  height: 44px;
  margin: 0 0 12px;
  font-size: 23px;
  line-height: 52.4px;
  text-align: center;
}

.capabilities p { margin: 0; text-align: center; }

/* Überschriften der Inhaltsabschnitte */

.simulation h2,
.split-text h2,
.benefits-head h2 {
  margin: var(--title-gap) 0;
  font-size: var(--title-size);
}

.simulation .inner { padding: 48px 24px; }

/* Zweispaltige Abschnitte */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.step-rate .inner,
.step-optimize .inner { max-width: 1280px; }

.step-rate .inner { align-items: center; padding: 16px; }
.step-rate .split-text { padding: 32px 32px 32px 0; }
.step-rate .split-media { padding: 16px 8px 24px; }
.step-rate img { width: 100%; }

.step-optimize .inner { padding: 80px 16px; }
.step-optimize .split-text { padding: 32px 16px; }
.step-optimize .split-media { padding: 16px 8px 24px; }
.step-optimize img { width: 82.86%; }

.step-validate .inner { padding: 16px; }
.step-validate .split-text,
.step-validate .split-media { padding: 16px 8px; }
.step-validate img { width: 100%; }

.step-production .inner { padding: 80px 16px; }
.step-production .split-text,
.step-production .split-media { padding: 32px 16px; }
.step-production img { width: 100%; }

.step-production h3 {
  margin: var(--sub-gap) 0;
  color: var(--ink);
  font-size: var(--sub-size);
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32.2px;
}
.thumbs img { aspect-ratio: 4 / 3; object-fit: cover; }

/* Vorteile */

.benefits .inner { max-width: 1280px; padding: 40px 16px; }

.benefits-head { padding: 16px 8px 0; }
.benefits-head p { margin-bottom: 64px; }

.benefit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 32px;
}

.benefit {
  display: grid;
  grid-template-columns: 31.54% minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
  padding: 0 16px 32px;
}

.benefit img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 500px;
  object-fit: cover;
}
.benefit img.is-tall { width: 80.45%; aspect-ratio: 2 / 3; }

.benefit h3 { margin: 27.8px 0; font-size: 27px; line-height: 37px; }

.benefit h4 {
  margin: 27.8px 0 47.7px;
  color: var(--ink);
  font-size: var(--sub-size);
}

/* Kontakt */

.contact { padding-bottom: 64px; }
.contact .inner { padding: 160px 16px 0; }

.contact-box {
  padding: 56px 48px 72px;
  border-radius: 4px 4px 0 0;
  background: #ffffff;
  color: var(--ink);
}

.contact-box h2 {
  margin: var(--contact-gap) 0 35.4px;
  color: var(--green);
  font-size: var(--contact-size);
  text-align: center;
}

.contact-mail { display: block; width: 48px; margin-inline: auto; }
.contact-mail svg { display: block; width: 48px; height: 48px; }

.contact-form { position: relative; margin: 24px 8px 0; }

.field { margin-bottom: 24px; }
.field-message { margin-bottom: 40px; }

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--pale);
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  height: 48px;
  border: 2px solid transparent;
  border-radius: 0;
  padding: 8px;
  background: var(--field);
  color: #070e07;
  font: inherit;
}
.field textarea { height: 228px; resize: vertical; }

.field input:focus,
.field textarea:focus {
  border-color: var(--navy);
  background: transparent;
}

.consent {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  color: var(--pale);
}

.consent input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  background-color: var(--field);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px;
  cursor: pointer;
}
.consent input:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23070e07'%3E%3Cpath d='M22,4.4l-2.7-2.3C19.2,2,19.1,2,19,2c-0.1,0-0.2,0.1-0.3,0.1L9,15.5c0,0-3.8-3.9-3.9-4c-0.1-0.1-0.3-0.3-0.5-0.3s-0.3,0.1-0.4,0.2S2.8,13,2.1,13.8L2,13.9c-0.1,0.1-0.1,0.2-0.1,0.3s0,0.2,0.1,0.3l0.1,0.1c0,0,6.7,7,6.8,7.1C9,21.8,9.2,22,9.4,22s0.4-0.2,0.5-0.3L22,5c0.1-0.1,0.1-0.2,0.1-0.3C22.1,4.6,22,4.5,22,4.4z'/%3E%3C/svg%3E");
}

.form-hint { margin-bottom: 16px; color: var(--pale); }

.contact-form button {
  display: block;
  width: 100%;
  height: 40px;
  border: 2px solid transparent;
  background: var(--navy);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
}
.contact-form button:hover { background: rgba(0, 48, 87, .9); }

.form-trap { position: absolute; left: -9999px; }

.form-note { margin: 12px 0 0; color: #777777; }

/* Logos und Fußzeile */

.logos .inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: min-content 1fr;
  grid-template-areas:
    "bmwe vwf exist"
    "bmwe links exist";
  max-width: 1280px;
  padding: 48px 24px 56px;
  column-gap: 16px;
}

.logos img { width: 100%; }

.logo-bmwe { grid-area: bmwe; width: 58.45%; }
.logo-vwf { grid-area: vwf; justify-self: center; width: 45.7%; }
.logo-exist { grid-area: exist; justify-self: end; width: 66.83%; }

.footer-nav {
  grid-area: links;
  display: flex;
  justify-content: center;
  margin: 8px -60px 0;
}
.footer-nav a { border-radius: 100px; font-size: 16px; }

.footer-bar { height: 40px; background: var(--green); }

/* Rechtstexte */

.page-title .inner { padding: 32px 24px; }

.page-title h1 {
  margin: var(--contact-gap) 0;
  font-size: var(--contact-size);
}

.legal p { overflow-wrap: break-word; }
.legal a { color: var(--green); }
.legal-short .inner { padding: 64px 24px 84px; }
.legal-long .inner { padding: 152px 64px 136px; }

/* Tablets */

@media (max-width: 1023.98px) {
  :root {
    --body-size: 14px;
    --title-size: 35px;
    --title-gap: 23.45px;
    --sub-size: 16.625px;
    --sub-gap: 27.8px;
    --contact-size: 28.875px;
    --contact-gap: 24px;
  }

  .inner,
  .step-rate .inner,
  .step-optimize .inner,
  .benefits .inner,
  .logos .inner { max-width: none; }

  .site-header .inner { padding: 32px 24px; }
  .site-logo img { width: 201px; }

  .menu-toggle { display: block; }
  .site-nav { display: none; }

  .site-nav a {
    width: 100%;
    height: auto;
    margin: 0;
    border: 0;
    text-align: center;
  }
  .site-nav a[aria-current="page"] { border: 0; }

  .menu-open .site-nav {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 304;
    width: 100%;
    max-height: 568px;
    overflow: auto;
    padding: 64px 0;
    background: #ffffff;
    box-shadow: 0 12px 12px -12px #0006;
  }

  .menu-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 303;
    background: linear-gradient(to bottom, #0000 0% 20%, #0006 20% 100%);
  }

  .menu-open .menu-toggle { position: fixed; top: 16px; right: 24px; }
  .menu-open .icon-menu { display: none; }
  .menu-open .menu-toggle .icon-close { display: block; }

  .capabilities .inner { min-height: 436px; }
  .capabilities h2 { height: 38px; line-height: 43.2px; }

  .benefits-head h2 { font-size: 40px; }

  .benefit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit h3 { margin: 24.3px 0 20.2px; line-height: 36px; hyphens: auto; }
  .benefit h4 { margin: 20.2px 0 41.8px; }

  .field input { height: 46px; }
  .field textarea { height: 208px; }
  .field-message { margin-bottom: 38px; }
  .consent { margin-bottom: 30px; }
  .contact-form button { height: 38px; }

  .logos .inner { padding: 48px 24px; }
  .logo-bmwe { width: 43%; }
  .logo-vwf { width: 70%; }
  .logo-exist { width: 49.2%; }
  .footer-bar { height: 80px; }

  .legal-long .inner { padding: 96px 64px; }
}

/* Smartphones */

@media (max-width: 767.98px) {
  :root {
    --title-size: 30.625px;
    --title-gap: 20.5px;
    --sub-size: 16px;
    --sub-gap: 24px;
    --contact-size: 25.25px;
    --contact-gap: 21px;
  }

  .site-header .inner { padding: 16px 24px; }
  .site-logo img { width: 163px; }

  .hero .inner,
  .split { grid-template-columns: minmax(0, 1fr); }

  .hero-text { padding-bottom: 0; }

  .video-full .inner { min-height: 0; padding: 48px 24px 20px; }

  .capabilities .inner {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 16px 20px;
  }
  .capability-media { height: auto; margin-bottom: 12px; }
  .capabilities li:nth-child(2) img { width: 100%; margin-top: 0; }
  .capabilities li:nth-child(3) img { margin-top: 0; }
  .capabilities li + li { margin-top: 12px; }
  .capabilities h2 { height: auto; line-height: 33px; }

  .step-optimize .split-text { padding: 32px 32px 16px 16px; }
  .step-production .split-text { padding-bottom: 16px; }
  .step-production .split-media { padding-top: 16px; }

  .step-optimize .inner,
  .step-production .inner { padding-block: 64px; }

  .benefit-list { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .benefit { grid-template-columns: 100px minmax(0, 1fr); padding-bottom: 32px; }
  .benefit img.is-tall { width: 100%; }
  .benefit h3 { margin-top: 0; font-size: 24px; }
  .benefit h4 { margin: 12px 0 16px; }
  .benefit h3 br, .benefit h4 br { display: none; }

  .contact .inner { padding-top: 96px; }
  .contact-box { padding: 40px 24px 40px; }
  .contact-form { margin-inline: 0; }

  .logos .inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "bmwe vwf exist"
      "links links links";
    align-items: center;
    padding: 32px 16px;
    column-gap: 16px;
  }
  .logo-bmwe, .logo-vwf, .logo-exist { width: 100%; }
  .footer-nav { flex-wrap: wrap; margin: 12px 0 0; }

  .legal-long .inner { padding: 48px 24px; }
  .legal-short .inner { padding: 48px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
