* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Open Sans', sans-serif; background: #0f0f0f; color: #f5f5f5; overflow-x: hidden; }

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  background: url('../assets/images/banner.png') center center/110% no-repeat;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.5);
  z-index: 0;
  pointer-events: none;
}

#hero-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  z-index: 2;
  transition: all 0.4s ease;
}

#hero-sub {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  z-index: 3;
  transition: all 0.4s ease;
}

#scroll-btn {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  border-radius: 10px;
  border: none;
  background: #ff3f3f;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.scroll-header {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 120px;
  background: rgba(0,0,0,0.4);
  border-radius: 20px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.scrolled .scroll-header { opacity: 1; }

/* Hero bei Scroll */
body.scrolled #hero-title {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  z-index: 3;
}

body.scrolled #hero-sub { opacity: 0; }

body.scrolled #scroll-btn {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  z-index: 1000;
}

.hero h1 {
  color: #fff;
  font-size: 4rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.hero p {
  color: #fff;
  font-size: 1.5rem;
  text-shadow: 0 1px 5px rgba(0,0,0,0.7);
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.hero button {
  background: #ff3f3f;
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: 0.3s;
}

.hero button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #ff3f3f;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 5rem 2rem;
  gap: 2rem;
}

body.contact-page .features a {
  color: #ff3f3f;
}

body.contact-page .features a:hover {
  color: #fff;
}

.card {
  display: block;
  background: #1a1a1a;
  border-radius: 20px;
  padding: 2rem;
  width: 280px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  text-decoration: none;
  color: #f5f5f5;
  perspective: 1000px; 
}

.card:hover {
  transform: rotateY(10deg) translateY(-10px);
  box-shadow: 0 15px 40px rgba(255,63,63,0.6);
}

.card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 1rem;
  transition: transform 0.5s ease;
}

.card:hover img {
  transform: rotateY(180deg) scale(1.1);
}

.social { display: flex; justify-content: center; gap: 2rem; margin: 3rem 0; }
.social a { color: #fff; font-size: 2rem; transition: transform 0.3s, color 0.3s; }
.social a:hover { color: #ff3f3f; transform: scale(1.2); }

.timeline {
  position: relative;
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.center img {
  width: 400px; /* Skin Größe */
  height: auto;
  z-index: 2;
  position: relative;
}

/* Nodes */
.node {
  position: absolute;
  width: 200px;
  padding: 1rem;
  background: rgba(20,20,20,0.9);
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.5s ease;
}

.node.visible {
  opacity: 1;
  transform: scale(1);
}

/* Node Positionen */
.top-left { top: 5%; left: 10%; }
.top-right { top: 5%; right: 10%; }
.bottom-left { bottom: 5%; left: 10%; }
.bottom-right { bottom: 5%; right: 10%; }
.top-center { top: 5%; left: 45%; }
.bottom-center { bottom: 5%; left: 45%; }

/* Linien von Skin zu Nodes */
.center::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 100%;
  background: rgba(255,255,255,0.2);
  transform: translate(-50%, -50%);
  z-index: 1;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#particles {
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  pointer-events: none; /* Klicks durchlassen */
  z-index: 0;           /* immer hinter allem */
}

/* Content immer darüber */
.timeline, .hero, .features {
  position: relative;
  z-index: 1;
}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(50px); } to { opacity:1; transform: translateY(0); } }

@media(max-width: 768px){ 
  .hero h1 { font-size: 3.5rem; } 
  .hero p { font-size: 1.2rem; } 
  .features { flex-direction: column; align-items: center; }
}