/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #009AA4;
  --primary-light: #00b8c4;
  --primary-dark: #007a82;
  --anthracite-900: #1a1a1f;
  --anthracite-800: #24242b;
  --anthracite-700: #2e2e37;
  --anthracite-600: #3a3a45;
  --anthracite-500: #4a4a57;
  --anthracite-400: #5e5e6b;
  --anthracite-300: #7a7a87;
  --white: #ffffff;
  --gray-100: #f0f0f3;
  --gray-200: #e0e0e5;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--anthracite-900);
  color: var(--gray-100);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--primary-light);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}

.navbar.scrolled {
  background: rgba(26, 26, 31, 0.95);
  backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 36px;
  width: auto;
  transition: opacity 0.3s;
}

.logo-img:hover {
  opacity: 0.85;
}

.footer-logo {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--gray-200);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s, transform 0.3s !important;
}

.nav-cta:hover {
  background: var(--primary-light);
  color: var(--white) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(170deg, var(--anthracite-900) 0%, var(--anthracite-800) 50%, var(--anthracite-700) 100%);
}

#waveCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.hero-logo {
  max-width: 750px;
  width: 90%;
  height: auto;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--anthracite-300);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-meta {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.8s;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: var(--gray-200);
}

.meta-icon {
  font-size: 1.2rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1s;
}

.btn-primary:hover {
  background: var(--primary-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 154, 164, 0.3);
}

.btn-large {
  padding: 16px 48px;
  font-size: 1.05rem;
  opacity: 1;
  animation: none;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1.2s;
}

.scroll-indicator span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--anthracite-400);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scrollPulse 2s ease infinite;
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--anthracite-800);
}

.section-accent {
  background: linear-gradient(170deg, var(--anthracite-800) 0%, var(--anthracite-900) 100%);
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-text {
  font-size: 1.05rem;
  color: var(--anthracite-300);
  max-width: 650px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--anthracite-800);
  border: 1px solid var(--anthracite-600);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--anthracite-300);
  line-height: 1.6;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--anthracite-600));
}

.timeline-item {
  position: relative;
  padding: 0 0 40px 32px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -45px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--anthracite-800);
}

.timeline-time {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.timeline-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--anthracite-300);
}

/* ===== HIGHLIGHTS GRID ===== */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.highlight-card {
  background: var(--anthracite-800);
  border: 1px solid var(--anthracite-600);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}

.highlight-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.highlight-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--anthracite-700);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.highlight-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}

.highlight-card:hover .highlight-img img {
  transform: scale(1.05);
}

.highlight-body {
  padding: 24px;
}

.highlight-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.highlight-body p {
  font-size: 0.9rem;
  color: var(--anthracite-300);
  line-height: 1.6;
}

/* ===== PARTNER GRID ===== */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.partner-card {
  background: var(--anthracite-800);
  border: 1px solid var(--anthracite-600);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  transition: border-color 0.3s, transform 0.3s;
}

.partner-card img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
}

.partner-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ===== LOCATION ===== */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.location-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.location-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.location-detail h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.location-detail p {
  font-size: 0.9rem;
  color: var(--anthracite-300);
  line-height: 1.6;
}

.location-map {
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--anthracite-700);
}

/* ===== LAGEPLAN ===== */
.lageplan-center {
  text-align: center;
}

.lageplan-wrapper {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--anthracite-600);
}

.lageplan-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== ANMELDUNG CENTER ===== */
.anmeldung-center {
  text-align: center;
}

.anmeldung-center .section-text {
  margin-left: auto;
  margin-right: auto;
}

/* ===== FOOTER ===== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--anthracite-700);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--anthracite-400);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--anthracite-300);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--anthracite-500);
  text-align: center;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(26, 26, 31, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-meta {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .location-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .timeline {
    padding-left: 24px;
  }

  .timeline-item {
    padding-left: 20px;
  }

  .timeline-item::before {
    left: -29px;
  }
}
