/* Entfernt Standard Abstände vom Browser damit das Layout überall gleich startet. */
* {
  box-sizing: border-box; /* padding und border werden in Breite und Höhe eingerechnet */
  margin: 0;
  padding: 0;
}

/* hier sind die grundeinstellungen für die ganze Seite */

body {
  font-family: Arial, Helvetica, sans-serif; /* schriftart */
  background-color: #f3f1ed; /* hintergrundfarbe beige: #f3f1ed grün: #dfe7dc hellgrau: #808080 */
  color: #1f1f1f; /* schriftfarbe */
  line-height: 1.5; /* zeilenabstand */
}

/* container zentriert alles und begrenzt die breite damit Seite nicht zu breit wird.*/
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* für den header/navigation*/
header {
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
}

.nav {
  display: flex; /* elemente nebeneinander */
  justify-content: space-between; /* Platz zwischen Logo und Menü */
  align-items: center; /* vertikal mittig */
  padding: 18px 0;
}

.logo a {
  text-decoration: none;
  color: #1f1f1f;
  font-size: 28px;
  font-weight: bold;
}

.nav ul {
  list-style: none; /* entfernt Punkte in der Liste */
  display: flex;
  gap: 25px; /* Abstand zwischen den Menüpunkten */
}

.nav a {
  text-decoration: none;
  color: #1f1f1f;
  font-size: 16px;
}

/* hover = wenn man mit der Maus darüber fährt */
/* .active = aktuelle Seite in der Navigation */
.nav a:hover,
.nav a.active {
  color: #9b5d2d;
}

/* ===== STARTSEITE / HERO-BEREICH ===== */
.hero {
  min-height: 85vh; /* nimmt fast die ganze Bildschirmhöhe ein */
  display: flex;
  align-items: center;
  padding: 60px 0;
}

.hero-content {
  display: grid; /* modernes Raster-Layout */
  grid-template-columns: 1.1fr 1fr; /* linke Seite leicht breiter als rechte */
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  font-size: 64px;
  margin-bottom: 20px;
}

.line {
  width: 320px;
  height: 5px;
  background-color: #c86c2b;
  margin-bottom: 30px;
  border-radius: 20px;
}

.hero-text p {
  font-size: 24px;
  max-width: 520px;
  margin-bottom: 30px;
}

.hero-text ul {
  margin-left: 25px;
  font-size: 26px;
}

.hero-text li {
  margin-bottom: 14px;
}

/* Rechte Bildseite auf der Startseite */
.hero-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.small-image-box,
.big-image-box {
  border-bottom: 1px solid #cfcfcf;
  padding-bottom: 12px;
}

.small-image-box {
  text-align: center;
}

.small-image-box img {
  width: 100%;
  max-width: 180px;
  height: auto;
  object-fit: contain; /* Bild wird vollständig angezeigt */
}

.big-image-box {
  grid-column: 1 / 3; /* grosses Bild geht über beide Spalten */
  text-align: center;
  margin-top: 10px;
}

.big-image-box img {
  width: 100%;
  max-width: 560px;
  height: auto;
}

/* KOPFBEREICH FÜR UNTERSEITEN */
.page-header {
  padding: 70px 0 30px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 46px;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 18px;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
}

/* PRODUKTSEITE */
.products {
  padding: 20px 0 80px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 gleich breite Spalten */
  gap: 25px;
}

.card {
  background-color: #ffffff;
  border: 1px solid #e5ddd2;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.card img {
  width: 100%;
  max-width: 220px;
  height: 220px;
  object-fit: contain;
  margin-bottom: 15px;
}

.card h2,
.card h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.card p {
  color: #555;
  font-size: 16px;
  margin-bottom: 12px;
}

.price {
  display: inline-block;
  font-weight: bold;
  color: #9b5d2d;
  font-size: 20px;
}


/* Button Link für Produktanfragen per E-Mail. Technisch ist es ein <a>-Link mit mailto:, optisch sieht es aber wie ein Button aus. */
.mail-button {
  display: inline-block;
  background-color: #9b5d2d;
  color: white;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: bold;
  margin-top: 6px;
}

.mail-button:hover {
  background-color: #7d4a22;
}

/* ÜBER UNS SEITE */
.info-section {
  padding: 20px 0 80px 0;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.info-box {
  background-color: #ffffff;
  border: 1px solid #e5ddd2;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 25px;
}

.info-box h2 {
  font-size: 30px;
  margin-bottom: 15px;
}

.info-box p {
  font-size: 18px;
  color: #444;
  margin-bottom: 12px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 25px;
}

.gallery-item {
  background-color: #ffffff;
  border: 1px solid #e5ddd2;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}

.gallery-item img {
  width: 100%;
  max-width: 220px;
  height: 220px;
  object-fit: contain;
}

/* "KONTAKT"SEITE */
.contact {
  padding: 20px 0 80px 0;
}

.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contact-info,
.contact-form {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #e5ddd2;
}

.contact-info h2,
.contact-form h2 {
  margin-bottom: 15px;
  font-size: 28px;
}

.contact-info p {
  margin-bottom: 10px;
}

form {
  display: flex;
  flex-direction: column; /* Felder untereinander */
  gap: 12px;
}

input,
textarea {
  padding: 12px;
  border: 1px solid #c9c1b7;
  border-radius: 8px;
  font-size: 16px;
  font-family: Arial, Helvetica, sans-serif;
}

textarea {
  min-height: 120px;
  resize: vertical; /* benutzer kann Höhe verändern */
}

button {
  padding: 12px;
  border: none;
  border-radius: 8px;
  background-color: #9b5d2d;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

button:hover {
  background-color: #7d4a22;
}

/*footer */
footer {
  background-color: #1f1f1f;
  color: white;
  text-align: center;
  padding: 20px 0;
  font-size: 15px;
}

/* sorgt dafür dass die Webseite auf kleineren Bildschirmen "schöner" aussieht.*/
@media (max-width: 950px) {
  .hero-content,
  .product-grid,
  .contact-box,
  .two-columns,
  .gallery {
    grid-template-columns: 1fr; /* nur noch eine Spalte */
  }

  .hero-text h1 {
    font-size: 46px;
  }

  .hero-text p,
  .hero-text ul {
    font-size: 20px;
  }
}

@media (max-width: 700px) {
  .nav {
    flex-direction: column; /* Navigation untereinander */
    gap: 15px;
  }

  .nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    min-height: auto;
  }

  .hero-text h1 {
    font-size: 38px;
  }

  .line {
    width: 220px;
  }

  .hero-images {
    grid-template-columns: 1fr;
  }

  .big-image-box {
    grid-column: 1 / 2;
  }

  .page-header h1 {
    font-size: 34px;
  }
}
