html {
  font-size: 16px;
  font-family: Arial, Helvetica, sans-serif;
  color: black;
}

body {
  min-height: 100vh;

  background-color: rgba(239, 235, 229, 1);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 30px;
}

.leisteoben {
  font-size: 25px;

  line-height: 180%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logoimg {
  margin-left: 32px;
}

.kontaktleiste {
  margin-right: 32px;
  color: #4f1313;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.ecke {
  width: 80px;
  height: 80px;
  position: absolute;
  top: 5px;
  right: 5px;
  cursor: pointer;
}

.links {
  width: 100%;
}

nav {
  margin-bottom: 10px;
}

nav ul {
  background-color: black;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

nav a {
  color: white;
  padding: 0px 32px;
}

.menu-link:hover {
  text-decoration: underline;
  background-color: #2e8b57;
}

#toggle_button {
  display: none;
}

label[for="toggle_button"] {
  display: none;
}

label[for="toggle_button"] span {
  font-size: 40px;
}

h1 {
  text-align: center;
  color: #4f1313;
  font-size: 2em;
  padding: 30px 0px 30px 0px;
}

h2 {
  max-width: 80%;
  margin: auto;
  color: #4f1313;
  font-size: 1em;
  padding: 15px 0px 15px 0px;
}

h6 {
  text-align: center;
  color: #4f1313;
  font-size: 1.5em;
  margin: 30px 0px 30px 0px;
}


#p2 {
  text-align: center;
  color: #4f1313;
  font-size: 1.3em;
  margin: 20px 0px 10px 0px;
}

.leistungen {
  display: flex;
  justify-content: space-evenly;
  font-size: 20px;
  margin-bottom: 30px;
}

.leistimg {
  width: 170px;
  height: 170px;
}

.bildmitp1 {
  max-width: 18%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bildmitp2 {
  max-width: 18%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bildmitp3 {
  max-width: 18%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bildmitp4 {
  max-width: 18%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bildmitp5 {
  max-width: 18%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.impressum {
  width: 100%;
  height: 30px;
  background-color: black;
  font-size: 15px;

  display: flex;
  justify-content: center;
  align-items: center;
}

.impressumtext {
  color: white;
}

@media (max-width: 800px) {
  h1 {
    font-size: 8vw;
    text-align: center;
  }

  nav {
    position: absolute;
    top: 0;
    left: 0;
    background: #2e8b57;
    padding: 15px;
    border-radius: 0 0 25px 0;
  }
  nav ul {
    display: none;
    flex-direction: column;
  }
  #toggle_button:checked ~ ul {
    display: flex;
  }

  label[for="toggle_button"] {
    display: block;
  }

  .leisteoben {
    flex-direction: column;
  }
  .logoimg {
    margin: 0px;
  }
  .kontaktleiste {
    display: none;
    margin: 0px;
  }
}

@media (max-width: 1000px) {
  .leistungen {
    flex-direction: column;
  }

  .bildmitp1 {
    max-width: 60%;
    margin: auto;
  }

  .bildmitp2 {
    max-width: 60%;
    margin: auto;
  }

  .bildmitp3 {
    max-width: 60%;
    margin: auto;
  }

  .bildmitp4 {
    max-width: 60%;
    margin: auto;
  }

  .bildmitp5 {
    max-width: 60%;
    margin: auto;
  }
  p1 {
    width: 120%;
  }
}
