/* =========================================================
   Schwarz Voigt Gold – Layout & Styling
   Design base: 1920 × 4928 (Figma)
   ========================================================= */

:root {
  --c-black: #161616;
  --c-yellow: #ffd343;
  --c-white: #ffffff;

  /* German flag color stops for button gradient */
  --flag-grad: linear-gradient(
    172.5deg,
    #2b2b2a 0%,
    #2b2b2a 28%,
    #3a221f 34%,
    #5e1e16 40%,
    #b91d22 46%,
    #e41f25 52%,
    #e9501a 62%,
    #f1960c 78%,
    #f6c203 92%,
    #f8d300 100%
  );

  --font-display: 'Franklin Gothic', 'ITC Franklin Gothic Std', 'Arial Narrow', sans-serif;
  --font-body: 'TT Norms Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Fluid scale (anchored to 1920 design + 1280 mid + mobile floor) */
  --pad-x: clamp(20px, 12.5vw, 240px);
  --gap-tile: clamp(16px, 1.5vw, 28px);

  --fs-display: clamp(40px, 5.21vw, 100px);   /* H2 */
  --fs-body:    clamp(16px, 1.25vw, 24px);    /* body */
  --fs-btn:     clamp(22px, 2.6vw, 50px);     /* button label */

  --section-gap: clamp(48px, 5.8vw, 112px);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--c-black);
  background: var(--c-white);
  overflow-x: hidden;
}

/* ============== HERO ============== */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 1080;
  max-height: 100vh;
  min-height: 420px;
  overflow: hidden;
  background: #100c08;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  animation: heroPan 18s ease-in-out infinite alternate;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 35%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.35) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.18) 100%);
  pointer-events: none;
}
@keyframes heroPan {
  from { transform: scale(1.04) translate3d(-0.5%, 0, 0); }
  to   { transform: scale(1.08) translate3d(0.5%, -1%, 0); }
}
.hero__title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--pad-x);
  z-index: 2;
}

/* Floating jersey — sits in front of flag bg AND title */
.hero__jersey {
  position: absolute;
  right: 2%;
  top: 22%;
  width: 56%;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.45)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
  animation: jerseyFloat 7s ease-in-out infinite, jerseyEnter 1.4s 0.15s cubic-bezier(.16,1,.3,1) both;
  transform-origin: 60% 50%;
  will-change: transform;
}
.hero__jersey img {
  display: block;
  width: 100%;
  height: auto;
}
@keyframes jerseyEnter {
  0%   { opacity: 0; transform: translateX(6%) translateY(-2%) rotate(-3deg) scale(0.98); }
  100% { opacity: 1; transform: none; }
}
@keyframes jerseyFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(-0.6deg); }
}
.hero__title-svg {
  width: min(100%, 1440px);
  height: auto;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.35));
  animation: titleEnter 1.1s cubic-bezier(.16,1,.3,1) both;
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}
@keyframes titleEnter {
  0%   { opacity: 0; transform: translateY(18px) scale(0.985); filter: drop-shadow(0 0 0 rgba(0,0,0,0)); }
  100% { opacity: 1; transform: none;                          filter: drop-shadow(0 18px 40px rgba(0,0,0,0.35)); }
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 3vw, 48px);
  transform: translateX(-50%);
  z-index: 2;
  width: 2px;
  height: clamp(36px, 4vw, 64px);
  background: rgba(255,255,255,0.25);
  overflow: hidden;
}
.hero__scroll span {
  position: absolute;
  inset: 0;
  background: #fff;
  transform-origin: top;
  animation: scrollHint 2.4s ease-in-out infinite;
}
@keyframes scrollHint {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============== SECTION SHELL ============== */
.section { position: relative; }
.section__inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  position: relative;
  z-index: 1;
}
.section + .section { margin-top: var(--section-gap); }
.section--intro { margin-top: clamp(56px, 6.5vw, 126px); }

/* Heads */
.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 56px);
  align-items: start;
}
.section__title {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: 0.92;
  letter-spacing: -0.005em;
  color: var(--c-black);
  text-wrap: balance;
}
.section__text {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--c-black);
  max-width: 700px;
  margin-left: auto;
}

/* Tile (image card) */
.tile {
  position: relative;
  overflow: hidden;
  background: #f1f0ec;
  border-radius: 2px;
  isolation: isolate;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.1s cubic-bezier(.16,1,.3,1), filter .6s ease;
  will-change: transform;
}
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22,22,22,0) 60%, rgba(22,22,22,0.06) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s ease;
}
.tile:hover img { transform: scale(1.035); }
.tile:hover::after { opacity: 1; }

/* ============== SECTION 1 – INTRO ============== */
.section--intro .section__head {
  margin-bottom: clamp(32px, 3.6vw, 70px);
  align-items: end;
}
.section__grid--intro {
  display: grid;
  grid-template-columns: 467fr 881fr;
  gap: clamp(20px, 2vw, 40px);
  align-items: start;
  position: relative;
}
.tile--sketch { aspect-ratio: 1 / 1; max-width: 467px; align-self: start; margin-top: clamp(80px, 8vw, 140px); }
.tile--boy    { aspect-ratio: 1 / 1; }

/* Yellow accent block – sits behind & bleeds to the left edge */
.section__accent {
  position: absolute;
  left: 0;
  width: min(54vw, 1030px);
  height: clamp(280px, 35vw, 680px);
  top: clamp(260px, 30vw, 580px);
  background: var(--c-yellow);
  transform: translateX(-12.2%);
  z-index: 0;
  border-radius: 0;
}

/* ============== SECTION 2 – SHOWCASE ============== */
.section--showcase .tile { aspect-ratio: 1440 / 805; }

/* ============== SECTION 3 – CTA ============== */
.section--cta {
  padding-bottom: clamp(56px, 6.5vw, 140px);
}
.section--cta .section__inner { padding-top: 0; }
.section__watermark {
  position: absolute;
  inset: auto 0 0 0;
  margin: 0 auto;
  width: min(70vw, 1275px);
  max-width: calc(100% - var(--pad-x) - 60px);
  left: 18.1%;
  bottom: 8%;
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}
.section__watermark img { width: 100%; height: auto; display: block; }

.section__grid--cta {
  display: grid;
  grid-template-columns: 588fr 707fr;
  gap: clamp(20px, 2vw, 42px);
  align-items: start;
}
.tile--logo    { aspect-ratio: 588 / 360; }
.tile--players { aspect-ratio: 1 / 1; }

.section__head--cta {
  margin-top: clamp(40px, 4.5vw, 86px);
  align-items: end;
}
.section__head--cta .section__text {
  max-width: 423px;
}

.section__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 2.6vw, 44px);
  margin-top: clamp(36px, 4vw, 80px);
  position: relative;
  z-index: 2;
}

/* ============== CTA BUTTON ============== */
.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(280px, 26.4vw, 506px);
  aspect-ratio: 506 / 121;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  color: var(--c-white);
  box-shadow:
    0 14px 28px rgba(228, 31, 37, 0.22),
    0 4px 10px rgba(0, 0, 0, 0.18);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, filter .35s ease;
}
.cta-button__bg {
  position: absolute;
  inset: 0;
  background: var(--flag-grad);
  background-size: 100% 220%;
  background-position: 0% 0%;
  animation: gradFlow 7s ease-in-out infinite;
  z-index: -2;
}
.cta-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0) 45%, rgba(0,0,0,0.18));
  pointer-events: none;
  z-index: -1;
}
.cta-button__shine {
  position: absolute;
  top: 0; left: -40%;
  width: 35%;
  height: 100%;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
  transform: skewX(-18deg);
  filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity .2s ease;
}
.cta-button:hover .cta-button__shine {
  opacity: 1;
  animation: shineSweep 1.1s ease forwards;
}
@keyframes shineSweep {
  to { left: 130%; }
}
@keyframes gradFlow {
  0%, 100% { background-position: 0% 0%; }
  50%      { background-position: 0% 100%; }
}
.cta-button:hover {
  transform: translateY(-3px);
  box-shadow:
    0 22px 48px rgba(228, 31, 37, 0.32),
    0 6px 14px rgba(0, 0, 0, 0.24);
  filter: saturate(1.08);
}
.cta-button:active { transform: translateY(-1px); }
.cta-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
  box-shadow:
    0 0 0 6px rgba(228, 31, 37, 0.4),
    0 22px 48px rgba(228, 31, 37, 0.3);
}
.cta-button__label {
  font-family: var(--font-body);
  font-size: var(--fs-btn);
  line-height: 1;
  color: var(--c-white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
  letter-spacing: 0.005em;
  position: relative;
  z-index: 2;
}

/* ============== SECONDARY BUTTON ============== */
.cta-button-sec {
  --sec-bg: #B6CCC2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: clamp(12px, 1.2vw, 18px) clamp(22px, 2.2vw, 36px);
  background: var(--sec-bg);
  color: var(--c-black);
  text-decoration: none;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: clamp(14px, 1.1vw, 18px);
  line-height: 1;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(22, 22, 22, 0.08);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, background .3s ease;
}
.cta-button-sec__arrow {
  width: 16px;
  height: 16px;
  display: block;
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.cta-button-sec:hover {
  background: #a8c1b5;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(22, 22, 22, 0.14);
}
.cta-button-sec:hover .cta-button-sec__arrow { transform: translateX(4px); }
.cta-button-sec:active { transform: translateY(0); }
.cta-button-sec:focus-visible {
  outline: 2px solid var(--c-black);
  outline-offset: 3px;
}

/* ============== REVEAL ANIMATIONS ============== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s cubic-bezier(.16,1,.3,1), transform 1s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============== FOOTER ============== */
.footer {
  max-width: 1920px;
  margin: 0 auto;
  padding: clamp(28px, 3vw, 56px) var(--pad-x) clamp(28px, 3vw, 48px);
}
.footer__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1vw, 18px);
  flex-wrap: wrap;
  font-size: clamp(13px, 0.95vw, 15px);
  color: #6a6a6a;
}
.footer__link {
  color: inherit;
  text-decoration: none;
  position: relative;
  padding: 2px 0;
  transition: color .25s ease;
}
.footer__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.footer__link:hover,
.footer__link:focus-visible {
  color: var(--c-black);
  outline: none;
}
.footer__link:hover::after,
.footer__link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.footer__sep {
  color: #c8c8c8;
  user-select: none;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 1100px) {
  :root { --pad-x: clamp(20px, 6vw, 80px); }
  .section__accent { transform: translateX(-8%); width: 70vw; }
}

/* Tablet — jersey scales and pulls in a bit so the title stays readable */
@media (max-width: 1100px) and (min-width: 761px) {
  .hero__jersey {
    width: 62%;
    top: 28%;
    right: 2%;
  }
}

@media (max-width: 760px) {
  :root {
    --pad-x: 20px;
    --fs-display: clamp(34px, 8vw, 56px);
    --fs-body: 16px;
    --fs-btn: clamp(20px, 5vw, 28px);
    --section-gap: 56px;
  }

  /* Hero stacks: title on top, jersey below — both overlap the background */
  .hero {
    aspect-ratio: auto;
    height: auto;
    min-height: 88vh;
    max-height: none;
    display: flex;
    flex-direction: column;
    padding-top: clamp(20px, 6vw, 40px);
    padding-bottom: clamp(20px, 4vw, 40px);
  }
  .hero__bg { position: absolute; }
  .hero__title {
    position: relative;
    inset: auto;
    padding: 0 20px;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 0 0 auto;
  }
  .hero__title-svg {
    width: 100%;
    max-width: min(520px, 84vw);
  }
  .hero__jersey {
    position: relative;
    inset: auto;
    right: auto;
    top: auto;
    width: 92%;
    max-width: 560px;
    margin: -4% auto -2%;
    align-self: center;
    flex: 1 1 auto;
    transform-origin: 50% 50%;
  }
  .hero__scroll { bottom: 14px; }

  .section__head,
  .section__head--cta {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .section__text { max-width: none; margin-left: 0; }

  .section__grid--intro,
  .section__grid--cta {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .tile--sketch { margin-top: 0; max-width: 70%; }
  .tile--boy, .tile--players { aspect-ratio: 4 / 5; }

  .section__accent {
    width: 70vw;
    height: 60vw;
    top: 30%;
    transform: translateX(-15%);
  }

  .cta-button { width: 100%; max-width: 360px; }
}

/* Extra-small phones — slightly tame the jersey overlap */
@media (max-width: 420px) {
  .hero { min-height: 92vh; }
  .hero__jersey {
    width: 100%;
    max-width: none;
    margin: -3% -4% -2%;
  }
  .hero__title-svg { max-width: 82vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__bg { animation: none; }
}
