/* Edelstall – edelstall.com
   Dunkel, ruhig, ein Gedanke pro Bildschirm. Systemschrift, keine externen Abrufe. */

/* Schrift: TeX Gyre Heros, liegt lokal in assets/fonts (GUST Font License, siehe dort). */
@font-face { font-family: "TeX Gyre Heros"; src: url("../assets/fonts/texgyreheros-regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "TeX Gyre Heros"; src: url("../assets/fonts/texgyreheros-bold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --black: #000;
  --card: #161617;
  --white: #F5F5F7;
  --grey: #86868B;
  --grey-light: #A1A1A6;
  --line: #2C2C2E;
  --font: "TeX Gyre Heros", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 44px);
  --max: 1200px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 60px; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Bausteine */
.display {
  font-size: clamp(44px, 7.4vw, 96px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.dim { color: var(--grey); }
.lead {
  max-width: 34em;
  font-size: clamp(19px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--grey-light);
  text-wrap: balance;
}
.eyebrow { font-size: 15px; font-weight: 700; color: var(--grey); }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 980px;
  background: var(--white);
  color: var(--black);
  font: inherit;
  font-size: 17px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s;
}
.pill:hover { background: #fff; }
.pill--small { min-height: 30px; padding: 0 14px; font-size: 13px; }
.link { font-size: clamp(17px, 1.6vw, 21px); color: var(--grey-light); }
.link:hover { text-decoration: underline; }

section { padding: clamp(90px, 13vw, 180px) var(--gutter); text-align: center; display: flex; flex-direction: column; align-items: center; }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 52px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav img { height: 13px; width: auto; }

/* Hero */
.hero { padding-top: clamp(64px, 9vw, 120px); padding-bottom: 0; gap: clamp(18px, 2vw, 26px); }
.hero .display { font-size: clamp(52px, 9.6vw, 128px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; margin-top: 10px; }
.hero__image {
  width: min(100%, 1500px);
  height: clamp(300px, 52vw, 760px);
  object-fit: cover;
  object-position: 35% 55%;
  margin-top: clamp(8px, 2vw, 30px);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}

/* Aussage */
.statement { padding-block: clamp(70px, 10vw, 150px); }
.statement__text {
  max-width: 21em;
  font-size: clamp(26px, 4.2vw, 56px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--grey);
  text-wrap: pretty;
}
.statement__text strong { font-weight: 700; color: var(--white); }

.headline { gap: clamp(18px, 2vw, 28px); padding-top: clamp(40px, 6vw, 90px); }

/* Kacheln */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-top: 0;
  text-align: left;
  align-items: stretch;
}
.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 250px;
  padding: clamp(24px, 2.6vw, 36px);
  border-radius: 28px;
  background: var(--card);
}
.card h3 {
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.card > p:not(.eyebrow) { margin-top: auto; color: var(--grey-light); font-size: 17px; }
.card--image { padding: 0; min-height: 0; }
.card--image img { width: 100%; height: 100%; object-fit: cover; }
.card--tall { grid-column: 1 / 3; grid-row: 1 / 4; }
.card--tall img { position: absolute; inset: 0; object-position: 50% 35%; }
.card--wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.card--wide img { object-position: 50% 30%; filter: saturate(0.75) brightness(0.9); }
.card__caption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(60px, 9vw, 120px) clamp(24px, 3.4vw, 48px) clamp(24px, 3.4vw, 48px);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
}
.card__caption .eyebrow { color: var(--grey-light); }
.card__caption h3 { font-size: clamp(28px, 4.4vw, 56px); letter-spacing: -0.03em; line-height: 1.05; }

/* Shirts */
.shirts { gap: clamp(18px, 2vw, 26px); padding-bottom: clamp(40px, 6vw, 90px); }
.shirts__row {
  position: relative;
  width: min(100%, 1500px);
  margin-top: clamp(10px, 3vw, 40px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  background: var(--black);
}
/* Lichtkegel hinter dem mittleren Shirt */
.shirts__row::before {
  content: "";
  position: absolute;
  inset: 4% 22% 10%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.11), transparent);
}
.shirt { position: relative; margin: 0; mix-blend-mode: lighten; }
.shirt img {
  width: 100%;
  height: auto;
  /* Bildränder weich ins Schwarz auslaufen lassen, damit kein Kasten sichtbar ist */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 94%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.shirt figcaption { position: relative; z-index: 2; margin-top: 4px; font-size: 13px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--grey); }
.shirt--main { z-index: 1; transform: scale(1.22); }
.shirt--main figcaption { color: var(--white); font-size: 11px; }
.shirt--side img { filter: brightness(0.72); }
.shirt--side:first-child { transform: translateX(7%); }
.shirt--side:last-child { transform: translateX(-7%); }

/* Anmeldung */
.join { gap: clamp(18px, 2vw, 26px); }
.join__signet { height: 38px; width: auto; margin-bottom: 8px; }
.join__form { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.join__row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.join__row input {
  flex: 1 1 240px;
  min-width: 0;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid #424245;
  border-radius: 980px;
  background: var(--card);
  color: var(--white);
  font: inherit;
}
.join__row input::placeholder { color: var(--grey); }
.join__row .pill { min-height: 50px; }
.join__row .pill:disabled { opacity: 0.6; cursor: default; }
.join__note { font-size: 13px; color: var(--grey); }
.join__note.is-ok { color: var(--white); }
.join__note.is-error { color: #FF9F8A; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: #0A0A0A; }
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--gutter) 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 28px;
  font-size: 12px;
  color: var(--grey);
}
.footer nav { display: flex; gap: 22px; }
.footer a:hover { color: var(--white); }

/* Bewegung: nur wenn JS läuft und Bewegung erwünscht ist. Reines CSS plus wenige Zeilen JS, keine Bibliothek. */
@media (prefers-reduced-motion: no-preference) {
  /* Abschnitte weich und leicht unscharf einblenden */
  .js .reveal {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(10px);
    transition: opacity 1s cubic-bezier(0.2, 0.7, 0.2, 1), transform 1s cubic-bezier(0.2, 0.7, 0.2, 1), filter 1s ease;
  }
  .js .reveal.is-in { opacity: 1; transform: none; filter: none; }

  /* Hero: Zeilen nacheinander */
  .js .hero .reveal:nth-child(2) { transition-delay: 0.15s; }
  .js .hero .reveal:nth-child(3) { transition-delay: 0.3s; }
  .js .hero .hero__image.reveal { transition-delay: 0.45s; transition-duration: 1.6s; transform: none; }
  /* Das Horn bewegt sich beim Scrollen langsamer als die Seite (--shift setzt main.js) */
  .js .hero__image.is-in { transform: translateY(calc(var(--shift, 0) * 1px)) scale(calc(1 + var(--zoom, 0))); transition: opacity 1.6s ease, filter 1.6s ease; }

  /* Aussage: Wörter leuchten beim Scrollen nacheinander auf */
  .js .statement__text.reveal { opacity: 1; transform: none; filter: none; }
  .js .statement__text .w { opacity: 0.22; transition: opacity 0.5s ease; }
  .js .statement__text .w.on { opacity: 1; }

  /* Buttons reagieren leicht */
  .pill { transition: background 0.2s, transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .pill:hover { transform: scale(1.04); }
  .pill:active { transform: scale(0.98); }
}

/* Shirts fahren hinter dem mittleren hervor (nur nebeneinander, also am Desktop) */
@media (prefers-reduced-motion: no-preference) and (min-width: 821px) {
  .js .shirts__row.reveal { opacity: 1; transform: none; filter: none; }
  .js .shirts__row .shirt { transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 1.1s ease; }
  .js .shirts__row .shirt--side { transition-delay: 0.25s; }
  .js .shirts__row::before { transition: opacity 1.8s ease 0.4s; }
  .js .shirts__row:not(.is-in) .shirt { opacity: 0; }
  .js .shirts__row:not(.is-in) .shirt--main { transform: scale(1.06); }
  .js .shirts__row:not(.is-in) .shirt--side:first-child { transform: translateX(42%); }
  .js .shirts__row:not(.is-in) .shirt--side:last-child { transform: translateX(-42%); }
  .js .shirts__row:not(.is-in)::before { opacity: 0; }
}

@media (max-width: 820px) {
  .shirts__row { grid-template-columns: minmax(0, 1fr); max-width: 440px; }
  .shirts__row::before { display: none; }
  .shirt, .shirt--main, .shirt--side:first-child, .shirt--side:last-child { transform: none; }
  .shirt--side img { filter: none; }
  .shirt figcaption, .shirt--main figcaption { font-size: 12px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .card { min-height: 190px; }
  .card--tall { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 5; }
  .card--wide { aspect-ratio: 4 / 5; }
}

/* Rechtstexte */
.legal { max-width: 680px; margin: 0 auto; padding: clamp(48px, 8vw, 110px) var(--gutter); text-align: left; display: block; }
.legal__logo { height: 14px; width: auto; margin-bottom: clamp(48px, 7vw, 90px); }
.legal h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 32px; }
.legal h2 { font-size: 15px; font-weight: 700; color: var(--grey); margin: 36px 0 8px; }
.legal p { color: var(--grey-light); margin-bottom: 12px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal mark { background: #4A3A1E; color: var(--white); padding: 0 4px; border-radius: 4px; }
