/* =============================================================================
   KOST Racing — Landingpage
   Design-Tokens 1:1 aus den Elementor-Global-Styles der bisherigen Website
   übernommen (Teko/Poppins, #D0F700, #202020).

   Grundsatz: keinerlei externe Requests. Fonts liegen lokal, Icons sind
   Inline-SVG. Dadurch kein Tracking, keine Drittanbieter, kein Cookie-Banner.
   ========================================================================== */

/* --- Schriften, lokal ausgeliefert ---------------------------------------- */

@font-face {
  font-family: Teko;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/teko-400-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Teko;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/teko-400-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Teko;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/teko-600-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Teko;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/teko-600-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/poppins-400-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/poppins-400-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/poppins-600-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/poppins-600-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Tokens --------------------------------------------------------------- */

:root {
  --lime: #d0f700;
  --lime-deep: #bbdd09;
  --cyan: #00a6ce;
  --ink: #202020;
  --slate: #424242;
  --text: #c8c8c8;
  --white: #fff;

  --display: Teko, "Oswald", "Arial Narrow", sans-serif;
  --body: Poppins, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.5rem, 5.5vw, 6.5rem);
  --stack: clamp(1.5rem, 3.5vh, 2.75rem);
}

/* --- Basis ---------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(0.875rem, 0.35vw + 0.8rem, 1rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Sprungmarke für Screenreader und Tastatur */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--lime);
  color: var(--ink);
  font-weight: 600;
}
.skip:focus {
  left: 0;
}

/* =============================================================================
   Hero — ein Screen
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.hero__media,
.hero__scrim {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}

/* Dunkel nach links, damit der Claim steht; das Foto bleibt rechts offen.
   Zweiter Verlauf hält den Fuß der Seite lesbar. */
.hero__scrim {
  background:
    linear-gradient(
      100deg,
      rgba(32, 32, 32, 0.95) 0%,
      rgba(32, 32, 32, 0.86) 24%,
      rgba(32, 32, 32, 0.45) 50%,
      rgba(32, 32, 32, 0.1) 70%,
      rgba(32, 32, 32, 0.45) 100%
    ),
    linear-gradient(to top, rgba(32, 32, 32, 0.8) 0%, rgba(32, 32, 32, 0) 38%);
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--stack);
  width: 100%;
  padding: clamp(1.5rem, 4vh, 2.75rem) var(--gutter);
}

/* --- Logo ----------------------------------------------------------------- */

.brand {
  flex: none;
}

.brand svg,
.brand img {
  width: clamp(148px, 15vw, 224px);
  height: auto;
}

/* --- Mittelblock ---------------------------------------------------------- */

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 36rem;
}

/* Maße aus dem Original nachgemessen: Grundzeile Teko 100px/70px in Schnitt 400,
   das lime Wort 80px/96px in Schnitt 600 kursiv. Hier als em-Verhältnisse, damit
   die Proportion über alle Viewports gleich bleibt. */
.claim {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.5rem, 9vw, 6.25rem);
  line-height: 0.7;
  text-transform: uppercase;
  color: var(--white);
}

.claim > span {
  display: block;
}

.claim .accent {
  font-size: 0.8em;
  line-height: 1.2; /* 1.2 × 0.8em = 0.96em der Grundgröße */
  font-weight: 600;
  font-style: italic;
  color: var(--lime);
}

/* Der kurze Lime-Strich unter dem Claim.
   display:block, damit er auch außerhalb eines Flex-Containers Maße annimmt. */
.rule {
  display: block;
  width: 5.25rem;
  height: 2px;
  margin: clamp(1.5rem, 3.5vh, 2.5rem) 0 0;
  background: var(--lime);
}

/* --- Kontakt -------------------------------------------------------------- */

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem clamp(1.25rem, 3vw, 2.25rem);
  margin: clamp(1.5rem, 3.5vh, 2.25rem) 0 0;
}

.contact li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.contact svg {
  flex: none;
  width: 1rem;
  height: 1rem;
  color: var(--lime);
}

.contact a {
  color: var(--white);
  border-bottom: 1px solid rgba(208, 247, 0, 0.45);
  padding-bottom: 1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.contact a:hover {
  color: var(--lime);
  border-color: var(--lime);
}

/* --- Social --------------------------------------------------------------- */

.social {
  display: flex;
  gap: 0.75rem;
  margin: clamp(1.25rem, 3vh, 1.75rem) 0 0;
}

.social a {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  transition: background-color 0.18s ease, border-color 0.18s ease,
    color 0.18s ease;
}

.social a:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.social svg {
  width: 1.05rem;
  height: 1.05rem;
}

/* --- Fußzeile ------------------------------------------------------------- */

.legal {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1rem;
  font-size: 0.8125rem;
  color: rgba(200, 200, 200, 0.72);
}

.legal a {
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.legal a:hover {
  color: var(--lime);
  border-color: var(--lime);
}

.legal .sep {
  opacity: 0.4;
}

/* =============================================================================
   Rechtstexte — Impressum, Datenschutz
   ========================================================================== */

.page {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 8vh, 5rem) var(--gutter) clamp(3rem, 10vh, 6rem);
}

.page .brand {
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}

.page h1 {
  margin: 0 0 0.25rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.75rem, 7vw, 4.25rem);
  line-height: 0.72;
  text-transform: uppercase;
  color: var(--white);
}

.page h1 + .rule {
  margin: 1.5rem 0 2.25rem;
}

.page h2 {
  margin: clamp(2rem, 5vh, 3rem) 0 0.5rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--lime);
}

.page h3 {
  margin: 1.75rem 0 0.35rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
}

.page p {
  margin: 0 0 1rem;
}

/* Nur Links im Fließtext unterstreichen — Logo und Zurück-Button bleiben außen vor */
.page main a:not(.back) {
  color: var(--white);
  border-bottom: 1px solid rgba(208, 247, 0, 0.45);
  overflow-wrap: anywhere;
}

.page main a:not(.back):hover {
  color: var(--lime);
  border-color: var(--lime);
}

.page dl {
  margin: 0 0 1rem;
}

.page dt {
  font-weight: 600;
  color: var(--white);
}

.page dd {
  margin: 0 0 0.85rem;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: clamp(2.5rem, 6vh, 4rem);
  padding: 0.7rem 1.4rem;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background-color 0.18s ease;
}

.back:hover {
  background: var(--lime-deep);
}

/* =============================================================================
   Anpassungen
   ========================================================================== */

/* Schmale Viewports: Foto rückt in den Hintergrund, Text bekommt Luft */
@media (max-width: 40em) {
  .hero__media img {
    object-position: 70% 45%;
  }

  .hero__scrim {
    background:
      linear-gradient(
        to top,
        rgba(32, 32, 32, 0.96) 0%,
        rgba(32, 32, 32, 0.9) 42%,
        rgba(32, 32, 32, 0.5) 72%,
        rgba(32, 32, 32, 0.35) 100%
      );
  }

  .stage {
    justify-content: flex-end;
    padding-bottom: 0.5rem;
  }
}

/* Sehr flache Fenster (Laptop quer, Handy quer): kein 100vh erzwingen */
@media (max-height: 34em) {
  .hero {
    min-height: 0;
    padding-block: 2rem;
  }

  .claim {
    font-size: clamp(2.5rem, 7vw, 4rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .stage > *,
  .brand,
  .legal {
    animation: rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
  }

  .brand {
    animation-delay: 0.05s;
  }
  .claim {
    animation-delay: 0.12s;
  }
  .rule {
    animation-delay: 0.2s;
  }
  .contact {
    animation-delay: 0.27s;
  }
  .social {
    animation-delay: 0.34s;
  }
  .legal {
    animation-delay: 0.41s;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(0.75rem);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media print {
  .hero {
    min-height: 0;
  }
  .hero__media,
  .hero__scrim {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
  .claim,
  .contact a {
    color: #000;
  }
}
