/* Globale Einstellungen & Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  /* Das feste Hintergrundbild */
  background-image: url('images/bg-sonic.webp');
  background-attachment: fixed;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #001233; /* Dunkelblau als Fallback */
  
  font-family: 'Inter', sans-serif;
  color: #f1f5f9; /* Helle Schrift für die transparenten Kacheln */
  line-height: 1.6;
  padding: 40px 20px;
}

/* Haupt-Container zentriert die Inhalte */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Professionelle Milchglas-Boxen (Glassmorphism) */
.glass-box {
  background: rgba(15, 23, 42, 0.75); /* Dunkler Schieferton, 75% deckend */
  backdrop-filter: blur(12px); /* Milchglas-Effekt */
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1); /* Hauchdünner, edler Rahmen */
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Header / Hero */
.hero-section {
  text-align: center;
}

.logo-wrapper {
  max-width: 450px;
  margin: 0 auto 25px auto;
}

.logo-img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.intro-text {
  font-size: 1.25rem;
  font-weight: 500;
  color: #38bdf8; /* Sonic-Hellblau */
  margin-bottom: 15px;
}

.history-text {
  font-size: 1rem;
  color: #cbd5e1;
  text-align: justify;
}

/* Das Zick-Zack-System für die Sektionen */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.project-row {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Dreht die Reihenfolge auf Desktops um (Bild rechts, Text links) */
.row-reverse {
  flex-direction: row-reverse;
}

.project-image {
  flex: 1;
  min-width: 300px;
}

.project-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}

.project-row:hover .project-image img {
  transform: scale(1.02);
}

.project-content {
  flex: 1.2;
}

.project-content h2 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 15px;
}

.project-content p {
  color: #cbd5e1;
  margin-bottom: 25px;
}

/* Call-To-Action Buttons */
.cta-button {
  display: inline-block;
  background: #2563eb; /* Sonic Royal-Blau */
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.cta-button:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

/* Netzwerk Verbund */
.network-section h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #fff;
}

.network-section p {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 15px;
}

.network-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px 25px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.network-links a {
  color: #38bdf8;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.network-links a:hover {
  color: #fff;
}

/* Footer Anordnung */
.footer-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 40px;
  font-size: 0.9rem;
}

.footer-left a, .social-link {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-left a:hover, .social-link:hover {
  color: #fff;
}

.footer-right {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Responsive Anpassungen (Mobile Ansicht) */
@media (max-width: 900px) {
  body {
    padding: 20px 10px;
  }
  
  .glass-box {
    padding: 25px 20px;
  }
  
  .project-row, .row-reverse {
    flex-direction: column; /* Bilder stehen oben, Text unten */
    gap: 20px;
  }
  
  .project-image {
    width: 100%;
    min-width: 100%;
  }

  .hero-section h1 {
    font-size: 1.8rem;
  }

  .footer-section {
    flex-direction: column;
    text-align: center;
  }
}
