/* Allgemeine Layout-Einstellungen */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
  color: #333;
}

main {
  padding-bottom: 1cm;
}

/* Header und Navigation */
header {
  background: linear-gradient(135deg, #2c5f7c 0%, #4a7c95 100%);
  color: white;
  text-align: center;
  padding: 30px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
}

nav {
  background-color: #2c5f7c;
  text-align: center;
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 20px;
  padding: 10px 20px;
  background-color: rgba(255,255,255,0.1);
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 500;
}

nav a:hover,
nav a:focus, 
nav a.active {
  background-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

/* Footer */
footer {
  background-color: #1a4a5c;
  color: white;
  text-align: center;
  padding: 30px 0;
}

.footer-content {
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffc107;
}

.footer-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px; /* Abstand zwischen Elementen */
}

.footer-info span {
  white-space: nowrap; /* verhindert unnötige Umbrüche */
}


/* Produktübersicht */
.produkte {
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

.produkte h1 {
  text-align: center;
  margin-bottom: 10px;
}

.produkte p {
  text-align: center;
  margin-bottom: 30px;
}

/* Grid Layout */
.produkt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* Produktkarte */
.produkt-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.produkt-card img {
  width: 100%;
  height: auto;
}

.produkt-card h2 {
  font-size: 1.2rem;
  margin: 15px;
}

.produkt-card ul {
  margin: 0 15px 15px 15px;
  padding: 0;
  list-style: none;
}

.produkt-card ul li {
  margin-bottom: 5px;
}

.produkt-card p {
  margin: 0 15px 15px 15px;
  font-weight: bold;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 15px;
  text-align: center;
  border-radius: 5px;
  text-decoration: none;
  margin: 15px;
  transition: background 0.3s ease;
}

.btn-primary {
  background: #0077cc;
  color: white;
}

.btn-primary:hover {
  background: #005fa3;
}

/* Mobile Optimierung für Bildschirme <= 768px */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.8rem;
  }

  nav a {
    margin: 0 10px;
    padding: 8px 15px;
  }
  
  .footer-info {
    flex-direction: column;
    align-items: center;
    gap: 1px;
  }
}

/* Mobile Optimierung für Bildschirme <= 600px */
@media (max-width: 600px) {
  /* Container-Padding reduzieren */
  .container,
  .form-container,
  .item-list {
    padding: 20px 10px;
  }

  header h1 {
    font-size: 1.5rem;
  }

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

  /* Formularelemente volle Breite */
  input,
  select,
  textarea,
  button {
    font-size: 1rem;
    width: 100%;
  }

  .footer-info {
    flex-direction: column;
    align-items: center;
    gap: 0; /* Kein extra Abstand */
    line-height: 1.2; /* Kompaktere Zeilenhöhe */
  }

  .footer-info p {
    margin: 2px 0;
    font-size: 0.9rem;
  }

  footer {
    padding: 15px 10px;
  }
}

/* Hauptinhaltsbereich auf Desktop mit mehr linkem Rand */
@media (min-width: 601px) {
  main, section {
    max-width: 1100px;  /* etwas schmaler als vorher */
    margin: 0 auto;     /* zentriert */
    padding-left: 60px; /* zusätzlicher Abstand links */
    padding-right: 40px;/* etwas Abstand rechts */
    background: #fff;   /* falls der Bereich weiß bleiben soll */
  }
}
