/* ===== RESET & BASE ===== */
html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: 80px;
  font-family: Arial, sans-serif;
  color: #2f2f2f;
  background: #f0f4f8;
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: white;
  z-index: 10000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  width: 100%;
  box-sizing: border-box;
}

.logo img {
  height: 65px;
  width: auto;
  display: block;
}

nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

nav a {
  color: #2f2f2f;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.2s;
}

nav a:hover {
  color: #f57b2a;
}

/* Hamburger – Desktop versteckt */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  background: #2f2f2f;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== EINHEITLICHE TITEL ===== */
h2 {
  font-size: 2.4em;
  margin-bottom: 24px;
}

h3 {
  font-size: 1.3em;
}


.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #2b58a4, #f57b2a);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  padding: 100px 60px;
  text-align: center;
  box-sizing: border-box;
}

.hero-overlay {
  background: rgba(0,0,0,0.3);
  padding: 60px 80px;
  border-radius: 20px;
  width: 100%;
  max-width: 960px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800;
  margin-bottom: 32px;
}

.orange { color: #f57b2a; }
.blue { color: #2b58a4; }

/* HERO BUTTONS */
.hero-buttons.centered {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn {
  padding: 16px 36px;
  border-radius: 10px;
  margin: 6px;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  border: none;
}

.blue-btn  { background: #2b58a4; color: white; }
.orange-btn{ background: #f57b2a; color: white; }
.white-btn { background: white;   color: #2b58a4; }

.btn:hover { transform: scale(1.04); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

/* ===== COUNTDOWN ===== */
.countdown {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.time-box {
  background: rgba(255,255,255,0.7);
  padding: 30px 24px;
  border-radius: 18px;
  width: 130px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #2f2f2f;
}

.time-box span  { font-size: 2.8em; font-weight: bold; }
.time-box small { font-size: 1em; margin-top: 8px; }

/* ===== SECTIONS ===== */
.section {
  padding: 100px 20px;
  text-align: center;
}

.gradient-section {
  background: linear-gradient(135deg, #2b58a4, #f57b2a);
  color: white;
}

/* ===== RENNSTRECKE – 3 Karten nebeneinander ===== */
.strecke-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.strecke-card {
  background: white;
  padding: 0;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  color: #2f2f2f;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.strecke-card:hover { transform: scale(1.02); }

.strecke-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px 20px 20px 20px;
  display: block;
}

.strecke-card video {
  width: 100%;
  aspect-ratio: 16 / 19;
  height: auto;
  object-fit: cover;
  border-radius: 20px 20px 20px 20px;
  display: block;
  background: #000;
}

.strecke-card-inner {
  padding: 24px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.strecke-card-inner h3 {
  color: #2f2f2f;
  margin-top: 0;
  margin-bottom: 12px;
}

.strecke-card-inner p {
  margin: 6px;
  font-size: 15px;
}

/* ===== INFORMATIONEN ===== */
.info-background {
  background: linear-gradient(135deg, #2b58a4, #f57b2a);
  padding: 80px 20px;
  text-align: center;
}

.info-background h3 {
  color: white;
  font-size: 2em;
  margin-bottom: 24px;
}

.info-text-box {
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  color: #2f2f2f;
  font-size: 16px;
  line-height: 1.8;
}

/* ===== GALERIE – Slider ===== */
.gallery-slider-wrap {
  position: relative;
  max-width: 1100px;
  margin: 30px auto 0;
}

.gallery-slider {
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
}

.gallery-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.gallery-slide {
  min-width: 100%;
  flex: 0 0 100%;
  height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border-radius: 20px;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.92);
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  font-size: 22px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: background 0.2s, transform 0.1s;
  color: #2f2f2f;
}

.slider-btn:hover { background: white; transform: translateY(-50%) scale(1.08); }
.slider-btn.prev  { left: -26px; }
.slider-btn.next  { right: -26px; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.2s;
}

.slider-dot.active { background: #f57b2a; }

/* ===== Kurvensponsor-SEKTION ===== */
.hauptsponsor-section {
  background: linear-gradient(135deg, #2b58a4, #f57b2a);
  padding: 100px 20px;
  text-align: center;
  color: white;
}

.hauptsponsor-section h2 {
  font-size: 2.4em;
  margin-bottom: 48px;
  color: white;
}

.hauptsponsor-card {
  background: white;
  border-radius: 24px;
  padding: 70px 80px;
  max-width: 1060px;
  margin: 0 auto;
  box-shadow: 0 16px 50px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.hauptsponsor-img-wrap {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  height: 280px;
}

.hauptsponsor-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hauptsponsor-card p {
  color: #2f2f2f;
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
  max-width: 600px;
  text-align: center;
}

/* ===== Seifenkistensponsor SLIDER ===== */
.weitere-sponsoren-section {
  background: #f0f4f8;
  padding: 100px 20px;
  text-align: center;
}

.weitere-sponsoren-section h2 {
  color: #2b58a4;
  font-size: 2.4em;
  margin-bottom: 48px;
}

.sponsor-slider-wrap {
  position: relative;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 70px;
  box-sizing: border-box;
}

.sponsor-slider-viewport {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.2);
}

.sponsor-slider-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
  gap: 0;
}

/* Always 1 card */
.sponsor-slide-card {
  min-width: 100%;
  flex: 0 0 100%;
  padding: 0;
  box-sizing: border-box;
}

.sponsor-slide-card > div,
.sponsor-slide-card > p,
.sponsor-slide-card > a {
  width: 100%;
}

.sponsor-slide-card-inner {
  background: white;
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  height: 100%;
  box-sizing: border-box;
}

.sponsor-slide-inner {
  background: white;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 560px;
}

/* Logo oben */
.sponsor-slide-img-wrap {
  width: 100%;
  overflow: hidden;
  height: 300px;
  flex-shrink: 0;
}

.sponsor-slide-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text darunter */
.sponsor-slide-text {
  color: #2f2f2f;
  font-size: 16px;
  line-height: 1.8;
  margin: 40px 48px 28px;
  text-align: center;
  flex-grow: 1;
}

/* Button ganz unten zentriert */
.sponsor-slide-inner .btn {
  margin-bottom: 48px;
}


/* Sponsor slider arrows */
.sponsor-slider-wrap .slider-btn.prev { left: 0; }
.sponsor-slider-wrap .slider-btn.next { right: 0; }
.sponsor-slider-wrap .slider-dots { margin-top: 20px; }

/* ===== HELFER ===== */
.helfer-gradient-full {
  background: linear-gradient(135deg, #2b58a4, #f57b2a);
  padding: 100px 20px;
  text-align: center;
  color: white;
}

/* ===== SPONSORING ===== */
.sponsor-intro  { margin-bottom: 20px; font-weight: bold; }

.sponsor-kategorie {
  margin-bottom: 20px;
  text-align: left;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  background: #ffffff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.sponsor-kategorie label {
  display: block;
  margin: 8px 0;
  cursor: pointer;
}

.sponsor-box {
  max-width: 700px;
  margin: auto;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
}

.zahlung-box {
  margin-top: 20px;
  color: white;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  background: #2b58a4;
}

/* ===== FADE-IN ANIMATIONEN ===== */
.fade {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade.will-animate {
  opacity: 0;
  transform: translateY(60px);
}

.fade.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ===== EVENT BOX ===== */
.event-box {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.8;
  font-size: 16px;
}

.event-box p { margin-bottom: 16px; }

/* ===== KONTAKT ===== */
#kontakt a { color: #f0f4f8; }

/* ===== MOBILE ===== */
@media (max-width: 900px) {

  /* Navbar mobile */
  .hamburger { display: flex; }

  nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: white;
    padding: 16px 0;
    border-top: 1px solid #eee;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    gap: 0;
    z-index: 9999;
  }

  nav.active { display: flex; }

  nav a {
    padding: 12px 30px;
    width: 100%;
    font-size: 15px;
    border-bottom: 1px solid #f0f4f8;
  }

  nav a:last-child { border-bottom: none; }

  /* Hero Mobile – kompakt und stabil */
  .hero {
    min-height: 100vh;
    padding: 16px 12px;
    align-items: center;
    box-sizing: border-box;
  }

  .hero-overlay {
    padding: 28px 16px;
    border-radius: 14px;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(1.5rem, 6.5vw, 2.2rem);
    margin-bottom: 16px;
  }

  /* Countdown Mobile – 2×2 Grid */
  .countdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
  }

  .time-box {
    padding: 12px 8px;
    width: auto;
    border-radius: 12px;
  }

  .time-box span  { font-size: 1.8em; }
  .time-box small { font-size: 0.75em; margin-top: 4px; }

  /* Buttons Mobile – alle untereinander, gleich lang */
  .hero-buttons.centered {
    gap: 10px;
    margin-top: 14px;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons.centered .btn {
    padding: 13px 16px;
    font-size: 14px;
    margin: 0;
    flex: none;
    width: 100%;
    box-sizing: border-box;
  }

  /* Rennstrecke: 1 Karte vollbreit + swipe */
  .strecke-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    padding-bottom: 10px;
  }

  .strecke-grid::-webkit-scrollbar { display: none; }

  .strecke-card {
    flex: 0 0 100%;
    scroll-snap-align: center;
    border-radius: 20px;
    margin: 0 10px;
  }

  /* Gallery slider: hide arrows on mobile */
  .gallery-slider-wrap .slider-btn { display: none; }

  /* Gallery slide height mobile */
  .gallery-slide { height: 280px; }

  .sponsor-slider-wrap .slider-btn.prev { left: 0; }
  .sponsor-slider-wrap .slider-btn.next { right: 0; }

  /* Hauptsponsor */
  .hauptsponsor-card { padding: 32px 20px; }

  /* Navbar position */
  .navbar { position: fixed; }
}

@media (max-width: 600px) {
  .section { padding: 70px 16px; }
  .gallery-slide { height: 220px; }
}
