/* ==========================================================================
   Munich Flight Gear
   Stylesheet der statischen Seite. Ersetzt Elementor + OceanWP.

   Die Werte stammen aus der alten WordPress-Seite (post-11.css für die
   globalen Tokens, post-70.css für die Landingpage) und sind hier einmal
   benannt statt über hunderte generierte Selektoren verteilt.

   Aufbau:
     1. Tokens
     2. Grundlagen
     3. Bausteine (Container, Buttons, Überschriften)
     4. Sektionen in Reihenfolge der Seite
     5. Rechtliche Unterseiten
     6. Nach-oben-Button
   ========================================================================== */

/* 1. Tokens ================================================================ */

:root {
  /* Farben. Die Namen sind die der alten Elementor-Palette. */
  --gelb: #fae600;          /* Akzent: Hauptbutton, Hover-Zustände */
  --blaugrau: #c4c9d4;      /* Flächen: Produkt- und Fußbereich */
  --dunkel: #1b1b24;        /* Overlay über den Fotos */
  --blau: #0091d0;          /* Icons im Technikbereich */
  --blau-hell: #2185f5;     /* Raute über dem Zitat */
  --schwarz: #000;
  --weiss: #fff;
  --text: #262626;          /* Fließtext auf Weiß */
  --text-leise: #353535;    /* Produktbeschreibungen */

  /* Textfarbe auf den blaugrauen Flächen.
     Achtung: Weiß auf #c4c9d4 ergibt ein Kontrastverhältnis von nur 1,7:1.
     Die WCAG fordert 4,5:1. Das war in der alten Seite so und ist hier
     originalgetreu übernommen. Auf --dunkel umgestellt sind es 9,7:1: */
  --text-auf-blaugrau: var(--weiss);
  /* --text-auf-blaugrau: var(--dunkel); */

  /* Schriften. Lokal ausgeliefert, siehe css/fonts.css */
  --font-titel: "Montserrat Alternates", "Trebuchet MS", sans-serif;
  --font-hero: "Open Sans", "Segoe UI", sans-serif;
  --font-text: "Roboto", "Helvetica Neue", Arial, sans-serif;

  /* Maße */
  --breite: 1140px;         /* Containerbreite der alten Seite */
  --breite-zitat: 968px;    /* Zitatbereich, etwas schmaler */
  --rand: 30px;             /* Seitenabstand auf kleinen Schirmen */
  --radius: 8px;
}

/* 2. Grundlagen ============================================================ */

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

html {
  scroll-behavior: smooth;
  /* Verhindert, dass die Sprungziele direkt an der Fensterkante kleben. */
  scroll-padding-top: 20px;
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* Die width/height-Attribute im HTML reservieren nur den Platz (kein
   Springen beim Laden). Ohne height: auto bliebe die Attribut-Höhe stehen,
   sobald CSS die Breite ändert -- das Bild würde verzerrt. */
img {
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
}

p {
  margin: 0;
}

/* Sichtbar nur für Tastatur und Screenreader. */
.sprungmarke {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--gelb);
  color: var(--schwarz);
  text-decoration: none;
}

.sprungmarke:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--gelb);
  outline-offset: 3px;
}

/* 3. Bausteine ============================================================= */

.container {
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: var(--rand);
}

.container--zitat {
  max-width: calc(var(--breite-zitat) + 2 * var(--rand));
}

/* Überschrift der Sektionen: Montserrat Alternates, wie im Original. */
.sektion-titel {
  font-family: var(--font-titel);
  font-size: 31px;
  line-height: 1.3;
  color: var(--schwarz);
}

.button {
  display: inline-block;
  padding: 15px 37px;
  border: 2px solid;
  border-radius: var(--radius);
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

/* Sekundär: nur Umriss, füllt sich beim Überfahren. */
.button--umriss {
  border-color: var(--weiss);
  background: transparent;
  color: var(--weiss);
}

.button--umriss:hover,
.button--umriss:focus {
  border-color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.77);
  color: var(--gelb);
}

/* Primär: gelb gefüllt, leert sich beim Überfahren. */
.button--voll {
  border-color: var(--gelb);
  background: var(--gelb);
  color: var(--schwarz);
}

.button--voll:hover,
.button--voll:focus {
  background: transparent;
  color: var(--gelb);
}

/* 4. Sektionen ============================================================= */

/* 4.1 Kopfbereich --------------------------------------------------------- */

.hero {
  padding: 120px 0;
  /* Der Verlauf ist das Overlay der alten Seite: #1b1b24 mit 76 % Deckung. */
  background:
    linear-gradient(rgba(27, 27, 36, 0.76), rgba(27, 27, 36, 0.76)),
    url("../assets/img/hero-bg-1920.webp") top center / cover no-repeat;
  text-align: center;
}

.hero__logo {
  width: 40%;
  max-width: 468px;
  margin-inline: auto;
}

.hero__titel {
  padding: 20px;
  font-family: var(--font-hero);
  font-size: 40px;
  line-height: 1.5;
  color: var(--weiss);
}

.hero__aktionen {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding-top: 5px;
}

/* 4.2 Technik ------------------------------------------------------------- */

.technik {
  padding: 100px 0 0;
}

.technik__titel {
  padding: 0 0 30px 30px;
}

/* Foto links, Merkmale rechts. In der alten Seite war das Foto ein
   Hintergrundbild; dadurch musste der Bereich auf schmalen Schirmen 650 px
   Leerraum reservieren, damit es nicht unter dem Text lag. Als echtes
   Element im Fluss entfällt diese Rechnerei. */
.technik__inhalt {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 0 50px;
}

/* Foto sitzt am unteren Rand des Bereichs, die Merkmale oben. */
.technik__foto {
  align-self: end;
  width: 100%;
}

.technik__raster {
  align-self: start;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 60px;
}

.merkmal__icon {
  width: 40px;
  height: 40px;
  color: var(--blau);
}

.merkmal__titel {
  margin: 10px 0 -6px;
  font-size: 20px;
  line-height: 2;
  color: var(--schwarz);
}

.merkmal__text {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text);
}

/* 4.3 Produkte ------------------------------------------------------------ */

.produkte {
  padding: 60px 0 0;
  background: var(--blaugrau);
}

.produkte__titel {
  font-family: var(--font-titel);
  font-size: 40px;
  color: var(--text-auf-blaugrau);
  text-align: center;
}

.produkte__raster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 30px 0 100px;
}

.produkt {
  padding: 60px 30px;
  background: var(--weiss);
  box-shadow: 0 0 50px rgba(15, 15, 43, 0.6);
  text-align: center;
}

/* Feste Bildhöhe: die Originalfotos haben sehr unterschiedliche Seiten-
   verhältnisse (Platine quer, Halterung hochkant). Ohne feste Höhe stehen
   die drei Karten unterschiedlich hoch. */
.produkt__bild {
  height: 200px;
  margin-inline: auto;
  object-fit: contain;
}

.produkt__name {
  padding: 16px 0 10px;
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--schwarz);
}

.produkt__text {
  font-size: 15px;
  font-weight: 300;
  line-height: 2.1;
  color: var(--text-leise);
}

/* 4.4 Zitat --------------------------------------------------------------- */

.zitat {
  padding: 80px 0;
  background:
    linear-gradient(rgba(27, 27, 36, 0.5), rgba(27, 27, 36, 0.5)),
    url("../assets/img/quote-bg-1920.webp") center center / cover no-repeat;
  text-align: center;
}

.zitat__icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  color: var(--blau-hell);
}

.zitat__text {
  margin: 0;
  padding: 0 50px;
  font-size: 27px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--weiss);
}

/* 4.5 Fußbereich ---------------------------------------------------------- */

.fuss {
  padding: 60px 0 50px;
  background: var(--blaugrau);
  color: var(--text-auf-blaugrau);
}

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

.fuss__titel {
  margin-bottom: 10px;
  font-family: var(--font-titel);
  font-size: 21px;
}

.fuss__text {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
}

.fuss__liste {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 300;
  line-height: 2;
}

.fuss__liste a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.fuss__liste a:hover,
.fuss__liste a:focus {
  text-decoration: underline;
}

.fuss__punkt {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* 5. Rechtliche Unterseiten ================================================ */

/* Schmaler Lesebereich statt der Landingpage-Sektionen. */
.rechtstext {
  max-width: 760px;
  padding-block: 70px 90px;
}

.rechtstext h1 {
  margin-bottom: 40px;
  font-family: var(--font-titel);
  font-size: 34px;
  line-height: 1.3;
  color: var(--schwarz);
}

.rechtstext h2 {
  margin: 40px 0 12px;
  font-family: var(--font-titel);
  font-size: 21px;
  color: var(--schwarz);
}

.rechtstext p {
  margin-bottom: 16px;
  font-weight: 300;
}

/* Kopfleiste der Unterseiten: dunkler Streifen mit Logo, führt zurück. */
.unterseiten-kopf {
  padding: 24px 0;
  background: var(--dunkel);
}

.unterseiten-kopf a {
  display: inline-block;
}

.unterseiten-kopf svg {
  width: 240px;
}

/* 6. Nach oben ============================================================= */

.nach-oben {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: var(--gelb);
  color: var(--schwarz);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.nach-oben[data-sichtbar="ja"] {
  opacity: 1;
  visibility: visible;
}

.nach-oben svg {
  width: 20px;
  height: 20px;
}

/* 7. Kleinere Schirme ====================================================== */

@media (max-width: 1024px) {
  .hero {
    padding: 90px 0;
  }

  .hero__logo {
    width: 60%;
  }

  .hero__titel {
    font-size: 32px;
    letter-spacing: 1.2px;
  }

  /* Foto unter die Merkmale, wie im Original. */
  .technik {
    padding: 70px 0 0;
  }

  .technik__inhalt {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .technik__foto {
    order: 2;
    max-width: 420px;
    margin-inline: auto;
  }

  .technik__titel,
  .technik__raster {
    text-align: center;
  }

  .technik__titel {
    padding: 0 0 40px;
  }

  .merkmal__icon {
    margin-inline: auto;
  }

  .produkte {
    padding-top: 50px;
  }

  .produkte__raster {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }

  .produkt {
    padding: 30px 20px;
  }

  .zitat__text {
    font-size: 22px;
    padding-inline: 30px;
  }

  .fuss__raster {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 767px) {
  :root {
    --rand: 20px;
  }

  .hero {
    padding: 70px 0;
  }

  .hero__logo {
    width: 75%;
  }

  .hero__titel {
    font-size: 28px;
  }

  .hero__aktionen {
    flex-direction: column;
    gap: 16px;
  }

  /* Auf schmalen Schirmen über die volle Breite, wie im Original. */
  .hero__aktionen .button {
    display: block;
  }

  .technik__raster {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .produkte__titel {
    font-size: 30px;
  }

  .zitat {
    padding: 60px 0;
  }

  .zitat__text {
    font-size: 20px;
    padding-inline: 0;
  }
}

/* Kleine Schirme laden das schmalere Hintergrundbild. */
@media (max-width: 900px) {
  .hero {
    background-image:
      linear-gradient(rgba(27, 27, 36, 0.76), rgba(27, 27, 36, 0.76)),
      url("../assets/img/hero-bg-1280.webp");
  }

  .zitat {
    background-image:
      linear-gradient(rgba(27, 27, 36, 0.5), rgba(27, 27, 36, 0.5)),
      url("../assets/img/quote-bg-1280.webp");
  }

}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
