/* ============================================================
   FEWO MEIWES – Style.css
   Saubere, responsive Gestaltung (Desktop, Tablet, Mobile)
   Autor: Abi | 2025
============================================================ */

/* === RESET & BASIS === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
  padding-top: 80px; /* Platz für fixe Navbar */
}

/* === CONTAINER === */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ============================================================
   NAVBAR
============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: #2c7a7b;
  color: #fff;
  display: flex;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.6rem;
  font-weight: bold;
  color: #fff;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #d4f0f0;
}

/* === Dropdown === */
.nav-links li {
  position: relative;
}

.nav-links li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #2c7a7b;
  border-radius: 6px;
  padding: 10px 0;
  list-style: none;
  min-width: 190px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.nav-links li:hover > ul {
  display: block;
}

.nav-links li ul li a {
  display: block;
  padding: 10px 20px;
  color: #fff;
}

.nav-links li ul li a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #b2dfdf;
}

/* === Mobile Navbar === */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 2rem;
  color: #fff;
}

@media (max-width: 850px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #2c7a7b;
    display: none;
    padding: 20px 0;
  }

  .nav-links.active {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
  }

  .nav-links li ul {
    position: static;
    box-shadow: none;
    background: none;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   HERO SECTION
============================================================ */
.hero {
  height: 85vh;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.3)),
              url('../img/haus.jpg') center/cover no-repeat;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* ============================================================
   BUTTONS
============================================================ */
.button {
  background: #2c7a7b;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.button:hover {
  background: #225e5f;
}

/* ============================================================
   WOHNUNGEN-GRID (Startseite & Übersicht)
============================================================ */
.wohnungen-preview,
.wohnungen {
  padding: 80px 0;
  text-align: center;
}

.wohnungen h2,
.wohnungen-preview h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}

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

.wohnung {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  text-decoration: none;
  color: #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wohnung:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.wohnung img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.wohnung h3 {
  margin: 15px 0 8px;
}

.wohnung p {
  padding: 0 15px 20px;
  color: #555;
}

/* ============================================================
   ABOUT SECTION
============================================================ */
.about {
  padding: 80px 0;
  background: #f9f9f9;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.about-content img {
  flex: 1;
  width: 100%;
  max-width: 450px;
  border-radius: 8px;
}

.about-content div {
  flex: 2;
}

/* ============================================================
   CTA SECTION
============================================================ */
.cta {
  background: #2c7a7b;
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}

.cta h2 {
  margin-bottom: 20px;
}

/* ============================================================
   FOOTER
============================================================ */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* ============================================================
   RESPONSIVE OPTIMIERUNG
============================================================ */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .about-content {
    flex-direction: column;
    text-align: center;
  }
  .cta-booking {
  text-align: center;
  margin: 60px 0;
}

.booking-btn {
  background: #ff5a5f;
  color: #fff;
  padding: 16px 32px;
  font-size: 1.1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
  display: inline-block;
}

.booking-btn:hover {
  background: #e74c3c;
  transform: scale(1.05);
}

}
