/* ═══════════════════════════════════════════════════════════════════
   RBL TEAM HAMBURG · style.css
   RC Allemannia Hamburg · Ruderbundesliga
   Design: Dark Athletic · Editorial · Cinematic
   ═══════════════════════════════════════════════════════════════════ */

/* ── VARIABLES ─────────────────────────────────────────────────────── */
:root {
  /* Colours */
  --c-dark:      #0a0c10;
  --c-dark-2:    #111520;
  --c-dark-3:    #181d28;
  --c-mid:       #1e2535;
  --c-light:     #f0f2f5;
  --c-white:     #ffffff;
  --c-accent:    #e8321a;        /* Bundesliga-rot */
  --c-accent-2:  #ff5c42;
  --c-gold:      #c9a84c;
  --c-water:     #1a4a7a;
  --c-water-2:   #0d3258;
  --c-muted:     #6b7585;
  --c-border:    rgba(255,255,255,0.08);

  /* Typography */
  --f-display:   'Bebas Neue', sans-serif;
  --f-body:      'Barlow', sans-serif;
  --f-condensed: 'Barlow Condensed', sans-serif;

  /* Spacing */
  --s-max:       1280px;
  --s-section:   5rem;
  --radius:      6px;
  --radius-lg:   12px;

  /* Transitions */
  --t-fast:      0.2s ease;
  --t-med:       0.4s ease;
  --t-slow:      0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── RESET / BASE ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--c-dark);
  color: var(--c-light);
  font-family: var(--f-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: var(--c-accent-2); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-white); }

/* ── HEADER ─────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-border);
}

.header-inner {
  max-width: var(--s-max);
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.rbl-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
}

.logo-divider {
  width: 1px;
  height: 32px;
  background: var(--c-border);
}

.club-name a {
  color: inherit;
  text-decoration: none;
}

.club-name a:hover {
  color: var(--c-white);
  text-decoration: underline;
}

.club-abbr {
  display: block;
  font-family: var(--f-display);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  color: var(--c-white);
  line-height: 1;
}

.club-full {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.main-nav {
  margin-left: auto;
  display: flex;
  gap: 0.25rem;
}

.main-nav a {
  font-family: var(--f-condensed);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
  transition: color var(--t-fast), background var(--t-fast);
}

.main-nav a:hover {
  color: var(--c-white);
  background: rgba(255,255,255,0.06);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform var(--t-med), opacity var(--t-med);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--c-dark-2);
  padding-top: 72px;
}

/* Animated water-lane lines background */
.hero-water-lines {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 58px,
      rgba(26, 74, 122, 0.18) 58px,
      rgba(26, 74, 122, 0.18) 60px
    );
  animation: waterDrift 12s linear infinite;
}

@keyframes waterDrift {
  from { background-position: 0 0; }
  to   { background-position: 0 120px; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(10,12,16,0.97) 0%,
    rgba(10,12,16,0.82) 45%,
    rgba(10,12,16,0.45) 75%,
    rgba(10,12,16,0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 2rem 4rem 4rem;
  max-width: 640px;
}

.hero-eyebrow {
  font-family: var(--f-condensed);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--c-accent);
}

.hero-title {
  font-family: var(--f-display);
  line-height: 0.92;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.hero-title-top {
  display: block;
  font-size: clamp(3.5rem, 8vw, 7rem);
  color: var(--c-white);
}

.hero-title-bottom {
  display: block;
  font-size: clamp(4rem, 10vw, 9rem);
  color: var(--c-accent);
  -webkit-text-stroke: 2px var(--c-accent);
  text-shadow: 0 0 60px rgba(232, 50, 26, 0.35);
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(240, 242, 245, 0.7);
  margin-bottom: 2rem;
  max-width: 480px;
  line-height: 1.65;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(232, 50, 26, 0.12);
  border: 1px solid rgba(232, 50, 26, 0.4);
  color: var(--c-accent-2);
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  font-family: var(--f-condensed);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--c-accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.6; }
}

/* Hero image area */
.hero-image-slot {
  position: relative;
  z-index: 2;
  padding: 2rem 4rem 2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-placeholder {
  width: 100%;
  max-width: 520px;
  /*aspect-ratio: 4/3;*/
  border: 2px dashed rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.02);
  position: relative;
  overflow: hidden;
}

.image-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,74,122,0.08), transparent);
}

.team-hero-img {
  position: relative;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.team-hero-img.hidden { display: none; }

.placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: rgba(255,255,255,0.2);
}

/* Placeholder ausblenden wenn ein echtes Bild geladen ist */
.team-hero-img:not(.hidden) ~ .placeholder-inner {
  display: none;
}

.placeholder-icon {
  width: 80px;
  height: 60px;
}

.placeholder-inner p {
  font-family: var(--f-condensed);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--c-muted);
  font-family: var(--f-condensed);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--c-muted), transparent);
  animation: scrollDrop 2s ease-in-out infinite;
}

@keyframes scrollDrop {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50%       { transform: scaleY(1.2); opacity: 1; }
}

/* ── COMING SOON BANNER ──────────────────────────────────────────────── */
.coming-soon-banner {
  background: linear-gradient(90deg, var(--c-water-2), var(--c-water));
  border-top: 3px solid var(--c-accent);
  border-bottom: 3px solid var(--c-accent);
  padding: 1.2rem 2rem;
}

.banner-inner {
  max-width: var(--s-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.banner-icon { font-size: 1.6rem; flex-shrink: 0; }

.banner-inner p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(240,242,245,0.9);
}

.banner-inner strong {
  color: var(--c-white);
  font-weight: 700;
}

/* ── SECTIONS ────────────────────────────────────────────────────────── */
.section {
  padding: var(--s-section) 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}

.section.revealed {
  opacity: 1;
  transform: translateY(0);
}

.section--dark  { background: var(--c-dark-2); }
.section--light { background: var(--c-dark-3); }
.section--accent {
  background:
    linear-gradient(160deg, var(--c-dark-2) 0%, var(--c-water-2) 100%);
  border-top: 1px solid rgba(26,74,122,0.5);
  border-bottom: 1px solid rgba(26,74,122,0.5);
}

.section-inner {
  max-width: var(--s-max);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-family: var(--f-condensed);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-label::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--c-accent);
  opacity: 0.5;
}

.section-title {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.02em;
  color: var(--c-white);
  line-height: 1;
  margin-bottom: 1.2rem;
}

.section-intro {
  font-size: 1rem;
  color: rgba(240,242,245,0.55);
  max-width: 680px;
  margin-bottom: 3rem;
  line-height: 1.75;
}

/* ── ATHLETE CARDS ───────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.2rem;
}

.card--athlete {
  background: var(--c-mid);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: transform var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
  opacity: 0;
  transform: translateY(20px);
}

.card--athlete.revealed {
  opacity: 1;
  transform: translateY(0);
}

.card--athlete:hover {
  transform: translateY(-4px);
  border-color: rgba(232,50,26,0.4);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(232,50,26,0.1);
}

.card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-mid), var(--c-dark));
  border: 2px dashed rgba(255,255,255,0.12);
}

.card-name {
  font-family: var(--f-condensed);
  font-weight: 700;
  font-size: 1rem;
  color: var(--c-white);
  text-align: center;
  letter-spacing: 0.04em;
}

.card-role {
  font-size: 0.8rem;
  color: var(--c-muted);
  text-align: center;
  letter-spacing: 0.06em;
  font-style: italic;
}

/* ── TIMELINE ─────────────────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.8rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--c-accent), transparent);
}

.timeline-item {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  margin-bottom: 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.65rem;
  top: 1.7rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-accent);
  border: 2px solid var(--c-dark-2);
  box-shadow: 0 0 0 3px rgba(232,50,26,0.2);
}

.timeline-item:hover {
  background: rgba(255,255,255,0.05);
  border-left-color: var(--c-accent-2);
}

.timeline-date {
  font-family: var(--f-condensed);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 0.4rem;
}

.timeline-content h3 {
  font-family: var(--f-condensed);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 0.3rem;
  letter-spacing: 0.04em;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--c-muted);
}

/* ── RESULTS TABLE ──────────────────────────────────────────────────── */
.results-placeholder {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.result-row {
  display: grid;
  grid-template-columns: 140px 1fr 80px 120px;
  gap: 1rem;
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--c-border);
  align-items: center;
}

.result-row:last-child { border-bottom: none; }

.result-row--header {
  background: var(--c-mid);
  font-family: var(--f-condensed);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.result-row.placeholder {
  color: rgba(107, 117, 133, 0.4);
  background: rgba(255,255,255,0.01);
  font-style: italic;
}

/* ── GALLERY ──────────────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--t-med), opacity var(--t-med);
}

.placeholder-gallery {
  background: linear-gradient(135deg, var(--c-mid) 0%, var(--c-dark-3) 100%);
  border: 1px dashed rgba(255,255,255,0.08);
  position: relative;
}

.placeholder-gallery::after {
  content: 'Foto folgt';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-condensed);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.12);
}

.gallery-item:hover {
  transform: scale(1.02);
  z-index: 1;
}

/* ── INFO BLOCKS ──────────────────────────────────────────────────────── */
.info-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}

.info-block {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: background var(--t-med), border-color var(--t-med), transform var(--t-med);
}

.info-block:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(232,50,26,0.3);
  transform: translateY(-3px);
}

.info-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.info-block h3 {
  font-family: var(--f-condensed);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--c-white);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.info-block p {
  font-size: 0.9rem;
  color: var(--c-muted);
}

/* ── KONTAKT ──────────────────────────────────────────────────────────── */
.kontakt-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}

.kontakt-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(26,74,122,0.4);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: border-color var(--t-med), background var(--t-med), transform var(--t-med);
}

.kontakt-card:hover {
  background: rgba(26,74,122,0.12);
  border-color: rgba(26,74,122,0.8);
  transform: translateY(-3px);
}

.kontakt-icon { font-size: 2rem; margin-bottom: 1rem; }

.kontakt-card h3 {
  font-family: var(--f-condensed);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 0.5rem;
}

.kontakt-card p {
  color: var(--c-light);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ── FOOTER ──────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--c-dark);
  border-top: 1px solid var(--c-border);
  padding: 2.5rem 0;
}

.footer-inner {
  max-width: var(--s-max);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-rbl-logo {
  height: 28px;
  width: auto;
  opacity: 0.6;
  filter: grayscale(1);
  transition: opacity var(--t-fast), filter var(--t-fast);
}

.footer-rbl-logo:hover {
  opacity: 1;
  filter: grayscale(0);
}

.footer-text { flex: 1; }

.footer-text p {
  font-size: 0.85rem;
  color: var(--c-muted);
}

.footer-text a { color: var(--c-muted); }
.footer-text a:hover { color: var(--c-white); }

.footer-sub { margin-top: 0.15rem; font-size: 0.8rem; }

.footer-links {
  display: flex;
  gap: 1.2rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: rgba(107,117,133,0.6);
  transition: color var(--t-fast);
}

.footer-links a:hover { color: var(--c-white); }

/* ── SCROLL REVEAL DELAYS ────────────────────────────────────────────── */
.card-grid .card:nth-child(1) { transition-delay: 0.05s; }
.card-grid .card:nth-child(2) { transition-delay: 0.12s; }
.card-grid .card:nth-child(3) { transition-delay: 0.19s; }
.card-grid .card:nth-child(4) { transition-delay: 0.26s; }

.timeline-item:nth-child(1) { transition-delay: 0.05s; }
.timeline-item:nth-child(2) { transition-delay: 0.15s; }
.timeline-item:nth-child(3) { transition-delay: 0.25s; }

.gallery-item:nth-child(1) { transition-delay: 0.05s; }
.gallery-item:nth-child(2) { transition-delay: 0.10s; }
.gallery-item:nth-child(3) { transition-delay: 0.15s; }
.gallery-item:nth-child(4) { transition-delay: 0.20s; }
.gallery-item:nth-child(5) { transition-delay: 0.25s; }
.gallery-item:nth-child(6) { transition-delay: 0.30s; }

.info-block:nth-child(1) { transition-delay: 0.05s; }
.info-block:nth-child(2) { transition-delay: 0.12s; }
.info-block:nth-child(3) { transition-delay: 0.19s; }
.info-block:nth-child(4) { transition-delay: 0.26s; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: unset;
  }

  .hero-content {
    padding: 3rem 1.5rem 1.5rem;
    max-width: 100%;
  }

  .hero-image-slot {
    padding: 1.5rem;
  }

  .hero-scroll-hint { display: none; }

  .result-row {
    grid-template-columns: 1fr 1fr;
    font-size: 0.8rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .main-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10,12,16,0.97);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--c-border);
  }

  .main-nav.open { display: flex; }
  .main-nav a { font-size: 1rem; padding: 0.7rem 1rem; }
  .nav-toggle { display: flex; }

  .header-inner { padding: 0.75rem 1rem; }

  .hero-content { padding: 2rem 1rem 1rem; }

  .hero-title-top  { font-size: 3rem; }
  .hero-title-bottom { font-size: 4rem; }

  .section-inner { padding: 0 1rem; }

  .gallery-grid { grid-template-columns: 1fr 1fr; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .result-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .result-row--header span:not(:first-child) { display: none; }
}

@media (max-width: 400px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ── SCROLLBAR ──────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-dark); }
::-webkit-scrollbar-thumb { background: var(--c-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-accent); }

/* ── SELECTION ──────────────────────────────────────────────────────── */
::selection {
  background: rgba(232, 50, 26, 0.3);
  color: var(--c-white);
}
