/* Core Stuff */

:root {
  --red: 229, 26, 31;
  --green: 57, 120, 78;
  --yellow: 244, 228, 20;
  --dark: 51, 51, 51;
  --light: 244, 244, 244;
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Noto Sans Display", sans-serif;
  font-variation-settings: "wdth" 62.5;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  max-width: 100%;
}

body {
  background: rgba(var(--light), 1);
  padding: 1rem;
  max-width: 100%;
  &.darken {
    overflow: hidden;
    &::before {
      content: "";
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      background-color: rgba(var(--dark), 0.90);
      z-index: 900;
    }
  }
}

::selection {
  color: rgba(var(--light), 1);
  background-color: rgba(var(--red), 1);
}

.icon {
  margin-right: 0.5rem;
  width: 1rem;
  height: 1rem;
  line-height: 1rem;
  & svg {
    width: 1rem;
    height: 1rem;
    fill: rgba(var(--dark), 1);
  }
  &#mobileMenuButton svg {
    width: 1.5rem;
    height: 1.5rem;
  }
}

h1, h2, h3, h4, h5, h6 {
  color: rgba(var(--dark), 1);
  margin: 0;
  padding: 0;
  font-weight: 900;
  font-optical-sizing: auto;
  font-style: normal;
  display: block;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1rem;
}

h1, h2 {
  &::after {
    content: "";
    display: block;
    width: 6.25rem;
    height: 0.25rem;
    margin-top: 0.25rem;
    background: rgba(var(--red), 1);
    border-radius: 0.5rem;
  }
}

/* HEADER */
header {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: space-between;
  max-width: 100%;
}

header .flex-right {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  order: 2;
  flex: 1;
}

/* WRAPPER */
#wrapper {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
  gap: 2.5rem;
  width: 960px;
  margin: 0 auto;
  max-width: 100%;
}

/* MAIN */
main {
  padding: 2.5rem;
  background: rgba(255, 255, 255, 1);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.15);
  max-width: 100%;
}
/* FOOTER */
footer {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2.5rem;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  & .copyright {
    flex: 100%;
    order: 4;
  }
}

.logo {
  display: flex;
  order: 1;
  justify-content: center;
  align-items: center;
  & img {
    width: auto;
    height: 50px;
    object-fit: contain;
  }
}

#back-to-top {
  text-decoration: none;
  padding: 1rem;
  line-height: 1rem;
  font-size: 1rem;
  color: rgba(var(--light), 1);
  background: rgba(var(--green), 1);
  box-shadow: 0 0.25rem 0.5rem rgba(19, 11, 11, 0.25);
  border-radius: 1rem;
  font-weight: 600;
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  display: none;
  & .icon {
    margin: 0;
    padding: 0;
    & svg {
      fill: rgba(var(--light), 1);
    }
  }
}

#mobileMenuButton {
  order: 4;
  flex: 0;
  font-size: 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  line-height: 1.5rem;
  outline: none;
  border: none;
  background: rgba(var(--light), 1);
  cursor: pointer;
}

.nav {
  display: none;
  flex: 1;
  & .dropdownParentLink {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    & button {
      outline: none;
      border: none;
      padding: 0.5rem;
      background: rgba(var(--light), 1);
      cursor: pointer;
      & span {
        margin: 0;
      }
    }
  }
  &.open {
    display: flex;
    z-index: 1000;
    position: fixed;
    right: 0;
    top: 0;
    width: max-content;
    height: 100%;
    padding: 1rem;
    background: rgba(var(--light), 1);
    & ul {
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 2.5rem;
      overflow-y: auto;
      & li{
        list-style-type: none;
        & ul.dropdown {
          display: none;
          &.open {
            display: block;
          }
          & li {
            list-style-type: none;
          }
        }
        & a {
          display: flex;
          width: 100%;
          padding: 0.5rem 1rem;
          color: rgba(var(--dark), 1);
          text-decoration: none;
          &.active {
            color: rgba(var(--green), 1);
          }
        }
      }
    }
  }
}

.socialNav {
  display: flex;
  gap: 1rem;
  order: 3;
  & ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
    padding: 0;
    & li {
      list-style-type: none;
      margin: 0;
      padding: 0;
      & a {
        display: flex;
        & img {
          width: auto;
          height: 24px;
          object-fit: contain;
        }
      }
    }
  }
}

.serviceNav {
  display: flex;
  gap: 1rem;
  order: 2;
  & ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
    padding: 0;
    & li {
      list-style-type: none;
      margin: 0;
      padding: 0;
      & a {
        display: flex;
        color: rgba(var(--dark), 1);
        text-decoration: none;
        font-weight: 700;
        font-optical-sizing: auto;
        font-style: normal;
      }
    }
  }
}

.breadcrumb {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: rgba(var(--dark), 0.15) 1px solid;
  & ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    & li {
      list-style-type: none;
      margin: 0;
      padding: 0;
      & a {
        color: rgba(var(--green), 1);
        text-decoration: underline;
        font-weight: 700;
        font-optical-sizing: auto;
        font-style: normal;
      }
      & span[aria-current="page"] {
        color: rgba(var(--dark), 1);
        text-decoration: none;
        font-weight: 400;
        font-optical-sizing: auto;
        font-style: normal;
      }
    }
    & span.breadcrumb-arrow svg {
      fill: var(--dark);
      font-size: 1rem;
    }
  }
}

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  flex: max(100%);
  margin-bottom: 1rem;
  & button {
    padding: 0.5rem 1rem;
    background-color: rgba(var(--light), 1);
    color: rgba(var(--dark), 1);
    border: 0;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: bold;
    &.all-have-category {
      opacity: 0.35;
      cursor: not-allowed;
    }
    &.active {
      background-color: rgba(var(--green), 1);
      color: rgba(var(--light), 1);
    }
  }
}

/* KONTAKT */

#contact-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: 100%;
  text-align: center;
  & .honeypot {
  position: absolute;
left: -9999px;
  }
  & .form-field {
    display: flex;
    padding: 1rem 1.5rem;
    background-color: rgba(var(--light), 1);
    border-radius: 0.5rem;
    & label {
      display: none;
    }
    & input {
      border: 0 transparent;
      background-color: transparent;
      width: calc(100% - 2rem);
      color: rgba(var(--dark), 1);
    }
  }
  & .form-field:nth-of-type(2) {
    flex: max(300px, (100% - 3rem) / 2);
  }
  & .form-field:nth-of-type(3) {
    flex: max(300px, (100% - 3rem) / 2);
  }
  & .form-field:nth-of-type(4) {
    flex: max(100%);
  }
  & .form-field:nth-of-type(5) {
    flex: max(100%);
    & .form-textarea {
      display: flex;
      flex: max(100%);
      background-color: transparent;
      border: 0 transparent;
      min-height: 200px;
      width: calc(100% - 2rem);
      color: rgba(var(--dark), 1);
    }
  }

  & .button-wrapper {
    display: flex;
    flex: max(300px, (100% - 9rem) / 3);
    justify-items: center;
    justify-content: center;
    & button.button {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      max-width: 300px;
      padding: 1rem;
      line-height: 1;
      border-radius: 0.5rem;
      border: 0px transparent;
      background-color: rgba(var(--green), 1);
      color: rgba(var(--light), 1);
      font-weight: 600;
      cursor: pointer;
      & span.icon svg {
        fill: rgba(var(--light), 1);
      }
    }
  }
}

/* CONTENT */

.content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

a {
  color: rgba(var(--green), 1);
  text-decoration: underline;
  font-weight: 700;
  font-optical-sizing: auto;
  font-style: normal;
}

p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

img {
  border-radius: 1rem;
}

ul, ol {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.grid {
  display: flex;
  flex: max(100%);
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.5rem;

  & .column {
    display: flex;
    flex-direction: column;

    &.--span-12 {
      flex: 1;
    }

    &.--span-8 {
      flex: max(200px, ((100% / 12) * 8 - (1 * 1.5rem / 2)));
    }

    &.--span-6 {
      flex: max(200px, ((100% / 12) * 6 - (1 * 1.5rem / 2)));
    }

    &.--span-4 {
      flex: max(200px, ((100% / 12) * 4 - (2 * 1.5rem / 3)));
    }

    &.--span-3 {
      flex: max(200px, ((100% / 12) * 3 - (3 * 1.5rem / 4)));
    }

    & p {
      margin-bottom: 1rem;
    }

    & h1, h2, h3, h4, h5, h6 {
      margin-bottom: 1rem;
    }

    & hr {
    }

    & figure {
      margin: 0 0 1rem 0;
      padding: 0 0 2rem 0;
      overflow: hidden;
      border-radius: 1rem;
      &[data-ratio="auto"] {
        aspect-ratio: auto;
      }

      &[data-ratio="1/1"] {
        aspect-ratio: 1/1;
      }

      &[data-ratio="16/9"] {
        aspect-ratio: 16/9;
      }

      &[data-ratio="10/8"] {
        aspect-ratio: 10/8;
      }

      &[data-ratio="21/9"] {
        aspect-ratio: 21/9;
      }

      &[data-ratio="7/5"] {
        aspect-ratio: 7/5;
      }

      &[data-ratio="4/3"] {
        aspect-ratio: 4/3;
      }

      &[data-ratio="5/3"] {
        aspect-ratio: 5/3;
      }

      &[data-ratio="3/2"] {
        aspect-ratio: 3/2;
      }

      &[data-ratio="3/1"] {
        aspect-ratio: 3/1;
      }

      &[data-crop] {
        & img {
          object-fit: cover;
        }
      }

      & iframe {
      }

      & img {
        border-radius: 1rem;
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      & ul {
        margin: 0;
        padding: 0;
        list-style-type: none;
        display: grid;
        gap: 1.5rem;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        & li {
          & img {
          }
        }
      }
    }

    & ul {
      & li {
      }
    }

    & pre {
    }
  }
}

.news-grid, .mitglieder-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.news-grid article {
  height: 350px;
  position: relative;
  border-radius: 1rem;
  background: rgba(var(--dark), 1);
  & a {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    text-decoration: none;
    border-radius: 1rem;
    & .content-wrapper {
      z-index: 1;
      display: flex;
      flex-direction: column;
      height: 100%;
      justify-content: space-between;
      gap: 1rem;
      border-radius: 1rem;
      box-shadow: inset 0 80px 20px 0 rgba(0, 0, 0, 0.35), inset 0 -80px 20px 0 rgba(0, 0, 0, 0.35);
      padding: 1rem;
      & h3 {
        font-size: 1rem;
        color: rgba(var(--light), 1);
        text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
      }
    }
    & img {
      object-fit: cover;
      width: 100%;
      height: 100%;
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      z-index: 0;
    }
  }
}
.news-more {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.mitglieder-grid article {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-between;
  height: auto;
  border-radius: 1rem;
  background: rgba(var(--light), 1);
  padding: 1rem;
  gap: 1rem;
  & img {
    object-fit: cover;
    aspect-ratio: 4/3;
    width: 100%;
    height: auto;
  }
  & h3 {
    font-size: 1.5rem;
    font-weight: normal;
    color: rgba(var(--dark), 1);
  }
  p.position {
    margin-bottom: 1rem;
    font-weight: 300;
  }
  & ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
    padding: 0;
    & li {
      display: flex;
      flex-direction: row;
      align-items: center;
      list-style-type: none;
      margin: 0;
      padding: 0;
      font-size: 0.875rem;
    }
  }
}

.mitglied-info {
  margin: 0;
  padding: 0;
  & li {
    list-style-type: none;
display: flex;
flex-direction: row;
& span {
displa: flex;
flex: 1;
}
& svg {
 fill: rgba(var(--dark), 1);
height: 1rem;
width: 1rem;
margin-right: 0.5rem;
display: flex;
}
  }
}

/* BUTTON */
.cta {
  font-size: 1rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  text-align: center;
  outline: none;
  border: none;
  background: rgba(var(--green), 1);
  color: rgba(var(--light), 1);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-optical-sizing: auto;
  font-style: normal;
  cursor: pointer;
  & .icon {
    & svg {
      fill: rgba(var(--light), 1);
    }
  }
}

/* MEDIA QUERIES */

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
  body {
    padding: 1.5rem;
  }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
  body {
    padding: 2.5rem;
  }
  header {
    flex-direction: row;
  }
  #mobileMenuButton {
    display: none;
  }
  .nav {
    display: flex;
    gap: 1rem;
    order: 2;
    & ul {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      gap: 1rem;
      margin: 0;
      padding: 0;
      & li {
        list-style-type: none;
        margin: 0;
        padding: 0;
        position: relative;
        display: block;
        &:hover a {
          color: rgba(var(--green), 1);
        }
        & a {
          display: block;
          padding: 0.5rem;
          color: rgba(var(--dark), 1);
          text-decoration: none;
          font-weight: 700;
          font-optical-sizing: auto;
          font-style: normal;
          &.active {
            color: rgba(var(--green), 1);
          }
        }
        &:hover .dropdown {
          display: block;
          opacity: 1;
          background: rgba(var(--light), 1);
          border-radius: 0 0 1rem 1rem;
          box-shadow: 0 2px 2px rgba(0, 0, 0, 0.15);
        }
        & .dropdown {
          position: absolute;
          display: none;
          opacity: 0;
          width: max-content;
          min-width: 100%;
          & li {
            width: auto;
            padding: 1rem;
            text-align: center;
            & a {
              color: rgba(var(--dark), 1);
              &.active {
                color: rgba(var(--green), 1);
              }
            }
            &:hover a {
              color: rgba(var(--green), 1);
            }
          }
        }
      }
    }
  }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
  body {
    padding: 5rem;
  }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {

}
