* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

body {
  background-color: #fff;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.topbar .mitglied {
  font-weight: 600;
}

.topbar .telefon {
  font-weight: 400;
}

.header-middle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2.5rem;
  width: 100%;
  margin: 0;
  max-width: none;
}

.logo {
  height: 4rem;
}

.such-container {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.suche {
  width: 20rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #7b7978;
  font-size: 0.875rem;
  background-color: #fff;
  color: #7b7978;
}

.such-btn {
  padding: 0.5rem;
  border: none;
  background-color: #086738;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.mainnav {
  background-color: #086738;
}

.mainnav ul {
  display: flex;
  list-style: none;
  max-width: 75rem;
  margin: 0 auto;
  padding: 0;
}

.mainnav a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.mainnav a.active {
  background-color: #8ec63f;
}

.hero-image {
  position: relative;
  width: 100%;
  height: 20rem;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.textfeld {
  position: absolute;
  bottom: 20%;
  left: 10%;
  background-color: #086738;
  color: #fff;
  padding: 0.9375rem 1.5625rem;
  max-width: 31.25rem;
  border: none;
}

.aktuelles {
  max-width: 56.25rem;
  margin: 3.75rem auto;
  padding: 0 1.25rem;
}

.aktuelles h2 {
  color: #086738;
  margin-bottom: 1.125rem;
}

.aktuelles-container {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
}

.news-item,
.aktuelles-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.125rem 0;
  border-bottom: 1px solid #7b7978;
}

.news-item img,
.aktuelles-item img {
  width: 10rem;
  height: 7.8125rem;
  object-fit: cover;
}

.news-text {
  flex: 1;
  color: #7b7978;
}

.news-text h3 {
  margin-bottom: 0.5rem;
  color: #086738;
}

.weiterlesen {
  display: inline-block;
  margin-top: 0.625rem;
  padding: 0.5rem 0.875rem;
  background-color: #086738;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.kontaktformular {
  max-width: 56.25rem;
  margin: 2.5rem auto;
}

.formular-title {
  color: #086738;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: left;
  max-width: 56.25rem;
  margin-left: auto;
  margin-right: auto;
}

.formular-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

input,
textarea,
select {
  padding: 0.625rem 0.75rem;
  border: 1px solid #7b7978;
  background-color: #fff;
  font-size: 0.875rem;
  color: #7b7978;
}

input::placeholder,
textarea::placeholder {
  color: #7b7978;
}

textarea {
  resize: vertical;
}

.nachricht-box {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
}

.absenden-btn {
  display: block;
  margin-left: auto;
  margin-top: 1.25rem;
  padding: 0.625rem 6.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #7b7978;
  background-color: #fff;
  border: 1px solid #7b7978;
  cursor: pointer;
}

footer {
  background-color: #7b7978;
  color: #fff;
  padding: 2.5rem 1.25rem;
}

footer h5 {
  font-weight: 600;
  margin-bottom: 0.9375rem;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer ul li {
  margin-bottom: 0.5rem;
}

footer .footer-link {
  text-decoration: none;
  color: #fff;
}

footer .footer-link:hover {
  text-decoration: underline;
}

footer .footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

footer .footer-col {
  flex: 1 1 18rem;
}

footer .sitemap-links {
  padding: 0;
  margin: 0;
}

footer .sitemap-links li {
  list-style: none;
  border-bottom: 1px solid #fff;
  padding: 0.25rem 0;
}

footer .sitemap-links li:last-child {
  border-bottom: none;
}

footer .sitemap-links a {
  color: #fff;
  text-decoration: none;
}

footer .sitemap-links a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .header-middle {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .such-container {
    width: 100%;
  }

  .such-container input {
    flex: 1;
    border-radius: 0;
  }

  .mainnav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .aktuelles-container {
    gap: 1rem;
  }

  .news-item,
  .aktuelles-item {
    flex-direction: column;
    gap: 0.75rem;
  }

  .news-item img,
  .aktuelles-item img {
    width: 100%;
    height: auto;
  }

  .formular-grid {
    grid-template-columns: 1fr;
  }

  .kontaktformular input,
  .kontaktformular textarea,
  .absenden-btn {
    width: 100%;
    max-width: 400px;
    margin: 0.5rem auto;
    border-radius: 0;
    box-sizing: border-box;
  }

  .hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  .textfeld {
    position: absolute;
    top: 6rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 70%;
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    text-align: center;
    box-sizing: border-box;
    word-wrap: break-word;
  }

  footer .footer-row {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .mainnav ul {
    flex-direction: column;
    align-items: center;
  }

  .hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  .textfeld {
    position: absolute;
    top: 6rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 75%;
    width: 100%;
    padding: 0.9rem;
    font-size: 0.95rem;
    text-align: center;
    box-sizing: border-box;
    word-wrap: break-word;
  }

  .aktuelles-container {
    gap: 1rem;
  }

  .news-item,
  .aktuelles-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .news-item img,
  .aktuelles-item img {
    width: 100%;
    height: auto;
  }

  .formular-grid {
    grid-template-columns: 1fr;
  }

  .kontaktformular input,
  .kontaktformular textarea,
  .absenden-btn {
    width: 100%;
    max-width: 400px;
    margin: 0.5rem auto;
    border-radius: 0;
    box-sizing: border-box;
  }

  footer .footer-row {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .topbar,
  .header-middle {
    padding: 0.5rem 1rem;
  }

  .mainnav a {
    padding: 0.5rem 1rem;
  }

  .hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  .textfeld {
    position: absolute;
    top: 6rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    width: 100%;
    padding: 0.8rem;
    font-size: 0.9rem;
    text-align: center;
    box-sizing: border-box;
    word-wrap: break-word;
  }

  .aktuelles h2,
  .formular-title {
    font-size: 1.25rem;
  }

  .absenden-btn,
  .kontaktformular input,
  .kontaktformular textarea {
    width: 100%;
    max-width: 400px;
    margin: 0.5rem auto;
    padding: 0.5rem;
    border-radius: 0;
    box-sizing: border-box;
  }
}
