header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.2rem;
    background-color: rgba(252, 247, 243, 0.4); /* Transparent at the top */
    border-bottom: 1px solid #ccc;
    height: 110px;
    transition: background-color 0.3s ease;
  }
  header.scrolled {
    background-color: rgba(252, 247, 243, 1); /* Solid background when scrolled */
 }
  .header-links a {
    color: #1d2b44;
    text-align: right;
    text-decoration: none;
    white-space: nowrap;
  }

  .dropdown-content a {
     color: #1d2b44;
     padding: 0.5rem 1rem;
     text-decoration: none;
     text-align: right;
  }
  .dropdown-content a:hover {
    background-color: #f0f0f0;
  }
  .dropdown2-content a {
     color: #1d2b44;
     padding: 0.5rem 1rem;
     text-decoration: none;
     text-align: right;
  }
  .dropdown2-content a:hover {
    background-color: #f0f0f0;
  }
  body {
  margin: 0;
  padding: 0;
  width: 100vw;
  box-sizing: border-box;
}
  .search-bar {
background-color: #f5f5f5;
padding: 1rem;
border-radius: 5px;
margin-bottom: 2rem;
display: flex;
justify-content: center;
}

.search-form {
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
width: 100%;
max-width: 900px;
}

.filter-row {
display: flex;
flex-wrap: nowrap;
gap: 0.7rem;
justify-content: center;
flex-wrap: wrap;
}

.search-form select {
min-width: 140px;
padding: 0.4rem;
border: 1px solid #ccc;
border-radius: 4px;
}

.search-form .short-input {
width: 100px;
padding: 0.4rem;
border: 1px solid #ccc;
border-radius: 4px;
}

.search-button {
width: 100%;
max-width: 900px;
padding: 0.6rem 1rem;
background-color: rgb(189, 128, 78);
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 1rem;
}

.search-button:hover {
background-color: #2f3f60;
}

  .social-icons-floating {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    z-index: 1000;
  }
  .social-icons-floating a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    color: #1d2b44;
    text-decoration: none;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    transition: background 0.3s;
  }
  .social-icons-floating a:hover {
    background-color: #f0f0f0;
  }
  .logo {
    margin: 2rem 60;
  }
  .logo img {
    width: auto;
    height: 100%;
    object-fit: contain;
    transform: scale(2.5);
  }
  .logo h1 {
    margin: 0.5rem 0 0;
  }
  .intro-text {
    font-family: Georgia, justify;
    max-width: 50%;
    margin: 0 auto 2rem;
    padding: 0 1rem;
    line-height: 1.6;
    text-align: justify;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
  }
  .section {
    padding: 2rem;
    max-width: 800px;
    margin: auto;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
  }
  form {
    display: flex;
    flex-direction: column;
  }
  input, textarea, select {
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  button {
    padding: 10px;
    background-color: #b8862b;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  .property-list {
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .property-box {
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
    width: 360px;
    background: #fff;
    transition: opacity 0.3s ease;
  }
  .property-box[style*="display: none"] {
  opacity: 0;
}

  .property-thumbnail {
    position: relative;
    height: 205px;
  }
  .property-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .ico-fav {
    position: absolute;
    top: 10px;
    right: 10px;
  }
  .property-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
    padding: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    
  }
  .property-thumbnail:hover .property-overlay {
    opacity: 1;
  }
  .detail {
    padding: 1rem;
  }
  .detail .city {
    font-size: 0.9rem;
    color: #777;
  }
  .detail .title {
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0.5rem 0;
    height: 60px;
  }
  .detail .size {
    font-size: 0.9rem;
  }
  .detail .price {
    font-size: 1.1rem;
    color: #b8862b;
    font-weight: bold;
  }
  .property-item {
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
    width: 360px;
    background: #fff;
  }
  .search-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  .search-bar input,
  .search-bar select {
    flex: 1;
    min-width: 150px;
  }
  footer {
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #1d2b44;
    color: white;
    flex-wrap: wrap;
    bottom: 0px;
  }
  footer {
    display: flex; /* Aligns footer sections horizontally */
    justify-content: space-between; /* Distributes space evenly between sections */
    align-items: center; /* Vertically aligns content */
    flex-wrap: nowrap; /* Prevents wrapping */
    padding: 1rem 2rem;
    background-color: #1d2b44;
    color: white;
  }
  
  footer .footer-middle,
  footer .footer-left,
  footer .footer-right {
    flex: 1; /* Ensures all sections take equal space */
    text-align: center; /* Centers the text */
  }
  
  footer .footer-middle a,
  footer .footer-left a,
  footer .footer-right a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
  }
  footer img {
    width: 80px;
  }
  .image-container {
    position: relative;
    width: 100%;
    height: 100%; 
    overflow: hidden;
  }

  .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .overlay-text, .overlay-text2 {
    position: absolute; /* Ensures the text is positioned over the image */
    text-align: center;
     color: white;
    width: 100%; 
  }  
  .overlay-text {
    top: 40%; /* Adjusts the vertical position */
    font-size: 3rem;
    margin-bottom: 1rem;
  }
  .overlay-text2 {
    top: 50%; /* Adjusts the vertical position */
    font-size: 1.5rem;
  }
  @media (max-width: 768px) {
  .overlay-text {
    font-size: 2rem; /* Smaller font size for smaller screens */
    top: 28%; /* Adjusts position for smaller screens */
  }

  .overlay-text2 {
    font-size: 1rem; /* Smaller font size for smaller screens */
    top: 43%; /* Adjusts position for smaller screens */
  }
  }
  .img-box {
    border-radius: 10%;
    overflow: hidden;
    width: 40%;
    height: 20%;
    background: #fff;
  }
  .logo1 {
    margin: 2rem 0;
  }
  .logo1 img {
    width: 140px;
  }
  .text-box {
    border: 1px solid rgba(255, 255, 255, 0);
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    background: rgba(252, 247, 243);
  }
  .text-box2 {
    border: 1px solid rgba(255, 255, 255, 0);
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
  }
  .faq-container {
display: flex;
align-items: center; /* Aligns logo and text vertically */
gap: 1rem; /* Adds spacing between logo and text */
flex-wrap: nowrap; /* Prevents wrapping */
}

.logo1 {
flex-shrink: 0; /* Ensures the logo doesn't shrink */
}

.logo1 img {
width: 140px;
}

.faq-text {
flex-grow: 1; /* Allows the text to take up remaining space */
font-family: Georgia, serif;
line-height: 1.6;
text-align: justify;
font-size: 1.2rem;
}
  .image-text-row {
display: flex;
align-items: flex-start;
gap: 2rem;
margin-bottom: 2rem;
flex-wrap: wrap;
justify-content: center;
}

.image-text-row .img-box img {
height: auto;
border-radius: 10%;
object-fit: fill;
}

.image-text-row .text-box2 {
max-width: 20%;
font-family: Justify, serif;
font-size: 1.4rem;
line-height: 1.6;
text-align: left;
}
.image-text-left-row {
display: flex;
flex-direction: row;
align-items: center;
gap: 2rem;
margin-bottom: 2rem;
flex-wrap: wrap;
justify-content: center;
}

.image-text-left-row .img-box {
flex: 1 1 40%; /* Adjusts the image size dynamically */
max-width: 40%;
}

.image-text-left-row .img-box img {
width: 100%;
height: 100%;
object-fit: fill;
}

.image-text-left-row .text-box2 {
flex: 1 1 40%; /* Adjusts the text size dynamically */
max-width: 40%;
font-family: Justify, serif;
font-size: 1.8rem;
line-height: 1.6;
text-align: left;
}

@media (max-width: 768px) {
.text-between
.text-between .text-box2 {
  max-width: 100%;
  font-size: 1.4rem;
}
.image-text-left-row
.image-text-left-row .img-box
.image-text-left-row .img-box2
.img-left
.img-left .img-box 
.img-left .img-box img {
  flex-direction: column; 
  align-items: center;
}

.image-text-left-row .img-box,
.image-text-left-row .text-box2
.img-left .img-box 
.img-left .text-box2 {
  max-width: 100%; 
}
}
.text-between {
display: flex;
align-items: flex-start;
gap: 2rem;
margin-bottom: 2rem;
flex-wrap: wrap;
justify-content: center;
}
.text-between .text-box2 {
max-width: 40%;
font-family: Justify, serif;
font-size: 1.6rem;
line-height: 1.6;
text-align: left;
}
.h1-flex {
  display: flex;
  align-items: center;
  justify-content:start;
  gap: 1rem;
}

.h1-logo {
  height: 4em; /* Matches the h1 text height */
  width: auto;
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
}
.section-header-contained {
  background-color: #f5f5f5;
  width: 96%;
  padding: 1rem 2rem;
  text-align: left;
  border-radius: 8px;
  overflow: hidden;
}
.section-header {
  margin: 0;
  padding: 1rem 2rem;
  background-color: #f5f5f5;
  text-align: left;
  border-radius: 8px;
  font-size: 2rem;
  position: relative;
}
.section-content {
  margin: 0; /* Entfernt margin-left: 10rem */
  width: 100%; /* Entfernt feste Breite von 75rem */
  max-width: 100%; /* Begrenzt die maximale Breite */
  padding: 1rem 2rem;
  background-color: #f5f5f5;
  text-align: left;
  border-radius: 8px;
  font-size: 1.5rem;
  box-sizing: border-box; /* Padding wird in die Breite eingerechnet */
  word-wrap: break-word; /* Bricht lange Wörter um */
  overflow-wrap: break-word; /* Moderne Alternative */
}
.section-content p {
  margin: 0;
  line-height: 1.6;
  hyphens: auto; /* Automatische Silbentrennung */
}
.pre-footer-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background-color: #f8f9fa;
  padding: 3rem 2rem;
  margin-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.pre-footer-left {
  flex: 1;
  text-align: center;
  padding-left: 3rem;
}

.pre-footer-center{
  flex: 1;
  text-align: center;
}
.pre-footer-right {
  flex: 1;
  text-align: center;
  margin-top: 0.9rem;
}

.pre-footer-left h4,
.pre-footer-right h4 {
  color: #1d2b44;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem; /* Vertikal: 1rem, Horizontal: 3rem */
  max-width: 300px;
  margin-left: 7rem;
  margin-top: 2.5rem;
}

.nav-links a {
  flex: 0 0 calc(50% - 1.5rem); /* Zwei pro Reihe mit Abstand */
  color: #1d2b44;
  text-decoration: none;
  font-size: 1.6rem;
  transition: color 0.3s ease;
  padding: 0.2rem 0; 
}


.nav-links a:hover {
  color: #b8862b;
}

.footer-logo {
  max-width: 180px;
  height: auto;
  margin-bottom: 0.5rem;
}

.contact-info p {
  margin: 0.5rem 0;
  color: #555;
  font-size: 1.6rem;
  line-height: 1.4;
  text-align: justify;
}
.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

  .social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 50%;
  color: #1d2b44;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  }
  .social-icons a:hover {
  background-color: #b8862b;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  }

  .middle-text {
    margin: 0;
  }

.middle-text h3 {
  margin: 0.5rem 0;
  color: #1d2b44;
  font-size: 1.1rem;
}
.image-gallery {
  max-width: 1500px;
  margin: 2rem auto;
  padding: 1rem;
}

.gallery-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 10px;
  overflow: hidden;
}

.main-image-container {
  flex: 1;
  text-align: center;
}

#main-image {
  width: 100%;
  max-width: 1200px;
  height: 700px;
  object-fit: cover;
  border-radius: 8px;
  transition: opacity 0.3s ease;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease;
}

.gallery-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
  left: 15px;
}

.next-btn {
  right: 15px;
}

.thumbnail-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.thumbnail {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
  opacity: 1;
  border-color: #b8862b;
}

.image-counter {
  text-align: center;
  margin-top: 1rem;
  font-size: 1rem;
  color: #666;
}
/* Responsive Picture Gallery */
@media (max-width: 768px) {
  .gallery-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .prev-btn {
    left: 10px;
  }
  
  .next-btn {
    right: 10px;
  }
  
  #main-image {
    height: 250px;
  }
  
  .thumbnail {
    width: 60px;
    height: 45px;
  }
}
@media (max-width: 768px) {
  .section-header-contained {
    padding: 0.8rem 1rem;
    margin: 1rem 0;
  }
  
  .section-header {
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
  }
  
  .section-content {
    font-size: 1.2rem;
    padding: 0.8rem 1rem;
  }
}
.details-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.details-grid p {
  flex: 0 0 calc(33.333% - 0.67rem); /* 3 Spalten mit Gap */
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.5rem;
  line-height: 1.4;
}
/* Responsive details */
@media (max-width: 1024px) {
  .details-grid p {
    flex: 0 0 calc(50% - 0.5rem); /* 2 Spalten auf Tablets */
  }
}

@media (max-width: 768px) {
  .details-grid p {
    flex: 0 0 100%; /* 1 Spalte auf Handys */
  }
}
/* --- Responsive Header --- */
@media (max-width: 768px) {
  .header-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    width: 100%;
  }
  header {
    display: flex;
    align-items: center;
    justify-content: flex-start !important; /* Links neben dem Logo */
    gap: 1rem;
    height: 70px;
  }
  .header-links {
    display: flex;
    align-items: center;
    gap: 0.4rem !important;
    margin-right: 0 !important;
    font-size: 0.55rem;
  }
  .logo img {
    height: 40px !important;
    width: 80px !important;
    margin-right: 0.5rem;
    transform: scale(1.0);
  }
  .logo1 img {
    height: 40px !important;
    width: auto !important;
    transform: scale(2);
  }
  .logo {
    margin: 1rem 0 !important;
  }
    .faq-container {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .logo1 {
    margin-bottom: 0.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .faq-text {
    width: 100%;
    text-align: center;
  }
}
/* Responsive Design */
@media (max-width: 768px) {
  .pre-footer-section {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1rem;
    text-align: center;
    align-items: center;
  }
  .pre-footer-left {
  flex: 1;
  text-align: center;
  padding-left: 0;
}
  .pre-footer-center {
    gap: 0.8rem;
  }
  
  .nav-links {
    grid-template-columns: 1fr; /* Eine Spalte auf mobilen Geräten */
    gap: 0.8rem;
    justify-items: center;
    max-width: none;
    margin-left: 0;
  }
  .nav-links a {
    flex: 0 0 100%; /* Eine Spalte auf mobilen Geräten */
    text-align: center;
  }
  .footer-logo {
max-width: 140px;
  }
  .middle-text {
    margin-right: 0.7rem;
    margin-left: 0;
  }
  .social-icons a {
    width: 35px;
    height: 35px;
  }
  .middle-text h3 {
    font-size: 1rem;
  }
}
/* --- Responsive Footer --- */
@media (max-width: 768px) {
  footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 1rem 0.5rem;
    gap: 0.5rem;
  }
  footer .footer-middle,
  footer .footer-left,
  footer .footer-right {
    flex: unset;
    margin-bottom: 0.5rem;
  }
}


/* --- Responsive Image/Text Layouts --- */
@media (max-width: 768px) {
  .image-text-left-row,
  .image-text-row,
  .text-between {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
  }
  .image-text-left-row .img-box,
  .image-text-row .img-box,
  .text-between .img-box {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 1rem;
  }
  .image-text-left-row .img-box img,
  .image-text-row .img-box img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 10px !important;
  }
  .image-text-left-row .text-box2,
  .image-text-row .text-box2,
  .text-between .text-box2 {
    max-width: 100% !important;
    font-size: 1.2rem !important;
    text-align: center !important;
    margin-bottom: 1rem;
  }
}

/* --- Responsive h1-flex (Logo + Headline) --- */
@media (max-width: 768px) {
  .h1-flex {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .h1-logo {
    height: 2.2em !important;
    margin-bottom: 0.5rem;
  }
  .h1-flex h1 {
    font-size: 1.5rem !important;
    text-align: center;
  }
}

/* --- Responsive Property List --- */
@media (max-width: 768px) {
  .property-list {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  .property-box, .property-item {
    width: 95% !important;
    min-width: unset;
  }
  .property-thumbnail {
    height: 160px !important;
  }
}

/* --- Responsive Forms --- */
@media (max-width: 768px) {
  .search-bar,
  .search-form,
  .filter-row {
    flex-direction: column !important;
    gap: 0.5rem !important;
    align-items: stretch !important;
  }
  .search-form .short-input,
  .search-form select {
    min-width: 100px !important;
    width: 100% !important;
  }
  .search-button {
    max-width: 100% !important;
    font-size: 1rem !important;
  }
}
/* --- Responsive Intro Text & Section --- */
@media (max-width: 768px) {
  .intro-text,
  .section {
    max-width: 98% !important;
    padding: 0.5rem !important;
    font-size: 1rem !important;
  }
}
















