/* Ferrari Treffen — single-screen hero site */

/* -----------------------------------------------------------------------------
   Schriften — selbst gehostet (Inter Variable).
   Bewusst NICHT über die Google-Fonts-CDN: das würde die IP-Adresse jedes
   Besuchers an Google übertragen und wäre in AT/DE ohne Einwilligung ein
   DSGVO-Problem. Selbst gehostet bleibt die CSP eng und es fällt kein
   Drittanbieter-Request an.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-wght-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-ext-wght-normal.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;
}

:root {
  --ink:        #0e0e0f;
  --paper:      #f4f2ef;
  --rosso:      #d8091c;
  --rosso-lift: #ff2038;

  --bar-h: clamp(64px, 8vh, 92px);
  --pad-x: clamp(20px, 5vw, 72px);

  --ff: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--ff);
  background: var(--ink);
  color: var(--paper);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Footer bleibt auch bei kurzen Seiten (404) unten am Viewport-Rand. */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

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

a { color: inherit; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 18px;
  font-size: .85rem;
  text-decoration: none;
}
.skip:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--rosso-lift);
  outline-offset: 4px;
}

/* ---------- top bar / logo ---------- */

.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  padding: 0 var(--pad-x);
  pointer-events: none;
}

.logo {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: .7em;
  text-decoration: none;
  color: var(--paper);
}

.logo__mark {
  width: 3px;
  height: 1.55em;
  background: var(--rosso);
  border-radius: 2px;
  box-shadow: 0 0 18px rgba(216, 9, 28, .75);
  flex: none;
}

.logo__text {
  font-size: clamp(.82rem, 1.5vw, 1rem);
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-shadow: 0 1px 24px rgba(0, 0, 0, .6);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}

/* Ebenen bewusst mit positiven z-index-Werten innerhalb des durch
   `isolation: isolate` erzeugten Stacking-Kontexts von .hero:
   Bild (0) → Scrim (1) → Text (2). Negative Werte wären hier fragil,
   weil sie hinter den Hintergrund des Elternelements rutschen können. */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
  transform: scale(1.06);
  animation: drift 26s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.2%, -1%, 0); }
}

/* legibility scrim: dark bed at the bottom-left, vignette overall */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top,
      rgba(8, 8, 9, .92) 0%,
      rgba(8, 8, 9, .80) 26%,
      rgba(8, 8, 9, .46) 52%,
      rgba(8, 8, 9, .16) 74%,
      rgba(8, 8, 9, .38) 100%),
    linear-gradient(to right,
      rgba(8, 8, 9, .68) 0%,
      rgba(8, 8, 9, .34) 34%,
      rgba(8, 8, 9, 0) 62%),
    radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(8, 8, 9, .5) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad-x) clamp(28px, 5vh, 56px);
  animation: rise .9s cubic-bezier(.2, .7, .3, 1) both;
}

.eyebrow {
  margin: 0 0 clamp(14px, 2vh, 22px);
  font-size: clamp(.62rem, 1.1vw, .74rem);
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(244, 242, 239, .72);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: clamp(24px, 4vw, 46px);
  height: 1px;
  background: var(--rosso);
  vertical-align: .32em;
  margin-right: .9em;
}

.title {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.6rem, 7.2vw, 6.6rem);
  font-weight: 300;
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .6);
}

.title em {
  font-style: normal;
  font-weight: 600;
  color: #fff;
}

.lede {
  margin: clamp(18px, 2.6vh, 30px) 0 0;
  max-width: 34ch;
  font-size: clamp(.95rem, 1.5vw, 1.15rem);
  color: rgba(244, 242, 239, .8);
  text-wrap: pretty;
  text-shadow: 0 1px 20px rgba(0, 0, 0, .5);
}

/* thin baseline strip under the hero */
.hero__foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 var(--pad-x) clamp(20px, 3.5vh, 34px);
  animation: rise 1.1s cubic-bezier(.2, .7, .3, 1) .15s both;
}

.rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(244, 242, 239, .28), rgba(244, 242, 239, 0));
}

.foot-note {
  font-size: clamp(.6rem, 1vw, .7rem);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(244, 242, 239, .55);
  white-space: nowrap;
}

@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 26px, 0); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Textseiten (Impressum, Datenschutz, 404) ---------- */

.page {
  max-width: 68ch;
  margin: 0 auto;
  padding: calc(var(--bar-h) + clamp(32px, 8vh, 88px)) var(--pad-x) clamp(56px, 10vh, 110px);
}

.page h1 {
  margin: 0 0 clamp(24px, 4vh, 44px);
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  font-weight: 300;
  letter-spacing: -.03em;
  line-height: 1.08;
}

.page h2 {
  margin: clamp(32px, 5vh, 52px) 0 .6em;
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -.01em;
}

.page p,
.page li {
  color: rgba(244, 242, 239, .74);
  font-size: clamp(.92rem, 1.4vw, 1rem);
}

.page p { margin: 0 0 1.1em; }

.page ul { margin: 0 0 1.1em; padding-left: 1.2em; }
.page li { margin-bottom: .45em; }

.page a { color: var(--paper); text-underline-offset: .22em; }

.page address {
  font-style: normal;
  color: rgba(244, 242, 239, .74);
  margin-bottom: 1.1em;
}

/* Platzhalter, die vor dem Go-live ersetzt werden müssen */
.todo {
  color: var(--rosso-lift);
  font-weight: 500;
  background: rgba(216, 9, 28, .12);
  border-bottom: 1px dashed rgba(255, 32, 56, .55);
  padding: 0 .25em;
  border-radius: 2px;
}

.notice {
  margin: 0 0 clamp(28px, 5vh, 46px);
  padding: 16px 18px;
  border: 1px solid rgba(255, 32, 56, .4);
  border-left: 3px solid var(--rosso);
  border-radius: 4px;
  background: rgba(216, 9, 28, .08);
  font-size: .88rem;
  color: rgba(244, 242, 239, .82);
}

.back {
  display: inline-block;
  margin-top: clamp(28px, 5vh, 46px);
  font-size: .84rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(244, 242, 239, .62);
  transition: color .25s ease;
}

.back:hover { color: var(--paper); }

/* ---------- footer ---------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  padding: clamp(20px, 4vh, 30px) var(--pad-x);
  background: var(--ink);
  border-top: 1px solid rgba(244, 242, 239, .08);
  font-size: .78rem;
  color: rgba(244, 242, 239, .5);
}

.foot p { margin: 0; }

.foot__legal { display: flex; gap: 10px; align-items: center; }

.foot a {
  text-decoration: none;
  transition: color .25s ease;
}

.foot a:hover { color: var(--paper); }

/* ---------- narrow screens ---------- */

@media (max-width: 620px) {
  .title { font-size: clamp(2.6rem, 13vw, 4.2rem); max-width: none; }
  .eyebrow { letter-spacing: .2em; }
  .eyebrow::before { width: 20px; margin-right: .7em; }
  .hero__media img { object-position: 64% 50%; }
  .foot { justify-content: flex-start; }
  .foot-note { letter-spacing: .18em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .hero__media img { transform: scale(1.06); }
}
