/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

body {
  color: #eee;
  line-height: 1.6;
  scroll-behavior: smooth;
  background-color: #111;
  padding-top: 70px; /* Platz für fixe Navbar */
}

/* Header & Nav */
header {
  position: relative;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(to bottom, #1c1c1c, #111);
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111;
  padding: 0 50px;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

nav .logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav ul li a {
  text-decoration: none;
  color: #eee;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #00c6ff;
}

/* Canvas Hintergrund */
#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero-text {
  position: relative;
  z-index: 1;
}

/* Spezieller Abstand für Features-Section */
#features {
  padding-top: 250px; /* verhindert Überlappung mit Hero */
  padding-bottom: 80px; /* optional: Abstand nach unten */
}

/* Hero */
.hero {
  min-height: calc(100vh - 70px);
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px 20px 40px;
  overflow: hidden;
  background: linear-gradient(135deg, #1c1c1c, #111);
}

.hero-text {
  position: relative;
  z-index: 1;
  max-width: 700px;
  transform: translateY(0);
  opacity: 0;
  transition: all 1s ease-out;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #00c6ff, #0071e3, #00c6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  background-size: 200% 100%;
  animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #ccc;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  font-weight: 700;
}

/* Buttons */
.btn-primary {
  background-color: #00c6ff;
  color: #111;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s, transform 0.3s;
  display: inline-block;
}

.btn-primary:hover {
  background-color: #0071e3;
  color: #fff;
  transform: scale(1.03);
}

/* Sections */
section {
  padding: 80px 20px;
  text-align: center;
}

/* Abwechselnde Section-Hintergründe */
.section-1 {
  background: #111;
}
.section-2 {
  background: #181818;
}
.section-3 {
  background: #1a1a1a;
}
.section-4 {
  background: #161616;
}

/* Feature Cards & Steps */
.feature-cards,
.steps {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* Einheitliche Card-Struktur */
.card,
.step {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Inhalt oben ausrichten */
  background: #1e1e1e;
  padding: 30px;
  border-radius: 20px;
  max-width: 300px;
  min-height: 220px; /* Einheitliche Höhe für alle Cards */
  opacity: 0;
  position: relative;
  z-index: 1;
  cursor: pointer;
  transform: scale(1);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.card.visible,
.step.visible {
  opacity: 1;
}

.card:hover,
.step:hover {
  transform: scale(1.05);
}

/* Überschrift immer gleich hoch */
.card h3,
.step h3 {
  min-height: 3rem; /* Fixe Höhe für Titel (einschließlich Icon) */
  margin-bottom: 15px; /* Abstand zum Text */
  font-size: 1.5rem;
  background: linear-gradient(90deg, #00c6ff, #0071e3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* Text immer darunter mit gleichem Abstand */
.card p,
.step p {
  color: #ccc;
  line-height: 1.6;
  margin-top: 0;
  flex-grow: 1; /* füllt den Rest der Card gleichmäßig */
}

/* Get Started Section */
#get-started {
  padding: 120px 20px 80px 20px;
}

#get-started h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #00c6ff, #0071e3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

#get-started p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #ccc;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
  background: #111;
  color: #ccc;
  text-align: center;
  padding: 40px 20px;
}

/* Scroll Animation */
[data-animate] {
  opacity: 0;
}
[data-animate].visible {
  opacity: 1;
  transition: opacity 0.8s ease-out;
}

/* FAQ */
#faq {
  padding: 100px 20px;
  background: #161616;
  text-align: center;
}

.faq-item {
  max-width: 800px;
  margin: 20px auto;
  text-align: left;
  border-bottom: 1px solid #333;
  padding-bottom: 15px;
}

.faq-question {
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  padding-right: 20px;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  font-size: 1rem;
  color: #ccc;
  line-height: 1.5;
  transition: max-height 0.5s ease, opacity 0.5s ease, margin-top 0.5s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
  margin-top: 10px;
}

/* ---------------------- */
/* RESPONSIVE DESIGN */
/* ---------------------- */

/* Mobile Anpassungen */
@media (max-width: 600px) {
  nav {
    padding: 0 20px;
  }
  nav .logo {
    font-size: 1.2rem;
  }
  nav ul {
    gap: 15px;
  }

  .hero {
    min-height: 50vh; /* nicht zu klein */
    padding-top: 20px;
    padding-bottom: 60px; /* ausreichend Abstand zum nächsten Abschnitt */
  }

  .hero-text h1 {
    font-size: 1.6rem;
    line-height: 1.2;
  }
  .hero-text p {
    font-size: 1rem;
  }

  .feature-cards,
  .steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
  }
  .card,
  .step {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Inhalte oben ausrichten */
    background: #1e1e1e;
    padding: 30px;
    border-radius: 20px;
    max-width: 300px;
    width: 100%;
    flex: 1 1 300px; /* sorgt dafür, dass alle Cards die gleiche Höhe haben */
    box-sizing: border-box;
    opacity: 0;
    position: relative;
    z-index: 1;
    cursor: pointer;
    transform: scale(1);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  }
}

/* Mobile: Hero etwas größer */
@media (max-width: 600px) {
  .hero {
    min-height: 80vh; /* größer als vorher */
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .hero-text h1 {
    font-size: 1.8rem; /* optional: etwas größere Überschrift */
  }

  .hero-text p {
    font-size: 1.1rem; /* optional: Text etwas größer */
  }
}

/* Features auf Mobil etwas weiter unten */
@media (max-width: 767px) {
  #features {
    margin-top: -200px; /* Abstand unter Hero */
  }
}

/* Tablet */
@media (min-width: 600px) and (max-width: 899px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }
  .feature-cards,
  .steps {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
  }
  .card,
  .step {
    max-width: 45%;
  }
}

/* Desktop */
@media (min-width: 900px) {
  .hero-text h1 {
    font-size: 3rem;
  }
  .feature-cards,
  .steps {
    justify-content: center;
    gap: 40px;
  }
  .card,
  .step {
    max-width: 300px;
  }
}

/* Burger Icon */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: #eee;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Desktop Navigation */
.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  transition: transform 0.3s ease-in-out;
}

.nav-links li a {
  color: #eee;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #00c6ff;
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
  .burger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    background-color: #1a1a1a;
    flex-direction: column;
    align-items: flex-start; /* Menü linksbündig */
    justify-content: flex-start;
    transform: translateX(100%);
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    padding-top: 60px; /* Abstand oben für Burger/X */
    padding-left: 20px; /* Abstand links für erste Items */
  }

  .nav-links.active {
    transform: translateX(0);
    opacity: 1;
  }

  .nav-links li {
    margin: 10px 0; /* kleinerer Abstand */
  }

  .nav-links li a {
    font-size: 1.2rem;
  }

  /* Burger Animation */
  .burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  .burger.toggle .line2 {
    opacity: 0;
  }
  .burger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}

/* Desktop: Spacer anzeigen */
.spacer-desktop {
  height: 27px;
}

/* Mobile: Spacer ausblenden */
@media (max-width: 767px) {
  .spacer-desktop {
    display: none;
  }
}
