html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  overflow-x: hidden;
}

.navbar.white {
  background-color: white;
}

.navbar.white .navbar-menu li a::after {
  background-color: black;
}

.navbar.shadow {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.globe {
  width: 25px;
  margin-right: 50px;
  margin-top: -3px;
  margin-left: -15px;
}

.dropdown {
  background-color: white;
  position: absolute;
  width: 200px;
  height: 0;
  overflow: hidden;
  right: 0;
  top: 100%;
  opacity: 0;
  transition: height 0.3s ease, opacity 0.3s ease;
}

.dropdown ul {
  list-style-type: none;
  padding: 0;
  margin: 10px;
}

.dropdown li {
  cursor: pointer;
  padding: 5px;
  transition: background-color 0.3s ease;
}

.dropdown ul li a {
  color: black;
  text-decoration: none;
}

.dropdown li:hover {
  background-color: #f1f1f1;
}

.dropdown-hover:hover .dropdown {
  height: 80px;
  opacity: 1;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: transparent;
  transition: background-color 0.5s ease;
  z-index: 1;
}

.navbar-menu {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.navbar-menu li {
  margin: 0 20px;
  position: relative;
}

.navbar-menu li a {
  color: black;
  text-decoration: none;
  font-weight: 100;
  font-size: 1.1rem;
  position: relative;
}

.navbar-menu li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background-color: white;
  transition: width 0.3s ease;
}

.navbar-menu li a:hover::after {
  width: 100%;
}

.navbar ul li:last-child {
  margin-right: 50px;
}

.navbar-logo img {
  margin-left: 50px;
  width: 95px;
  cursor: pointer;
}

.start-image {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  filter: brightness(50%);
}

.slideshow {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.slideshow img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  filter: brightness(50%);
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slideshow img.active {
  opacity: 1;
}

#toggle {
  display: none;
}

.hamburger {
  position: absolute;
  top: 5em;
  right: 5%;
  margin-left: -2em;
  margin-top: -45px;
  width: 2em;
  height: 45px;
  z-index: 5;
}

.hamburger div {
  position: sticky;
  width: 3em;
  height: 7px;
  border-radius: 3px;
  background-color: black;
  margin-top: 8px;
  transition: all 0.3s ease-in-out;
}

#toggle:checked + .hamburger div {
  background-color: white;
  /* Farbe des "X" */
}

.nav {
  position: fixed;
  z-index: 3;
  width: 100%;
  height: 100%;
  background-color: #0f172a;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  transform: scale(0);
  text-align: center;
}

.nav-wrapper {
  position: relative;
  overflow: hidden;
  overflow-y: auto;
  height: 100%;
  margin-top: 10%;
}

.nav-ham a {
  position: relative;
  text-decoration: none;
  color: #fff;
  font-size: 1.6rem;
  display: inline-block;
  margin-top: 1.25em;
  transition: color 0.2s ease-in-out;
  letter-spacing: 1px;
  font-weight: 100;
}

.nav-ham a:before {
  content: "";
  height: 0;
  position: absolute;
  width: 0.25em;
  background-color: white;
  left: -0.5em;
  transition: all 0.2s ease-in-out;
}

.nav-ham a:hover {
  color: white;
}

.nav-ham a:hover:before {
  height: 100%;
}

.logo-ham {
  margin-left: 20px;
  margin-top: 35px;
  width: 90px;
  cursor: pointer;
  z-index: 3;
  position: absolute;
}

.globe-ham {
  width: 30px;
  margin-bottom: -6px;
  margin-top: 20px;
}

#toggle:checked + .hamburger .top-bun {
  transform: rotate(-45deg);
  margin-top: 25px;
}

#toggle:checked + .hamburger .bottom-bun {
  opacity: 0;
  transform: rotate(45deg);
}

#toggle:checked + .hamburger .meat {
  transform: rotate(45deg);
  margin-top: -7px;
}

#toggle:checked + .hamburger + .nav {
  top: 0;
  transform: scale(1);
}

.hamburger-menü {
  display: none;
}

@media screen and (max-width: 768px) {
  .navbar {
    display: none;
    top: 0;
  }

  .nav-wrapper {
    margin-top: 35%;
  }

  .hamburger-menü {
    display: block;
  }

  .logo-ham {
    margin-left: 15px;
    width: 80px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1400px) {
  .navbar {
    display: none;
  }

  .hamburger-menü {
    display: block;
  }

  .logo-ham {
    margin-left: 50px;
    width: 100px;
  }
}

main {
  margin: 10% 10% 5% 10%;
}

main h1 {
  border-bottom: 1px solid black;
  margin-bottom: 4%;
  margin-top: 8%;
}

main p {
  font-weight: 100;
}

main li {
  list-style: none;
}

footer {
  background-color: #27272a;
  padding: 20px 20px 40px 20px;
}

.footer_container {
  display: flex;
  justify-content: flex-start;
  gap: 80px;
  margin: 0 5% 0 5%;
}

.footer_container img {
  width: 100px;
}

.optimalcars_container {
  width: 40%;
  margin-left: 50px;
}

.optimalcars_container p {
  color: white;
  font-weight: 100;
  margin-top: 30px;
  font-size: 0.7rem;
}

.footer_container h2 {
  color: white;
  font-size: 1.1rem;
}

.footer_container ul {
  padding: 0;
}

.footer_container ul li {
  list-style: none;
}

.footer_container ul li a {
  font-weight: 100;
  color: white;
  text-decoration: none;
}

@media screen and (max-width: 768px) {
  main {
    margin: 20% 5% 5% 5%;
  }

  .footer_container {
    display: flex;
    flex-direction: column-reverse;
    gap: 20px;
    margin: 0 5% 0 5%;
  }

  .optimalcars_container {
    margin-left: 0;
    width: 100%;
  }

  footer {
    padding: 20px 20px 40px 0px;
  }

  .nav-ham a {
    position: relative;
    text-decoration: none;
    color: #fff;
    font-size: 1.6rem;
    display: inline-block;
    margin-top: 1em;
    transition: color 0.2s ease-in-out;
    letter-spacing: 1px;
    font-weight: 100;
  }
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
  .optimalcars_container {
    width: 40%;
    margin-left: 0px;
  }
}
