/* =======================
   Globale Einstellungen
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Roboto', sans-serif;
  background: #fff;
  color: #252526;
  line-height: 1.6;
}

html, body {
  min-height: 100vh;
}


.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px;
}

/* =======================
   Scroll Animation
========================== */
.scroll-element {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.scroll-element.scrolled {
  opacity: 1;
  transform: scale(1);
}

/* =======================
   Swiper für Testimonials
========================== */

#testimonials {
  background: #E4E5E6;
  padding: 40px 20px;
  margin: 20px 0;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding-bottom: 80px; /* dein bestehender Wert bleibt drin! */
}


#testimonials .swiper {
  position: relative;
  padding-bottom: 140px;
  margin: 0 auto; /* wichtig für Zentrierung */
  max-width: 800px; /* oder gleiche Breite wie deine Testimonials */
  width: 100%;
  min-height: 800px; /* vorher 600–650px – jetzt mehr Touchfläche */
  touch-action: pan-x pan-y; /* erlaubt horizontales und vertikales Wischen */
}

/* Swiper Pagination richtig zentrieren */
.swiper-pagination {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
  transform: none; /* optional, aber sauber */
}



.swiper-wrapper {
  display: flex;
  align-items: center;
}

.swiper-slide {
  display: flex;
  justify-content: center;
}

.testimonial {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  border-radius: 10px;
  background: #F9F9F9;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.testimonial span {
  display: block;
  margin-top: 10px;
  text-align: right;
  font-weight: 700;
  color: #252526;
}
.swipe-hint {
  text-align: center;
  font-size: 14px;
  color: #7C7E81;
  margin-bottom: 10px;
  display: block;
}



/* =======================
   Kontaktformular
========================== */
#kontakt {
  background: #fff;
  padding: 40px 20px;
  margin: 20px 0;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
}

#kontakt form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

#kontakt input, #kontakt textarea {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #7C7E81;
  border-radius: 10px;
  font-size: 16px;
}

#kontakt button {
  padding: 15px;
  border: none;
  border-radius: 30px;
  background: #252526;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

#kontakt button:hover {
  background: #7C7E81;
  transform: scale(1.05);
}

#kontakt .direct-contact {
  background: #E4E5E6;
  padding: 15px;
  border-radius: 10px;
  margin-top: 20px;
  font-size: 16px;
  color: #252526;
  text-align: center;
}



/* =======================
   Links
========================== */
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* =======================
   Header
========================== */
header {
  background: #252526;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}


.header-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px;
  position: relative;
  flex-direction: column;
  align-items: center;
  text-align: center;
}


.header-title {
  flex: 1 1 auto;
  width: auto;
  text-align: center;
  margin: 0;
  padding: 0;
}

.header-title a {
  display: block;
  width: 100%;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.header-title a:hover,
.header-title a:visited {
  cursor: pointer;
}

.header-title a h1 {
  cursor: pointer;
}



.header-logo {
  flex: none;
  text-align: left;
  margin: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: center;
}


.header-cta {
  flex: none;
  text-align: center;
  margin: 0;
  padding: 0;
  padding-left: 15px; /* gleiche Einrückung wie das Logo durch .container */
  width: 100%;
}


.header-logo img {
  height: 50px;
  cursor: pointer;
}
.header-logo a {
  display: inline-block;
}


.cta-inner {
  padding-left: 15px; /* oder derselbe Wert wie dein Logo-Abstand */
}

.header-title h1 {
  font-size: 50px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.header-title h1 small {
  font-size: 18px;
  display: block;
  margin-top: 5px;
}

.cta-btn {
  background: #B7AA84;
  color: #252526;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s, transform 0.3s;
  display: inline-block;
  margin-left: 0;
  padding-left: 0;
  font-size: 14px;
}

.cta-btn:hover {
  background: #A09175;
  transform: scale(1.05);
}

.cta-btn + .cta-btn {
  margin-left: 10px;
}


.header-nav.active {
  display: block;
}


/* =======================
   Navigation (einheitlich Desktop & Grundlage für Mobil)
========================== */

.header-nav {
  display: none;
  width: 100%;
  margin-top: 20px;
  padding-top: 10px;
}

.header-nav .nav-list {
  display: flex;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-direction: column;
  align-items: center;
}

.header-nav .nav-list li {
  width: 100%;
  max-width: 180px;
}


.header-nav .nav-list li a {
  background: #B7AA84;
  color: #252526;
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s, transform 0.3s;
  display: block;
  width: 100%;
  text-align: center;
}



.header-nav .nav-list li a:hover {
  background: #A09175;
  transform: scale(1.05);
}

/* =======================
   Überschriften & Texte
========================== */
h2 {
  font-size: 32px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}
h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: #A09175;
  margin: 10px auto 0;
  border-radius: 2px;
}
p {
  font-size: 18px;
  max-width: 800px;
  margin: 20px auto;
  text-align: center;
}

#impressum .container {
  padding-left: 10px;
  padding-right: 10px;
}

#impressum h1,
#impressum h2 {
  text-align: left;
  margin-bottom: 10px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

#impressum h2::after {
  margin-left: 0;
  margin-right: auto;
}
#impressum p {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

#impressum .container {
  width: 100%;
  max-width: 800px;
  padding: 0 15px;
  box-sizing: border-box;
}


/* =======================
   Sektionen
========================== */
#bewertung {
  background: #fff;
  padding: 40px 20px;
  margin: 20px 0;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
#bewertung .steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}
#bewertung .step {
  flex: 1 1 250px;
  background: #E4E5E6;
  border-radius: 15px;
  padding: 20px;
  margin: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 160px;
  text-align: center;
  transition: transform 0.3s;
}
#bewertung .step:hover {
  transform: translateY(-5px);
}
#bewertung .icon {
  margin-right: 15px;
  margin-bottom: 20px;
}
#bewertung .step-text h3 {
  color: #A09175;
  margin-bottom: 5px;
}
#bewertung .step-text p {
  font-size: 16px;
  margin: 0;
}
#bewertung .cta {
  text-align: center;
  margin-top: 30px;
}
.cta a {
  background: #252526;
  color: #fff;
  padding: 15px 25px;
  text-decoration: none;
  border-radius: 30px;
  transition: background 0.3s, transform 0.3s;
  text-align: center;
  font-size: clamp(14px, 4vw, 18px);
}
.cta a:hover {
  background: #7C7E81;
  transform: scale(1.05);
}

#ueber-mich {
  background: #E4E5E6;
  padding: 40px 20px;
  margin: 20px 0;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}


#ueber-mich .flex-container {
  display: grid;
  grid-template-columns: 1fr; /* eine Spalte */
  gap: 30px;
}


#ueber-mich .foto {
  flex: 0 0 250px;
  text-align: center;
}

#ueber-mich .foto img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #A09175;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#ueber-mich .text {
  width: 100%;
  text-align: center; /* Mobil: zentriert */
}

#ueber-mich .text p {
  text-align: left;
  margin-left: 0;
}


#ueber-mich h3 {
  color: #A09175;
  margin-bottom: 10px;
}

#ueber-mich .text h3 {
  text-align: left;
  margin-left: 0;
}

#ueber-mich p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: left;
}

#ueber-mich blockquote {
  border-left: 4px solid #A09175;
  padding-left: 20px;
  font-style: italic;
  color: #555;
  max-width: 500px;
  margin-top: 20px;
}

#ueber-mich .text blockquote {
  text-align: left;
  margin-left: 0;
}

.datenschutz-hinweis {
  font-size: 14px;
  text-align: left;
  margin-bottom: 10px;
  color: #252526;
}
.datenschutz-hinweis a {
  color: #252526;
  text-decoration: underline;
}

/* =======================
   Service
========================== */

#services .container {
  width: 100%;
  max-width: none;
  padding-left: 5%;
  padding-right: 5%;
}

#services.no-content {
  margin-bottom: 50px !important;
  padding-bottom: 50px !important;
}



/* =======================
   Footer
========================== */
footer.footer {
  width: 100%;
  background: #252526;
  color: #fff;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
footer.footer p {
  font-size: 14px;
  margin: 5px 0;
}
.footer-links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top:10px;
}
footer.footer a {
  color: #fff;
  text-decoration: underline;
}

/* =======================
   Neue Klassen
========================== */
.icon {
  width: 24px;
  height: 24px;
}

section {
  margin-bottom: 40px;
}


.section-light {
  background-color: #fff;
  padding: 40px 20px;
  margin: 20px 0;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.section-grey {
  background-color: #E4E5E6;
  padding: 40px 20px;
  margin: 20px 0;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.form-control {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #7C7E81;
  border-radius: 10px;
  font-size: 16px;
  box-sizing: border-box;
}

.btn-form {
  background-color: #252526;
  color: #fff;
  padding: 15px 30px;
  border: none;
  border-radius: 30px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.btn-form:hover {
  background-color: #7C7E81;
  transform: scale(1.05);
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-list li a {
  background: #B7AA84;
  color: #252526;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
}

.nav-list li a:hover {
  background: #A09175;
  transform: scale(1.05);
}

.service-box {
  background-color: #E4E5E6;
  border-radius: 16px;
  padding: 30px;
  padding-bottom: 10px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 2px solid #B7AA84;
  text-align: center;

  /* Layout-Ausrichtung */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center; /* NEU: zentriert auch den Button zuverlässig */

  max-width: 100%;
  width: 100%;
  margin-left: auto;
  margin-right: auto;

  height: 350px;
  overflow: hidden;
  transition: max-height 0.4s ease, max-width 0.4s ease;
}



/* =======================
Service Seite (unsortiert)
========================== */

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
  justify-content: center;
  padding: 10px 0;
}

.filter-btn {
  background: #B7AA84;
  color: #252526;
  padding: 12px 25px;
  border-radius: 30px;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.filter-btn:hover {
  background: #A09175;
  transform: scale(1.05);
}

.filter-btn.active {
  background: #252526;
  color: #fff;
}


.service-content {
  flex: 1;
  display: none;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  margin: 0;
  max-height: none;
}


.service-box:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border-color: #A09175; /* dunklere Goldvariante beim Hover */
}

.service-box h3 {
  font-size: 22px;
  color: #252526;
  margin-bottom: 10px;
}

.service-box p {
  font-size: 16px;
  color: #252526;
  line-height: 1.6;
}


.iframe-credit {
  font-size: 14px;
  color: #7C7E81;
  text-align: left;
  margin: 10px;
  display: none;
}

.service-box iframe {
  width: 100%;
  height: 300px;
  border: none;

  max-width: 99vw;
  min-height: 200px;

}


.service-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.service-grid.no-gap {
  gap: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}


.service-box .service-header {
  transition: opacity 0.3s ease, max-height 0.3s ease;
  opacity: 1;
  max-height: 500px;
  overflow: hidden;
  text-align: center;
  flex-direction: column;
  align-items: center;
  display: flex;
  margin-bottom: 10px;

}

.service-box.expanded {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  background-color: #fff;
  border-radius: 16px;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  isolation: isolate; 
}

.service-box.expanded iframe {
  min-width: 0px;
  width: 98vw;
  height: 99%;
  
  max-width: 99vw;
  min-height: 200px;
  border: none; 

}

.service-box.expanded .service-header {
  opacity: 0;
  max-height: 0;
}


.service-box.expanded .service-content {
  overflow: auto;
  display: flex;
}

.service-content .iframe-credit {
  position: absolute;
  left: 30px;    /* etwas Abstand vom Rand */
  bottom: 20px;  /* etwas Abstand nach unten */
  text-align: left;
  margin: 0;
  display: block;
  width: auto;
  max-width: 80vw;
}


.service-box.hidden {
  display: none !important;
}

.service-box.expanded .iframe-credit {
  display: block;
}




/* Button zum anzeigen und schließen der Service-Box */
.service-toggle-btn {
  align-self: center;
  display: inline-block;
  background: #B7AA84;
  color: #252526;
  padding: 12px 25px;
  border-radius: 30px;
  border: none;
  font-weight: 500;
  font-size: 16px;
  margin-top: 20px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  max-width: 90%;
  width: auto;
}


.service-toggle-btn:hover {
  background: #A09175;
}

.service-toggle-btn:focus {
  outline: none;
}


/* Sonderstil, wenn Button zum X wird */
.service-toggle-btn.x-button {
  position: absolute;
  top: 20px;
  right: 20px;
  margin: 0;
  padding: 0;
  width: 40px;
  height: 40px;
  font-size: 22px;
  font-weight: bold;
  border-radius: 50%;
  background: #B7AA84;
  color: #252526;
  z-index: 1101;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}



.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(37, 37, 38, 0.7); /* dunkles Grau, halbtransparent */
  backdrop-filter: blur(2px);
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

body.expanded-active .fullscreen-overlay {
  opacity: 1;
  pointer-events: auto;
}

.fullscreen-overlay.active {
  pointer-events: auto;
}


/* Wenn eine Box geöffnet ist: Scrollsperre  */
body.expanded-active {
  overflow: hidden !important;
  height: 100% !important;
}

html.expanded-active {
  overflow: hidden !important;
  height: 100% !important; 
}

body.expanded-active footer.footer {
  display: none !important;
}

.mieterpass-cta {
  background: #252526;
  color: #fff;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 30px;
  font-size: 18px;
  display: inline-block;
  margin: 40px auto 20px;
  margin-top: 30vh;; 
  transition: background 0.3s;
  text-align: center;
}
.mieterpass-cta:hover {
  background: #7C7E81;
}



/* =======================
   Burger-Menü (Mobil)
========================== */
.burger-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 1001;
  align-items: center;
  margin: 15px auto 0;
  margin-bottom: 20px; 
  order: 3;
}

.burger-menu span {
  display: block;
  height: 3px;
  background-color: #B7AA84; /* goldener Farbton */
  border-radius: 3px;
  transition: all 0.3s ease;
  width: 100%;
}


/* =======================
   Animation zum X (für Burger-Menü)
========================== */
.burger-menu.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.burger-menu.active span:nth-child(2) {
  opacity: 0;
}
.burger-menu.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}


/* =======================
==========================
   Media Query für Bildschirme > 768 px Breite
==========================
========================== */



@media (min-width: 768px) {
  
  #ueber-mich .text {
    text-align: left; /* Desktop: links */
  }

  .header-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Logo & Navigation linksbündig */
    gap: 10px;
    position: relative;
  }

  .header-logo {
    flex: 0 0 auto;
    text-align: left;
    width: 100%;
    padding-left: 15px;
  }

  .header-logo img {
    display: block;
    margin: 0;
  }

  .header-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    white-space: nowrap;
    z-index: 2;
  }

  .header-title h1 {
    font-size: 28px;
  }

  .header-title h1 span {
    font-size: 16px;
  }

  .burger-menu {
    display: none;
  }

  .header-nav {
    display: block;
    width: 100%;
    padding-left: 15px;
    margin-top: 0;
  }

  .header-nav .nav-list {
    flex-direction: row;
    justify-content: center; /* Buttons zentrieren */
    gap: 20px;
  }

  .header-nav .nav-list li a {
    padding: 12px 25px;
  }
  .swipe-hint {
    display: none;
  }
  #ueber-mich .flex-container {
    grid-template-columns: 250px 1fr; /* Bild links, Text rechts */
    align-items: start;
  }
  .service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
    justify-items: center;
  }
  .service-grid.no-gap {
    gap: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    display: block !important;
  }
 
  .service-box.expanded iframe {
    min-width: 1000px;
    width: 98vw;
    height: 99%;

    min-height: 0;
    max-width: none;
    border: none; 
    
  }


  .service-box iframe {
    width: 100%;
    height: 300px;
    border: none;
    max-width: none;
    min-height: 900px;
  }

}
