/* ── NAV ────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.1rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  transition: background .35s, backdrop-filter .35s, box-shadow .35s;
}
nav.scrolled {
  background: rgba(43,45,66,.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.nav-logo {
  font-family: 'Oswald', sans-serif;
  font-size: 1.9rem; font-weight: 700;
  color: white; text-decoration: none; letter-spacing: 3px;
}
.nav-logo span { color: white; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,.8); text-decoration: none;
  font-size: .85rem; letter-spacing: 2px; text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-burger span { width: 26px; height: 2px; background: white; display: block; }

/* ── HERO ───────────────────────────────────────────── */
#hero {
  height: 100vh; min-height: 600px;
  background: var(--dark);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

.water-bg {
  position: absolute; inset: 0;
  background: linear-gradient(175deg, #0f558f 0%, #1965a0 35%, #2476b1 65%, #2d82bd 100%);
}

.water-lines {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.water-line {
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), rgba(255,255,255,.12), rgba(255,255,255,.06), transparent);
  animation: waterLineDrift 6s ease-in-out infinite;
}
.water-line:nth-child(1)  { top: 15%; animation-delay:  0s;   animation-duration: 7s; }
.water-line:nth-child(2)  { top: 28%; animation-delay:  1.2s; animation-duration: 9s; }
.water-line:nth-child(3)  { top: 42%; animation-delay:  0.5s; animation-duration: 6s; }
.water-line:nth-child(4)  { top: 58%; animation-delay:  2.1s; animation-duration: 8s; }
.water-line:nth-child(5)  { top: 71%; animation-delay:  0.9s; animation-duration: 7s; }
.water-line:nth-child(6)  { top: 85%; animation-delay:  1.7s; animation-duration: 10s; }
@keyframes waterLineDrift {
  0%,100% { opacity: .4; transform: scaleX(.8) translateX(-3%); }
  50%      { opacity: 1;  transform: scaleX(1)  translateX(3%); }
}

.hero-bg-text {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-family: 'Oswald', sans-serif;
  font-size: clamp(6rem, 20vw, 18rem);
  font-weight: 700; letter-spacing: .5em;
  color: rgba(255,255,255,.04);
  white-space: nowrap; pointer-events: none;
  user-select: none;
}

.hero-content {
  position: relative; z-index: 10;
  text-align: center; color: white; padding: 2rem;
}
.hero-eyebrow {
  font-size: clamp(.75rem, 1.5vw, 1rem);
  letter-spacing: 5px; text-transform: uppercase;
  opacity: .6; margin-bottom: .8rem;
}
.hero-title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700; text-transform: uppercase;
  line-height: .95; margin-bottom: 1.2rem;
}
.hero-title span { color: var(--red-light); }
.hero-tagline {
  font-size: clamp(.85rem, 1.8vw, 1.1rem);
  letter-spacing: 4px; text-transform: uppercase;
  opacity: .55; margin-bottom: 2.5rem;
}
.hero-cta {
  display: inline-block;
  padding: .85rem 2.8rem;
  background: var(--red); color: white;
  font-family: 'Oswald', sans-serif; font-size: 1.05rem;
  letter-spacing: 3px; text-transform: uppercase;
  text-decoration: none; border: 2px solid var(--red);
  transition: background .3s, color .3s;
}
.hero-cta:hover { background: transparent; }

.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  color: rgba(255,255,255,.4); font-size: .7rem; letter-spacing: 3px;
  text-transform: uppercase; animation: hintBob 2.5s ease-in-out infinite;
}
.scroll-hint::after {
  content: '';
  width: 1px; height: 45px;
  background: linear-gradient(to bottom, rgba(255,255,255,.4), transparent);
}
@keyframes hintBob {
  0%,100% { transform: translateX(-50%) translateY(0); opacity: .4; }
  50%      { transform: translateX(-50%) translateY(6px); opacity: .8; }
}

/* ── SPORT SECTION ──────────────────────────────────── */
#sport { background: #2d82bd; }

#sport .sticky-panel .boat-label-wrap { width: 100%; }
#sport .boat-label-wrap svg {
  max-width: 420px; width: 100%;
  filter: drop-shadow(0 10px 40px rgba(0,0,0,.7));
}

.facts-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem;
}
.fact-card {
  background: var(--dark); color: white;
  padding: 1.4rem; border-left: 4px solid var(--red);
}
.fact-num  {
  font-family: 'Oswald', sans-serif; font-size: 2.4rem;
  font-weight: 700; color: var(--red-light); line-height: 1;
}
.fact-unit { font-size: .8rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: 1px; margin-top: .3rem; }

/* ── SPORT SECTION: two-state visual stack ──────────── */
.sport-vis-stack {
  position: relative;
  width: 100%;
  max-width: 460px;
  min-height: 290px;
}
.sport-vis {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .7s ease;
  pointer-events: none;
}
.sport-vis.active {
  opacity: 1;
  pointer-events: auto;
}


/* Field border draws in when field view first activates */
.sf-border {
  stroke-dasharray: 1700;
  stroke-dashoffset: 1700;
  transition: stroke-dashoffset 1.4s ease .1s;
}
.sport-vis-field.active .sf-border { stroke-dashoffset: 0; }

.scrolly-outer {
  display: grid; grid-template-columns: 1fr 1fr;
  max-width: 1200px; margin: 0 auto;
}

.sticky-col {
  /* only sticky on desktop */
}
.sticky-panel {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2rem;
}

#polo-field-svg {
  display: block;
  max-width: 420px; width: 100%;
  margin: 0 auto;
  filter: drop-shadow(0 10px 40px rgba(0,0,0,.7));
}

.field-el {
  transition: opacity .6s ease, transform .6s ease;
}
.field-hidden { opacity: 0; }
.field-hidden.player-dot { transform: scale(0); }

/* scrollytelling ball enter animation */
.field-hidden.field-ball { transform: scale(0); }
.field-ball { transition: transform .6s ease, opacity .6s ease; }

.steps-col { padding: 15vh 3rem 20vh; }

.sport-step {
  min-height: 65vh; display: flex; flex-direction: column;
  justify-content: center; opacity: .25;
  transition: opacity .4s;
  border-left: 2px solid rgba(255,255,255,.08);
  padding: 3rem 0 3rem 2.5rem;
  margin-bottom: 2rem;
}
.sport-step.active { opacity: 1; border-left-color: var(--red); }

.step-num { display: none; }
.sport-step .section-label { display: none; }
.step-title {
  font-family: 'Oswald', sans-serif; font-size: 1.9rem;
  color: var(--dark); margin-bottom: .9rem;
}
.step-body {
  font-size: 1.05rem; line-height: 1.75;
  color: white; max-width: 420px;
}
.step-badge {
  display: inline-block; background: var(--red);
  color: white; font-family: 'Oswald', sans-serif;
  font-size: .85rem; letter-spacing: 2px; padding: .3rem .9rem;
  text-transform: uppercase; margin-top: 1.2rem;
}

/* ── TRAINING SECTION ───────────────────────────────── */
#training { background: white; padding: 8rem 2rem; }

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

.schedule-list { display: flex; flex-direction: column; gap: 1.2rem; }

.schedule-card {
  display: grid; grid-template-columns: 100px 1fr;
  gap: 0; align-items: stretch;
  border: 1px solid #e8e8e8;
  transition: border-color .3s, transform .3s;
  overflow: hidden;
}
.schedule-card:hover { border-color: var(--red); transform: translateX(6px); }

.sched-day {
  background: var(--dark); color: white;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 1.2rem .5rem;
}
.sched-day-abbr {
  font-family: 'Oswald', sans-serif; font-size: 1.8rem;
  font-weight: 700; color: var(--red-light); line-height: 1;
}
.sched-day-name { font-size: .65rem; text-transform: uppercase; letter-spacing: 1px; opacity: .5; margin-top: .2rem; }

.sched-info { padding: 1.2rem 1.5rem; }
.sched-type {
  font-family: 'Oswald', sans-serif; font-size: 1.1rem;
  font-weight: 600; margin-bottom: .25rem;
}
.sched-time {
  display: inline-block; background: var(--dark); color: var(--gold);
  font-family: 'Oswald', sans-serif; font-size: .9rem;
  padding: .15rem .6rem; letter-spacing: 1px;
}
.sched-note { font-size: .82rem; color: #888; margin-top: .4rem; }

.location-card {
  background: var(--dark); color: white;
  padding: 2.5rem; position: sticky; top: 2rem;
}
.location-card h3 {
  font-family: 'Oswald', sans-serif; font-size: 1rem;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 2rem;
}

.loc-row { display: flex; gap: 1rem; margin-bottom: 1.8rem; align-items: flex-start; }
.loc-icon { font-size: 1.4rem; min-width: 2rem; }
.loc-text p:first-child { font-weight: 600; margin-bottom: .2rem; font-size: 1rem; }
.loc-text p:last-child  { font-size: .85rem; opacity: .6; line-height: 1.4; }

.map-block {
  width: 100%; height: 150px;
  background: #0f558f; position: relative; overflow: hidden; margin-top: 1.5rem;
}
.map-block::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0,  rgba(255,255,255,.04) 1px,  transparent 1px,  transparent 32px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0, rgba(255,255,255,.04) 1px, transparent 1px, transparent 32px);
}
.map-pin-mark {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.map-pin-mark .pin-dot {
  width: 14px; height: 14px; background: var(--red-light);
  border-radius: 50%; margin: 0 auto;
  box-shadow: 0 0 0 4px rgba(239,83,80,.3), 0 0 0 8px rgba(239,83,80,.12);
}
.map-pin-mark p { font-size: .7rem; color: rgba(255,255,255,.5); margin-top: .5rem; letter-spacing: 1px; }

/* ── VORSTAND SECTION ───────────────────────────────── */
#vorstand { background: var(--white); padding: 8rem 2rem; }

.vorstand-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px,1fr));
  gap: 1.5rem; margin-top: 4rem;
}

.vorstand-card {
  background: white; text-align: center;
  padding: 2.5rem 1.5rem 2rem; cursor: default;
  transition: transform .3s, box-shadow .3s;
}
.vorstand-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
}

.v-avatar {
  width: 110px; height: 110px; border-radius: 50%;
  margin: 0 auto 1.5rem; position: relative; overflow: hidden;
}
.v-avatar svg { width: 100%; height: 100%; }

.v-role {
  font-family: 'Oswald', sans-serif;
  font-size: .7rem; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--red); margin-bottom: .4rem;
}
.v-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem; font-weight: 600; margin-bottom: .3rem;
}
.v-since { font-size: .78rem; color: #aaa; }

/* ── MITMACHEN SECTION ──────────────────────────────── */
#mitmachen {
  background: var(--red); padding: 9rem 2rem;
  text-align: center; position: relative; overflow: hidden;
}
#mitmachen .hero-bg-text { color: rgba(255,255,255,.06); font-size: clamp(5rem, 18vw, 16rem); }
#mitmachen h2 { color: white; position: relative; font-size: clamp(2rem,5vw,3.5rem); }
#mitmachen p {
  color: rgba(255,255,255,.8); font-size: 1.15rem;
  max-width: 560px; margin: 1.5rem auto 2.8rem; line-height: 1.75; position: relative;
}
.cta-btn {
  display: inline-block;
  padding: 1rem 3.2rem;
  background: white; color: var(--red);
  font-family: 'Oswald', sans-serif; font-size: 1.1rem;
  letter-spacing: 3px; text-transform: uppercase;
  text-decoration: none; border: 2px solid white;
  transition: background .3s, color .3s; position: relative;
}
.cta-btn:hover { background: transparent; color: white; }

/* ── FOOTER ─────────────────────────────────────────── */
footer {
  background: var(--dark); color: rgba(255,255,255,.5);
  padding: 3.5rem 2rem; text-align: center;
}
.footer-logo {
  font-family: 'Oswald', sans-serif; font-size: 2rem;
  font-weight: 700; color: white; letter-spacing: 5px; margin-bottom: .8rem;
}
.footer-logo span { color: white; }
footer p { font-size: .85rem; line-height: 1.8; }
footer a { color: rgba(255,255,255,.6); text-decoration: none; }
footer a:hover { color: var(--gold); }
.footer-links { display: flex; gap: 2rem; justify-content: center; margin: 1.2rem 0; flex-wrap: wrap; }
.footer-sep { width: 40px; height: 1px; background: rgba(255,255,255,.12); margin: 1.5rem auto; }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .sport-grid      { grid-template-columns: 1fr; gap: 3rem; }
  .training-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .location-card   { position: static; }

  /* Scrollytelling: visualization sticks at top while steps scroll beneath */
  .scrolly-outer   { display: flex; flex-direction: column; max-width: 100%; margin: 0; }
  .sticky-col      {
    order: -1;
    position: sticky;
    top: 60px;
    height: 42vh;
    min-height: 220px;
    background: #2d82bd;
    z-index: 5;
  }
  .sticky-panel    { position: relative; height: 100%; padding: 1rem 1.5rem 0.5rem; }
  .sport-vis-stack { min-height: unset; height: 100%; }
  #polo-field-svg  { max-width: 100%; width: 100%; }
  .steps-col       { padding: 2rem 1.5rem 15vh; }
  .sport-step      { min-height: 60vh; padding: 2rem 0 2rem 1.5rem; }

  #training { padding: 5rem 1.5rem; }
}

@media (max-width: 600px) {
  #hero .hero-title { font-size: 2.8rem; }
  .vorstand-grid { grid-template-columns: 1fr; }
  .facts-grid    { grid-template-columns: 1fr 1fr; }
  .sticky-col    { height: 38vh; min-height: 200px; }
  #training      { padding: 4rem 1.25rem; }
  .hero-boat-2, .hero-boat-3, .hero-ball-2, .hero-ball-3 { display: none; }
}
