/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
textarea { resize: vertical; }

/* ===== DESIGN TOKENS ===== */
:root {
  --bg:          #0e0e0e;
  --bg-alt:      #141414;
  --bg-card:     #1a1a1a;
  --blue:        #2563EB;
  --blue-dark:   #003F8A;
  --blue-light:  #60A5FA;
  --blue-glow:   rgba(37, 99, 235, 0.35);
  --white:       #ffffff;
  --text:        #f0f0f0;
  --text-muted:  rgba(255,255,255,0.45);
  --border:      rgba(255,255,255,0.08);
  --border-blue: rgba(37,99,235,0.4);

  --radius:    6px;
  --radius-lg: 14px;
  --shadow:    0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.7);
  --transition: 0.3s ease;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}
.section { padding: 100px 0; position: relative; }
.section > .container { position: relative; z-index: 20; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 10px;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.75s cubic-bezier(0.22,1,0.36,1) 0.05s;
}

.section-label--light { color: rgba(255,255,255,0.55); }

.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}

.section-title--light { color: var(--white); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  border: 2px solid var(--blue);
}
.btn--primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--blue-glow);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.35);
}
.btn--outline-white:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.07);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--white);
  color: var(--blue-dark);
  border: 2px solid var(--white);
  font-weight: 700;
}
.btn--white:hover {
  background: #e0e7ff;
  transform: translateY(-2px);
}

.btn--nav {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 10px 20px;
  font-size: 0.8rem;
  border-radius: var(--radius);
}
.btn--nav:hover {
  background: #1d4ed8 !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.6);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-img {
  height: 38px;
  width: 38px;
  object-fit: contain;
  animation: logoSpin 10s linear infinite;
}
.logo-text {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}
.logo-text span { color: var(--blue); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
}
.main-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 13px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px; height: 20px;
  padding: 0; flex-shrink: 0;
}
.hamburger span {
  display: block; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: visible;
  padding-top: 70px;
  z-index: 20;
  background: transparent;
}
/* dark gradient at top so nav stays readable */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(to bottom, rgba(14,14,14,0.98) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform-origin: center center;
  will-change: transform;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.18;
}

.hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(5,5,10,0.88) 0%,
    rgba(5,5,15,0.7) 50%,
    rgba(5,5,10,0.5) 100%
  );
}
.hero__overlay-scroll {
  position: absolute;
  inset: 0;
  background: rgba(0,10,30,0.55);
  opacity: 0;
  transition: opacity 0.05s linear;
}

/* Line numbers – left side */
.hero__linenumbers {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 36px;
  z-index: 2;
}
.hero__linenumbers span {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em;
  writing-mode: horizontal-tb;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero__linenumbers span::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: rgba(255,255,255,0.2);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 40px;
  padding-bottom: 100px;
}

.hero__glass {
  max-width: 600px;
  width: 100%;
}

.hero__label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 18px;
}

.hero__headline {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  line-height: 0.95;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
@keyframes heroLineIn {
  from { opacity: 0; transform: translateX(-56px) skewX(-6deg); }
  to   { opacity: 1; transform: translateX(0) skewX(0); }
}
.hero__line {
  display: block;
  opacity: 0;
  animation: heroLineIn 0.9s cubic-bezier(0.22,1,0.36,1) both;
}
.hero__line:nth-child(1) { animation-delay: 0.28s; }
.hero__line:nth-child(2) { animation-delay: 0.48s; }
.hero__line:nth-child(3) { animation-delay: 0.68s; }
.hero__line:nth-child(4) { animation-delay: 0.88s; }
.hero__line--accent { color: var(--blue-light); }

.hero__subline {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.65);
  max-width: 500px;
  margin-bottom: 44px;
  line-height: 1.75;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.3);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
}
.hero__scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* Hero entrance animations */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero__label    { animation: fadeSlideLeft 0.7s ease both; animation-delay: 0.15s; }
.hero__headline { animation: none; }
.hero__subline  { animation: fadeSlideUp  0.7s ease both; animation-delay: 0.9s; }
.hero__ctas     { animation: fadeSlideUp  0.7s ease both; animation-delay: 1.1s; }
.hero__scroll   { animation: fadeIn       1s   ease both; animation-delay: 1.55s; }

/* ===== ÜBER UNS ===== */
.ueber-uns { background: var(--bg); }

.ueber-text {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 60px;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.85;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 24px;
  text-align: center;
  border-top: 3px solid var(--blue);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  border-top-color: var(--blue-light);
}

.stat-card__number {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--blue-light);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Float animation when visible */
@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
.stat-card.visible { animation: floatUp 4s 1.5s ease-in-out infinite; }
.stat-card:nth-child(2).visible { animation-delay: 1.9s; }
.stat-card:nth-child(3).visible { animation-delay: 2.3s; }
.stat-card:hover { animation-play-state: paused !important; }

/* ===== EVENTS ===== */
.events { background: var(--bg-alt); }

.events-countdown {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 14px 20px;
  background: rgba(0,63,138,0.15);
  border: 1px solid rgba(0,63,138,0.35);
  border-radius: 10px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}
.events-countdown strong { color: var(--white); }
.countdown__flag { font-size: 1.1rem; }

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.event-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  border-color: var(--border-blue);
}

.event-card__header {
  background: var(--blue-dark);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px solid var(--blue);
}

.event-card__date {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}

.event-card__badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge--rennen     { background: rgba(37,99,235,0.3);  color: #93c5fd; }
.badge--training   { background: rgba(34,197,94,0.2);  color: #86efac; }
.badge--teamrennen { background: rgba(251,146,60,0.2); color: #fdba74; }
.badge--sonstiges  { background: rgba(255,255,255,0.1);color: rgba(255,255,255,0.65); }

.event-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-card__name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}

.event-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

/* ===== MITGLIED WERDEN ===== */
.mitglied {
  background: var(--bg);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  z-index: 20;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mitglied::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--blue) 40%, var(--blue-light) 60%, transparent 100%);
  pointer-events: none;
}
.mitglied::after {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse at top, rgba(0,63,138,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.mitglied__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  position: relative;
}

.mitglied__info .section-title { margin-bottom: 20px; }

.mitglied__text {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 28px;
}

.vorteile-list {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.vorteile-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}
.vorteile-list li::before {
  content: '✓';
  font-weight: 700;
  color: var(--blue-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.beitrag {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.2);
}

.mitglied__form-wrap {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.mitglied__form-wrap h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 24px;
}

/* ===== FORMS ===== */
.form { display: flex; flex-direction: column; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.kontakt__form .form-group label {
  color: var(--text-muted);
  text-transform: none;
  font-size: 0.85rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.07);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color var(--transition), background var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.25); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(255,255,255,0.1);
}

.kontakt__form .form-group input,
.kontakt__form .form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
}
.kontakt__form .form-group input::placeholder,
.kontakt__form .form-group textarea::placeholder { color: var(--text-muted); }
.kontakt__form .form-group input:focus,
.kontakt__form .form-group textarea:focus { border-color: var(--blue); }

.form-success {
  font-size: 0.9rem;
  color: #86efac;
  font-weight: 500;
  padding: 10px 0;
}
#kontakt-success { color: var(--blue-light); }
.hidden { display: none !important; }

/* ===== GALERIE ===== */
.galerie { background: var(--bg); }

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.galerie-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.galerie-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.galerie-item:hover {
  border-color: rgba(0,100,255,0.45);
  box-shadow: 0 0 0 1px rgba(0,100,255,0.25), 0 8px 32px rgba(0,0,0,0.4);
}
.galerie-item:hover img { transform: scale(1.05); }

/* ===== SPONSOREN ===== */
.sponsoren { background: var(--bg-alt); }

.sponsoren-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.sponsor-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 88px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.sponsor-item:hover {
  transform: translateY(-3px);
  border-color: var(--border-blue);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.sponsor-item img {
  max-width: 120px; max-height: 52px;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.5);
  transition: filter var(--transition);
}
.sponsor-item:hover img { filter: brightness(0) invert(1) opacity(0.9); }

.sponsor-placeholder {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.06em;
}

/* ===== KONTAKT ===== */
.kontakt { background: var(--bg); }

.kontakt__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.kontakt__info {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 8px;
}

.kontakt__item strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue-light);
  margin-bottom: 6px;
}

.kontakt__item a,
.kontakt__item p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.kontakt__item a:hover { color: var(--white); }

/* ===== FOOTER ===== */
.site-footer {
  background: #080808;
  border-top: 1px solid var(--border);
  padding: 48px 0;
  position: relative;
  z-index: 20;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-logo {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}
.footer-logo span { color: var(--blue); }

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--white); }

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.2);
}

.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}
.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.footer-social__link:hover { color: var(--blue-light); }

/* ===== SHOW MORE BUTTON ===== */
.show-more-wrap {
  text-align: center;
  margin-top: 40px;
}

/* ===== EVENTS MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(6px);
}

.modal__box {
  position: relative;
  z-index: 2;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  overflow: hidden;
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal__title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.modal__close {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.modal__close:hover { background: rgba(255,255,255,0.12); color: var(--white); }

.modal__filters {
  display: flex;
  gap: 8px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.filter-pill {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-pill:hover { border-color: var(--blue); color: var(--blue-light); }
.filter-pill.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.modal__list {
  overflow-y: auto;
  padding: 8px 0;
  flex: 1;
}

.modal-event {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.modal-event:last-child { border-bottom: none; }
.modal-event:hover { background: rgba(255,255,255,0.03); }

.modal-event__date {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-light);
  white-space: nowrap;
  min-width: 120px;
  padding-top: 2px;
}

.modal-event__info { flex: 1; }

.modal-event__name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.modal-event__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.modal-event__badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 3px;
}

.modal-empty {
  text-align: center;
  padding: 48px 28px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(6px);
}

.lightbox__close {
  position: absolute;
  top: 20px; right: 24px;
  z-index: 2;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: var(--white);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox__close:hover { background: rgba(255,255,255,0.15); }

.lightbox__img {
  position: relative;
  z-index: 2;
  max-width: 90vw; max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,0.8);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox__nav:hover { background: rgba(255,255,255,0.18); }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }
.lightbox__nav.hidden { display: none; }

.lightbox__caption {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: perspective(900px) rotateX(18deg) translateY(44px) scale(0.96);
  transform-origin: center 0%;
  transition: opacity 0.85s cubic-bezier(0.22,1,0.36,1),
              transform 1.0s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: perspective(900px) rotateX(0deg) translateY(0) scale(1);
}
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ===== RESPONSIVE ===== */

/* --- Tablet (≤900px) --- */
@media (max-width: 900px) {
  .hero__linenumbers { display: none; }
  .hero__content     { padding-left: 0; }

  .stats-grid       { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .events-grid      { grid-template-columns: repeat(2, 1fr); }
  .galerie-grid     { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .mitglied__layout { grid-template-columns: 1fr; gap: 40px; }
  .kontakt__layout  { grid-template-columns: 1fr; gap: 40px; }
}

/* --- Mobile (≤640px) --- */
@media (max-width: 640px) {
  :root { --radius-lg: 10px; }

  .section    { padding: 56px 0; }
  .container  { padding: 0 20px; }

  /* Header */
  .hamburger  { display: flex; }
  .logo-text  { font-size: 1rem; }
  .logo-img   { height: 32px; width: 32px; }

  .main-nav {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: rgba(8,8,8,0.99);
    backdrop-filter: blur(16px);
    padding: 8px 0 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav ul li a {
    display: block;
    padding: 14px 20px;
    font-size: 0.9rem;
    border-radius: 0;
  }
  .main-nav ul li:last-child a {
    margin: 10px 16px 0;
    text-align: center;
    border-radius: var(--radius);
  }

  /* Hero */
  .hero { min-height: 100svh; }
  .hero__content {
    padding-top: 20px;
    padding-bottom: 100px;
  }
  .hero__label   { font-size: 0.65rem; margin-bottom: 12px; }
  .hero__headline {
    font-size: clamp(2.6rem, 11vw, 3.8rem);
    margin-bottom: 18px;
  }
  .hero__subline  { font-size: 0.9rem; margin-bottom: 28px; max-width: 100%; }
  .hero__ctas     { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero__ctas .btn {
    text-align: center;
    justify-content: center;
    padding: 14px 20px;
  }

  /* Section headers */
  .section-header { margin-bottom: 36px; }
  .section-title  { font-size: clamp(1.7rem, 6vw, 2.2rem); }

  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
    gap: 12px;
  }
  .stat-card { padding: 32px 20px; }
  .stat-card__number { font-size: 3rem; }

  /* Events */
  .events-grid { grid-template-columns: 1fr; max-width: none; }

  /* Mitglied */
  .mitglied { padding: 56px 0; }
  .mitglied__layout { gap: 28px; }
  .mitglied__form-wrap { padding: 24px 18px; }
  .mitglied__form-wrap h3 { font-size: 1.2rem; }
  .beitrag { font-size: 1.2rem; }

  /* Galerie */
  .galerie-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }

  /* Sponsoren */
  .sponsoren-grid { gap: 12px; }
  .sponsor-item   { min-width: 130px; height: 72px; padding: 12px 16px; }

  /* Kontakt */
  .kontakt__form { order: 1; }
  .kontakt__info { order: 2; }

  /* Events Modal */
  .modal         { padding: 0; align-items: flex-end; }
  .modal__box    {
    max-height: 88vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-width: 100%;
  }
  .modal__head   { padding: 20px; }
  .modal__filters { padding: 12px 20px; }
  .modal-event   {
    flex-direction: column;
    gap: 6px;
    padding: 16px 20px;
  }
  .modal-event__date  { min-width: auto; font-size: 0.8rem; }
  .modal-event__badge { align-self: flex-start; }

  /* Lightbox nav */
  .lightbox__nav  { width: 40px; height: 40px; font-size: 1rem; }
  .lightbox__prev { left: 10px; }
  .lightbox__next { right: 10px; }

  /* Footer */
  .footer-nav { gap: 14px; }
  .footer-nav a { font-size: 0.75rem; }

  /* Show-more buttons */
  .show-more-wrap .btn { width: 100%; justify-content: center; }
}

/* --- Small phones (≤380px) --- */
@media (max-width: 380px) {
  .hero__headline { font-size: clamp(2.2rem, 10vw, 3rem); }
  .galerie-grid   { grid-template-columns: repeat(3, 1fr); gap: 5px; }
}

/* --- Admin Mobile (≤600px) --- */
@media (max-width: 600px) {
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding: 8px 10px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    gap: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .admin-sidebar::-webkit-scrollbar { display: none; }
  .tab-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  .tab-icon     { display: none; }
  .sidebar-divider { display: none; }
  .admin-content { padding: 16px; }
  .inline-form-grid { grid-template-columns: 1fr; }
  .stat-editor-row  { grid-template-columns: 1fr; }
  .a-card { padding: 20px 16px; }
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  z-index: 300;
  width: 0%;
  box-shadow: 0 0 14px var(--blue-glow);
  pointer-events: none;
  will-change: width;
}

/* ===== HERO CURSOR GLOW ===== */
.hero__cursor-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.18s ease;
}
.hero:hover .hero__cursor-glow { opacity: 1; }

/* ===== SECTION DECORATION NUMBERS ===== */
.section-deco-num {
  position: absolute;
  right: clamp(20px, 4vw, 80px);
  top: 36px;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(6rem, 14vw, 11rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.04);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  letter-spacing: -0.04em;
  z-index: 0;
}

/* ===== FLOATING BACKGROUND ORBS ===== */
.section-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 16s ease-in-out infinite;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-50px) scale(1.07); }
}

/* ===== SECTION TITLE ACCENT LINE ===== */
.section-header .section-title::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-light), transparent);
  border-radius: 2px;
  margin-top: 12px;
  transition: width 1.1s cubic-bezier(0.22,1,0.36,1) 0.55s;
}
.section-header.visible .section-title::after { width: 72px; }
.section-header.visible .section-label { clip-path: inset(0 0% 0 0); }

/* ===== TEXT SPLIT ANIMATION ===== */
.tw {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: 1.15;
}
.tw__i {
  display: inline-block;
  transform: translateY(110%) rotate(3deg);
  opacity: 0;
  transition: transform 0.75s cubic-bezier(0.22,1,0.36,1) calc(0.12s + var(--wi) * 0.08s),
              opacity 0.55s ease calc(0.12s + var(--wi) * 0.08s);
}
.section-header.visible .tw__i {
  transform: translateY(0) rotate(0);
  opacity: 1;
}

/* ===== SPONSOR MARQUEE ===== */
.marquee-wrap {
  overflow: hidden;
  width: 100%;
  -webkit-mask: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
  mask: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 28s linear infinite;
  align-items: center;
}
.marquee-set {
  display: flex;
  gap: 20px;
  padding-right: 20px;
  flex-shrink: 0;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== KART RACER ===== */
.kart-racer {
  position: fixed;
  top: 45vh;
  left: 0;
  transform: translateY(-50%);
  z-index: 15;
  pointer-events: none;
  will-change: transform;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.6));
  opacity: 0;
}
.kart-img {
  display: block;
  width: 120px;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.95)) drop-shadow(0 0 8px rgba(0,60,180,0.35));
}
@media (max-width: 767px) {
  .kart-img { width: 96px; }
}
.kart-smoke {
  position: absolute;
  left: 50%;
  top: -4px;
  transform: translateX(-50%) translateY(-100%);
  display: flex;
  gap: 3px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.kart-racer.kart--moving .kart-smoke { opacity: 1; }
.kart-smoke span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(200,200,200,0.55);
  animation: kartSmoke 0.55s ease-out infinite;
}
.kart-smoke span:nth-child(2) { animation-delay: 0.18s; width: 6px; height: 6px; }
.kart-smoke span:nth-child(3) { animation-delay: 0.36s; width: 5px; height: 5px; }
@keyframes kartSmoke {
  0%   { opacity: 0.7; transform: scale(1)   translate(0,    0); }
  100% { opacity: 0;   transform: scale(2.5) translate(0, -16px); }
}

/* Track rolling center-line animation */
.track-center { animation: trackDash 0.85s linear infinite; }
@keyframes trackDash { to { stroke-dashoffset: -40; } }

/* ===== LOGO SPIN ===== */
@keyframes logoSpin {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.footer-logo-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  animation: logoSpin 8s linear infinite;
  filter: drop-shadow(0 0 10px rgba(0, 100, 220, 0.35));
}

/* ===== MOBILE CLEANUP FOR NEW EFFECTS ===== */
@media (max-width: 640px) {
  .section-deco-num { display: none; }
  .section-orb { opacity: 0.04 !important; filter: blur(60px); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
