/* Globale Einstellungen */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-family: 'Open Sans', sans-serif;
  color: #333;
  line-height: 1.6;
  background-image: url('../images/industry-406905_1280.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  overflow-x: hidden;
}

/* Fixierte Navigationsleiste oben */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.top-nav .logo {
  font-weight: bold;
  color: #C62828;
}

.top-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.top-nav li {
  font-size: 0.95rem;
}

.top-nav a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}

.top-nav a:hover {
  color: #FF5722;
}

/* Scrollcontainer unter der Navigation */
.scroll-container {
  margin-top: 100px; /* von 80 auf 100 erhöht */
  padding: 2rem;
}

/* Basis für alle Cards */
.card {
  background-color: rgba(255, 255, 255, 0.80); /* Leicht transparent */
  margin-bottom: 30px; /* Einheitlicher Abstand zwischen ALLEN Cards */
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
  max-height: none; /* Entfernt maximale Höhe → damit kein Scrollbalken im Card */
  overflow-y: visible; /* Entfernt Scrollbalken */
}

/* Für Einzel-Cards (z. B. den ersten) ohne Scroll */
.card:first-of-type,
.card.hero {    
  max-height: 400px;
  overflow-y: auto;
}

/* Hero-Bereich */
.hero {
  text-align: center;
  max-width: 950px;
  margin: 0 auto 2rem auto;
}

/* Überschriften */
h2 {
  color: #C62828;
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-top: 30px;
}

.footer a {
  color: #FF5722;
  text-decoration: none;
}

/* Neue Grid-Struktur für zwei bündige Cards nebeneinander */
.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 90px; /* Abstand zwischen den beiden Cards */
  max-width: 950px;
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: 0;
}

/* Entfernt überflüssigen Abstand von umgebenden Cards */
.grid-container,
.grid-container + *,
.card + .grid-container,
.grid-container + .card {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Sorgt dafür, dass nach dem Grid wieder 30px Abstand zum Footer bleibt */
.grid-container + .card.full-width {
  margin-top: 0px;
}

/* Erste große Card belegt beide Spalten */
.card.full-width {
  grid-column: span 2;
}

/* Halbe Cards füllen jeweils eine Spalte */
.card.half-left {
  grid-column: 1 / 2;
}

.card.half-right {
  grid-column: 2 / 3;
}

/* Rot für erste große Überschrift */
.card h1,
.card h2 {
  color: #C62828; /* Dunkles Rot, wie bei anderen Überschriften */
}

/* Responsive Design */
@media (max-width: 768px) {
  .top-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .grid-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card.full-width,
  .card.half-left,
  .card.half-right {
    grid-column: auto;
  }
}

/* Container für die Slideshow */
.slideshow {
  position: relative;
  width: 100%;
  height: 400px; /* Feste Höhe */
  max-width: 100%;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background-color: #000; /* Optional: dunkler Hintergrund für besseren Kontrast */
}

/* Jedes Slide */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  animation: slideShow 35s linear infinite;
}

/* Reihenfolge der Slides */
.slide:nth-child(1) { animation-delay: 0s }
.slide:nth-child(2) { animation-delay: 7s }
.slide:nth-child(3) { animation-delay: 14s }
.slide:nth-child(4) { animation-delay: 21s }
.slide:nth-child(5) { animation-delay: 28s }

/* Animation: Einschalten und Ausschalten */
@keyframes slideShow {
  0% { opacity: 0; }
  10% { opacity: 1; }
  20% { opacity: 0; }
  100% { opacity: 0; }
}

/* Bildunterschrift */
.slide-caption {
  position: absolute;
  bottom: 10px;
  left: 15px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 8px 12px;
  font-size: 1rem;
  border-radius: 5px;
}

