/********** Template CSS **********/
:root {
  --primary: #5B8C51;
  --secondary: #EDDD5E;
  --light: #F7F7F7;
  --dark: #404A3D;
}

/*** Allgemeine Utilities ***/
.back-to-top {
  position: fixed;
  display: none;
  right: 30px;
  bottom: 30px;
  z-index: 99;
}

.fw-bold { font-weight: 700 !important; }
.fw-medium { font-weight: 600 !important; }
.fw-semi-bold { font-weight: 500 !important; }

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease-out, visibility 0s linear .5s;
  z-index: 99999;
}

#spinner.show {
  visibility: visible;
  opacity: 1;
  transition: opacity .5s ease-out, visibility 0s linear 0s;
}

/*** Buttons ***/
.btn {
  transition: .5s;
  font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
  color: var(--light);
}

.btn-secondary,
.btn-outline-secondary:hover {
  color: var(--dark);
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}

.btn-square { width: 38px; height: 38px; }
.btn-sm-square { width: 32px; height: 32px; }
.btn-lg-square { width: 48px; height: 48px; }

/*** Navbar ***/
.navbar.sticky-top {
  top: -100px;
  transition: .5s;
}

.navbar .navbar-nav .nav-link {
  margin-right: 35px;
  padding: 25px 0;
  color: var(--dark);
  font-size: 18px;
  font-weight: 500;
  outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: var(--primary);
}

.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 8px;
}

@media (max-width: 991.98px) {
  .navbar .navbar-nav .nav-link {
    margin-right: 0;
    padding: 10px 0;
  }
  .navbar .navbar-nav {
    border-top: 1px solid #EEEEEE;
  }
}

/*** Dropdown Menüs bei Desktop sichtbar halten ***/
@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    border: none;
    margin-top: 0;
    top: 150%;
    opacity: 0;
    visibility: hidden;
    transition: .5s;
  }
  .navbar .nav-item:hover .dropdown-menu {
    top: 100%;
    visibility: visible;
    opacity: 1;
  }
  .display-1 {
    flex-direction: row !important; /* horizontal nebeneinander */
    align-items: center;
    flex-wrap: nowrap; /* kein Zeilenumbruch */
    text-align: left;
  }
  .logo {
    max-height: 60px; /* statt 160px */
    max-width: 60px;
    height: auto;
    width: auto;
  }
}

/*** Header / Carousel ***/
.carousel-caption {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, .1);
  z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
  width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 3rem;
  background-color: var(--primary);
  border: 10px solid var(--primary);
}

@media (max-width: 768px) {
  #header-carousel .carousel-item {
    position: relative;
    min-height: 450px;
  }
  #header-carousel .carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/*** Seitenkopf ***/
.page-header {
  background: url(../img/banner.jpg) center center no-repeat;
  background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
  color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
  font-size: 18px;
  color: var(--light);
}

/*** Section-Titel ***/
.section-title {
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  font-weight: 600;
}

.section-title::before,
.section-title::after {
  position: absolute;
  content: "";
  background: var(--primary);
  height: 2px;
  z-index: -1;
}

.section-title::before {
  width: calc(100% + 80px);
  top: 5px;
  left: -40px;
}

.section-title::after {
  width: calc(100% + 120px);
  bottom: 6px;
  left: -60px;
}

.section-title.text-start::before {
  width: calc(100% + 40px);
  left: 0;
}

.section-title.text-start::after {
  width: calc(100% + 60px);
  left: 0;
}

/*** About ***/
.about-experience {
  position: absolute;
  width: 100%;
  height: 100%;
  right: -45px;
  bottom: -45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/*** Service-Elemente ***/
.service-item {
  position: relative;
  border-radius: 8px;
  box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.service-item .service-img {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 8px;
  overflow: hidden;
  z-index: -1;
}

.service-item .service-img img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.service-item .service-img::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .5);
  border-radius: 10px;
  z-index: 1;
}

.service-item .service-img::after {
  content: "";
  position: absolute;
  background: #FFFFFF;
  transition: .5s ease-out;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.service-item:hover .service-img::after {
  width: 0;
  left: auto;
  right: 0;
}

.service-item .service-text .service-icon {
  width: 140px;
  height: 140px;
  padding: 15px;
  margin: -70px 0 40px 0;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(0, 0, 0, .1);
  overflow: hidden;
}

/*** Buttons im Service-Element ***/
.service-item .service-text .btn {
  color: var(--secondary);
  background: #FFFFFF;
  box-shadow: 0 0 45px rgba(0, 0, 0, .25);
}

.service-item .service-text .btn:hover {
  color: var(--dark);
  background: var(--secondary);
}

/*** Testimonial ***/
.testimonial-img {
  position: relative;
  min-height: 400px;
}

.testimonial-img::after {
  position: absolute;
  content: "\f10d";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 200px;
  color: #EEEEEE;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.testimonial-carousel .owl-item img {
  width: 100px;
  height: 100px;
  border-radius: 100px;
}

.testimonial-carousel .owl-nav {
  margin-top: 30px;
  display: flex;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
  margin-right: 15px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  border-radius: 45px;
  box-shadow: 0 0 45px rgba(0, 0, 0, .2);
  font-size: 22px;
  transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
  background: var(--secondary);
  color: var(--dark);
}

/*** Footer ***/
.footer {
  color: #B0B9AE;
}

.footer .btn.btn-link {
  display: block;
  margin-bottom: 5px;
  padding: 0;
  text-align: left;
  color: #B0B9AE;
  transition: .3s;
}

.footer .btn.btn-link::before {
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 10px;
}

.footer .btn.btn-link:hover {
  color: var(--light);
  letter-spacing: 1px;
  box-shadow: none;
}

/*** Zusatzklassen ***/
.service-icon img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
}

.anchor {
  display: block;
  position: relative;
  top: -100px;
  visibility: hidden;
}

/*** Logo ***/
.logo {
  max-height: 160px;
  max-width: 160px;
  height: auto;
  width: auto;
}

/*** Responsive Einstellungen ***/
@media (max-width: 992px) {
  .logo {
    max-height: 120px;
    max-width: 120px;
  }

  .navbar-brand h1 {
    font-size: 1.5rem;
  }

  .carousel-caption .display-1 {
    font-size: 3rem;
  }
}

/*** Logo ausschalten am Tablet ***/
@media (max-width: 768px) {
  .logo {
    display: none !important;
  }
  .carousel-caption .btn {
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
  }
}
/*** Logo ausschalten am Smartphone ***/
@media (max-width: 576px) {
  .logo {
    display: none !important;
    max-width: 60px;
    height: auto;
    margin-right: 10px;
  }

  .navbar-brand h1 {
    font-size: 0.89rem;
    text-align: center;
    line-height: 1.1;
    font-weight: 500;        /* etwas weniger fett, optional */
    letter-spacing: 0.03em;  /* optional, für bessere Lesbarkeit */
    margin: 0;
    padding: 0;
  }

/*** button kleiner machen am Smartphone ***/
  .carousel-caption .btn {
    font-size: 0.85rem;     /* kleinere Schrift auf Smartphone */
    padding: 0.25rem 1rem; /* weniger Innenabstand (py / px) */
  }

  .carousel-caption .display-1 {
    font-size: 1.8rem;
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .animated,
  .slideInRight,
  .pulse {
    animation: none !important;
    transition: none !important;
  }

  .service-item .service-text .service-icon {
    width: 80px;
    height: 80px;
    padding: 8px;
    margin-top: -40px;
    margin-bottom: 18px;
  }

  .service-icon img {
    width: 64px;
    height: 64px;
  }

  .display-1 {
    flex-direction: column !important; /* Logo über Text */
    align-items: center;
    text-align: center;
    flex-wrap: wrap;
  }

}

