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

h1 {
  text-align: center;
}

.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;
}

.flag {
  width: 40px;
  margin-top: -5px;
  margin-right: 50px;
  margin-left: 10px;
}

.engl {
  border: 0.5px solid black;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  transition: background-color 0.5s ease;
  z-index: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.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: 2px;
  background-color: black;
  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;
}

main {
  margin-top: 10%;
  margin-left: 10%;
  margin-right: 10%;
}

h1 {
  color: #ef4444;
}

.text {
  text-align: center;
  font-weight: 100;
  margin-top: 3%;
  margin-bottom: 5%;
  font-size: 1rem;
}

form {
  display: flex;
  flex-direction: column;
  max-width: 70%;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  font-weight: 100;
  font-size: 1rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

textarea {
  height: 100px;
}

input[type="submit"] {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

input[type="submit"]:hover {
  background-color: #45a049;
}

span {
  color: red;
  font-weight: bold;
}

.rechlich {
  font-weight: 100;
  margin: auto;
  font-size: 0.8rem;
  margin-top: 2%;
}

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

  main {
    margin-left: 2%;
    margin-right: 2%;
    align-items: center;
  }

  form {
    max-width: 75%;
  }
}

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

  main {
    margin-left: 2%;
    margin-right: 2%;
    align-items: center;
  }

  form {
    max-width: 75%;
  }
}

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

  main {
    margin-left: 2%;
    margin-right: 2%;
    align-items: center;
  }

  form {
    max-width: 75%;
  }
}

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

  main {
    margin-left: 2%;
    margin-right: 2%;
    align-items: center;
  }

  form {
    max-width: 75%;
  }
}

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

  main {
    margin-left: 2%;
    margin-right: 2%;
    align-items: center;
  }

  form {
    max-width: 75%;
  }
}

#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: relative;
  width: 3em;
  height: 7px;
  border-radius: 3px;
  background-color: black;
  margin-top: 8px;
  transition: all 0.3s ease-in-out;
}

.nav {
  position: fixed;
  z-index: 3;
  width: 100%;
  height: 100%;
  background-color: #0f172a;
  top: -100%;
  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;
  }

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

  .hamburger-menü {
    display: block;
  }
}

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

  .hamburger-menü {
    display: block;
  }
}

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) {
  .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;
  }
}
