/* Allgemeine Stile */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  padding: 0 300px;
  background-color: rgb(229, 229, 233);
}

header {
  position: relative;
}

/* Navigationsleiste */
.navbar {
  background-color: rgb(255, 255, 255);
  display: flex;
  justify-content: space-between;
  padding: 10px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  align-items: center;
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.3);
}

.logo a {
  display: inline-block;
}

.logo img {
  max-width: 20%;
  height: auto;
  vertical-align: middle;
}

.navbar-menu {
  display: flex;
  align-items: center;
}

.navbar-menu li {
  list-style-type: none;
  margin-right: 20px;
}

.navbar-menu li a {
  color: black;
  text-decoration: none;
  font-size: 16px;
  padding: 25px;
  font-weight: bold;
}

.navbar-menu li a:hover {
  color: #116f00;
}

/* Hamburger-Menü */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 20px;
  height: 3px;
  background-color: #000000;
  margin-bottom: 5px;
  margin-right: 30px;
  transition: transform 0.3s ease; /* Animation hinzufügen */
}

/* Hamburger-Animation */
.hamburger.show span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.show span:nth-child(2) {
  opacity: 0;
}

.hamburger.show span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Ausfahrendes Menü */
.menu-expanded {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  font-size: 23px;
  height: 100vh; /* Höhe des gesamten Viewports */
  overflow-y: auto; /* Scrollbalken anzeigen, wenn der Inhalt größer als die Viewport-Höhe ist */
  padding: 20px; /* Einen inneren Abstand hinzufügen */
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.menu-expanded.show {
  opacity: 1;
  visibility: visible;
}

.menu-expanded ul {
  list-style-type: none;
  text-align: center;
  padding: 0;
}

.menu-expanded li {
  margin-bottom: 20px;
}

.menu-expanded li a {
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
}

/* Hintergrundbilder */
.banner-start {
  background-image: url(images/cubes-3381438_1920.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  height: 100vh; /* Höhe des gesamten Viewports */
  display: flex;
  align-items: center;
  justify-content: center;
  background-attachment: fixed;

}

.banner-about {
  background-image: url(images/Team_16x9.png); 
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  height: 100vh; /* Höhe des gesamten Viewports */
  display: flex;
  align-items: center;
  justify-content: center;
  background-attachment: fixed;

}

.banner-services {
  background-image: url(images/worker-5736096.jpeg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  height: 100vh; /* Höhe des gesamten Viewports */
  display: flex;
  align-items: center;
  justify-content: center;
  background-attachment: fixed;
}

.banner-contact {
  background-image: url(images/grid-826831_1280.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  height: 100vh; /* Höhe des gesamten Viewports */
  display: flex;
  align-items: center;
  justify-content: center;
  background-attachment: fixed;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Schwarzer Filter */
}

.banner-text h1 {
  position: relative;
  color: rgb(255, 255, 255);
  font-size: 70px;
  text-align: center;
  z-index: 1;
  font-weight: bold;
}

.banner-text h3 {
  position: relative;
  color: #ffffffd6;
  font-size: 55px;
  text-align: center;
  z-index: 1;
  font-weight: bold;
}

/* Sektionen */
.section {
  padding: 30px 0px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.section-about {
  padding: 30px 30px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #fff;
}

.section-services {
  padding: 30px 30px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #fff;

}

.about-text h4 {
  background: #116f00;
  color: #ffffff;
}

.section-heading h2 {
  font-size: 24px;
  padding-bottom: 20px;
  position: relative;
}

.contact-text {
  font-size: 16px;
  font-weight: 300;
  text-align: left;
  float: left;
  line-height: 1.6; /* Hier einen kleineren Wert verwenden */
}

.start-text {
  flex: 1;
  padding: 20px;
  text-align: center;
}

.vision {
  background-color: #000000;
  color: #fff;
}

.mission {
  background-color: #ffffff;
  color: #000000;
}

.about-text {
  flex: 1;
  line-height: 1.6;
  float: right;
  padding: 20px;
  text-align: center;
}

.service-text {
  flex: 1;
  line-height: 1.6;
  float: right;
  padding: 20px;
  text-align: center;
}

.container {
  padding-top: 80px;
}

/* Kontaktinformationen */
.contact-text-container {
  width: 60%;
}

.contact-form {
  width: 33%;
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  margin-right: 40px;
  margin-bottom: 40px;
}

.contact-info-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: -300px; /* Hier die Höhe anpassen */
}

.contact-info {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

a {
  color: #116f00;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.contact-info i {
  font-size: 16px;
  margin-right: 15px;
  min-width: 24px; /* Mindestbreite des Icons */
  text-align: center; /* Zentrieren des Icons */
}

.contact-info p {
  font-size: 16px;
  margin: 0;
}

.cnc-heading {
  background-color: #116f00;
  color: #fff;
}

.cnc-img-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.cnc-img {
  width: 100%;
  height: auto;
  padding: 20px 0;
}

.img-abt-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.img-abt {
  width: 50%;
  height: auto;
  padding: 20px 10px;
}

/* Kontaktformular */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0px 30px;
  background-color: #000;
  color: #fff;
}

.contact-text-container {
  width: 60%;
}

.contact-form {
  width: 33%;
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  margin-right: 40px;
  margin-bottom: 40px;
  z-index: 9000;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid black;
  outline: none;
}

.contact-form label {
  font-weight: bold;
}

.contact-form button {
  padding: 10px 20px;
  background-color: #116f00;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}



/* Google Maps */
.google-maps {
  width: 100%;
  height: 450px;}

/* Footer */
footer {
  padding: 10px;
  text-align: center;
  background-color: #ababab;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-links {
  margin-right: 10px;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.footer-links a {
  /* Styling für die Links hier */
  margin-right: 10px;
  color: #116f00;
  text-decoration: none;
  font-weight: bold;
}

.footer-links a:hover {
  color: #cbcbcb;
}

.footer-divider {
  /* Styling für den Trennstrich "|" hier */
  margin: 0 5px;
  color: #000;
}


/* Medienabfragen für Responsive-Verhalten */
@media only screen and (max-width: 1510px) {
  .navbar-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .logo img {
    max-width: 30%;
  }
}

@media only screen and (max-width: 1280px) {
  body {
    padding: 0;
  }

  .contact-container {
    flex-direction: column;
    align-items: left;
  }

  .contact-text-container {
    width: 100%;
  }

  .contact-form {
    width: 50%;
    margin-top: 20px;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
  }

  .banner-text h1 {
    font-size: 40px;
  }

  .banner-text h3 {
    font-size: 30px;
  }

  .contact-info-container {
    margin-top: 20px; /* Hier die Höhe anpassen */
    align-items: left;
  }
}

@media only screen and (max-width: 820px) {
  .navbar {
    padding: 5px;
  }

  .img-abt-container {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .img-abt {
    width: 75%;
  }

  .navbar-menu li a {
    padding: 5px;
    font-size: 14px;
  }

  .google-maps {
    height: 300px;
  }

  .logo img {
    max-width: 50%;
  }

  .cnc-img {
    width: 100%;
  }
}

/* Banner-Stile für Mobilgeräte */
@media only screen and (max-width: 768px) {
  .banner-start, .banner-about, .banner-services, .banner-contact {
    height: 50vh; /* Reduziere die Höhe der Banner für Mobilgeräte */
    width: auto;
  }

  .banner-text h1 {
    font-size: 36px; /* Reduziere die Schriftgröße des Titels für Mobilgeräte */
  }

  .banner-text h3 {
    font-size: 24px; /* Reduziere die Schriftgröße der Unterüberschrift für Mobilgeräte */
  }
}
