/* index.css – Zusätzliche Styles für die Startseite */

/* Banner */
.index-banner {
  position: relative;
  width: 100%;
  height: 350px;
  background: url('../img/TMA_Supermarkt.webp') no-repeat center center/cover;
  border-radius: 10px;
  margin-bottom: 30px;
}
.index-banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
}
.index-banner h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 42px;
  text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.7);
  margin: 0;
}

/* Abschnittsüberschriften */
.index-section-title {
  font-size: 30px;
  color: #007c40;
  border-bottom: 2px solid #00a052;
  padding-bottom: 10px;
  margin-bottom: 25px;
  text-align: center;
}

/* Textabschnitte */
.index-paragraph {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

/* Info-Karten (falls verwendet) */
.index-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.index-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.index-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.index-card h3 {
  font-size: 22px;
  color: #333;
  margin-bottom: 10px;
}
.index-card p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

/* Newsletter-Bereich */
.newsletter-section {
  background: #00a052;
  color: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 40px;
}
.newsletter-section h3 {
  font-size: 26px;
  margin-bottom: 20px;
}
.newsletter-section input[type="email"] {
  width: 60%;
  padding: 14px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  margin-right: 15px;
}
.newsletter-section button {
  background: #fff;
  color: #00a052;
  padding: 14px 24px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}
.newsletter-section button:hover {
  background: #f0f0f0;
}

/* Extra Füllbereich (Mehr über uns) */
.index-filler {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}
.index-filler h3 {
  font-size: 24px;
  color: #007c40;
  margin-bottom: 15px;
  border-bottom: 2px solid #00a052;
  padding-bottom: 8px;
}
.index-filler p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 15px;
  text-align: justify;
}

/* Footer-spezifisch */
.index-footer {
  font-size: 14px;
  text-align: center;
  padding: 20px;
  background: #008c3a;
  color: #fff;
}
.index-footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
}
.index-footer a:hover {
  text-decoration: underline;
}

/* Zusätzliche Abstandshalter */
.index-spacing {
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Responsives Verhalten */
@media (max-width: 600px) {
  .index-banner {
    height: 250px;
  }
  .index-banner h1 {
    font-size: 32px;
  }
  .index-section-title {
    font-size: 24px;
  }
  .index-card h3 {
    font-size: 20px;
  }
  .newsletter-section input[type="email"] {
    width: 100%;
    margin-bottom: 15px;
  }
  .newsletter-section button {
    width: 100%;
  }
}

/* Automatische Slideshow */
/* Angepasste Breite und Höhe, um die Bilder kleiner darzustellen */
.carousel-container {
  position: relative;
  overflow: hidden;
  margin: 20px auto;
  border-radius: 10px;
}
.slider-container {
  display: flex;
  transition: transform 0.5s ease;
}
.slider-container img {
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
  margin-left: 5px;
  max-height: 300px;
  margin-right: 5px;
}

/* Service-Karten */
.service-section {
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 20px;
}
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.service-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.service-card h3 {
  font-size: 20px;
  color: #007c40;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}

/* Optionale Darstellung: Drei Bilder nebeneinander (statisch) */
/* Falls Du eine alternative, statische Darstellung der drei Bilder möchtest */
.three-image-show {
  margin: 30px auto;
  max-width: 1200px;
  padding: 0 20px;
}
.three-images-container {
  display: flex;
  gap: 20px;
  justify-content: center;
}
.three-images-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  /* Optional: flex: 1; */
}
