/* ==========================================================================
   Hyrox Club Gießen – Variante B (hyrox2.scalablebits.de)
   Grundlage: design-system/hyrox-club/MASTER.md + pages/variante-b.md
   ========================================================================== */

/* --- Tokens ---------------------------------------------------------------- */
:root {
  --color-primary: #E10600;
  --color-primary-hover: #C20500;
  --color-on-primary: #FFFFFF;
  --color-secondary: #FF3B3B;
  --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-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --section-y: clamp(72px, 11vw, 144px);
  --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;
}
body.menu-open { overflow: hidden; }
img, canvas { display: block; max-width: 100%; }
img { 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.92;
  letter-spacing: 0.005em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(2.75rem, 6.5vw, 5.5rem); }
h3 { font-size: 1.75rem; line-height: 1; }
p { margin: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.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); }
.section { padding-block: var(--section-y); }
.section-alt { background: #101010; }
.section-head { margin-bottom: var(--space-2xl); }
.split-head { display: grid; gap: var(--space-lg); align-items: end; }
@media (min-width: 900px) { .split-head { grid-template-columns: 1.2fr 0.8fr; gap: var(--space-3xl); } }

.eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 10px;
}
.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: 56ch; }

:is(a, button, [tabindex]):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: 8px 16px; 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-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: #FFFFFF; color: #0A0A0A; }
.btn-light:hover { background: #0A0A0A; color: #FFFFFF; }
.btn-outline-light { background: transparent; color: #FFFFFF; border-color: #FFFFFF; }
.btn-outline-light:hover { background: #FFFFFF; color: #B00500; }
.btn-dark-outline { background: transparent; color: #0A0A0A; border-color: #0A0A0A; }
.btn-dark-outline:hover { background: #0A0A0A; color: #FFFFFF; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-md); }

/* --- Logo ------------------------------------------------------------------ */
.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; }

/* --- Header: fest, transparent über dem Hero -------------------------------- */
.hb {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 250ms ease, border-color 250ms ease;
}
.hb.is-scrolled, body.menu-open .hb { background: rgb(10 10 10 / 0.94); border-bottom-color: var(--color-border); }
.hb-static { position: sticky; background: var(--color-background); border-bottom-color: var(--color-border); }
.hb-inner { height: var(--header-h); display: flex; align-items: center; gap: var(--space-md); }
.hb-menu-btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 44px; padding: 0 16px;
  background: rgb(10 10 10 / 0.6); color: var(--color-foreground);
  border: 1px solid rgb(255 255 255 / 0.35); border-radius: var(--radius);
  font-family: var(--font-heading); font-weight: 600; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em;
  cursor: pointer; transition: border-color 200ms ease, background-color 200ms ease;
}
.hb-menu-btn:hover { border-color: var(--color-foreground); }
.hb-burger { position: relative; width: 22px; height: 12px; }
.hb-burger i { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform 300ms var(--ease), top 300ms var(--ease); }
.hb-burger i:first-child { top: 0; }
.hb-burger i:last-child { top: 10px; }
.hb-menu-btn[aria-expanded="true"] .hb-burger i:first-child { top: 5px; transform: rotate(45deg); }
.hb-menu-btn[aria-expanded="true"] .hb-burger i:last-child { top: 5px; transform: rotate(-45deg); }
@media (max-width: 479px) {
  .hb-cta { display: none; }
  /* Beschriftung nur visuell ausblenden: der Button braucht weiter einen Namen für Screenreader */
  .hb-menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* --- Vollbild-Menü --------------------------------------------------------- */
.menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--color-background);
  padding-top: var(--header-h);
  overflow-y: auto;
  visibility: hidden; opacity: 0;
}
.menu.is-open { visibility: visible; opacity: 1; }
.menu-inner { display: grid; gap: var(--space-2xl); padding-block: clamp(32px, 6vh, 72px); }
@media (min-width: 1024px) { .menu-inner { grid-template-columns: 1.4fr 0.6fr; align-items: end; } }
.menu-list a {
  display: flex; align-items: baseline; gap: 18px;
  padding-block: 4px;
  font-family: var(--font-heading); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.5rem, 7vw, 5.5rem); line-height: 1;
  text-decoration: none; color: var(--color-foreground);
  transition: color 200ms ease, transform 300ms var(--ease);
}
.menu-list a span { font-size: 1rem; letter-spacing: 0.1em; color: var(--color-secondary); min-width: 2ch; }
.menu-list a:hover { color: var(--color-secondary); transform: translateX(8px); }
.menu-aside { display: grid; gap: var(--space-md); color: var(--color-muted-foreground); }
.menu-address { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-foreground); }

/* --- Hero: Shader ---------------------------------------------------------- */
.sh {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: var(--space-xl);
  overflow: hidden; isolation: isolate;
  background: var(--color-background);
}
.sh-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0; transition: opacity 1.4s ease; }
.sh.is-live .sh-canvas { opacity: 1; }
.sh.no-webgl {
  background:
    radial-gradient(circle at 72% 50%, rgb(225 6 0 / 0.35), transparent 45%),
    repeating-radial-gradient(circle at 72% 50%, transparent 0 46px, rgb(255 59 59 / 0.35) 47px 48px, transparent 49px 92px),
    var(--color-background);
}
.sh-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgb(10 10 10 / 0.94) 0%, rgb(10 10 10 / 0.82) 38%, rgb(10 10 10 / 0.45) 60%, rgb(10 10 10 / 0) 84%),
    linear-gradient(0deg, rgb(10 10 10 / 0.95) 0%, rgb(10 10 10 / 0) 38%);
}
@media (max-width: 899px) {
  .sh-shade { background: linear-gradient(180deg, rgb(10 10 10 / 0.25) 0%, rgb(10 10 10 / 0.35) 9%, rgb(10 10 10 / 0.88) 21%, rgb(10 10 10 / 0.94) 50%); }
  .sh.is-live .sh-canvas { opacity: 0.85; }
}
.sh-title { font-size: clamp(3rem, 9.4vw, 9rem); line-height: 0.86; margin-bottom: var(--space-lg); text-shadow: 0 4px 32px rgb(10 10 10 / 0.6); }
.sh-title .line { display: block; overflow: hidden; padding-bottom: 0.03em; }
.sh-title .line > span { display: block; }
.sh-title .line-red { color: var(--color-secondary); }
.sh-inner .lead { color: #D4D4D4; margin-bottom: var(--space-xl); }
.sh-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(40px, 7vh, 80px);
  border-top: 1px solid rgb(255 255 255 / 0.18);
}
@media (min-width: 900px) { .sh-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sh-facts li {
  padding: 16px 12px 0 0;
  font-family: var(--font-heading); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.625rem); text-transform: uppercase; line-height: 1.15;
}
.sh-facts span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.8125rem; letter-spacing: 0.1em; color: var(--color-muted-foreground); }

/* --- Halle: waagerechte Bildstrecke ---------------------------------------- */
.gal { position: relative; padding-block: var(--section-y); background: var(--color-background); }
.gal-pin { position: relative; }
.gal-track {
  display: flex; align-items: center; gap: var(--space-md);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); padding-bottom: 12px;
  scrollbar-width: thin; scrollbar-color: var(--color-primary) var(--color-muted);
}
.gal-track > * { flex: none; scroll-snap-align: start; }
.gal-intro { width: min(440px, 84vw); padding-right: var(--space-lg); }
.gal-intro h2 { margin-bottom: var(--space-lg); }
.gal-hint {
  margin-top: var(--space-xl); display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-muted-foreground);
}
.gal-item { position: relative; height: clamp(360px, 64vh, 620px); overflow: hidden; border-bottom: 4px solid var(--color-primary); }
.gal-item img { height: 100%; width: 100%; object-fit: cover; }
.gal-item-tall { aspect-ratio: 3 / 4; }
.gal-item-wide { aspect-ratio: 16 / 10; }
.gal-item figcaption {
  position: absolute; left: 0; bottom: 0;
  display: flex; align-items: baseline; gap: 12px;
  padding: 10px 16px; background: var(--color-background);
  font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.gal-item figcaption span { color: var(--color-secondary); font-size: 1rem; }
.gal-end { width: min(340px, 80vw); display: grid; gap: var(--space-lg); justify-items: start; padding-left: var(--space-lg); }
.gal-end-address { font-family: var(--font-heading); font-weight: 700; font-size: 2.25rem; text-transform: uppercase; line-height: 1; }

/* Gepinnt (Desktop, mit Motion): senkrechtes Scrollen schiebt die Strecke waagerecht */
.gal.is-pinned { padding-block: 0; }
.gal.is-pinned .gal-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.gal.is-pinned .gal-track {
  overflow: visible; scroll-snap-type: none; padding-bottom: 0;
  padding-inline: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter)));
  gap: var(--space-xl); will-change: transform;
}
.gal.is-pinned .gal-item { height: min(68vh, 640px); }

/* --- Das Rennen: Zeitleiste ------------------------------------------------ */
.race-grid { display: grid; gap: var(--space-2xl); }
@media (min-width: 1024px) {
  .race-grid { grid-template-columns: 0.85fr 1.15fr; gap: var(--space-3xl); }
  .race-aside { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
}
.race-aside h2 { margin-bottom: var(--space-lg); }
.race-counter { display: none; margin-top: var(--space-2xl); }
@media (min-width: 1024px) { .race-counter { display: block; } }
.race-now {
  font-family: var(--font-heading); font-weight: 700; font-size: clamp(6rem, 11vw, 10rem); line-height: 0.8;
  color: var(--color-secondary); font-variant-numeric: tabular-nums; display: inline-block;
}
.race-of { font-family: var(--font-heading); font-weight: 700; font-size: 2rem; color: var(--color-muted-foreground); margin-left: 8px; }
.race-name { display: block; margin-top: 12px; font-family: var(--font-heading); font-weight: 600; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.06em; }

.race-trackwrap { position: relative; padding-left: 44px; }
.race-line { position: absolute; left: 12px; top: 12px; bottom: 12px; width: 3px; background: var(--color-border); }
.race-line-fill { position: absolute; inset: 0; background: var(--color-primary); box-shadow: var(--glow); transform-origin: top; }
.race-track li { position: relative; }
.race-run {
  display: flex; align-items: baseline; gap: 12px;
  padding: 14px 0;
  font-family: var(--font-heading); font-weight: 600; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.08em;
}
.race-run span { font-size: 0.875rem; color: var(--color-muted-foreground); letter-spacing: 0.12em; }
.race-run::before {
  content: ""; position: absolute; left: -37px; top: 50%; width: 9px; height: 9px; margin-top: -4px;
  border-radius: 50%; background: var(--color-background); border: 2px solid var(--color-muted-foreground);
}
.race-station {
  display: grid; grid-template-columns: auto 1fr; gap: 20px;
  margin-block: 6px; padding: 20px 24px;
  background: var(--color-card); border: 1px solid var(--color-border); border-left: 3px solid var(--color-primary);
  transition: background-color 300ms ease, border-color 300ms ease;
}
.race-station::before {
  content: ""; position: absolute; left: -40px; top: 50%; width: 15px; height: 15px; margin-top: -7px;
  background: var(--color-primary); transform: rotate(45deg); box-shadow: var(--glow);
}
.race-station.is-active { background: #1A0E0E; border-color: rgb(255 59 59 / 0.45); border-left-color: var(--color-secondary); }
.race-no { font-family: var(--font-heading); font-weight: 700; font-style: italic; font-size: 2.75rem; line-height: 0.9; color: var(--color-secondary); }
.race-station h3 { margin-bottom: 4px; }
.race-dist { font-family: var(--font-heading); font-weight: 600; font-size: 1.0625rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.race-station p:last-child { color: var(--color-muted-foreground); font-size: 1rem; }
.race-finish {
  margin-top: 12px; padding: 18px 24px;
  font-family: var(--font-heading); font-weight: 700; font-size: 2rem; text-transform: uppercase; letter-spacing: 0.06em;
  background:
    linear-gradient(90deg, var(--color-background) 0 70%, transparent 70%),
    repeating-conic-gradient(#FAFAFA 0 25%, #0A0A0A 0 50%) 0 0 / 16px 16px;
  border: 1px solid var(--color-border);
}

/* --- Training: Liste ------------------------------------------------------- */
.tlist { border-top: 1px solid var(--color-border); }
.tlist li {
  position: relative;
  display: grid; grid-template-columns: 64px 1fr; gap: 8px 24px; align-items: baseline;
  padding: 28px 0; border-bottom: 1px solid var(--color-border);
}
@media (min-width: 900px) { .tlist li { grid-template-columns: 96px 0.9fr 1.1fr; padding: 34px 0; } }
.tlist li::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--color-primary); transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease);
}
.tlist li:hover::after { transform: scaleX(1); }
.tlist-no {
  font-family: var(--font-heading); font-weight: 700; font-style: italic; font-size: 2.75rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--color-secondary);
  transition: color 300ms ease;
}
.tlist li:hover .tlist-no { color: var(--color-secondary); }
.tlist h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.tlist p { color: var(--color-muted-foreground); grid-column: 2; }
@media (min-width: 900px) { .tlist p { grid-column: 3; } }

/* --- Kraft: Liquid Sculpture ----------------------------------------------- */
.ls {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(720px, 100svh, 980px);
  display: flex; align-items: center;
  padding-block: var(--section-y);
  background: radial-gradient(ellipse at 70% 55%, #1a0303 0%, var(--color-background) 60%);
  touch-action: pan-y;
}
.ls-backdrop {
  position: absolute; right: -2vw; top: 50%; transform: translateY(-50%); z-index: -1;
  font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; white-space: nowrap;
  font-size: clamp(7rem, 25vw, 24rem); line-height: 0.8;
  color: transparent; -webkit-text-stroke: 2px #2A2A2A;
  pointer-events: none; user-select: none;
}
.ls-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.ls-inner { position: relative; z-index: 1; display: grid; gap: var(--space-2xl); align-items: center; }
@media (min-width: 900px) { .ls-inner { grid-template-columns: 0.85fr 1.15fr; } }
.ls-copy h2 { font-size: clamp(3rem, 8vw, 7rem); margin-bottom: var(--space-lg); }
.ls-anchor { width: min(78vw, 420px); aspect-ratio: 1000 / 1100; justify-self: center; }
@media (min-width: 900px) { .ls-anchor { width: min(100%, 560px); } }
.ls-anchor canvas { width: 100%; height: auto; }
.ls-hint {
  margin-top: var(--space-xl); display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-foreground);
}
.ls-hint::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--color-secondary); box-shadow: 0 0 0 0 rgb(255 59 59 / 0.6); animation: pulse 2s ease-out infinite; }
.ls-hint-touch { display: none; }
@media (pointer: coarse) { .ls-hint-mouse { display: none; } .ls-hint-touch { display: inline; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(255 59 59 / 0.6); } 80%, 100% { box-shadow: 0 0 0 14px rgb(255 59 59 / 0); } }

/* --- Coach ----------------------------------------------------------------- */
.coachb { position: relative; overflow: hidden; }
.coachb-name {
  position: absolute; top: clamp(24px, 5vw, 64px); left: 0; z-index: 0;
  display: flex; white-space: nowrap;
  font-family: var(--font-heading); font-weight: 700; text-transform: uppercase;
  font-size: clamp(5.5rem, 17vw, 16rem); line-height: 0.85;
  color: transparent; -webkit-text-stroke: 1.5px #2C2C2C;
  pointer-events: none; user-select: none;
}
.coachb-name span { padding-right: 0.35em; }
.coachb-grid { position: relative; z-index: 1; display: grid; gap: var(--space-2xl); align-items: end; padding-top: clamp(96px, 14vw, 220px); }
@media (min-width: 900px) { .coachb-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--space-3xl); } }
.coachb-copy h2 { font-size: clamp(3.25rem, 8vw, 6.5rem); margin-bottom: var(--space-lg); }
.coachb-copy .lead { margin-bottom: var(--space-xl); }
.coachb-media { position: relative; }
.coachb-media img { width: 100%; aspect-ratio: 893 / 1024; object-fit: cover; border-bottom: 6px solid var(--color-primary); }
.coachb-media::before {
  content: ""; position: absolute; inset: -14px auto auto -14px; width: 90px; height: 90px;
  border-top: 4px solid var(--color-primary); border-left: 4px solid var(--color-primary);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-xl); }
.tags li {
  padding: 6px 14px; border: 1px solid #3A3A3A;
  font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.9375rem;
}

/* --- Mitgliedschaft: Tabelle auf Weiß -------------------------------------- */
.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; }
.cmp-wrap { overflow-x: auto; border: 1px solid var(--color-border-light); }
.cmp { width: 100%; min-width: 680px; border-collapse: collapse; }
.cmp th, .cmp td { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--color-border-light); }
.cmp thead th {
  vertical-align: bottom; padding-top: 28px;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.625rem; text-transform: uppercase; line-height: 1;
}
.cmp-price { display: block; margin-top: 10px; font-size: 3rem; }
.cmp-unit { display: block; margin-top: 6px; font-family: var(--font-body); font-weight: 400; font-size: 0.875rem; text-transform: none; color: var(--color-muted-on-light); }
.cmp-badge {
  display: table; margin: 0 auto 10px; padding: 4px 10px;
  background: var(--color-primary); color: #FFFFFF;
  font-size: 0.875rem; letter-spacing: 0.1em;
}
.cmp tbody th { text-align: left; font-weight: 600; white-space: nowrap; }
.cmp tbody td { color: #262626; }
.cmp .is-featured { background: #FFF5F4; box-shadow: inset 2px 0 0 var(--color-primary), inset -2px 0 0 var(--color-primary); }
.cmp thead .is-featured { box-shadow: inset 2px 0 0 var(--color-primary), inset -2px 0 0 var(--color-primary), inset 0 4px 0 var(--color-primary); }
.cmp tfoot .is-featured { box-shadow: inset 2px 0 0 var(--color-primary), inset -2px 0 0 var(--color-primary), inset 0 -2px 0 var(--color-primary); }
.cmp tfoot td { border-bottom: 0; padding-block: 24px; }
.cmp .icon { width: 22px; height: 22px; color: var(--color-primary); vertical-align: middle; }
.cmp .icon-no { color: #737373; }
.cmp tr > :first-child { position: sticky; left: 0; z-index: 1; background: #FFFFFF; }
.cmp-scroll-hint { display: none; margin-top: 10px; font-size: 0.875rem; color: var(--color-muted-on-light); }
@media (max-width: 760px) {
  .cmp-scroll-hint { display: block; }
  .cmp { min-width: 560px; font-size: 0.9375rem; }
  .cmp th, .cmp td { padding: 12px 12px; }
  .cmp tbody th { white-space: normal; width: 128px; min-width: 128px; }
  .cmp thead th { font-size: 1.25rem; }
  .cmp-price { font-size: 2.25rem; }
}

/* --- Probetraining --------------------------------------------------------- */
.ctab { position: relative; overflow: hidden; background: var(--color-primary); color: #FFFFFF; padding-bottom: clamp(56px, 8vw, 104px); }
.ctab-marquee { border-bottom: 1px solid rgb(255 255 255 / 0.35); overflow: hidden; }
.ctab-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.js-motion .ctab-track { animation: none; }
.ctab-track span {
  padding: 14px 0; margin-right: 0.45em;
  font-family: var(--font-heading); font-weight: 700; font-style: italic; text-transform: uppercase;
  font-size: clamp(3.5rem, 11vw, 9.5rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 2px rgb(255 255 255 / 0.9);
}
.ctab-track span:nth-child(even) { color: #FFFFFF; -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ctab-inner { display: grid; gap: var(--space-xl); align-items: end; margin-top: clamp(40px, 6vw, 72px); }
@media (min-width: 1024px) { .ctab-inner { grid-template-columns: 1.15fr 0.85fr; gap: var(--space-3xl); } }
.ctab h2 { font-size: clamp(2.5rem, 6vw, 5rem); }
.ctab p { font-size: 1.125rem; margin-bottom: var(--space-lg); max-width: 46ch; }
.ctab :is(a, button):focus-visible { outline-color: #FFFFFF; }

/* --- Kontakt --------------------------------------------------------------- */
.contact-row { display: grid; gap: var(--space-xl); }
@media (min-width: 640px) { .contact-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .contact-row { grid-template-columns: repeat(4, 1fr); } }
.contact-item { border-top: 3px solid var(--color-primary); padding-top: var(--space-lg); }
.contact-item .icon { color: var(--color-secondary); margin-bottom: var(--space-md); }
.contact-item h3 { font-size: 1.375rem; margin-bottom: 8px; }
.contact-item p { color: var(--color-muted-foreground); }
.contact-item a { color: var(--color-foreground); text-underline-offset: 3px; overflow-wrap: anywhere; display: inline-block; padding-block: 4px; }
.contact-item a:hover { color: var(--color-secondary); }

/* --- Footer ---------------------------------------------------------------- */
.fb { border-top: 1px solid var(--color-border); overflow: hidden; }
.fb-word {
  margin: clamp(32px, 5vw, 64px) 0 0; text-align: center; white-space: nowrap;
  font-family: var(--font-heading); font-weight: 700; text-transform: uppercase;
  font-size: clamp(4rem, 17vw, 17rem); line-height: 0.8;
  color: transparent; -webkit-text-stroke: 1.5px #2C2C2C;
}
.fb-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-xl); padding-block: var(--space-xl); }
.fb-claim { font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-muted-foreground); margin-right: auto; }
.fb-links { display: flex; gap: var(--space-lg); }
.fb-links a { color: var(--color-muted-foreground); text-decoration: none; display: inline-block; padding-block: 10px; }
.fb-links a:hover, .fb-links a[aria-current="page"] { color: var(--color-foreground); text-decoration: underline; text-underline-offset: 3px; }
.fb-copy { color: var(--color-muted-foreground); font-size: 0.9375rem; }

/* --- Rechtstexte ----------------------------------------------------------- */
.legal { padding-block: clamp(48px, 8vw, 96px); }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2.75rem, 7vw, 4.5rem); 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 8px; }
.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); }

/* --- Startzustände für Motion ---------------------------------------------- */
.js-motion [data-reveal],
.js-motion [data-stagger] > *,
.js-motion [data-hero] { opacity: 0; }
.js-motion .sh-title .line > span { transform: translateY(105%); }
.js-motion .race-line-fill { transform: scaleY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .ctab-track { animation: none; }
}

/* --- 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); }

/* --- Einblicke: Kartenstapel (Nachbau von Motions „Gallery: Cards“) -------------
   Ohne JS/Motion: waagerechte, wischbare Bildleiste. Mit JS: Klasse .is-stack,
   Karten liegen übereinander, Index unten links, Panel unten rechts (gallery-cards.js). */
.gc { position: relative; overflow: hidden; background: #070707; border-block: 1px solid var(--color-border); }
.gc-grid { display: grid; gap: var(--space-xl); }
.gc-head h2 { margin: 0; }
.gc-cards {
  display: flex; gap: var(--space-md); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--color-primary) var(--color-muted);
}
.gc-card { position: relative; flex: none; width: min(64vw, 280px); aspect-ratio: 3 / 4; scroll-snap-align: start; background: #111; }
.gc-card img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; user-select: none; pointer-events: none; }
.gc-shade { position: absolute; inset: 0; background: #050505; opacity: 0; pointer-events: none; }
.gc-card-no {
  position: absolute; left: 10px; top: 8px;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.875rem; letter-spacing: 0.12em;
  color: #FFFFFF; text-shadow: 0 1px 6px rgb(0 0 0 / 0.7);
}
.gc-hint, .gc-index, .gc-panel { display: none; }

/* Stapel-Modus */
.gc.is-stack .gc-hint, .gc.is-stack .gc-index, .gc.is-stack .gc-panel { display: block; }
.gc.is-stack .gc-stage { position: relative; perspective: 1200px; outline-offset: 12px; }
.gc.is-stack .gc-tilt { position: relative; width: min(100%, 380px); margin-inline: auto; padding-top: 72px; transform-style: preserve-3d; }
.gc.is-stack .gc-cards { position: relative; display: block; overflow: visible; padding: 0; aspect-ratio: 3 / 4; touch-action: pan-y; cursor: grab; }
.gc.is-stack .gc-cards.is-dragging { cursor: grabbing; }
.gc.is-stack .gc-card {
  position: absolute; inset: 0; width: auto; transform-origin: 50% 100%;
  box-shadow: 0 30px 60px -24px rgb(0 0 0 / 0.9);
  border-top: 2px solid rgb(255 255 255 / 0.08);
  will-change: transform, opacity;
}
.gc.is-stack .gc-card.is-top { border-bottom: 4px solid var(--color-primary); }
.gc-hint {
  margin-top: var(--space-lg); text-align: center;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--color-muted-foreground);
}
.gc-hint-touch { display: none; }
@media (pointer: coarse) { .gc-hint-mouse { display: none; } .gc-hint-touch { display: inline; } }

.gc-index { font-family: var(--font-heading); text-transform: uppercase; }
.gc-index li + li { border-top: 1px solid var(--color-border); }
.gc-index button {
  display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: baseline; width: 100%;
  padding: 7px 0; background: none; border: 0; color: var(--color-muted-foreground); cursor: pointer; text-align: left;
  font: inherit; font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 200ms ease;
}
.gc-index button:hover { color: var(--color-foreground); }
.gc-index .gc-i-tag { font-size: 0.75rem; letter-spacing: 0.12em; }
.gc-index button[aria-current="true"] { color: var(--color-foreground); }
.gc-index button[aria-current="true"] .gc-i-no { color: var(--color-secondary); }

.gc-panel { border-top: 3px solid var(--color-primary); padding-top: var(--space-md); }
.gc-panel-top {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.gc-rec { display: inline-flex; align-items: center; gap: 8px; color: var(--color-secondary); }
.gc-rec::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--color-primary); animation: gc-blink 1.4s steps(2, start) infinite; }
@keyframes gc-blink { to { visibility: hidden; } }
.gc-count { color: var(--color-muted-foreground); font-variant-numeric: tabular-nums; }
.gc-title { font-family: var(--font-heading); font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.75rem); text-transform: uppercase; line-height: 1; margin-bottom: var(--space-md); }
.gc-meta { display: grid; gap: 8px; margin: 0 0 var(--space-lg); }
.gc-meta div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: baseline; }
.gc-meta dt { font-family: var(--font-heading); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-muted-foreground); }
.gc-meta dd { margin: 0; font-size: 1rem; color: var(--color-foreground); }
.gc-nav { display: flex; gap: 8px; }
.gc-btn {
  min-height: 44px; padding: 10px 18px; background: transparent; color: var(--color-foreground);
  border: 1px solid rgb(255 255 255 / 0.35); border-radius: var(--radius); cursor: pointer;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.9375rem; text-transform: uppercase; letter-spacing: 0.1em;
  transition: background-color 200ms ease, border-color 200ms ease;
}
.gc-btn:hover { background: var(--color-primary); border-color: var(--color-primary); }

@media (min-width: 1024px) {
  .gc.is-stack .gc-grid {
    grid-template-columns: 1fr minmax(300px, 380px) 1fr; grid-template-rows: auto 1fr;
    column-gap: var(--space-3xl); row-gap: var(--space-xl); align-items: end;
  }
  .gc.is-stack .gc-head { grid-column: 1; grid-row: 1; align-self: start; }
  .gc.is-stack .gc-stage { grid-column: 2; grid-row: 1 / span 2; }
  .gc.is-stack .gc-index { grid-column: 1; grid-row: 2; }
  .gc.is-stack .gc-panel { grid-column: 3; grid-row: 2; }
}
@media (max-width: 1023px) {
  .gc.is-stack .gc-index { order: 4; }
  .gc.is-stack .gc-panel { order: 3; }
  .gc.is-stack .gc-index button { padding: 9px 0; }
}
