/* Cargo Crit - Coming soon. Warmes Anthrazit, Stein, Rot nur als Mikro-Akzent. */
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #131211;
  --surface: #1b1917;
  --hair: rgba(233, 228, 220, 0.16);
  --hair-soft: rgba(233, 228, 220, 0.09);
  --text: #e9e4dc;
  --muted: #a8a29b;
  --red: #e8141a;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: clamp(20px, 4.5vw, 64px);
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; box-shadow: none; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -64px; z-index: 50;
  padding: 12px 16px; background: var(--red); color: #fff; font-size: 14px;
}
.skip:focus { top: 12px; }

.label {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.label .dot {
  display: inline-block; width: 6px; height: 6px; margin-right: 0.9em;
  background: var(--red); vertical-align: 0.08em;
}

/* Textlinks mit Haarlinie */
.link {
  display: inline-flex; align-items: center; min-height: 44px;
  background: linear-gradient(var(--hair), var(--hair)) 0 calc(50% + 0.85em) / 100% 1px no-repeat;
  transition: color 0.3s var(--ease);
}
.link:hover { color: #fff; background-image: linear-gradient(var(--text), var(--text)); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 var(--gutter);
  overflow: hidden;
  background: var(--ink);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg picture { position: absolute; inset: 0; opacity: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg picture:nth-child(1) { opacity: 1; animation: fade-first 27s linear infinite; }
.hero__bg picture:nth-child(1) img { object-position: 78% 50%; }
.hero__bg picture:nth-child(2) { animation: fade 27s linear 9s infinite; }
.hero__bg picture:nth-child(2) img { object-position: 70% 50%; }
.hero__bg picture:nth-child(3) { animation: fade 27s linear 18s infinite; }
.hero__bg picture:nth-child(3) img { object-position: 60% 50%; }
@keyframes fade {
  0% { opacity: 0; }
  7% { opacity: 1; }
  33.3% { opacity: 1; }
  40.3% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes fade-first {
  0% { opacity: 1; }
  33.3% { opacity: 1; }
  40.3% { opacity: 0; }
  92.6% { opacity: 0; }
  100% { opacity: 1; }
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(19,18,17,0.55) 0%, rgba(19,18,17,0) 22%, rgba(19,18,17,0) 55%, rgba(19,18,17,0.9) 100%),
    linear-gradient(90deg, rgba(19,18,17,0.92) 0%, rgba(19,18,17,0.78) 38%, rgba(19,18,17,0.3) 78%, rgba(19,18,17,0.2) 100%);
}

.top {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 22px;
  border-bottom: 1px solid var(--hair-soft);
}
.top .label { color: var(--text); }

.hero__main {
  align-self: center;
  width: 100%;
  max-width: 40rem;
  padding-block: clamp(32px, 6vh, 72px);
}
.logo { display: block; width: min(300px, 72vw); height: auto; aspect-ratio: 363 / 183; margin: 0 0 clamp(28px, 5vh, 52px); }
h1 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(2.9rem, 9.6vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lede {
  margin: 0.55em 0 0;
  font-weight: 300;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  opacity: 0.82;
}
.reg {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px;
  margin-top: clamp(32px, 6vh, 56px);
  padding-top: 20px;
  border-top: 1px solid var(--hair);
  position: relative;
}
.reg::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 2px; background: var(--red); }
.reg .label { color: var(--text); }
.reg__date { margin: 6px 0 0; font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 300; letter-spacing: -0.015em; line-height: 1.25; }
.count { text-align: left; visibility: hidden; }
.count.is-on { visibility: visible; }
.count[hidden] { display: none; }
.count__n {
  display: block;
  font-weight: 300;
  font-size: clamp(3rem, 7vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.count .label { margin-top: 8px; }

.hero__foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 32px;
  padding-block: 14px 18px;
  border-top: 1px solid var(--hair-soft);
  font-size: 14px;
  color: var(--text);
}
.hero__foot p { margin: 0; padding-block: 8px; max-width: 34rem; }
.hero__foot ul { display: flex; flex-wrap: wrap; gap: 0 28px; margin: 0; padding: 0; list-style: none; }
.hero__foot .link { font-size: 14px; }

/* ---------- Footer ---------- */
.site-foot { padding: 0 var(--gutter); background: var(--ink); border-top: 1px solid var(--hair-soft); }
.site-foot__in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
  max-width: 1400px; margin-inline: auto; padding-block: 24px;
}
.site-foot img { width: 56px; height: auto; opacity: 0.9; }
.site-foot ul { display: flex; flex-wrap: wrap; gap: 0 24px; margin: 0; padding: 0; list-style: none; align-items: center; }
.site-foot .link { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); }

/* ---------- Rechtstexte ---------- */
.legal-top { padding: 0 var(--gutter); border-bottom: 1px solid var(--hair-soft); }
.legal-top__in { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin-inline: auto; padding-block: 14px; gap: 16px; }
.legal-top img { width: 120px; height: auto; }
.legal-top .link { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.legal { padding: clamp(48px, 9vw, 112px) var(--gutter) clamp(56px, 8vw, 104px); }
.legal__in { max-width: 44rem; margin-inline: auto; }
.legal h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); margin-bottom: 0.6em; }
.legal h2 {
  margin: 2.4em 0 0.6em; padding-top: 1.1em; border-top: 1px solid var(--hair);
  font-weight: 300; font-size: clamp(1.35rem, 3vw, 1.7rem); line-height: 1.25; letter-spacing: -0.02em;
}
.legal p, .legal li, .legal address { color: var(--muted); max-width: 40rem; }
.legal address { font-style: normal; margin: 0 0 1em; }
.legal strong { color: var(--text); font-weight: 500; }
.legal p { margin: 0 0 1em; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: 0.4em; }
.legal a { color: var(--text); border-bottom: 1px solid var(--hair); }
.legal a:hover { border-color: var(--text); }
.legal .stand { margin-top: 3em; }

@media (min-width: 900px) {
  .hero__main { max-width: 44rem; }
}
@media (max-width: 480px) {
  .top .label:last-child { display: none; }
  .hero::before { background: linear-gradient(180deg, rgba(19,18,17,0.72) 0%, rgba(19,18,17,0.78) 100%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg picture:nth-child(n+2) { display: none; }
  .hero__bg picture:nth-child(1) { animation: none; opacity: 1; }
  .link { transition: none; }
}

@media print {
  html, body { background: #fff; color: #000; }
  .legal-top, .site-foot, .skip { display: none; }
  .legal { padding: 0; }
  .legal h1, .legal p, .legal li, .legal address, .legal strong, .legal a { color: #000; }
  .legal h2 { border-color: #999; color: #000; }
  .legal a::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  .legal a[href^="mailto"]::after, .legal a[href^="tel"]::after { content: ""; }
}
