@import 'reset.css';
@import 'variables.css';

@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Arsenal';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/arsenal-v12-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* arsenal-italic - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Arsenal';
    font-style: italic;
    font-weight: 400;
    src: url('../fonts/arsenal-v12-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* arsenal-700 - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Arsenal';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/arsenal-v12-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* arsenal-700italic - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Arsenal';
    font-style: italic;
    font-weight: 700;
    src: url('../fonts/arsenal-v12-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }

  /* kalnia-300 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Kalnia';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/kalnia-v2-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* kalnia-regular - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Kalnia';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/kalnia-v2-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* kalnia-700 - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Kalnia';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/kalnia-v2-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }

html {
    font-size: 16px;
}

body {
  display: flex;
  flex-direction: column;
  background: var(--background);
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3 {
    font-family: "the-seasons", "Kalnia",serif;
    margin: 1rem 0;
}

h1 { font-size: 3rem; }
h2 {
  font-size: 2.5rem;

  @media screen and (max-width: 37.5rem)
  {
    font-size: 1.75rem;
  }
}
h3 {
  font-size: 1.5rem;

  @media screen and (max-width: 37.5rem)
  {
    font-size: 1.25rem;
  }
}

h2 + h3 {
  /* margin-top: -1.25rem; */
  margin-bottom: 2.5rem;
}

b, strong {
    color: inherit;
    font-weight: 700;
}

p {
    margin-block-end: 1rem;
}

ul {
    margin-left: 1rem;
}

.border {
    position: fixed;
    top: 2rem;
    left: 2rem;
    width: calc(100vw - 4rem);
    height: calc(var(--app-height) - 4rem);
    border: 2px solid var(--tertiary);
    outline: 2rem solid var(--background);
    z-index: 100;
    pointer-events: none;
}

.nav-button {
    position: fixed;
    top: 0;
    left: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--background);
    width: 4rem;
    height: 4rem;
    transform: translateX(-50%);
    transition: top .25s ease-in-out .05s;
    z-index: 102;

    .nav-trigger {
        all: unset;

        position: relative;
        top: -.125rem;
        width: 2rem;
        height: 2rem;
        cursor: pointer;

        .line {
            display: block;
            width: 2rem;
            height: 2px;
            background-color: var(--tertiary);
            margin: .5rem auto;
            transition: all 0.3s ease-in-out;
        }
    }

    &.is-active {
        .line {
            &:nth-child(2){
                opacity: 0;
            }

            &:nth-child(1){
                transform: translateY(8px) rotate(45deg);
            }

            &:nth-child(3){
                transform: translateY(-12px) rotate(-45deg);
            }
        }
    }
}

nav {
    position: fixed;
    top: -6rem;
    left: 2rem;
    width: calc(100% - 4rem);
    height: 6rem;

    background: var(--background);
    border-bottom: 2px solid rgba(255,255,255,0);
    transition: top .3s ease-in-out, border-bottom .25s ease-in-out;
    z-index: 101;

    .stage {
        display: flex;
        justify-content: center;
        align-items: center;

        width: 100%;
        height: 100%;

        ul {
            display: flex;
            list-style: none;
            margin-left: 0;

            li {
                padding: 0 3.25rem;

                a {
                    font: inherit;
                    text-transform: uppercase;
                    font-size: 1.25rem;
                    color: var(--tertiary);
                    letter-spacing: .625rem;

                    &:hover {
                        color: var(--secondary);
                    }
                }
            }
        }
    }

    &.home {
        .stage {
            ul {
                li {
                    &:first-child {
                    display: none;
                    }
                }
            }
        }
    }

    @media screen and (max-width: 767px) {
        top: -100vh;
        height: 100vh;

        .stage {
            ul {
                flex-direction: column;

                li {
                    padding: 1.5rem 3.25rem;

                    &:first-child {
                        display: block;
                    }

                    a {
                        font-size: 2.5rem;
                    }
                }
            }
        }
    }
}

main {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100vw;
  min-height: 100vh;

  .top {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      height: 100vh;

      svg {
          display: block;
          width: 35vw;
          height: auto;
          color: var(--tertiary);

          @media screen and (max-width: 767px) {
              width: 55vw;
          }

          @media screen and (max-width: 600px) {
              width: 65vw;
          }
      }
  }

  .container {
    width: 100%;
    margin-top: 2rem;

    .grid {
      display: grid;
      grid-template-columns: repeat(12, 1fr);
      gap: 4rem;
      width: 100%;
      max-width: 84vw;
      margin: 0 auto 4rem;

      @media screen and (max-width: 64rem)
      {
        grid-template-columns: repeat(6, 1fr);
        gap: 1rem;
      }

      @media screen and (max-width: 37.5rem)
      {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
        margin: 0 auto 1.5rem;
      }

      .column {
        grid-column: span var(--columns);
        display: flex;
        height: 100%;
        align-items: center;

        @media screen and (max-width: 64rem)
        {
          &.columns-4 {
            grid-column: span 2;
          }

          &.columns-6, &.columns-12 {
            grid-column: span 6;
            padding: 0 1rem;
          }
        }

        @media screen and (max-width: 37.5rem)
        {
          &.columns-4, &.columns-6, &.columns-12 {
            grid-column: span 4;
            padding: 0 1rem;
          }
        }

        .menu-items, .text, .special-items {
          display: grid;
          gap: 4rem;
          width: 100%;
          margin: 0 auto;

          &.single {
            max-width: 25vw;
            grid-template-columns: 1fr;
          }

          &.double {
            max-width: 50vw;
            grid-template-columns: 1fr 1fr;

            @media screen and (max-width: 73.125rem)
            {
              max-width: 84vw;
            }

            @media screen and (max-width: 64rem)
            {
              max-width: 100%;
            }

            @media screen and (max-width: 37.5rem)
            {
              max-width: 100%;
              grid-template-columns: 1fr;
            }
          }

          &.triple {
            max-width: 75vw;
            grid-template-columns: 1fr 1fr 1fr;

            @media screen and (max-width: 73.125rem)
            {
              max-width: 84vw;
              gap: 1.5rem;
            }

            @media screen and (max-width: 64rem)
            {
              max-width: 100%;
              gap: 1rem;
            }

            @media screen and (max-width: 37.5rem)
            {
              max-width: 100%;
              grid-template-columns: 1fr;
            }
          }

          a {
            position: relative;
            top: 0;
            display: flex;
            border: .125rem solid var(--tertiary);
            border-radius: .125rem;
            width: 100%;
            padding-top: 100%;

            .stage {
              position: absolute;
              top: 0;
              left: 0;

              display: flex;
              flex-direction: column;
              justify-content: space-between;
              align-items: center;
              width: 100%;
              height: 100%;
              padding: 4rem;

              @media screen and (max-width: 73.125rem) {
                padding: 2rem;
              }

              .decoration {
                display: block;
                width: 4rem;
                height: auto;
                color: var(--tertiary);
                transition: .25s all ease-in-out;

                @media screen and (max-width: 90rem) {
                  width: 2.5rem;
                }
              }

              span {
                font-family: the-seasons, sans-serif;
                font-size: 3cqw;
                line-height: 1;
                text-align: center;
                color: var(--tertiary);
                transition: .25s all ease-in-out;
              }
            }

            &:hover {
              top: -.5rem;
              background: var(--tertiary);
              box-shadow: 0 0 .25rem rgba(0,0,0,.15), 0 .25rem 1rem rgba(0,0,0,.15);

              span {
                color: var(--primary);
              }

              .decoration {
                color: var(--secondary);
              }
            }
          }

          @media screen and (max-width: 1170px) {
            padding: 8rem 4rem;
          }

          @media screen and (max-width: 64rem) {
            padding: 8rem 0;

            a {
              .stage {
                padding: 3rem;

                .decoration {
                  width: 2.5rem;
                }
              }
            }
          }

          @media screen and (max-width: 700px) {
            padding: 4rem 0;
            gap: 2rem;

            a {
              .stage {
                padding: 1.25rem;

                .decoration {
                  width: 1.5rem;
                }

                span {
                  font-size: 1.25rem;
                }
              }
            }
          }

          @media screen and (max-width: 600px) {
            grid-template-columns: 1fr;
            grid-template-rows: 1fr 1fr;
            padding: 6rem;
            gap: 3rem;

            a {
              .stage {
                padding: 3rem;

                .decoration {
                  width: 2.5rem;
                }

                span {
                  font-size: 2rem;
                }
              }
            }
          }

          @media screen and (max-width: 550px) {
            padding: 1rem 0;
            gap: 2rem;
          }
        }

        .special-items {
          a {
            position: relative;
            aspect-ratio: 3/4;
            background-size: cover !important;

            &:after {
              content: "";
              position: absolute;
              bottom: 0;
              left: 0;
              width: 100%;
              height: 45%;
              background: rgba(0,116,109,.9);
              mask: linear-gradient(to bottom, transparent, black 50%);
              backdrop-filter: blur(12px);
            }

            .stage {
              justify-content: flex-end;
              padding: 2rem 4rem;
              z-index: 10;
            }

            &:hover {
              .stage span {
                color: var(--tertiary) !important;
              }
            }
          }

        }

        .instagram-image {
          position: relative;
          top: 0;
          display: block;
          width: 100%;
          height: auto;
          padding-top: 100%;
          transition: .25s all ease-in-out;

          img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
          }

          &:hover {
            top: -.5rem;
            box-shadow: 0 0 .25rem rgba(0,0,0,.15), 0 .25rem 1rem rgba(0,0,0,.15);
          }
        }
      }
    }
  }

  .opening-hours {
      display: block;
      width: 100%;
      padding: 8rem calc(4rem + 15vw);

      h2 {
          font-size: 3rem;
          text-align: center;
      }

      p {
          --size: 1.5rem;
          text-align: center;

          b {
              --size: 1.5rem;
              --weight: 700;
          }
      }
  }

    .text {
        display: block;
        color: var(--tertiary);

        a {
            position: relative;
            display: inline-block;
            border: none;
            width: auto;
            padding-top: 0;
            color: var(--secondary);

            &:hover
            {
                top: 0;
                background: none;
                color: var(--tertiary);
                box-shadow: none;
            }
        }
    }

    footer {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        height: auto;
        padding: 2rem 4rem 4rem;
        border-top: 2px solid var(--tertiary);
        width: 100%;
        text-align: center;
        color: var(--tertiary);

        @media (max-width: 37.5rem) {
          flex-direction: column;
          gap: 3rem;
        }

        .logo, .backtotop {
          flex: 1 0 25%;

          @media (max-width: 37.5rem) {
            flex: 1 0 auto;
          }

          svg {
            height: 12rem;
          }
        }

        .meta {
          flex: 1 0 50%;
          display: flex;
          flex-direction: column;
          align-items: center;

          @media (max-width: 37.5rem) {
            flex: 1 0 auto;
          }

            span {
                display: block;
                margin-bottom: 2rem;

                &:last-child {
                    margin-bottom: 0;
                }
            }
        }

        a {
            &:hover {
                color: var(--secondary);
            }
        }

        aside {
            display: flex;
            gap: 2rem;


        }

        @media screen and (max-width: 600px) {
            a {
                .stage {
                    padding: 3rem;

                    .decoration {
                        width: 2.5rem;
                    }
                }
            }
        }
    }
}

body.default {
  main {
    padding-top: 25vh;
  }
}

body.datenschutz, body.impressum {
  main {
    .container {
      #static {
        .stage {
          .grid {
            @media screen and (max-width: 37.5rem) {
              padding: 0 1rem;
            }
          }
        }
      }
    }
  }
}