/* Grundlayout */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #fff;
  color: #000;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  flex-wrap: wrap; /* wichtig für mobile */
}

.logo {
  font-size: 28px;
  font-weight: bold;
  font-family: "Impact", "Arial Black", sans-serif;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #000;
  font-weight: bold;
}

/* Banner mit Lauftext */
.banner {
  background-color: black;
  overflow: hidden;
  white-space: nowrap;
}

.banner p {
  display: inline-block;
  color: red;
  font-weight: bold;
  font-size: 20px;
  padding: 10px;
  animation: marquee 10s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Produkte nebeneinander */
.produkte {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 40px;
  flex-wrap: wrap; /* sorgt dafür, dass Boxen umbrechen */
}

.produkt {
  background: #f0f0f0;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  width: 250px;
  transition: transform 0.2s;
}

.produkt:hover {
  transform: scale(1.05);
}

.produkt img {
  width: 100%;
  border-radius: 10px;
}

.produkt h2 {
  margin: 15px 0 10px;
}

/* Detailseiten */
.detail {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  padding: 40px;
}

.detail .text {
  flex: 2;
}

.detail .bild {
  flex: 1;
}

.detail img {
  width: 100%;
  border-radius: 10px;
}

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

footer a {
  color: #ccc;
  margin: 0 10px;
  text-decoration: none;
}

footer a:hover {
  color: red;
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
  header {
    flex-direction: column; /* Logo und Navigation untereinander */
    text-align: center;
  }

  nav a {
    display: inline-block;
    margin: 10px;
  }

  .detail {
    flex-direction: column; /* Text und Bild untereinander */
  }
}

@media (max-width: 600px) {
  .produkte {
    flex-direction: column; /* Produkte untereinander */
    align-items: center;
  }

  .produkt {
    width: 90%; /* fast volle Breite */
  }

  .banner p {
    font-size: 16px; /* kleiner auf Smartphones */
  }
}
