/*
 * Grundlegendes Layout und Farbschema für die Webseite des Verkaufsanhängers
 */

:root {
  --primary-color: #b71c1c; /* kräftiges Rot für Buttons und Highlights */
  --primary-color-hover: #c62828;
  --secondary-color: #303030; /* dunkles Grau für Header und Footer */
  --background-color: #f5f5f5; /* helle Fläche für den Seitenhintergrund */
  --text-color: #333333;
}

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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--background-color);
  color: var(--text-color);
}

/* Allgemeine Containerklasse zur Begrenzung der Breite */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================
   HEADER & NAVIGATION (FIX)
   ========================= */

.header {
  background-color: var(--secondary-color);
  color: #ffffff;
  padding: 0.8rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Logo links, Navigation rechts */
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo (Bild) */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 48px;
  width: auto;
  display: block;
}

/* Navigation */
.nav {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav a {
  color: #ffffff;
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  transition: background-color 0.3s;
  font-weight: 600;
}

.nav a:hover {
  background-color: var(--primary-color);
}

/* =========================
   HERO-Bereich
   ========================= */

.hero {
  position: relative;
  text-align: center;
}

.hero-image {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}

.hero-overlay h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero-overlay p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.btn {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 0.7rem 1.5rem;
  text-decoration: none;
  border-radius: 4px;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: var(--primary-color-hover);
}

/* =========================
   Sektionen
   ========================= */

.section {
  padding: 3rem 0;
}

.section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--secondary-color);
}

.flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.flex .col {
  flex: 1;
  min-width: 250px;
}

.equipment-list,
.price-list {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.equipment-list li::before,
.price-list li::before {
  content: "• ";
  color: var(--primary-color);
  margin-right: 0.5rem;
}

/* =========================
   Galerie
   ========================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* =========================
   Kontaktformular
   ========================= */

.contact-form {
  max-width: 600px;
  margin: 0 auto 2rem;
}

.form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.3rem;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  padding: 0.8rem;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 1rem;
}

.contact-info {
  text-align: center;
}

/* =========================
   Footer
   ========================= */

.footer {
  background-color: var(--secondary-color);
  color: #ffffff;
  text-align: center;
  padding: 1rem 0;
}

/* =========================
   Responsive Anpassungen
   ========================= */

@media (max-width: 768px) {
  /* Header wird untereinander, aber sauber */
  .header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    width: 100%;
  }

  .nav a {
    width: 100%;
  }

  .hero-overlay h2 {
    font-size: 2rem;
  }

  .hero-overlay p {
    font-size: 1rem;
  }
}
