/* ==========================================================================
   Volland Racing – Stylesheet
   Nachbau des WordPress/Divi-Entwurfs. Alle Werte zentral als Variablen.
   ========================================================================== */

/* -------------------------------------------------------------- Variablen */
:root {
  /* Farben (Herkunft: Divi-Theme-Einstellungen/Module, siehe styleguide.md) */
  --c-black: #000000;          /* Sektionen, Footer */
  --c-white: #ffffff;          /* Text auf Schwarz */
  --c-yellow: #ffe801;         /* Akzent: Footer-Titel, Buttons, Zeitleiste, Hamburger */
  --c-grey-mid: #cccccc;       /* Kachel "News" */
  --c-grey-light: #ebebeb;     /* Kachel "Achievements", Zeitleisten-Icons */
  --c-grey: #7f7f7f;           /* Logo-Leiste, Beitragstitel, Zeitleisten-Karten */
  --c-grey-dark: #5a5859;      /* Abschlussleiste Footer */
  --c-text-dark: #333333;      /* Beitragskarten-Titel, Projekt-Kacheln */
  --c-header: rgba(137, 137, 137, 0.7); /* Header */
  --c-social: #0a0303;         /* Social-Icon-Kreise */
  --c-overlay-light: rgba(255, 255, 255, 0.5); /* Projekt-Kacheln */

  /* Schriften */
  --f-head: "Syncopate", Helvetica, Arial, sans-serif;
  --f-body: "Montserrat", Helvetica, Arial, sans-serif;
  --fs-base: 14px;
  --fs-h1: clamp(34px, 7vw, 80px);
  --fs-h3: clamp(20px, 2.4vw, 26px);
  --fs-footer: 18px;
  --lh-text: 2.2;

  /* Ecken */
  --r-card: 5px;
  --r-tile: 10px;
  --r-round: 50%;

  /* Abstände */
  --container: 1080px;
  --gutter: 16px;
  --space-section: 54px;
  --space-l: 30px;
  --space-m: 20px;
  --space-s: 10px;
  --header-h: 54px;

  /* Schatten (Original: keine) */
  --shadow-none: none;
  color-scheme: dark; /* bewusst nur dunkles Design wie das Original */
}

/* -------------------------------------------------------------- Basis */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--c-black); color: var(--c-white);
  font-family: var(--f-body); font-size: var(--fs-base); font-weight: 500; line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
@media (min-width: 981px) { .container { width: min(80%, var(--container)); } }
.svg-inline--fa, .fa-solid, .fa-brands { line-height: 1; }
:focus-visible { outline: 2px solid var(--c-yellow); outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--c-yellow); color: var(--c-black); padding: 10px 16px; font-weight: 700; }
.skip-link:focus { left: 10px; top: 10px; }

/* Platzhalter: deutlich sichtbar, damit nichts übersehen wird */
.placeholder { display: inline-block; background: var(--c-yellow); color: var(--c-black); font-weight: 700; padding: 2px 8px; font-family: var(--f-body); font-style: normal; text-transform: none; letter-spacing: 0; font-size: 14px; line-height: 1.5; }

/* -------------------------------------------------------------- Sektionen */
.section { padding-block: var(--space-section); }
.section--black { background: var(--c-black); }
.section--grey { background: var(--c-grey); }

/* -------------------------------------------------------------- Button */
.button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 18px 30px;
  font-family: var(--f-head); font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none; line-height: 1.7; border: 2px solid transparent; border-radius: 0;
  background: var(--c-black); color: var(--c-white); transition: opacity .2s;
}
.button:hover { opacity: .85; }

/* -------------------------------------------------------------- Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; background: var(--c-header); height: var(--header-h); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-m); }
.site-header__logo img { height: 44px; width: auto; }
.site-header__tools { display: flex; align-items: center; gap: var(--space-m); }
.lang-switch { display: flex; align-items: center; gap: 6px; font-family: var(--f-body); font-weight: 700; font-size: 14px; }
.lang-switch__link { color: var(--c-white); text-decoration: none; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.lang-switch__link--active { color: var(--c-yellow); }
.lang-switch__sep { color: var(--c-white); opacity: .6; }
.menu-toggle { width: 44px; height: 44px; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; background: none; border: 0; padding: 0; }
.menu-toggle__bar { display: block; width: 22px; height: 2px; background: var(--c-yellow); }

/* Vollbild-Menü (Divi "Fullscreen") */
.menu { position: fixed; inset: 0; z-index: 150; background: var(--c-black); overflow-y: auto; text-align: center; text-transform: uppercase; font-weight: 700; }
.menu[hidden] { display: none; }
.menu__info { background: rgba(255, 255, 255, .06); padding: 35px var(--gutter); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; font-size: 18px; }
.menu__info-link { color: var(--c-white); text-decoration: none; display: inline-flex; gap: 10px; align-items: center; min-height: 44px; text-transform: none; }
.menu__list { padding: 40px var(--gutter) 60px; }
.menu__link { display: inline-block; padding: 10px 0; font-size: clamp(22px, 4vw, 30px); color: var(--c-white); text-decoration: none; }
.menu__link:hover, .menu__link--active { color: var(--c-yellow); }
.menu__close { position: absolute; top: 6px; right: 10px; width: 44px; height: 44px; background: none; border: 0; color: var(--c-yellow); font-size: 26px; }

/* -------------------------------------------------------------- Seitenkopf Unterseiten */
.page-hero { background-color: var(--c-black); background-size: cover; background-position: center; padding: calc(var(--header-h) + 82px) 0 14px; min-height: 282px; display: flex; align-items: center; }
.page-hero__title { font-family: var(--f-body); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: var(--fs-h1); line-height: .7; padding-bottom: 10px; color: var(--c-white); overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 600px) { .page-hero { min-height: 200px; padding-top: calc(var(--header-h) + 40px); } .page-hero__title { line-height: 1; } }

/* Beitragstitel (Theme-Builder "Alle Beiträge") */
.post-hero { background: var(--c-grey); padding: calc(var(--header-h) + 26px) 0 26px; }
.post-hero__title { font-family: var(--f-head); font-weight: 700; text-transform: uppercase; font-size: clamp(18px, 2.6vw, 30px); line-height: 1.4; color: var(--c-white); overflow-wrap: anywhere; }

/* -------------------------------------------------------------- Startseite: Slider */
.hero-slider { position: relative; height: 90vh; min-height: 360px; max-height: 842px; overflow: hidden; background: var(--c-black); }
.hero-slider__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .8s ease; }
.hero-slider__slide--active { opacity: 1; }
.hero-slider__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; background: none; border: 0; color: var(--c-white); font-size: 32px; opacity: 0; transition: opacity .2s; }
.hero-slider:hover .hero-slider__arrow, .hero-slider__arrow:focus-visible { opacity: 1; }
.hero-slider__arrow--prev { left: 16px; } .hero-slider__arrow--next { right: 16px; }
.hero-slider__dots { position: absolute; bottom: 20px; left: 0; right: 0; display: flex; justify-content: center; gap: 0; }
.hero-slider__dot { width: 24px; height: 44px; padding: 0; border: 0; background: none; position: relative; }
.hero-slider__dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-radius: 7px; transform: translate(-50%, -50%); background: rgba(255, 255, 255, .5); }
.hero-slider__dot--active::before { background: var(--c-white); }
@media (hover: none) { .hero-slider__arrow { opacity: .8; } }

/* -------------------------------------------------------------- Textblock */
.text-block { line-height: var(--lh-text); }
.text-block--center { text-align: center; }
.text-block__title { font-family: var(--f-head); font-weight: 700; font-size: var(--fs-h3); line-height: 1.2; text-transform: uppercase; color: var(--c-white); padding-bottom: 10px; }
.features { padding-bottom: 79px; }
.partners-intro { padding-block: 36px; }

/* -------------------------------------------------------------- Startseite: Kacheln */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 54px; }
.tile { min-height: 416px; padding: 30px; background-size: cover; background-position: center; display: flex; flex-direction: column; align-items: flex-start; }
.tile--grey { background-color: var(--c-grey-mid); }
.tile--light { background-color: var(--c-grey-light); padding-top: 120px; }
.tile--image { padding-bottom: 120px; }
.tile__kicker { font-family: var(--f-head); font-weight: 700; font-size: 14px; line-height: 1.8; text-transform: uppercase; color: var(--c-black); margin: 0; padding-bottom: 10px; }
.tile__title { font-family: var(--f-head); font-weight: 700; font-size: var(--fs-h3); line-height: 1.2; text-transform: uppercase; padding-bottom: 10px; margin-bottom: 14px; color: var(--c-white); overflow-wrap: anywhere; }
.tile--grey .tile__title { font-family: var(--f-body); color: var(--c-black); }
.tile--light .tile__title { color: var(--c-black); }
.tile--image .tile__button { background: var(--c-yellow); color: var(--c-black); }
.tile--light .tile__button { background: transparent; color: var(--c-black); border-color: var(--c-black); padding: 16px 28px; }
@media (max-width: 980px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 300px; } .tile--light { padding-top: 30px; } .tile--image { padding-bottom: 30px; } .tile__title br { display: none; } }

/* Bildband */
.image-band { background-size: cover; background-position: center; padding: 220px 0 127px; }
@media (max-width: 600px) { .image-band { padding: 120px 0 80px; } }

/* -------------------------------------------------------------- Projekt-Kacheln (CTA) */
.cta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5.5%; }
.cta-card { position: relative; display: flex; align-items: center; justify-content: center; min-height: 204px; padding: 40px 20px; border-radius: var(--r-tile); overflow: hidden; background-size: cover; background-position: center; text-decoration: none; }
.cta-card::before { content: ""; position: absolute; inset: 0; background: var(--c-overlay-light); transition: background .2s; }
.cta-card:hover::before { background: rgba(255, 255, 255, .35); }
.cta-card__title { position: relative; font-family: var(--f-body); font-weight: 600; font-size: clamp(28px, 3.2vw, 40px); color: var(--c-text-dark); text-align: center; }
@media (max-width: 700px) { .cta-grid { grid-template-columns: 1fr; gap: 30px; } }

/* -------------------------------------------------------------- Beitragsliste (Divi Blog-Raster) */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5.5%; row-gap: 30px; }
.post-card { background: var(--c-white); border-radius: var(--r-card); overflow: hidden; padding: 0 19px 19px; display: flex; flex-direction: column; }
.post-card__image { display: block; margin: 0 -19px 19px; aspect-ratio: 16 / 10; overflow: hidden; }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; }
.post-card__title { font-family: var(--f-body); font-weight: 500; font-size: 18px; line-height: 1.3; color: var(--c-text-dark); padding-bottom: 10px; }
.post-card__title a { text-decoration: none; }
.post-card__more { font-weight: 600; text-transform: uppercase; color: var(--c-black); text-decoration: none; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; align-self: flex-start; }
.post-card__more:hover { text-decoration: underline; }
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- Beitragsinhalt */
.post-section { padding-top: 23px; }
.post-content { color: var(--c-white); line-height: 1.8; max-width: 100%; }
.post-content p { margin-bottom: 1.2em; }
.post-content a { color: var(--c-white); }
.post-content__subtitle { font-family: var(--f-head); font-weight: 700; font-size: 16px; text-transform: uppercase; line-height: 1.5; margin: 1.6em 0 .8em; }
.post-content__figure { margin: 0 0 1.4em; }
.post-content__figure img { margin-inline: auto; }
.gallery { display: grid; gap: 16px; margin: 0 0 1.4em; }
.gallery--cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery--cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery__item { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .gallery--cols-2, .gallery--cols-3 { grid-template-columns: 1fr; } }
.spec-table { overflow-x: auto; margin: 0 0 1.4em; }
.spec-table table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.spec-table th, .spec-table td { border: 1px solid var(--c-white); padding: .5em; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.spec-table th { font-weight: 700; width: 40%; }

/* -------------------------------------------------------------- Zeitleiste (Divi Plus Timeline) */
.timeline { position: relative; display: grid; gap: 40px; padding: 20px 0; }
.timeline__bar { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); background: var(--c-white); }
.timeline__fill { display: block; width: 100%; height: 0; background: var(--c-yellow); }
.timeline__item { position: relative; display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; z-index: 1; }
.timeline__icon { grid-column: 2; grid-row: 1; justify-self: center; width: 44px; height: 44px; border-radius: var(--r-round); background: var(--c-grey-light); color: var(--c-black); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.timeline__card { position: relative; background: var(--c-grey); border-radius: var(--r-tile); padding: 16px 16px 24px; color: var(--c-white); margin: 0; }
.timeline__item--right .timeline__card { grid-column: 3; grid-row: 1; }
.timeline__item--left .timeline__card { grid-column: 1; grid-row: 1; text-align: right; }
.timeline__card::before { content: ""; position: absolute; top: 50%; border: 10px solid transparent; transform: translateY(-50%); }
.timeline__item--right .timeline__card::before { right: 100%; border-right-color: var(--c-grey); }
.timeline__item--left .timeline__card::before { left: 100%; border-left-color: var(--c-grey); }
.timeline__date { font-weight: 600; font-size: 18px; margin-bottom: 4px; }
.timeline__title { font-family: var(--f-body); font-weight: 500; font-size: 22px; line-height: 1.4; margin-bottom: 6px; }
.timeline__text { font-weight: 600; line-height: 1.6; }
.timeline__card--image { padding: 0; overflow: hidden; }
.timeline__card--image img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
@media (max-width: 767px) {
  .timeline__bar { left: 22px; }
  .timeline__item { grid-template-columns: 44px 1fr; column-gap: 20px; }
  .timeline__icon { grid-column: 1; }
  .timeline__item--right .timeline__card, .timeline__item--left .timeline__card { grid-column: 2; text-align: left; }
  .timeline__item--left .timeline__card::before { left: auto; right: 100%; border-left-color: transparent; border-right-color: var(--c-grey); }
}

/* -------------------------------------------------------------- Kontakt-Blurbs */
.blurbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.blurb { text-align: center; color: var(--c-white); }
.blurb__icon { display: inline-flex; color: var(--c-yellow); font-size: 32px; margin-bottom: 14px; }
.blurb__title { font-family: var(--f-body); font-weight: 700; font-size: 16px; padding-bottom: 10px; }
.blurb__text a { color: var(--c-white); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; overflow-wrap: anywhere; }
@media (max-width: 700px) { .blurbs { grid-template-columns: 1fr; } }

/* Rechtstexte */
.legal-text { color: var(--c-white); line-height: 1.8; }

/* -------------------------------------------------------------- Logo-Leiste (global) */
.logo-slider { padding-block: 40px 30px; }
.logo-slider__inner { display: flex; align-items: center; gap: 8px; }
.logo-slider__viewport { overflow: hidden; flex: 1; }
.logo-slider__track { display: flex; transition: transform .5s ease; }
.logo-slider__item { flex: 0 0 20%; padding: 10px; display: flex; align-items: center; justify-content: center; height: 150px; }
.logo-slider__img { max-height: 70px; width: auto; max-width: 100%; object-fit: contain; }
.logo-slider__arrow { flex: 0 0 44px; height: 44px; background: none; border: 0; color: var(--c-white); font-size: 22px; }
.logo-slider__dots { display: flex; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.logo-slider__dot { width: 24px; height: 44px; padding: 0; border: 0; background: none; position: relative; }
.logo-slider__dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: var(--r-round); transform: translate(-50%, -50%); background: var(--c-white); opacity: .6; }
.logo-slider__dot--active::before { background: var(--c-black); opacity: 1; }
@media (max-width: 980px) { .logo-slider__item { flex-basis: 33.333%; } }
@media (max-width: 560px) { .logo-slider__item { flex-basis: 50%; height: 110px; } }

/* -------------------------------------------------------------- Footer */
.site-footer { background: var(--c-black); color: var(--c-white); }
.site-footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2%; padding-block: 50px; }
.site-footer__title { font-family: var(--f-body); font-weight: 900; font-size: var(--fs-footer); line-height: 1.4; text-transform: uppercase; color: var(--c-yellow); margin-bottom: 8px; }
.site-footer__text, .site-footer__links { font-weight: 600; font-size: var(--fs-footer); line-height: var(--lh-text); }
.site-footer__links a { color: var(--c-white); text-decoration: none; display: inline-flex; min-height: 40px; align-items: center; }
.site-footer__links a:hover { text-decoration: underline; }
.social { display: flex; gap: 10px; }
.social__link { width: 44px; height: 44px; border-radius: var(--r-round); background: var(--c-social); color: var(--c-white); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; text-decoration: none; }
.social__link:hover { color: var(--c-yellow); }
.site-footer__bar { background: var(--c-grey-dark); text-align: center; padding: 4px var(--gutter); text-transform: uppercase; font-size: 13px; }
.site-footer__bar p { margin: 0; }
.site-footer__bar a { color: var(--c-white); text-decoration: none; }
@media (max-width: 980px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* ==========================================================================
   Responsive-Anpassungen Smartphone (Freigabe 30.10.2026)
   ========================================================================== */
@media (max-width: 767px) {
  /* 1. Slider kürzer */
  .hero-slider { height: 60vh; min-height: 300px; }
  /* 2. Kacheln niedriger, Kicker auf Fotos lesbar */
  .tile { min-height: 240px; }
  .tile--image .tile__kicker { color: var(--c-white); }
  /* 3. Seitenköpfe niedriger, H1 kleiner */
  .page-hero { min-height: 170px; padding-top: calc(var(--header-h) + 32px); padding-bottom: 20px; }
  .page-hero__title { font-size: clamp(30px, 9vw, 44px); line-height: 1.05; }
  /* 4. Zeitleisten: mehr Abstand zwischen Icon und Karte */
  .timeline { gap: 28px; }
  .timeline__item { column-gap: 28px; }
  .timeline__card::before { display: none; }
  /* 6. Technik-Tabellen: Bezeichnung über dem Wert */
  .spec-table table, .spec-table tbody, .spec-table tr, .spec-table th, .spec-table td { display: block; width: 100%; }
  .spec-table table { border-bottom: 1px solid var(--c-white); }
  .spec-table tr { border: 1px solid var(--c-white); border-bottom: 0; padding: .5em .75em; }
  .spec-table tr:has(th:empty) { border-top: 0; padding-top: 0; }
  .spec-table th, .spec-table td { border: 0; padding: 0; }
  .spec-table th { width: 100%; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; opacity: .75; }
  .spec-table th:empty { display: none; }
}
/* 5. Logo-Leiste: am Smartphone genau 2 Logos, Punkte je Seite */
@media (max-width: 560px) {
  .logo-slider__item { flex-basis: 50%; height: 100px; }
  .logo-slider__img { max-height: 56px; }
}
