.wohnung-row {
  display: flex;
  height: 200px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  position: relative;    /* wichtig für flex-Gegenüberplatzierung */
}

.wohnung-bild {
  width: 35%;
  height: 100%;
  border-right: 1px solid #eee;
  flex-shrink: 0;
}/* ---------------------------------------
   Allgemeines Seitenlayout für casamii
---------------------------------------- */

:root {
  --main-bg: #f4ecdf;
  --accent: #b85c38;
  --highlight: #d9a441;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--main-bg);
  color: #2c2c2c;
}

header {
  height: 300px;
  text-align: center;
  padding: 8vh 1rem 1rem;
  transition: all 0.5s ease;
}

#logo {
  width: 240px;
  max-width: 90%;
  opacity: 1;
  transition: opacity 0.6s ease;
}

#logo-small {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: 100px;
  opacity: 0;
  z-index: 1001;
  transition: opacity 0.6s ease;
}

nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-weight: 600;
  background-color: var(--main-bg);
  padding: 1rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

nav.shadow::after {
  content: "";
  display: block;
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 1px;
  background: rgba(0, 0, 0, 0.15);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

nav a {
  color: var(--accent);
  text-decoration: none;
  font-size: 1rem;
}

main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem 2rem;
  text-align: left;
}

h1 {
  font-size: 2.2rem;
  margin: 0.5rem 0;
  color: var(--accent);
  text-align: center;
}

h2 {
  font-size: 1.4rem;
  color: var(--accent);
  margin-top: 2.5rem;
  text-align: center;
}

p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}


.bild-einfach {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wohnung-details {
  width: 65%;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  overflow: hidden;
}

.wohnung-details h3 {
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.3;
  max-height: 2.6em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adresse {
  font-size: 0.9rem;
  color: #666;
  margin: 0.3rem 0 0.6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.infos {
  font-size: 1rem;
  margin: 0.2rem 0;
}

.kontakt {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.3;
}

/* ============================
   Popup-Fenster für Wohnungsdetails
============================ */

#wohnungs-popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
}



#wohnungs-popup h3 {
  margin-top: 0;
  color: var(--accent);
}

#popup-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 2rem;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

#popup-close:hover {
  color: #000;
}

.popup-bilder {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.popup-bilder img {
  width: calc(25% - 0.5rem);
  height: auto;
  border-radius: 5px;
  cursor: zoom-in;
  transition: transform 0.2s ease;
  z-index: 1;
}

.popup-bilder img:hover {
  transform: scale(2.5);
  z-index: 10;
}

/* ------------------------------
   MOBILE ANPASSUNG: GLOBAL
------------------------------- */
@media (max-width: 768px) {
  header {
    padding: 2vh 1rem 1rem;
  }

  #logo {
    width: 160px;
    height: auto;
  }

  #logo-small {
    width: 120px;
    height: auto;
  }

  nav {
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.9rem;
    justify-content: center;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  main {
    padding: 0 0.5rem;
  }
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 3000;
  }
#nav {
  display: none; /* &#8592; Standardzustand (geschlossen) */
  flex-direction: column;
  align-items: center;
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#nav.nav-open {
  display: flex !important; /* &#8592; Sichtbar bei Toggle */
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 3001;
  }
}


/* ============================
   Fix für Scroll-Probleme auf Mobilgeräten
============================ */
body {
  overflow-y: auto !important;
}

