:root {
  --desktop-nav-height: 7vh;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Coda-Mono", Arial, Helvetica, sans-serif;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

@font-face {
  font-family: "Coda-Mono";
  src: url(../fonts/CMMCoda-MonoSans.woff2) format("woff2");
}


h1 {
  font-size: 1.2rem;
  text-transform: uppercase;
}

h2 {
  font-size: 0.9rem;
  font-weight: 200;
  color: grey;
}

button {
  font-family: "Coda-Mono", Arial, Helvetica, sans-serif;
  border: 1px solid black;
  border-radius: 2rem;
  background-color: white;
  padding: 5px;

}

button:hover {
  cursor: pointer;
  background-color: black;
  color: white;
}

body {
  padding: 10px;
  padding-top: 10px;
  width: 100vw;
  margin: 0px;
}

/* desktop nav */
#desktop-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  border-collapse: collapse;
  text-transform: uppercase;

  .desktop-nav-w {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    color: black;
    height: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-bottom: 1px dashed black;
    padding-top: 20px;
    margin-left: 10px;
    margin-right: 10px;
    background-color: white;
  }

  #logo-container a:hover {
    cursor: url("/assets/arrows/Ar-01.png"), auto;
  }

  #logo-container {
    display: flex;
    align-items: center;
    min-height: var(--desktop-nav-height);
    width: fit-content;
    padding-right: 3vw;

    a {
      display: flex;
      align-items: center;
    }

    img {
      max-width: 250px;
      max-height: var(--desktop-nav-height);
      height: auto;
    }
  }

  .nav-filter-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: fit-content;
    height: var(--desktop-nav-height);
  }

  .nav-filter-circle-container {
    display: flex;
    align-items: center;
    height: var(--desktop-nav-height);
    width: 100%;
    padding-left: 0.5vw;
    padding-right: 0.5vw;
  }

  .nav-filter-circle-container.active {
    .nav-filter-circle {
      background-color: var(--tag-color);
    }
  }

  .nav-filter-circle {
    border: 1px solid black;
    border-radius: 4vh;
    height: 5vh;
    width: 5vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
  }

  .nav-filter-circle:hover {
    width: fit-content;
    cursor: pointer;
    background-color: var(--tag-color);
    color: white;
  }

  .nav-filter-circle span {
    display: none;
    text-wrap: nowrap;
  }

  .nav-filter-circle:hover span {
    display: block;
    cursor: pointer;
    padding: 10px;
    padding-bottom: 9px;
  }

  .extra-filter-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    gap: 1vw;
    height: var(--desktop-nav-height);
  }

  .extra-filter-circle {
    border: 1px solid black;
    border-radius: 4vh;
    height: 5vh;
    width: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;

    a {
      text-decoration: none;
      color: black;
      padding: 5px 10px 2px 10px;
    }
  }

  .extra-filter-circle:hover {
    background-color: black;
    cursor: pointer;

    a {
      color: white !important;
    }
  }

  .default-border {
    border-top: 1px dashed black !important;
  }

  .left-border {
    border-left: 1px dashed black !important;
  }

  .middle-border {
    border-bottom: 0px dashed black !important;
  }

  .right-border {
    border-right: 1px dashed black !important;
  }
}

/* Mobile Nav */
#mobile-nav {
  display: none;
  flex-direction: column;
  width: 100%;
  font-size: 80%;
  height: 100vh;
  padding-top: 0px;
  padding-left: 10px;
  padding-right: 10px;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  text-transform: uppercase;

  .mobile-nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: fit-content;
    border-top: 1px dashed black;
    border-bottom: 1px dashed black;
    padding-top: .5vh;
    padding-bottom: .5vh;
    background-color: white;

    #mobile-menu-button {
      border: 1px solid black;
      border-radius: 4vh;
      height: 4vh;
      width: fit-content;
      display: flex;
      justify-content: center;
      align-items: center;
      background-color: white;

      span {
        padding: 10px;
        padding-bottom: 9px;
      }
    }

    #mobile-logo-container {
      display: flex;
      align-items: center;
      justify-content: flex-end;

      img {
        height: 40px;
      }

      a {
        line-height: 0;
      }
    }
  }

  .mobile-nav-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
    opacity: 0;
    height: 0px;
    transition: opacity .2s ease;

    .nav-filter-container {
      margin-top: 10px;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
    }

    .nav-filter-circle-container {
      display: flex;
      align-items: center;
      width: fit-content;
      margin-top: 1vh;

      .nav-filter-circle {
        border: 1px solid black;
        border-radius: 4vh;
        height: 4vh;
        width: fit-content;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: white;

        span {
          padding: 10px;
          padding-bottom: 9px;
        }
      }
    }

    .nav-filter-circle-container.active {
      .nav-filter-circle {
        background-color: var(--tag-color);
      }
    }

    .extra-filter-circle {
      border: 1px solid black;
      border-radius: 4vh;
      height: 4vh;
      width: fit-content;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-top: 5px;

      span {
        padding: 8px;
      }
    }
  }

  .mobile-nav-bottom.toggled {
    opacity: 1;
    height: 100vh;
  }
}


main {
  min-height: 100vh;
}

/* Main Gallery */

.main-gallery-wrapper {
  margin-top: 12vh;
  margin-bottom: 12vh;
  min-height: 100vh;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  max-width: 100%;
  row-gap: 150px;
  column-gap: 50px;

  a {
    text-decoration: none;
    color: black;
  }

  .hidden {
    display: none !important;
  }

  .main-gallery-item {
    display: block;
    cursor: pointer;
    max-width: 500px;
  }

  .main-gallery-item-img-wrapper {
    aspect-ratio: 3/4;
    width: 100%;
    position: relative;
    overflow: hidden;


    img,
    video {
      height: 100%;
      width: 100%;
      object-fit: contain;
      transition: opacity .2s ease;
      position: absolute;
    }
  }

  .main-gallery-item-info-wrapper {
    display: block;
    margin-top: 2vh;
    text-transform: uppercase;

    .item-info-title-wrapper {
      display: flex;
      align-items: center;
      margin-bottom: .2em;

      .item-title {
        max-width: fit-content;
        padding-top: .2em;
      }

      .item-tags {
        display: flex;
        align-items: center;

        .item-tag-circle {
          display: flex;
          align-items: center;
          background-color: var(--tag-color);
          width: 1.2rem;
          height: 1.2rem;
          max-height: 1.2rem;
          border-radius: 1.2rem;
          color: white;
          margin-left: 0.2vw;

          .item-tag-name {
            display: none;
          }
        }

        .item-tag-circle:hover {
          width: fit-content;
          cursor: default;

          .item-tag-name {
            display: block;
            padding: 10px;
            padding-top: 11px;
            font-size: .8rem;
          }
        }
      }
    }

    .item-info-date-place-wrapper {
      display: flex;
    }
  }
}

/* Project view - Subpages */

.project-view-grid {
  margin-top: 13vh;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  column-gap: 50px;
  width: 100%;

  .project-view-first-img-wrapper {
    width: 100%;
    aspect-ratio: 3/4;
    max-height: 70vh;
    grid-column: span 2;

    img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
  }

  .project-view-info-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 600px;
    grid-column: span 2;

    .project-tags-wrapper {
      display: flex;
      align-items: center;
      margin-bottom: 10px;

      .project-tag-circle {
        display: flex;
        align-items: center;
        background-color: var(--tag-color);
        width: 1.2rem;
        height: 1.2rem;
        border-radius: 1.2vw;
        color: white;
        margin-right: 0.2vw;

        .project-tag {
          display: none;
        }
      }

      .project-tag-circle:hover {
        width: fit-content;
        cursor: default;

        .project-tag {
          display: block;
          font-size: 1vw;
          padding: 10px;
        }
      }
    }

    a {
      text-decoration: underline dashed;
      color: black;
    }

    h1 {
      font-size: 1.5rem;
      margin-bottom: 10px;
    }

    h2 {
      margin-bottom: 20px;
    }

    .project-view-description {
      margin-bottom: 20px;
      line-height: 1.5rem;
      max-width: 800px;

      p {
        margin-bottom: 2.5rem;
      }
    }

    .project-view-date-place-wrapper {
      display: flex;
      margin-bottom: 20px;
      max-width: 600px;
    }
  }

  .project-view-description {
    margin-bottom: 20px;
    line-height: 1.5rem;
    max-width: 800px;

    p {
      margin-bottom: 2.5rem;
    }
  }


  .project-view-description-contact p {
    text-align: center;
    margin-bottom: 5vh;
  }

  .extended-description .project-view-description-extended {
    margin-bottom: 20px;
    margin-left: 10px;
    line-height: 1.5rem;
    max-width: 600px;

    p {
      margin-bottom: 2.5rem;
    }
  }

  .primary-img,
  .process-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 5vh;
  }

  /* Slider */

  .slider-w {
    width: 100%;
    height: 90vh;
    overflow-y: hidden;
    position: relative;
    cursor: pointer;
    z-index: 0;
    margin-top: 5vh;


    .arrow-left {
      position: absolute;
      top: 0;
      left: 0;
      z-index: 1;
      height: 100%;
      width: 10%;
      cursor: url("/assets/arrows/Ar-01.png"), auto;
    }

    .arrow-right {
      position: absolute;
      top: 0;
      right: 0;
      z-index: 1;
      height: 100%;
      width: 10%;
      cursor: url("/assets/arrows/Ar-02.png"), auto;
    }
  }

  .slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
  }

  .slider-item {
    height: 100%;
    width: 100%;
    flex-shrink: 1;
    padding-left: 10px;
  }

  .slider-item img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
  }

  video {
    min-height: 100%;
    max-height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
  }

  /*Related Stuff */
  .related-projects {
    display: flex;
    flex-direction: column;

    h2 {
      margin-bottom: 10px;
    }

    .related-projects-wrapper {
      display: flex;
      align-items: flex-start;
      margin-bottom: 5px;

      a {
        text-decoration: underline dashed;
        color: black;
      }

      .related-project-tags {
        display: flex;
        align-items: center;
        margin-left: 10px;

        .related-tag-circle {
          display: flex;
          align-items: center;
          background-color: var(--tag-color);
          width: 1.2rem;
          height: 1.2rem;
          border-radius: 1.2rem;
          color: white;
          margin-right: 0.2vw;

          .related-tag {
            display: none;
          }
        }

        .related-tag-circle:hover {
          width: fit-content;
          cursor: default;

          .related-tag {
            display: block;
            padding: 10px;
          }
        }
      }
    }
  }
}

footer {
  margin-top: 100px;
  font-size: 0.8rem;
  padding: 10px;
}




/* mobile styling */
@media (max-width: 768px) {
  body {
    padding: 0px;
  }

  h1 {
    font-size: 1rem;
  }

  h2 {
    font-size: 0.8rem;
  }

  #desktop-nav {
    display: none;
  }

  #mobile-nav {
    display: flex;
    height: fit-content;
  }

  img {
    min-width: 100%;
    height: auto;
  }

  .nav-filter-circle-container.active {
    .nav-filter-circle {
      background-color: var(--tag-color);
      color: white;
    }
  }

  .extra-filter-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin-left: 10px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 100vw;
    gap: 1vw;
    height: var(--desktop-nav-height);
    border-top: 1px dashed black;
    border-bottom: 1px dashed black;
    background-color: white;
  }

  .extra-filter-circle {
    border: 1px solid black;
    border-radius: 4vh;
    height: 4vh;
    width: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;

    a {
      text-decoration: none;
      color: black;
    }

    span {
      font-size: 16px;
      padding: 10px;
      padding-bottom: 9px;
    }
  }

  .mobile-nav-top .arrow-wrapper {
    height: fit-content;
    border-top: none;

    img {
      max-height: 5vh;
    }
  }

  .main-gallery-wrapper {
    grid-template-columns: 1fr !important;
    padding: 10px;
    row-gap: 100px !important;
    column-gap: 0px !important;
    margin-top: 15vh !important;
    margin-bottom: 15vh !important;

    .main-gallery-item-img-wrapper {
      aspect-ratio: 3/4 !important;
      width: 100%;
      overflow: hidden;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }

    .main-gallery-item-info-wrapper {
      font-size: 80% !important;

      & .item-info-title-wrapper {
        & .item-tags {
          & .item-tag-circle {
            display: flex;
            align-items: center;
            background-color: var(--tag-color);
            width: 1rem;
            height: 1rem;
            max-height: 1rem;
            border-radius: 1rem;
            color: white;
            margin-left: 0.2vw;
          }
        }
      }
    }
  }

  .project-view-grid {
    width: 100%;
    display: block;
    padding: 10px;
    margin-top: 10vh;

    .project-view-first-img-wrapper {
      display: flex;
      aspect-ratio: 3/4 !important;
    }

    .project-tags-wrapper {
      flex-wrap: wrap;
      row-gap: .5vh;
    }

    .project-tag-circle {
      width: fit-content !important;
      height: 5vw !important;
      border-radius: 5vw !important;

      .project-tag {
        display: block !important;
        font-size: 3vw !important;
        padding: 5px;
      }
    }

    .project-view-info-wrapper {
      margin-top: 5vh;
      margin-bottom: 5vh;
    }

    .primary-img,
    .process-img {
      margin-bottom: 10px;
    }
  }

  .project-view-description-contact {
    width: 100%;
  }

  .project-view-grid {
    .slider-w {
      height: fit-content;
      width: 100%;
      overflow-x: scroll;
      overflow-y: visible;
      /* Erlaubt Y-Scroll durch den Container hindurch */
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      -ms-overflow-style: none;
      touch-action: manipulation;
      /* Erlaubt beide Richtungen, Browser entscheidet intelligent */
      scroll-snap-type: x mandatory;
      /* Snap nur horizontal */
    }

    /* Wichtig: slider-track muss auch angepasst werden */
    .slider-track {
      display: flex;
      width: fit-content;
      /* Ermöglicht das Scrollen über die Containerbreite hinaus */
      transition: none;
      /* Entfernt die Transform-Animation auf Mobil */
      transform: none;
      /* Entfernt jegliche Transform */
    }

    .arrow-left,
    .arrow-right {
      display: none;
    }

    .slider-item {
      padding-left: 5px;
      padding-right: 5px;
      width: 100vw;
      /* Volle Viewport-Breite */
      max-width: calc(100vw - 20px);
      /* Abzüglich Padding */
      height: auto;
      flex-shrink: 0;
      scroll-snap-align: start;

      img {
        height: auto;
        width: 100%;
        object-fit: contain;
        display: block;
        pointer-events: none;
      }
    }
  }
}