/* ==========================================================================
   Hyrox Club Gießen – Stylesheet
   Grundlage: design-system/hyrox-club/MASTER.md (ui-ux-pro-max, Palette Schwarz/Rot/Weiß)
   Animationen: Motion 14 (motion.dev), siehe assets/js/main.js
   ========================================================================== */

/* --- Tokens (aus tokens.css) --------------------------------------------- */
:root {
  --color-primary: #E10600;
  --color-primary-hover: #C20500;
  --color-on-primary: #FFFFFF;
  --color-secondary: #FF3B3B;
  --color-on-secondary: #0A0A0A;
  --color-background: #0A0A0A;
  --color-foreground: #FAFAFA;
  --color-card: #141414;
  --color-muted: #1F1F1F;
  --color-muted-foreground: #A3A3A3;
  --color-border: #2A2A2A;
  --color-ring: #FF3B3B;
  --color-surface-light: #FFFFFF;
  --color-on-surface-light: #0A0A0A;
  --color-muted-on-light: #525252;
  --color-border-light: #E5E5E5;

  --font-heading: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --section-y: clamp(64px, 10vw, 128px);
  --gutter: 16px;

  --radius: 2px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --glow: 0 0 24px rgba(225, 6, 0, 0.45);
}

@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

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

html {
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h3 { font-size: 1.75rem; line-height: 1; }
p { margin: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-lg { width: 32px; height: 32px; }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.text-red { color: var(--color-secondary); }

.eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--color-primary);
  box-shadow: var(--glow);
}

.lead {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: var(--color-muted-foreground);
  max-width: 60ch;
}

:is(a, button):focus-visible {
  outline: 3px solid var(--color-ring);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--space-md);
  top: -100px;
  z-index: 100;
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding: var(--space-sm) var(--space-md);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: var(--space-md); }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.btn .icon { transition: transform 200ms var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn:hover .icon:first-child:not(:last-child) { transform: none; }

.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 1rem; }

.btn-primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn-primary:hover { background: var(--color-primary-hover); box-shadow: var(--glow); }

.btn-secondary { background: transparent; color: var(--color-foreground); border-color: var(--color-foreground); }
.btn-secondary:hover { background: var(--color-foreground); color: var(--color-background); }

.btn-light { background: var(--color-surface-light); color: var(--color-on-surface-light); }
.btn-light:hover { background: var(--color-background); color: var(--color-foreground); }

.btn-outline-light { background: transparent; color: #FFFFFF; border-color: #FFFFFF; }
.btn-outline-light:hover { background: #FFFFFF; color: #B00500; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-md); }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-background);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--color-border); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
  transform: skewX(-10deg);
  box-shadow: var(--glow);
}
.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.375rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.main-nav ul { display: flex; gap: var(--space-lg); }
.main-nav a:not(.btn) {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.0625rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--color-muted-foreground);
  padding-block: 8px;
  transition: color 200ms ease;
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms var(--ease);
}
.main-nav a:not(.btn):hover { color: var(--color-foreground); }
.main-nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-foreground);
  cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--color-background);
    padding: var(--space-xl) var(--gutter);
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
  }
  .main-nav.is-open { visibility: visible; opacity: 1; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--color-border); }
  .main-nav a:not(.btn) {
    display: block;
    padding-block: var(--space-md);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-foreground);
  }
  .main-nav a:not(.btn)::after { display: none; }
  .nav-cta-mobile { display: inline-flex; align-self: flex-start; }

  body.nav-open { overflow: hidden; }
}

/* --- Hero: Shader Lines ------------------------------------------------
   Nach „Shader Lines“ von Ali Imam (21st.dev), als eigenes WebGL in Rot/Weiß
   (assets/js/shader-lines.js). Ohne WebGL: CSS-Verlauf als Ersatz. */
.lh {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding-block: clamp(48px, 9vh, 112px) clamp(96px, 14vh, 150px);
  background: var(--color-background);
}
.lh-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0; transition: opacity 1.4s ease; }
.lh.is-live .lh-canvas { opacity: 1; }
.lh.no-webgl {
  background:
    radial-gradient(circle at 50% 50%, rgb(225 6 0 / 0.28), transparent 50%),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 38px, rgb(255 59 59 / 0.3) 39px 40px, transparent 41px 76px),
    var(--color-background);
}
.lh-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 66% 58% at 50% 48%, rgb(10 10 10 / 0.86) 0%, rgb(10 10 10 / 0.6) 50%, rgb(10 10 10 / 0) 86%),
    linear-gradient(0deg, rgb(10 10 10 / 0.92) 0%, rgb(10 10 10 / 0) 26%);
}
.lh-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
@media (max-width: 767px) {
  .lh-shade {
    background:
      radial-gradient(ellipse 100% 42% at 50% 44%, rgb(10 10 10 / 0.82) 0%, rgb(10 10 10 / 0.5) 55%, rgb(10 10 10 / 0) 100%),
      linear-gradient(0deg, rgb(10 10 10 / 0.9) 0%, rgb(10 10 10 / 0) 22%);
  }
}
.lh-eyebrow { justify-content: center; margin-bottom: var(--space-lg); color: var(--color-foreground); text-shadow: 0 0 18px rgb(10 10 10), 0 0 6px rgb(10 10 10); }
.lh-title {
  font-size: clamp(3.75rem, 13vw, 11rem); line-height: 0.86; font-style: italic;
  margin-bottom: var(--space-xl); text-shadow: 0 6px 40px rgb(0 0 0 / 0.55);
}
.lh-title .line { display: block; overflow: hidden; padding: 0 0.08em 0.04em; }
.lh-title .line > span { display: block; }
.lh-title .line-red { color: var(--color-secondary); }
.lh-cta { justify-content: center; }
.lh-scroll {
  position: absolute; left: 0; right: 0; bottom: 20px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.8125rem;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--color-muted-foreground);
}
.lh-scroll-line {
  width: 2px; height: 40px; background: linear-gradient(var(--color-primary), transparent);
  transform-origin: top; animation: lh-line 1.8s ease-in-out infinite;
}
@keyframes lh-line { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.js-motion .lh-title .line > span { transform: translateY(105%); }
.js-motion .lh [data-hero] { opacity: 0; }

/* --- Intro ---------------------------------------------------------------- */
.intro-grid {
  display: grid;
  gap: var(--space-xl);
}
@media (min-width: 1024px) {
  .intro-grid { grid-template-columns: 1fr 1fr; gap: var(--space-3xl); align-items: start; }
}
.intro h2 { font-size: clamp(3rem, 7vw, 6rem); font-style: italic; line-height: 0.9; }
.intro .lead { margin-bottom: var(--space-xl); }
.intro .btn-row { margin-bottom: var(--space-2xl); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--color-border);
}
.stats > div { padding-top: var(--space-md); padding-right: var(--space-sm); }
.stats > div + div { border-left: 1px solid var(--color-border); padding-left: var(--space-md); }
.stats dt {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stats dd {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.375rem, 3.2vw, 2.25rem);
  text-transform: uppercase;
  line-height: 1.1;
}
.stats [data-count] { color: var(--color-secondary); font-variant-numeric: tabular-nums; }

/* --- Laufband ------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-block: 1px solid #FF3B3B;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.js-motion .marquee-track { animation: none; } /* Motion übernimmt */
.marquee-track span {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  text-transform: uppercase;
  white-space: nowrap;
  padding-block: 14px;
}
.marquee-track span::after {
  content: "";
  width: 10px;
  height: 10px;
  margin-inline: 28px;
  background: #FFFFFF;
  transform: skewX(-12deg);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* --- Sektionen ------------------------------------------------------------ */
.section { padding-block: var(--section-y); }

.section-head { margin-bottom: var(--space-2xl); }
.section-head h2 { margin-bottom: var(--space-lg); }
.section-head-center { text-align: center; }
.section-head-center .eyebrow { justify-content: center; }
.section-head-center .lead { margin-inline: auto; }

.section-alt { background: #101010; }

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  border-radius: var(--radius);
  padding: var(--space-lg);
  transition: background-color 200ms ease, border-color 200ms ease;
}
.card:hover { background: var(--color-muted); }

/* Helle Sektion (Format) */
.section-light {
  background: var(--color-surface-light);
  color: var(--color-on-surface-light);
}
.section-light .lead { color: var(--color-muted-on-light); }
.section-light .eyebrow,
.section-light .text-red { color: var(--color-primary); }
.section-light .eyebrow::before { box-shadow: none; }

.stations {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .stations { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stations { grid-template-columns: repeat(4, 1fr); } }

.station {
  border: 1px solid var(--color-border-light);
  border-top: 3px solid var(--color-on-surface-light);
  border-radius: var(--radius);
  padding: var(--space-lg);
  background: var(--color-surface-light);
  transition: border-color 200ms ease, background-color 200ms ease;
}
.station:hover { border-top-color: var(--color-primary); background: #FAFAFA; }
.station-no {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-style: italic;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}
.station h3 { margin-bottom: 6px; }
.station-dist {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
}
.station p:last-child { color: var(--color-muted-on-light); font-size: 1rem; }

/* Club */
.club-grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}
@media (min-width: 768px) {
  .club-grid { grid-template-columns: 0.85fr 1.15fr; gap: var(--space-3xl); }
}
.club-media {
  overflow: hidden;
  border-left: 4px solid var(--color-primary);
  box-shadow: -12px 0 40px -12px rgba(225, 6, 0, 0.55);
}
.club-media img {
  width: 100%;
  aspect-ratio: 1600 / 902;
  object-fit: cover;
}
@media (min-width: 768px) {
  .club-media img { aspect-ratio: 4 / 5; object-position: 50% 48%; }
}
.club-copy h2 { margin-bottom: var(--space-lg); }
.club-copy .lead { margin-bottom: var(--space-xl); }
.values { display: grid; gap: var(--space-lg); }
.values li {
  border-left: 3px solid var(--color-primary);
  padding-left: var(--space-lg);
}
.values h3 { font-size: 1.5rem; margin-bottom: 6px; }
.values p { color: var(--color-muted-foreground); }

/* Training (Bento) */
.bento {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .offer-feature { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: 1.1fr 1fr 1fr; grid-template-rows: auto auto; }
  .offer-feature { grid-column: 1; grid-row: 1 / span 2; }
}

.offer h3 { margin-bottom: var(--space-sm); }
.offer p { color: var(--color-muted-foreground); }
.offer.card { display: flex; flex-direction: column; justify-content: flex-end; min-height: 240px; }
.offer-no {
  font-family: var(--font-heading);
  font-weight: 700;
  font-style: italic;
  font-size: 3rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-secondary);
  margin-bottom: auto;
  padding-bottom: var(--space-lg);
}

.offer-feature {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.offer-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  z-index: -2;
}
.offer-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.6) 40%, rgba(10, 10, 10, 0) 75%);
}
.offer-body { padding: var(--space-lg); border-top: 3px solid var(--color-primary); width: 100%; }
.offer-body p { color: #D4D4D4; }

/* Parallax-Bilder brauchen Reserve, damit beim Verschieben keine Kante sichtbar wird */
.js-motion [data-parallax] { transform: scale(1.16); }

/* Coach */
.coach-grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}
@media (min-width: 900px) {
  .coach-grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--space-3xl); }
}
.coach-media {
  position: relative;
  max-width: 520px;
}
.coach-media::after {
  /* versetzter roter Rahmen */
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 3px solid var(--color-primary);
  z-index: -1;
}
.coach-media img { width: 100%; aspect-ratio: 893 / 1024; object-fit: cover; }
@media (max-width: 899px) {
  .coach-media { margin-right: 16px; }
}
.coach-copy h2 { margin-bottom: var(--space-lg); font-size: clamp(3rem, 7vw, 5.5rem); font-style: italic; }
.coach-copy .lead { margin-bottom: var(--space-xl); }
.coach-copy .checklist { margin-bottom: var(--space-xl); }

.checklist { display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { color: var(--color-secondary); margin-top: 3px; }

/* Mitgliedschaft */
.plans {
  display: grid;
  gap: var(--space-lg);
  align-items: stretch;
}
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-xl) var(--space-lg);
}
.plan .checklist { flex: 1; }
.plan .btn { width: 100%; }
.plan-price { color: var(--color-muted-foreground); }
.plan-amount {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--color-foreground);
}
.plan-featured {
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 48px -12px rgba(225, 6, 0, 0.55);
}
.plan-badge {
  position: absolute;
  top: -15px;
  left: var(--space-lg);
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 12px;
}

/* CTA-Block */
.cta-block {
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding-block: clamp(56px, 9vw, 112px);
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  /* Bahnmarkierungen wie auf dem Hallenboden */
  content: "";
  position: absolute;
  inset: auto 0 24px 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 40px, transparent 40px 96px);
  pointer-events: none;
}
.cta-inner {
  display: grid;
  gap: var(--space-xl);
  align-items: end;
}
@media (min-width: 1024px) { .cta-inner { grid-template-columns: 1.2fr 0.8fr; gap: var(--space-3xl); } }
.cta-block h2 { font-size: clamp(2.75rem, 7vw, 5.5rem); font-style: italic; }
.cta-block p { font-size: 1.125rem; margin-bottom: var(--space-lg); max-width: 46ch; }
.cta-block :is(a, button):focus-visible { outline-color: #FFFFFF; }

/* Kontakt */
.contact-grid { display: grid; gap: var(--space-xl); }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 0.75fr 1.25fr; align-items: start; } }
.contact-cards { display: grid; gap: var(--space-md); }
@media (min-width: 600px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
.contact-card .icon { color: var(--color-secondary); margin-bottom: var(--space-md); }
.contact-card h3 { font-size: 1.375rem; margin-bottom: var(--space-sm); }
.contact-card p { color: var(--color-muted-foreground); }
.contact-card a {
  color: var(--color-foreground);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  display: inline-block;
  padding-block: 4px;
}
.contact-card a:hover { color: var(--color-secondary); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-2xl);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md) var(--space-xl);
}
.footer-inner .logo { margin-right: 0; }
.footer-claim {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted-foreground);
  margin-right: auto;
}
.footer-links { display: flex; gap: var(--space-lg); }
.footer-links a {
  color: var(--color-muted-foreground);
  text-decoration: none;
  display: inline-block;
  padding-block: 10px;
}
.footer-links a:hover,
.footer-links a[aria-current="page"] { color: var(--color-foreground); text-decoration: underline; text-underline-offset: 3px; }
.footer-copy { color: var(--color-muted-foreground); font-size: 0.9375rem; width: 100%; }
@media (min-width: 768px) { .footer-copy { width: auto; } }

/* --- Rechtstexte (Impressum, Datenschutz) -------------------------------- */
.legal { padding-block: clamp(48px, 8vw, 96px); }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2.75rem, 7vw, 4.5rem); font-style: italic; margin-bottom: var(--space-2xl); }
.legal h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: var(--space-2xl) 0 var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}
.legal h3 { font-size: 1.25rem; margin: var(--space-lg) 0 var(--space-sm); }
.legal p, .legal ul { color: #D4D4D4; margin-bottom: var(--space-md); max-width: 70ch; }
.legal ul { list-style: disc; padding-left: 1.25em; }
.legal li + li { margin-top: 4px; }
.legal a { color: var(--color-secondary); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal address { font-style: normal; color: #D4D4D4; margin-bottom: var(--space-md); }
.legal .back { margin-bottom: var(--space-xl); }

/* --- Startzustände für Motion (nur mit JS und ohne reduzierte Bewegung) --- */
.js-motion [data-reveal],
.js-motion [data-stagger] > * { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track span:nth-child(n + 9) { display: none; }
}

/* --- Galerie: 3D-Planes (Nachbau von Motions „Scroll velocity: 3D planes“) -----
   Grundzustand (ohne JS, ohne Motion, reduzierte Bewegung): waagerechte, wischbare Leiste.
   Mit Motion: Klasse .is-3d, gepinnte Bühne, Bildflächen steigen diagonal in die Tiefe,
   die Scroll-Geschwindigkeit wirft eine Welle durch die Reihe (assets/js/gallery.js). */
.gx { position: relative; background: #050505; border-block: 1px solid var(--color-border); }
.gx-pin { position: relative; padding-block: var(--section-y); }
.gx-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--space-md); }
.gx-head h2 { margin: 0; }
.gx-hint {
  font-family: var(--font-heading); font-weight: 600; font-size: 0.875rem;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--color-muted-foreground);
}
.gx-hint-3d { display: none; }
.gx.is-3d .gx-hint-3d { display: inline; }
.gx.is-3d .gx-hint-flat { display: none; }
.gx-hint-tap { display: none; }
@media (pointer: coarse) { .gx-hint-click { display: none; } .gx-hint-tap { display: inline; } }

.gx-stage { margin-top: var(--space-xl); }
.gx-list {
  display: flex; gap: var(--space-md);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 28px var(--gutter) 40px; scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--color-primary) var(--color-muted);
}
.gx-item { flex: none; width: min(62vw, 280px); scroll-snap-align: start; }
.gx-plane {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 4;
  background: #111; color: var(--color-foreground); text-decoration: none; cursor: pointer;
  outline-offset: 6px;
}
.gx-plane img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(0.35) contrast(1.06) brightness(0.88);
  transition: filter 300ms ease;
  box-shadow: 0 20px 40px -20px rgb(0 0 0 / 0.8);
}
.gx-plane:hover img, .gx-plane:focus-visible img { filter: none; }
.gx-no {
  position: absolute; left: 0; top: -22px;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.12em; color: var(--color-muted-foreground);
}
.gx-label {
  position: absolute; left: 0; top: calc(100% + 8px); white-space: nowrap;
  font-family: var(--font-heading); font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--color-foreground); opacity: 0; transition: opacity 200ms ease;
}
.gx-plane:hover .gx-label, .gx-plane:focus-visible .gx-label { opacity: 1; }
.gx-plane::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-bottom: 3px solid var(--color-primary); opacity: 0; transition: opacity 200ms ease;
}
.gx-plane:hover::after, .gx-plane:focus-visible::after { opacity: 1; }

/* 3D-Modus */
.gx.is-3d { height: var(--gx-h, 420vh); }
.gx.is-3d .gx-pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; padding-block: calc(var(--header-h) + 24px) 24px;
}
.gx.is-3d .gx-stage {
  position: relative; flex: 1; margin-top: 0;
  perspective: 1500px; perspective-origin: 30% 55%;
  touch-action: pan-y; cursor: grab;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.gx.is-3d .gx-stage.is-dragging { cursor: grabbing; }
.gx.is-3d .gx-list { position: absolute; inset: 0; display: block; overflow: visible; padding: 0; transform-style: preserve-3d; pointer-events: none; } /* die flache Liste liegt in z = 0 vor den hinteren Flächen und darf keine Klicks schlucken */
.gx.is-3d .gx-item {
  position: absolute; left: var(--gx-x0, 14%); top: var(--gx-y0, 44%);
  width: var(--gx-w, 240px); margin-top: calc(var(--gx-w, 240px) * -0.66);
  transform-style: preserve-3d; will-change: transform, opacity; pointer-events: auto;
}
.gx.is-3d .gx-plane { cursor: inherit; }

/* Großansicht */
.gx-detail {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(5 5 5 / 0.97); color: var(--color-foreground);
}
.gx-detail::backdrop { background: rgb(0 0 0 / 0.6); }
.gx-detail-inner {
  position: relative; height: 100%;
  display: grid; grid-template-rows: auto 1fr auto; gap: var(--space-md);
  padding: var(--space-md) var(--gutter) var(--space-lg);
}
.gx-detail-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.gx-detail-meta { font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.04em; }
.gx-detail-no { color: var(--color-secondary); margin-right: 10px; font-variant-numeric: tabular-nums; }
.gx-detail-figure { position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; }
.gx-detail-img { max-height: 100%; width: auto; max-width: min(100%, 560px); object-fit: contain; border-bottom: 4px solid var(--color-primary); }
.gx-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  background: rgb(10 10 10 / 0.7); color: var(--color-foreground);
  border: 1px solid rgb(255 255 255 / 0.3); border-radius: var(--radius); cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease;
}
.gx-btn:hover { background: var(--color-primary); border-color: var(--color-primary); }
.gx-btn .icon { width: 22px; height: 22px; }
.gx-prev, .gx-next { position: absolute; top: 50%; margin-top: -24px; }
.gx-prev { left: var(--gutter); }
.gx-prev .icon { transform: rotate(180deg); }
.gx-next { right: var(--gutter); }
.gx-strip { display: flex; gap: 8px; justify-content: center; overflow-x: auto; padding-block: 4px; }
.gx-strip button {
  flex: none; width: 48px; height: 64px; padding: 0; border: 2px solid transparent; background: #111; cursor: pointer;
  opacity: 0.5; transition: opacity 200ms ease, border-color 200ms ease;
}
.gx-strip button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gx-strip button:hover { opacity: 0.85; }
.gx-strip button[aria-current="true"] { opacity: 1; border-color: var(--color-primary); }
@media (max-width: 639px) {
  .gx-prev, .gx-next { top: auto; bottom: 96px; }
  .gx-strip button { width: 36px; height: 48px; }
}
body.gx-open { overflow: hidden; }

/* --- Become Athletic Club: Wortmarke zweizeilig, Instagram-Hinweis beim Coach --- */
.logo-text { display: flex; flex-direction: column; line-height: 0.88; font-size: 1.5rem; letter-spacing: 0.03em; }
.logo-text small {
  display: block; margin-top: 3px;
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.34em; color: var(--color-muted-foreground);
}
.coach-insta { margin-top: var(--space-md); color: var(--color-muted-foreground); font-size: 1rem; }
.coach-insta a { color: var(--color-foreground); text-underline-offset: 3px; }
.coach-insta a:hover { color: var(--color-secondary); }
