:root {
  interpolate-size: allow-keywords;
  --black: #373737;
  --green: #75cc66;
}

* {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

h1 {
  font-size: 70px;
  font-weight: 700;
  line-height: 1.1em;
}

h2 {
  font-size: 40px;
  font-weight: 500;
}

h3 {
  font-size: 40px;
  font-weight: 500;
}

h4 {
  font-size: 20px;
  font-weight: 400;
  text-align: center;
}

@media (max-width: 1100px) {
  h1 {
    font-size: 50px;
    font-weight: 600;
  }

  h2 {
    font-size: 25px;
    font-weight: 400;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

body {
  min-height: 100vh;
  font-family: "Jost", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 18px;
  font-style: normal;
  color: var(--black);
  background-image: url("/bg.webp");
  background-size: cover;
  background-attachment: fixed;
  animation: parallax linear;
  animation-timeline: scroll();
  position: relative;
}

body:has(.datenschutz) {
  animation: none;
}

@keyframes parallax {
  from {
    background-position: bottom 0px center;
  }
  to {
    background-position: bottom 400px center;
  }
}

body * {
  display: block;
  box-sizing: border-box;
}

.navigationWrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  top: 40px;
  z-index: 1;
}

.navigation {
  width: calc(100% - 80px);
  max-width: 1000px;
  height: 100px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  margin: 0 40px;
}

.logo {
  height: 80%;
  display: block;
}

@media (max-width: 1100px) {
  .navigationWrapper {
    top: 0;
  }
  .navigation {
    width: 100%;
    padding: 0 20px;
    margin: 0 0;
    border-radius: 0;
  }
}

.logo img {
  height: 100%;
}

.nav {
  display: flex;
  gap: 30px;
  scroll-target-group: auto;
}

.nav .item {
  background: transparent;
  color: var(--green);
  font-weight: 500;
  padding: 7px 15px;
  border-radius: 20px;
  transition: 0.2s ease-in-out;
}

@media (max-width: 1100px) {
  .navigationWrapper .nav .item {
    display: none;
  }
}

.nav .item.hidden {
  display: none;
}

.nav .item:has(a:target-current),
.nav .item:hover {
  background: var(--green);
  color: white;
  font-weight: 500;
}

.hamb {
  cursor: pointer;
  float: right;
  padding: 40px 20px;
  display: none;
  aspect-ratio: 1;
}

.hamb-line {
  background: var(--green);
  display: block;
  height: 2px;
  position: relative;
  width: 24px;
}

.hamb-line::before,
.hamb-line::after {
  background: var(--green);
  content: "";
  display: block;
  height: 100%;
  position: absolute;
  transition: all 0.2s ease-out;
  width: 100%;
}
.hamb-line::before {
  top: 5px;
}
.hamb-line::after {
  top: -5px;
}

.side-menu {
  display: none;
}

.mobileNavigationWrapper {
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
  display: none;
}

@media (max-width: 1100px) {
  .hamb {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .mobileNavigationWrapper {
    display: block;
  }
}

.mobileNavigationWrapper .backdrop {
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0;
  right: 0;
  background: rgba(0, 0, 0, 0);
  transition: 1s ease-in-out;
  pointer-events: none;
}

.mobileNavigationWrapper .nav {
  background: white;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 20px;
  width: 90%;
  max-width: 300px;
  padding: 40px;
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  box-shadow: -10px 1px 20px 0px rgb(0 0 0 / 20%);
  translate: calc(100% + 20px) 0;
  transition: 1s ease-in-out;
}

body:has(.side-menu:checked) .mobileNavigationWrapper .backdrop {
  background: rgba(0, 0, 0, 0.4);
  pointer-events: all;
}

body:has(.side-menu:checked) .mobileNavigationWrapper .nav {
  translate: 0 0;
}

.side-menu:checked ~ .hamb .hamb-line {
  background: transparent;
}
.side-menu:checked ~ .hamb .hamb-line::before {
  transform: rotate(-45deg);
  top: 0;
}
.side-menu:checked ~ .hamb .hamb-line::after {
  transform: rotate(45deg);
  top: 0;
}

body:has(.side-menu:checked) {
  overflow: hidden;
}

.content {
  display: grid;
  grid-template-columns:
    1fr
    min(1440px, 100%)
    1fr;
}

.datenschutz {
  padding: 200px 40px;
}

.datenschutz h1 {
  font-size: 25px;
  margin-top: 1em;
}

.datenschutz h2 {
  font-size: 22px;
  margin-top: 1em;
}

.datenschutz h3 {
  font-size: 20px;
  margin-top: 1em;
}

.datenschutz p,
.datenschutz li {
  margin-top: 1em;
}

.section {
  grid-column: 2;
  position: relative;
  min-height: calc(100dvh + 40px);
}

.section.full {
  width: 100%;
  grid-column: 1 / 4;
  display: grid;
  grid-template-columns: subgrid;
  margin-top: -55px;
}

.section.full .fullContent {
  grid-column: 2;
  padding: 0 40px;
}

@media (max-width: 1100px) {
  .content {
    grid-template-columns: 1fr;
  }

  .section {
    grid-column: 1;
  }

  .section.full {
    grid-column: 1;
  }

  .section.full .fullContent {
    grid-column: 1;
    padding: 20px;
  }
}

.section.header {
  overflow: clip;
}

.headerImages {
  width: 100%;
  height: 100vh;
}

.headerImages .image {
  position: absolute;
  padding: 15px 15px 55px 15px;
  background: rgb(255, 255, 250);
  box-shadow: 6px 6px 6px 3px rgba(0, 0, 0, 0.05);
}

.headerImages .image1 {
  top: 45%;
  left: 8%;
  rotate: -20deg;
  animation: i1p linear;
  animation-timeline: scroll();
}

@keyframes i1p {
  from {
    translate: 0 0;
  }
  to {
    translate: -200px -400px;
  }
}

.headerImages .image2 {
  top: 22%;
  left: 17%;
  rotate: 10deg;
  animation: i2p linear;
  animation-timeline: scroll();
}

@keyframes i2p {
  from {
    translate: 0 0;
  }
  to {
    translate: -50px -200px;
  }
}

.headerImages .image3 {
  top: 16%;
  left: 37%;
  rotate: -11deg;
  animation: i3p linear;
  animation-timeline: scroll();
}

@keyframes i3p {
  from {
    translate: 0 0;
  }
  to {
    translate: 100px -100px;
  }
}

.headerImages .image4 {
  top: 24%;
  left: 65%;
  rotate: 16deg;
  animation: i4p linear;
  animation-timeline: scroll();
}

@keyframes i4p {
  from {
    translate: 0 0;
  }
  to {
    translate: 300px -100px;
  }
}

.headerImages .image img {
  width: 260px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 500px) {
  .headerImages .image {
    padding: 10px 10px 30px 10px;
  }
  .headerImages .image1 {
    top: 39%;
    left: 48%;
    rotate: -2deg;
  }

  .headerImages .image2 {
    top: 36%;
    left: 6%;
    rotate: -17deg;
  }

  .headerImages .image3 {
    top: 16%;
    left: 47%;
    rotate: 7deg;
  }

  .headerImages .image4 {
    top: 13%;
    left: 5%;
    rotate: -5deg;
  }

  .headerImages .image img {
    width: 150px;
  }
}

@media (max-height: 700px) and (max-width: 1000px) {
  .headerImages .image1 {
    display: none;
  }

  .headerImages .image2 {
    display: none;
  }
   .headerImages .image3 {
    top: 20%;
  
  }

  .headerImages .image4 {
    top: 25%;
    
  }
}

@media (max-height: 500px) {
  .headerImages {
    display: none;
  }
}

.headerTitles {
  position: absolute;
  bottom: 10%;
  right: 10%;
  text-align: right;
}

.headerTitles h1 em {
  display: inline-block;
  color: var(--green);
  font-style: normal;
}

.headerTitles h2 {
  line-height: 1.2em;
}

.section.leftRight {
  padding: 150px 0;
}

.section.leftRight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background-size: cover;
  filter: hue-rotate(var(--hue));
}

@media (max-width: 1100px) {
  .headerTitles h1 {
    margin-bottom: 20px;
  }
}

.section.leftRight.bg2::before {
  background-image: url("/bg2.webp");
}

.section.leftRight.bg3::before {
  background-image: url("/bg3.webp");
}

.section.leftRight.bg4::before {
  background-image: url("/bg4.webp");
}

.leftRight .fullContent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1000px;
  justify-self: center;
}

.leftRightWrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 60px;
  align-items: stretch;
}

.leftRightWrapper .left,
.leftRightWrapper .right {
  position: relative;
  min-width: 500px;
}

@media (max-width: 1100px) {
  .leftRightWrapper {
    grid-template-columns: 1fr;
  }

  .leftRightWrapper .left,
  .leftRightWrapper .right {
    min-width: 100%;
  }

  .leftRightWrapper .left {
    aspect-ratio: 1;
    max-height: 400px;
  }
}

.leftRightWrapper .left img {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  object-fit: cover;
}

.accordion {
  margin-top: 40px;
}

.accordion details::details-content {
  overflow: hidden;
  height: 0;
  transition:
    height 0.3s,
    content-visibility 0.3s;
  transition-behavior: allow-discrete;
}

.accordion details[open]::details-content {
  height: auto;
}

.accordion details summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1rem 0;
  font-size: 1.25rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  border-top: 1px solid var(--black);
}

.accordion details summary::after {
  content: "▾";
  transition: 0.4s ease-in-out;
  font-size: 1.3em;
}

.accordion details[open] summary::after {
  content: "▾";
  rotate: 180deg;
}

.accordion details:first-child summary {
  border-top: none;
}

.accordion details p {
  padding-bottom: 20px;
}

.section.form form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 40px;
  margin-top: 40px;
}

.section.form .input.wide {
  grid-column: 1 / span 2;
}

@media (max-width: 1100px) {
  .section.form form {
    grid-template-columns: 1fr;
    gap: 10px 40px;
    margin-top: 40px;
    width: 100%;
  }

  .section.form .input.wide {
    grid-column: 1;
  }
}

.section.form label {
  font-size: 0.8em;
  font-weight: 600;
  margin-bottom: 5px;
}

.section.form input,
.section.form select,
.section.form textarea {
  font: inherit;
  padding: 5px 10px;
  min-width: 250px;
  width: 100%;
}

.section.form textarea {
  resize: vertical;
  min-height: 40px;
  max-height: 300px;
}

.section.form .button {
  padding: 7px 15px;
  border-radius: 20px;
  transition: 0.2s ease-in-out;
  background: var(--green);
  color: white;
  font-weight: 500;
  border: 2px solid var(--green);
  outline: 0;
  margin: auto;
  max-width: 50%;
  margin-top: 20px;
  cursor: pointer;
}

.section.form .button:hover {
  background: white;
  color: var(--green);
}

.footer {
  position: absolute;
  bottom: 20px;
  display: flex;
  justify-content: center;
  width: 100%;
  gap: 20px;
}

.footer a {
  opacity: 0.8;
}
