/* Grundwerte: Markenfarben, Schriften und allgemeine Abstaende. */
:root {
  --wm-blue: #0B4DA2;
  --wm-light-blue: #1F6FE5;
  --wm-dark: #07162e;
  --wm-black: #0b0b0b;
  --wm-white: #ffffff;
  --wm-light: #f4f7fb;
  --wm-grey: #6b7280;
  --wm-border: #dbe4f0;
  --max-width: 1180px;
  --section-padding: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--wm-dark);
  background: var(--wm-white);
  font-family: "Bahnschrift", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.challenge-info-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--wm-blue);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.challenge-info-link:hover,
.challenge-info-link:focus {
  color: var(--wm-light-blue);
}

.challenge-info-link--light {
  color: var(--wm-white);
}

.challenge-info-link--light:hover,
.challenge-info-link--light:focus {
  color: #d9e7fb;
}

.container {
  width: min(100% - 32px, var(--max-width));
  margin-inline: auto;
}

/* Header: Fixe Orientierung, ohne kompliziertes Menue-Script. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--wm-border);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.nav__brand img {
  width: 150px;
  height: auto;
}

.nav__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
  font-size: 0.96rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.nav__links a {
  text-decoration: none;
}

.nav__links a:hover,
.nav__links a:focus {
  color: var(--wm-blue);
}

/* Hero: Grosser erster Eindruck mit lesbarer Textflaeche. */
.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  color: var(--wm-white);
  overflow: hidden;
}

.hero__image,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__image {
  background-image: url("assets/images/hero-track.jpeg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero__overlay {
  background:
    linear-gradient(90deg, rgba(7, 22, 46, 0.92) 0%, rgba(7, 22, 46, 0.64) 45%, rgba(7, 22, 46, 0.18) 100%),
    linear-gradient(0deg, rgba(7, 22, 46, 0.36), rgba(7, 22, 46, 0.08));
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 96px 0;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--wm-light-blue);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.94;
  text-transform: uppercase;
}

.hero__lead {
  max-width: 650px;
  margin: 26px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: #e5edf8;
}

.hero__actions,
.contact__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero__actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 2px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover,
.button:focus {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--wm-light-blue);
  color: var(--wm-white);
}

.button--secondary {
  border-color: currentColor;
  color: var(--wm-white);
}

.section--light .button--secondary,
.sponsorship .button--secondary {
  color: var(--wm-blue);
}

/* Faktenleiste: Drei kompakte Argumente direkt unter dem Hero. */
.fact-strip {
  background: var(--wm-blue);
  color: var(--wm-white);
}

.fact-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.fact-strip article {
  padding: 28px;
  background: var(--wm-blue);
}

.fact-strip strong,
.fact-strip span {
  display: block;
}

.fact-strip strong {
  font-size: 1.35rem;
  line-height: 1.2;
}

.fact-strip span {
  margin-top: 8px;
  color: #d9e7fb;
}

/* Allgemeine Sektionen: Einheitliche Abstaende und Ueberschriften. */
.section {
  padding: var(--section-padding) 0;
}

.section--light {
  background: var(--wm-light);
}

.section--blue {
  background: var(--wm-blue);
  color: var(--wm-white);
}

.section-label--light {
  color: #bcd8ff;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 36px;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
  text-transform: uppercase;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.2;
}

p {
  margin: 0;
}

p + p {
  margin-top: 18px;
}

.section-heading p:last-child,
.split__text p {
  color: #41516a;
  font-size: 1.07rem;
}

.section--blue .split__text p {
  color: #e5edf8;
}

/* Split-Layout: Text und Bild nebeneinander, mobil untereinander. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
  align-items: center;
  gap: 54px;
}

.split--reverse {
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1fr);
}

.split--reverse .split__text {
  order: 2;
}

.image-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(7, 22, 46, 0.16);
}

.image-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.image-card--dark {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

/* Team: Personenfotos und gemeinsamer Motorsportbezug. */
.team-section {
  display: grid;
  gap: 38px;
}

.team-intro {
  max-width: 840px;
}

.team-intro p {
  color: #e5edf8;
  font-size: 1.07rem;
}

.team-intro .section-label {
  color: #bcd8ff;
}

.team-note {
  margin-top: 20px;
  padding: 18px 20px;
  border-left: 5px solid var(--wm-white);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.12);
}

.team-intro .team-note {
  color: var(--wm-white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.person-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.person-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.person-card div {
  padding: 22px;
}

.person-card p {
  color: #e5edf8;
}

.person-card--wide img {
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center top;
  background: var(--wm-blue);
}

/* Verein: Gesellschaftliche Ebene, Mitglieder und gemeinsamer Treffpunkt. */
.club {
  background: var(--wm-white);
}

.club-media {
  display: grid;
  gap: 18px;
}

.club-photo {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(7, 22, 46, 0.14);
}

.club-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.club-promotion {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(7, 22, 46, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.club-promotion:hover,
.club-promotion:focus {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(7, 22, 46, 0.18);
}

.club-promotion img {
  width: 100%;
  height: auto;
}

.club-facts {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.club-facts article {
  padding: 16px 18px;
  border-left: 4px solid var(--wm-light-blue);
  border-radius: 0 8px 8px 0;
  background: var(--wm-light);
}

.club-facts strong,
.club-facts span {
  display: block;
}

.club-facts strong {
  color: var(--wm-blue);
  font-size: 1.03rem;
  line-height: 1.25;
}

.club-facts span {
  margin-top: 4px;
  color: #4c5d76;
}

/* Karten: Drei einfache Leistungsfelder mit klarer Lesbarkeit. */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  padding: 28px;
  border: 1px solid var(--wm-border);
  border-radius: 8px;
  background: var(--wm-white);
}

.card__number {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--wm-blue);
  font-size: 0.9rem;
  font-weight: 800;
}

.card p,
.timeline__item p {
  color: #4c5d76;
}

/* Roadmap: Zeitliche Ziele mit einfacher Linie. */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.timeline__item {
  position: relative;
  padding: 26px;
  border-left: 5px solid var(--wm-blue);
  border-radius: 0 8px 8px 0;
  background: var(--wm-white);
}

.timeline__item span {
  display: block;
  margin-bottom: 10px;
  color: var(--wm-light-blue);
  font-weight: 800;
  text-transform: uppercase;
}

.timeline__item--highlight {
  border-left-color: var(--wm-light-blue);
  box-shadow: 0 18px 42px rgba(11, 77, 162, 0.14);
}

.achievement {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--wm-border);
  border-radius: 8px;
  background: var(--wm-white);
}

.achievement__photos {
  display: grid;
  gap: 12px;
}

.achievement__photos img {
  width: 100%;
  border-radius: 6px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.achievement h3 {
  font-size: 1.8rem;
}

/* Sponsoring: Starker Partnerbereich mit konkreten Gegenleistungen. */
.sponsorship {
  background: var(--wm-white);
}

.sponsorship .split__text {
  min-width: 0;
}

.sponsorship h2 {
  max-width: 620px;
  overflow-wrap: normal;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 30px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 12px;
  background: var(--wm-light-blue);
}

.sponsor-panel {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 42px;
  border-radius: 8px;
  color: var(--wm-white);
  text-align: center;
  background:
    linear-gradient(rgba(11, 77, 162, 0.9), rgba(11, 77, 162, 0.9)),
    url("assets/images/motorsport-lineup.jpeg") center / cover;
}

.sponsor-panel img {
  width: min(260px, 75%);
}

.sponsor-panel p {
  margin-top: 20px;
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
}

/* Sekundaerlogo: Dezenter Markenmoment zwischen Sponsoring und Galerie. */
.brand-mark {
  padding: 34px 0;
  border-top: 1px solid var(--wm-border);
  border-bottom: 1px solid var(--wm-border);
  background: var(--wm-white);
}

.brand-mark__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--wm-grey);
  text-align: center;
}

.brand-mark__inner img {
  width: 74px;
  opacity: 0.78;
}

.brand-mark__inner p {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Galerie: Drei Motive mit stabilen Bildformaten. */
.gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: repeat(2, minmax(220px, 1fr));
  gap: 18px;
}

.gallery img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border-radius: 8px;
  object-fit: cover;
}

.gallery img:first-child {
  grid-row: span 2;
}

/* Kontakt: Deutlicher Abschluss mit Call-to-Action. */
.contact {
  color: var(--wm-white);
  background: var(--wm-dark);
}

.contact__inner {
  justify-content: space-between;
}

.contact__inner > div {
  max-width: 720px;
}

.contact p {
  color: #dbe7f8;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border: 2px solid rgba(255, 255, 255, 0.48);
  border-radius: 4px;
  color: var(--wm-white);
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.social-link:hover,
.social-link:focus {
  border-color: var(--wm-white);
  transform: translateY(-2px);
}

.social-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* Sponsoren: Erweiterbares Logo-Raster mit klarem Dank und CTA. */
.sponsors {
  background: var(--wm-light);
}

.sponsors__heading {
  text-align: center;
  margin-inline: auto;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.sponsor-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--wm-border);
  border-radius: 8px;
  background: var(--wm-white);
  text-align: center;
}

.sponsor-card__logo {
  display: grid;
  min-height: 150px;
  place-items: center;
  padding: 20px;
  border-radius: 6px;
  background: var(--wm-white);
}

.sponsor-card__logo--dark {
  background: var(--wm-blue);
}

.sponsor-card__logo img {
  max-height: 110px;
  width: auto;
  object-fit: contain;
}

.sponsor-card__name {
  color: var(--wm-dark);
  font-weight: 800;
  text-decoration: none;
}

.sponsor-card__name:hover,
.sponsor-card__name:focus {
  color: var(--wm-blue);
}

.sponsors__cta {
  max-width: 820px;
  margin: 36px auto 0;
  text-align: center;
}

.sponsors__cta p {
  margin-bottom: 22px;
  color: #41516a;
  font-size: 1.07rem;
}

/* Footer: Kompakte rechtliche und organisatorische Angaben. */
.site-footer {
  color: var(--wm-white);
  background: var(--wm-black);
}

/* Fehlerseite: Nutzt bestehende Markenstile und bleibt bewusst schlicht. */
.error-page .section {
  min-height: 100vh;
  display: grid;
  align-items: center;
}

.error-page h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  line-height: 1;
  text-transform: uppercase;
}

.error-page p:not(.section-label) {
  max-width: 620px;
  margin: 20px 0 28px;
  color: #e5edf8;
  font-size: 1.1rem;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
}

.footer__inner img {
  width: 128px;
}

.footer__inner address {
  margin: 0;
  color: #b8c3d2;
  font-size: 0.92rem;
  font-style: normal;
  line-height: 1.55;
  text-align: right;
}

.footer__label {
  display: block;
  margin-bottom: 8px;
  color: var(--wm-white);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer__inner address strong {
  color: var(--wm-white);
}

.footer__inner address a {
  text-decoration: none;
}

.footer__inner address a:hover,
.footer__inner address a:focus {
  color: var(--wm-white);
}

.footer__privacy-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--wm-white);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* Datenschutz: Bewusst ruhige, textorientierte Gestaltung. */
.privacy-page {
  padding: clamp(54px, 8vw, 92px) 0;
}

.privacy-content {
  max-width: 860px;
}

.privacy-content h1 {
  margin: 0 0 42px;
  color: var(--wm-blue);
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.privacy-content h2 {
  margin: 52px 0 20px;
  padding-top: 22px;
  border-top: 1px solid var(--wm-border);
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  line-height: 1.08;
}

.privacy-content h3 {
  margin: 32px 0 12px;
  font-size: 1.35rem;
}

.privacy-content h4 {
  margin: 24px 0 8px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.privacy-content p,
.privacy-content li {
  font-family: Arial, sans-serif;
  line-height: 1.7;
}

.privacy-content ul {
  padding-left: 24px;
}

.privacy-content a {
  color: var(--wm-blue);
  overflow-wrap: anywhere;
}

.privacy-content a:hover,
.privacy-content a:focus {
  color: var(--wm-light-blue);
}

/* Tablet: Spalten werden reduziert, Abstaende bleiben ruhig. */
@media (max-width: 900px) {
  :root {
    --section-padding: 68px;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav__links {
    justify-content: flex-start;
  }

  .hero {
    min-height: 640px;
  }

  .hero__overlay {
    background: linear-gradient(90deg, rgba(7, 22, 46, 0.92), rgba(7, 22, 46, 0.58));
  }

  .fact-strip__grid,
  .cards,
  .timeline,
  .team-grid,
  .achievement,
  .split,
  .split--reverse {
    grid-template-columns: 1fr;
  }

  .split--reverse .split__text {
    order: initial;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .gallery img:first-child {
    grid-row: auto;
  }

  .person-card img {
    aspect-ratio: 16 / 11;
  }

  .person-card--wide img {
    aspect-ratio: auto;
    height: auto;
    object-fit: contain;
  }
}

/* Smartphone: Kompaktere Typografie und volle Buttonbreite. */
@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, var(--max-width));
  }

  .nav__brand img {
    width: 132px;
  }

  .nav__links {
    gap: 8px 14px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 590px;
  }

  .hero__content {
    padding: 72px 0;
  }

  .hero h1 {
    max-width: 10ch;
    font-size: clamp(2.35rem, 12vw, 3rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(1.85rem, 8.5vw, 2.45rem);
    line-height: 1.08;
    overflow-wrap: break-word;
  }

  .button {
    width: 100%;
  }

  .contact__actions,
  .social-link {
    width: 100%;
  }

  .fact-strip article,
  .card,
  .timeline__item {
    padding: 22px;
  }

  .sponsor-panel {
    min-height: 280px;
    padding: 28px;
  }

  .brand-mark__inner {
    flex-direction: column;
  }

  .footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer__inner address {
    text-align: left;
  }
}
