/* ==========================================================================
   TSV Altensteig · World Gymnaestrada Lisbon 2027 · Vorankündigung
   ========================================================================== */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --navy-950: #040824;
  --navy-900: #070d33;
  --navy-800: #0b1445;
  --navy-700: #17226e;
  --ink: #0b1445;
  --ink-soft: #4d5478;
  --paper: #f3f4fa;
  --line-light: rgba(11, 20, 69, .12);
  --on-dark: #ffffff;
  --on-dark-soft: rgba(228, 233, 255, .74);
  --line-dark: rgba(255, 255, 255, .16);

  --rainbow: linear-gradient(90deg, #1fae5b 0%, #12a4d9 18%, #2f5fd0 36%, #7b3fc4 52%, #d1237f 68%, #e8402e 84%, #f39a1e 100%);

  --display: "Outfit", "Avenir Next", system-ui, sans-serif;
  --body: "Figtree", "Avenir Next", system-ui, sans-serif;

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1240px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

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

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--on-dark);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.rainbow-text {
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: #fff;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid #12a4d9; outline-offset: 3px; border-radius: 4px; }

/* --------------------------------------------------------------------------
   Kopfzeile
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 72px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color .4s ease, border-color .4s ease, color .4s ease, backdrop-filter .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 13, 51, .78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: rgba(255, 255, 255, .08);
}

.nav.on-light {
  background: rgba(243, 244, 250, .84);
  border-bottom-color: var(--line-light);
  color: var(--ink);
}
.nav.on-light .brand-text span { color: var(--ink-soft); }
.nav.on-light .pill { border-color: rgba(11, 20, 69, .28); }
.nav.on-light .pill:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.nav.on-light .brand-badge { box-shadow: 0 2px 10px rgba(11, 20, 69, .15); }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-badge {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
}
.brand-badge img { width: 38px; height: auto; }
.brand-badge-lg { width: 72px; height: 72px; }
.brand-badge-lg img { width: 62px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: .01em; }
.brand-text span { font-size: 13px; color: var(--on-dark-soft); }

.pill {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .32);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.pill:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* --------------------------------------------------------------------------
   Gemeinsame Bausteine
   -------------------------------------------------------------------------- */
.eyebrow, .kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}
.eyebrow::before, .kicker::before {
  content: "";
  width: 32px;
  height: 3px;
  border-radius: 3px;
  background: var(--rainbow);
  flex: none;
}

.ribbon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

/* --------------------------------------------------------------------------
   1 · Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(55% 60% at 82% 18%, rgba(47, 95, 255, .34), transparent 70%),
    radial-gradient(45% 45% at 5% 100%, rgba(123, 63, 196, .26), transparent 70%),
    radial-gradient(80% 60% at 50% 120%, rgba(18, 164, 217, .12), transparent 70%),
    var(--navy-900);
}
/* Scheinwerferkegel */
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% 0 -10%;
  z-index: 0;
  background: conic-gradient(from 196deg at 78% -8%,
    transparent 0deg,
    rgba(110, 150, 255, .16) 7deg,
    transparent 16deg,
    transparent 24deg,
    rgba(110, 150, 255, .10) 30deg,
    transparent 40deg,
    transparent 360deg);
  filter: blur(18px);
  pointer-events: none;
}
/* feines Korn */
.hero::after, .partner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 128px var(--gutter) 112px;
}

.title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.7rem, 10.4vw, 9rem);
  line-height: .9;
  letter-spacing: -.028em;
  margin: 28px 0 36px;
}
.title .line {
  display: block;
  overflow: hidden;
  padding-bottom: .07em;
  margin-bottom: -.07em;
}
.title .line > span { display: inline-block; }

.lead {
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--on-dark-soft);
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.chip {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  font-size: 15px;
  font-weight: 500;
  color: var(--on-dark-soft);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.chip-strong { color: #fff; font-weight: 700; background: rgba(255, 255, 255, .08); }

.scroll-cue {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  text-decoration: none;
}
.scroll-cue i {
  position: relative;
  width: 48px;
  height: 1px;
  background: rgba(255, 255, 255, .25);
  overflow: hidden;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--rainbow);
  transform: translateX(-100%);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

/* Einblenden beim Laden */
.js .title .line > span { transform: translateY(108%); }
.js .load { opacity: 0; transform: translateY(14px); }
.js.loaded .title .line > span {
  transform: none;
  transition: transform 1.15s var(--ease);
}
.js.loaded .title .line:nth-child(1) > span { transition-delay: .10s; }
.js.loaded .title .line:nth-child(2) > span { transition-delay: .20s; }
.js.loaded .title .line:nth-child(3) > span { transition-delay: .30s; }
.js.loaded .load {
  opacity: 1;
  transform: none;
  transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s);
}

/* --------------------------------------------------------------------------
   2 · Foto öffnet sich beim Scrollen
   -------------------------------------------------------------------------- */
.expand {
  position: relative;
  height: 260vh;
  background: var(--navy-900);
  --ix: 22%;
  --iy: 17%;
}
.expand-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.expand-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(calc(var(--i, 0) * var(--iy)) calc(var(--i, 0) * var(--ix)) round calc(var(--i, 0) * 28px));
  will-change: clip-path;
}
.expand-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  transform: scale(calc(1 + var(--i, 0) * .14));
  transform-origin: 50% 45%;
  will-change: transform;
}
.expand-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 10, 40, .92) 0%, rgba(5, 10, 40, .45) 38%, rgba(5, 10, 40, 0) 65%);
  opacity: var(--t, 1);
}
.expand-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--iy) / 2);
  transform: translateY(50%);
  text-align: center;
  padding: 0 var(--gutter);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  opacity: var(--c, 0);
}
.expand-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(48px, 10vh, 110px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  opacity: var(--t, 1);
  transform: translateY(calc((1 - var(--t, 1)) * 40px));
}
.expand-text h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.3rem, 6.2vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.025em;
}
.expand-text p {
  max-width: 30rem;
  margin-top: 20px;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  color: var(--on-dark-soft);
}

/* --------------------------------------------------------------------------
   3 · Intro (hell)
   -------------------------------------------------------------------------- */
.light { background: var(--paper); color: var(--ink); }
.light .kicker { color: var(--ink-soft); }

.intro { padding: clamp(96px, 13vw, 176px) 0 clamp(64px, 8vw, 104px); }

.statement {
  margin-top: 32px;
  max-width: 1060px;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.75rem, 4.1vw, 3.5rem);
  line-height: 1.14;
  letter-spacing: -.018em;
}
.statement .w { transition: opacity .18s linear; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: clamp(64px, 9vw, 120px);
}
.fact { border-top: 1px solid var(--line-light); padding-top: 22px; }
.fact dt {
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 1;
  letter-spacing: -.03em;
}
.fact dd { margin-top: 14px; font-size: 15px; line-height: 1.45; color: var(--ink-soft); }

.nominated {
  margin-top: clamp(72px, 9vw, 120px);
  padding: 28px 32px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 1px 0 var(--line-light), 0 24px 60px -30px rgba(11, 20, 69, .25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  flex-wrap: wrap;
}
.nominated p { font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--ink-soft); max-width: 21rem; }
.nominated p strong { color: var(--ink); }
.nowrap { white-space: nowrap; }
.logos { display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); }
.logos img:first-child { height: clamp(38px, 4.4vw, 52px); width: auto; }
.logos img:last-child { height: clamp(62px, 7vw, 86px); width: auto; }
.logos-sep { width: 1px; height: 56px; background: var(--line-light); }

/* --------------------------------------------------------------------------
   4 · Galerie
   -------------------------------------------------------------------------- */
.gallery { padding: clamp(48px, 7vw, 96px) 0 clamp(120px, 14vw, 190px); }

.split-title {
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(4rem, 11vw, 9.5rem);
  line-height: .9;
  letter-spacing: -.035em;
}
.split-title span {
  display: block;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  letter-spacing: -.01em;
  margin-bottom: 6px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2.4vw, 32px);
  margin-top: clamp(40px, 6vw, 72px);
  align-items: start;
}
.g {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--navy-800);
}
.g img {
  position: absolute;
  left: 0;
  top: -9%;
  width: 100%;
  height: 118%;
  max-width: none;
  object-fit: cover;
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}
.g-a { grid-column: 1 / span 7; aspect-ratio: 3 / 2; }
.g-b { grid-column: 9 / span 4; aspect-ratio: 4 / 5; margin-top: 22%; }
.g-c { grid-column: 3 / span 6; aspect-ratio: 3 / 2; margin-top: clamp(-90px, -5vw, -40px); }
.g-b img { object-position: 50% 30%; }

.gallery-note {
  margin: clamp(48px, 6vw, 80px) 0 0 auto;
  max-width: 26ch;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.3rem, 2.1vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   5 · Partner
   -------------------------------------------------------------------------- */
.partner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(200px, 22vw, 300px) 0 clamp(96px, 11vw, 150px);
  background:
    radial-gradient(50% 55% at 88% 70%, rgba(47, 95, 255, .26), transparent 70%),
    radial-gradient(40% 50% at 0% 0%, rgba(209, 35, 127, .16), transparent 70%),
    var(--navy-900);
}
.partner-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px clamp(40px, 7vw, 112px);
  align-items: end;
}
.partner h2 {
  margin-top: 24px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.4vw, 4.9rem);
  line-height: 1;
  letter-spacing: -.025em;
}
.partner-copy > p:not(.eyebrow) {
  max-width: 34rem;
  margin-top: 28px;
  font-size: clamp(1.02rem, 1.25vw, 1.15rem);
  color: var(--on-dark-soft);
}
.partner-copy .soon { margin-top: 16px; font-size: 15px; color: rgba(228, 233, 255, .56); }

.contact {
  padding: clamp(24px, 3vw, 36px);
  border-radius: 28px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, .05);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.contact-label { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-soft); }
.contact-name { margin-top: 10px; font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.1; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.contact-mail { margin-top: 18px; font-size: 14px; color: rgba(228, 233, 255, .5); word-break: break-all; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .25s var(--ease), background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #fff; color: var(--ink); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .32); color: #fff; }
.btn-ghost:hover { border-color: #fff; }

/* --------------------------------------------------------------------------
   Fußzeile
   -------------------------------------------------------------------------- */
.footer {
  background: var(--navy-950);
  padding: 44px 0 calc(44px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 18px; font-size: 14px; line-height: 1.45; color: var(--on-dark-soft); }
.footer-brand strong { color: #fff; font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; }
.footer-links a { color: var(--on-dark-soft); text-decoration: none; transition: color .2s ease; }
.footer-links a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Scroll-Einblendungen
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

.js .reveal-img {
  clip-path: inset(14% 10% 14% 10% round 20px);
  opacity: .001;
  transition: clip-path 1.25s var(--ease), opacity .6s ease;
}
.js .reveal-img.in { clip-path: inset(0 0 0 0 round 20px); opacity: 1; }

/* --------------------------------------------------------------------------
   Kleinere Bildschirme
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .facts { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .partner-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(6, 1fr); row-gap: 16px; }
  .g-a { grid-column: 1 / -1; }
  .g-b { grid-column: 1 / span 3; margin-top: 0; }
  .g-c { grid-column: 4 / span 3; margin-top: 18%; aspect-ratio: 4 / 5; }
  .g-c img { object-position: 42% 50%; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .fact dd br { display: none; }
  .nav { height: 64px; }
  .brand-badge { width: 40px; height: 40px; }
  .brand-badge img { width: 34px; }
  .brand-text strong { font-size: 15px; }
  .pill { padding: 9px 14px; font-size: 13px; }

  .hero { align-items: flex-end; }
  .hero-inner { padding: 120px var(--gutter) 96px; }
  .title { margin: 22px 0 26px; }
  .chips { margin-top: 28px; }
  .chip { font-size: 14px; padding: 9px 15px; }

  .expand { --ix: 7%; --iy: 19%; height: 230vh; }
  .expand-frame img { object-position: 46% 40%; }

  .nominated { padding: 24px; }
  .nominated p { max-width: none; }
  .logos { width: 100%; justify-content: space-between; }

  .partner { padding-top: 220px; }
  .contact-actions .btn { flex: 1 1 100%; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   Weniger Bewegung gewünscht
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .expand { height: auto; }
  .expand-sticky { position: relative; }
  .scroll-cue i::after { animation: none; transform: none; }
  .js .reveal, .js .load, .js .title .line > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .reveal-img { clip-path: none !important; opacity: 1 !important; transition: none !important; }
}

/* --------------------------------------------------------------------------
   Rechtstexte (Impressum, Datenschutz)
   -------------------------------------------------------------------------- */
.legal-page { background: var(--paper); color: var(--ink); }
.legal-page .nav { background: var(--navy-900); color: #fff; }
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 140px var(--gutter) 120px;
}
.legal h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -.02em; }
.legal h2 { font-family: var(--display); font-weight: 600; font-size: 1.3rem; margin-top: 44px; }
.legal p, .legal li { margin-top: 12px; color: var(--ink-soft); }
.legal ul { padding-left: 1.2em; list-style: disc; }
.legal a { color: var(--ink); }
.legal .todo { background: #fff3c4; color: #5c4400; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.legal .back { display: inline-block; margin-top: 56px; font-weight: 600; }
