/*
  Farbpalette
  -----------
  Diese Variablen sorgen für ein stimmiges, natürliches Farbschema.
  Du kannst sie anpassen, falls du andere Nuancen möchtest.
*/

:root {
  --header-bg: #829885;    /* heller, natürlicher Grünton */
  --accent: #516d5b;       /* dunkleres Grün für Buttons, Hover etc. */
  --main-bg: #eae6e3;      /* sehr helles Beige als Seitenhintergrund */
  --text-color: #3f3b38;   /* warme Graubraun-Nuance für den Fließtext */
  --white: #ffffff;        /* echtes Weiß */
}

/* Grundlegendes Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 
  Body- & Seiten-Layout 
  ---------------------
  - Einheitliches Hintergrundbild (helles Beige)
  - Einheitliche Schriftfarbe
  - Konsistente Typografie
*/
body.body-bg {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  color: var(--text-color);
  background-color: var(--main-bg);
  line-height: 1.6;
}

/* Header-Bereich */
header {
  background-color: var(--header-bg);
  color: var(--white);
}

/* Container: max. Breite zentriert, padding */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

/* Header-Aufbau */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

/* Logo */
.logo h1 {
  margin: 0;
  font-weight: 600;
  font-size: 1.8rem;
}

/* Kontaktinfo im Header */
.contact-info {
  text-align: right;
  margin-right: 20px;
}
.contact-info p {
  margin: 0;
  font-size: 0.9rem;
}

/* Navigation */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
nav ul li {
  margin-left: 20px;
}
nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}
nav ul li a:hover,
nav ul li a.active {
  color: var(--accent);
}

/* Mobile-Menü-Button (Burger-Icon) */
.menu-toggle {
  display: none;
  cursor: pointer;
}
.menu-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 4px auto;
  background-color: var(--white);
  transition: 0.3s;
}

/* -----------------------------
   Hero-Bereich (großes Bild)
   ----------------------------- */
.hero {
  min-height: 100vh;
  background: url('images/hauptfoto.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Dunkles Overlay, damit Text lesbar bleibt */
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  z-index: 0;
}

/* Inhaltsblock im Hero */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
}
.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--white); /* Titel in Weiß */
}
.hero-content p {
  font-size: 1.15rem;
  margin-bottom: 20px;
  line-height: 1.5;
  color: var(--white);
}

/* Hero-Buttons */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* Buttons (global) */
.button {
  display: inline-block;
  background-color: var(--accent);
  padding: 12px 24px;
  border-radius: 4px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}
.button:hover {
  background-color: #78a87c; /* etwas helleres Dunkelgrün */
}

/* Haupttitel, Untertitel, etc. */
h2, h3 {
  color: var(--header-bg);
}

/* Info-Section & Features */
.info, .features {
  background-color: var(--white);
  margin-bottom: 40px;
  border-radius: 8px;
  padding: 20px;
}
.info p, .features p {
  font-size: 1rem;
  color: var(--text-color);
}

/* 
  Highlights / Features (Karten)
  - Alle Karten so ausrichten, dass der Button am Kartenboden sitzt
*/
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

/* Jede Karte: 
   - Display flex, col direction
   - Button unten ausrichten via "justify-content: space-between" 
*/
.feature-item {
  background: var(--main-bg);
  flex: 1 1 200px;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-item h3 {
  color: var(--header-bg);
  margin-bottom: 10px;
  font-size: 1.2rem;
}
.feature-item p {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* Footer */
footer {
  background-color: var(--header-bg);
  color: var(--white);
  text-align: center;
  padding: 10px 0;
  margin-top: 40px;
}
.footer-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* 
  Responsive Design bis max-width: 768px
  (Handy, Tablet hochkant)
*/
@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
    justify-content: center;
  }
  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--header-bg);
  }
  nav ul li {
    margin: 10px 0;
    text-align: center;
  }
  .menu-toggle {
    display: block;
  }
  nav ul.active {
    display: flex;
  }
  .contact-info {
    margin-bottom: 10px;
  }

  .hero-content h2 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }

  .features-grid {
    flex-direction: column;
  }
  .feature-item {
    margin-bottom: 20px;
  }
}

/* ============== Häuser-Grid (haeuser.html) ============== */
.haeuser-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* Abstand zwischen den Karten */
}
.haus {
  flex: 1 1 250px; /* mind. 250px breit */
  background-color: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-align: center;
  cursor: pointer; /* Hand-Cursor beim Hover */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.haus:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 8px rgba(0,0,0,0.15);
}
.haus img.haus-preview {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}
.haus h3 {
  margin-top: 10px;
  margin-bottom: 8px;
  color: #2c3e50;
}
.haus p {
  font-size: 0.95rem;
  color: #555;
}

/* ============== Modal-Overlay ============== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; 
  top: 0;
  width: 100%; 
  height: 100%;
  overflow: auto; 
  background-color: rgba(0,0,0,0.8);
}
.modal-content {
  background-color: #fefefe;
  margin: 50px auto;
  padding: 20px;
  width: 90%;
  max-width: 900px;
  position: relative;
  border-radius: 5px;
}
.close {
  color: #aaa;
  font-size: 30px;
  font-weight: bold;
  position: absolute;
  top: 15px;
  right: 25px;
  cursor: pointer;
  transition: color 0.3s ease;
}
.close:hover {
  color: #333;
}
.modal-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.modal-images img {
  width: 200px;
  height: auto;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.modal-images img:hover {
  transform: scale(1.05);
}
/* ================= Grundstueck-Grid ================= */
.grundstueck-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}
.foto-item {
  flex: 1 1 250px; /* mindestens 250px breit */
  text-align: center;
}
.grundstueck-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.foto-item p {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #555;
}
@media (max-width: 768px) {
  .grundstueck-grid {
    flex-direction: column;
    align-items: center;
  }
  .foto-item {
    width: 100%;
    max-width: 400px;
  }
}
/* =================================================== */
/* Angelshop-Hinweisbox */
.angelshop-info {
  background-color: #e8f5e9;
  padding: 10px;
  border-left: 4px solid #4caf50;
  margin-bottom: 1rem;
}

.angelshop-info a {
  color: #1b5e20;
  text-decoration: underline;
}


/* Responsive Modal-Anpassungen */
@media (max-width: 768px) {
  .modal-images img {
    width: 100%;
    max-width: 300px;
  }
}
