html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  overflow-x: hidden !important;
  touch-action: pan-y; 
  margin: 0;
  padding: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body {
  font-family: 'Source Sans Pro', sans-serif;
  position: relative;
  line-height: 1.4;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  color: #333;
  overflow-wrap: break-word;
  overflow-x: hidden !important;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

.button {
  border-radius: 25px;
}

.loading-screen {
  position: fixed;
  content: '';
  top: 0; 
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #fff;
  z-index: 9999999;
}

address {
  font-style: normal;
  font-weight: 300;
  line-height: 1.4;
  font-size: large;
}

.body-container {
  position: relative;
  overflow-x: hidden;
}

p {
  font-size: 1.1em;
}

.link {
  text-decoration: none;
  color: #333;
  white-space: nowrap;
}

.link-white {
  color: white;
  text-decoration: underline;
}

.link-black {
  color: black;
  text-decoration: underline;
}

button {
  padding: 10px 20px;
  border: none;
  font-weight: 300;
  cursor: pointer;
}
button.dark {
  background-color: #333;
  color: #fff;
  text-decoration: none;
}

button.dark > a {
  color: #fff;
  text-decoration: none;
}

button.light {
  background-color: #fff;
  color: #333;
  text-decoration: none;
}

button.light > a {
  color: #333;
  text-decoration: none;
}

.text-center {
  text-align: center;
  position: relative;
}

.text-start {
  text-align: start !important;
}

.text-end {
  text-align: end;
}

.fw-500 {
  font-weight: 500;
}

section {
  margin-bottom: 15vh;
}

#nav1 {
  position: fixed;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  z-index: 99997;
  padding: 0 20px;
  top: 0;
  left: 50%;
  min-width: 101%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1140px; /* oder 1320px für Bootstrap 5, je nachdem */
  padding: 0 15px; /* entspricht dem Container-Padding */
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
}
.logo > a > img {
  height: 10vh;
}

.nav-links-container {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  white-space: nowrap;
}

.nav-link {
  display: inline-block;
  padding: 0 20px;
  font-size: 1.4em;
}

.nav-link > a {
  text-decoration: none;
  line-height: 1.2em;
  color: #333;
  transition: 0.3s ease-in-out;
}
.nav-link > a.active {
  font-weight: 500;
  transition: 0.3s ease-in-out;
}

#navMobile {
  position: relative;
  width: 50px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
}

#navMobile > span {
  position: absolute;
  height: 2px;
  width: 65%;
  background-color: #000;
  border-radius: 20px;
  transition: 0.3s ease;
}

#navMobile > span:nth-child(1) {
  top: 10px;
}

#navMobile > span:nth-child(2) {
  transform: translateX(-8px);
  transition: 0.3s ease;
}

#navMobile > span:nth-child(3) {
  bottom: 10px;
  opacity: 1;
}

#navMobile.active span:nth-child(1) {
  top: 50%;
  width: 75%;
  height: 3px;
  transform: rotate(45deg);
  background-color: #fff;
  transition: 0.3s ease;
}
#navMobile.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(0);
  background-color: #fff;
  transition: 0.3s ease;
}

#navMobile.active span:nth-child(3) {
  top: 50%;
  height: 3px;
  width: 75%;
  transform: rotate(-45deg);
  background-color: #fff;
  transition: 0.3s ease;
}

.off-screen-menu {
  white-space: nowrap;
  background-color: rgba(51, 51, 51, 1);
  height: 100vh;
  width: 100%;
  max-width: 450px;
  position: fixed;
  z-index: 99998;
  top: 0;
  right: -450px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: 0.3s ease;
}

.off-screen-nav-list {
  list-style-type: none;
  transform: translateX(-5vw);
}
.off-screen-nav-list > li {
  position: relative;
}

.off-screen-nav-link > a {
  color: white;
  text-decoration: none;
  font-size: 3em;
}

.off-screen-menu.active {
  right: 0;
}

.section-heading {
  font-size: 2.5em;
  font-weight: 500;
  text-align: center;
  margin-bottom: 2rem;
}

.section-heading::after {
  content: '';
    display: block;
    width: 120px;
    height: 1px;
    background-color: #333;
    margin: 0.5em auto;
}

.landing-page {
  opacity: 1;
  height: 100vh;
  height: 100dvh;
  position: relative;
  background-size: cover;
  background-position: 100% 10%;
  background-image: url('assets/hero.jpg');
  background-color: rgba(0, 0, 0, 0.35);
  background-blend-mode: darken;
  background-repeat: no-repeat;
}

.lp-banner {
  position: absolute;
  z-index: 999;
  min-width: 90vw;
  bottom: 28vh;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  text-align: center;
}

.lp-banner-text {
  line-height: 1.1;
  font-size: 2.2em;
  font-weight: 300;
}

.scrolldown {
  z-index: 9998;
  width: 1px;
  height: 60px;
  position: absolute;
  bottom: 17vh;
  left: 0;
  right: 0;
  margin: 0 auto;
  overflow: hidden;
  background: linear-gradient(to bottom, #f1f1f1 50%, rgba(255, 255, 255, 0) 50%);
  background-position: 0 -120px;
  background-size: 100% 200%;
  animation: scrolldown 2.2s cubic-bezier(0.76, 0, 0.3, 1) forwards infinite;
}

@keyframes scrolldown {
  0% {
    background-position: 0 -60px;
  }
  75% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 60px;
  }
}

#leistungen {
  padding-top: 40px;
}

.leistung {
  padding-bottom: 100px;
}

.image-container {
  width: auto;
  overflow: hidden;
  padding: 20px 50px;
  position: relative;
  margin-right: 15px;
}

.image-container > img {
  position: absolute;
  width: auto;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  margin-bottom: 2rem;
  border-radius: 25px;
}

.leistung-text {
  font-weight: 300;
  font-size: 1.1em;
}

.leistung-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
.leistung-list > li {
  margin-bottom: 1em;
}

.leistung-caption {
  font-size: 1.6em;
  white-space: nowrap;
}

.leistung-caption::before {
  content: "&";
  font-size: 4em;
  position: absolute;
  opacity: 0.28;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #333;
  z-index: -1;
  font-weight: 300;
}

#galerie {
  padding: 8vh 0;
}

#ueberuns {
  background-color: #333;
  color: #fff;
  line-height: 1.4;
  font-size: large;
  overflow: hidden;
  margin-bottom: 0;
}

.ueberuns-text-container {
  padding: 20vh 15vw;
}

.ueberuns-image-container {
  overflow: hidden;
  position: relative;
}

.ueberuns-image {
  position: absolute;
  height: 200%;
  width: auto;
  margin-top: -100px;
}

.ueberuns-text {
  padding: 0 4vh;
  font-weight: 300;
  font-size: 1em;
  align-self: center;
}

#referenzen {
  margin: 10vh 0;
}

#stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 100px 0;
  background: #fff;
}
.counter-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 0;
  padding: 0 140px;
}
@media screen and (max-width: 762px) {
  .counter-container:not(:last-child) {
    margin-bottom: 80px;
  }
}
.counter {
  display: flex;
  align-items: baseline;
  font-size: 3rem;
  font-weight: bold;
}
.unit {
  margin-left: 0.2rem;
  font-size: 1.2rem;
  color: #555;
}
.label {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  color: #555;
}

.ref-tile-container {
  position: relative;
  margin: 10px 0;
  overflow: hidden;
  height: 40vh;
  width: 100%;
  background-size: cover;
  border-radius: 25px;
}

.sehnde {background-image: url('assets/sehnde.jpg'); background-position: right;}
.fiege {background-image: url('assets/fiege1.jpg');}
.boston {background-image: url('assets/boston.jpg');}
.menden {background-image: url('assets/menden2.jpg');}
.soest {background-image: url('assets/soest.jpg');}

.referenzen-carousel .ref-tile-container {
  display: flex;
  align-items: stretch;
}
.referenzen-carousel .ref-tile-title-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  padding: 1rem;
  box-sizing: border-box;
}


.ref-tile-title-box {
  position: absolute;
  bottom: 0;
  height: 40%;
  background-color: rgba(0, 0, 0, 0.6);
  width: 100%;
  text-align: center;
  padding: 10px 0;
  color: white;
  transition: bottom 0.3s ease, height 0.3s ease;
  overflow: hidden;
}

.ref-tile-title-box > a {
  color: white;
  text-decoration: none;
}
.ref-tile-title {
  margin: 0;
}

.teaser-text {
  font-size: 1em;
  font-weight: 300;
  color: #fff;
  padding: 0 20px;
}


#partner {
  border-top: #333 1px dotted;
  padding: 5vh 0;
}

#partner a > img {
  max-width: 100%;
}
.partner {
  padding: 0 20px;
}

#anfrage {
  background-color: #333;
  color: white;
  padding: 80px 10vw;
  margin-bottom: 0;
}

.form {
  max-width: 100%;
}

input[type='email'] {
  background-color: white;
  transition: width 0.4s ease-in-out;
  font-size: 1.1em;
  color: #333;
  padding: 5px;
}
textarea[type='message'] {
  background-color: white;
  transition: width 0.4s ease-in-out;
  font-size: 1.1em;
  color: #333;
  padding: 5px;
}

.top15vh {
  margin-top: 15vh;
}

a.here {
  font-weight: bold !important;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #fff !important; /* Heller Hintergrund im Dark Mode */
    color: #333 !important; /* Dunkle Textfarbe im Dark Mode */
  }
  #nav1 {
    background-color: #fff !important; /* Heller Hintergrund im Dark Mode */
    color: #333 !important; /* Dunkle Textfarbe im Dark Mode */
  }
}
