/* =============================================
   HYROX Page — hyrox.css
   ============================================= */

/* ── Hero ── */
.hx-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hx-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0,0,0,.80) 0%, rgba(0,0,0,.45) 60%, rgba(0,0,0,.70) 100%),
    url('../assets/HYROX_Bild1.jpg') center / cover no-repeat;
}

.hx-hero__body {
  position: relative;
  z-index: 1;
  padding-top: 9rem;
  padding-bottom: 5rem;
}

.hx-hero__eye {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(255,189,89,.35);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.7s var(--ease) both;
}

.hx-hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 1.5rem;
  max-width: 800px;
  animation: fadeUp 0.7s 0.1s var(--ease) both;
}

.hx-hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.7);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.7s 0.2s var(--ease) both;
}

.hx-hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.3s var(--ease) both;
}

.hx-hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255,189,89,.5);
  border-radius: 100px;
  z-index: 1;
}

.hx-hero__scroll::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 100px;
  animation: scrollDrop 1.6s ease-in-out infinite;
}

/* ── Intro / Was ist HYROX ── */
.hx-intro { background: var(--bg); }

.hx-intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hx-intro__text p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.hx-intro__text .section-title { margin-bottom: 1.5rem; }

.hx-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.hx-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.25s var(--ease);
}

.hx-stat:hover {
  border-color: var(--gold-border);
  box-shadow: 0 4px 24px rgba(0,0,0,.2), 0 0 16px var(--gold-glow);
  transform: translateY(-3px);
}

.hx-stat__value {
  font-family: var(--font-display);
  font-size: 2.75rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.hx-stat__label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── 8 Disziplinen ── */
.hx-disciplines { background: var(--bg-alt); }

.hx-disc__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.hx-disc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1rem 1.25rem;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.25s var(--ease);
  cursor: default;
}

.hx-disc-card:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 28px rgba(0,0,0,.22), 0 0 16px var(--gold-glow);
  transform: translateY(-4px);
}

.hx-disc-card__num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 0.75rem;
  opacity: 0.65;
}

.hx-disc-card__icon {
  display: block;
  width: 42px;
  height: 42px;
  margin: 0 auto 0.75rem;
  color: var(--gold);
}

.hx-disc-card__name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.07em;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.hx-disc-card__detail {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* full-width run separator between the two rows */
.hx-disc__run-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.6;
  padding: 0.25rem 0;
}

.hx-disc__run-row::before,
.hx-disc__run-row::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.25;
}

/* ── Video Section ── */
.hx-video-section { background: var(--bg); }

.hx-video__wrap {
  position: relative;
  max-width: 800px;
  margin: 3rem auto 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 60px rgba(0,0,0,.4), 0 0 40px var(--gold-glow);
  border: 1px solid var(--gold-border);
}

.hx-video__ratio {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
}

.hx-video__ratio iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* ── CTA Banner ── */
.hx-cta {
  background:
    linear-gradient(135deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.7) 100%),
    url('../assets/HYROX_Bild1.jpg') center 30% / cover fixed;
  text-align: center;
}

.hx-cta__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 1rem;
}

.hx-cta__sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.65);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hx-cta__btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hx-intro__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hx-stats { grid-template-columns: repeat(2, 1fr); }
  .hx-disc__grid { grid-template-columns: repeat(2, 1fr); }
  .hx-hero__ctas { flex-direction: column; }
}

@media (max-width: 480px) {
  .hx-stats { grid-template-columns: 1fr 1fr; }
  .hx-disc__grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}

/* =============================================
   Light Mode — HYROX Page Backgrounds
   ============================================= */

/* b2.jpg → Intro (Was ist HYROX?) */
html[data-theme="light"] .hx-intro {
  background:
    linear-gradient(rgba(255,255,255,0.87), rgba(255,255,255,0.87)),
    url('../assets/b2.jpg') center / cover fixed;
}

/* b2.jpg → Disziplinen */
html[data-theme="light"] .hx-disciplines {
  background:
    linear-gradient(rgba(255,255,255,0.88), rgba(255,255,255,0.88)),
    url('../assets/b2.jpg') center / cover fixed;
}
