/* Title Font: Geist */
@font-face {
  font-family: Geist;
  src: url('assets/fonts/Geist-Regular.woff2');
}
@font-face {
  font-family: Geist;
  font-weight: 600;
  src: url('assets/fonts/Geist-Medium.woff2');
}
/* Body Font: Inter */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  src: url("https://fonts.gstatic.com/s/inter/v18/UcCo3FwrK3iLTfvgaQc78lA2.woff2") format("woff2");
}

:root {
  /*fonts*/
  --title-font-family: Geist;
  --title-font-weight: 600;
  --title-font-size-xl: 110px;
  --title-font-size-l: 95px;
  --title-font-size: 36px;
  --title-font-size-s: 24px;
  --nav-font-size: 20px;
  --body-font-family: Inter; 
  --body-font-size: 18.5px;
  --body-font-weight: 400;

  --h1-font-size: 110px;
  --h1-font-weight: 600;
  --h2-font-weight: 400;
  --body-font-family: Inter, sans-serif; 
  --about-header-font-size: 33px;
  --about-header-font-weight: 300;

  /*colors*/
  --blue: #4D88B8;
  --blue-l: #37B6FF;
  --blue-d: #013D5C;
  --beige: #F1EEE2;
  --h1-color: white;
  --body-color: #013D5C;
  --inactive-color: #6B747C;

  /*sizes*/
  --navbar-height: 96px;
  --header-height: calc(100% - var(--navbar-height));
  --body-padding: 20px;
  --slide-width: 456px;
  --slide-height: 320px;
  --contact-icon-size: 70px;

  /*image stuff*/
  --border-radius: 10px;
  --icon-size: 20px;

  /*layers (z-indizes)*/
  --navbar-layer: 2;
  --header-layer: -1;
}

/*animations*/
html {
  scroll-behavior: smooth;
  background-color: var(--beige);
  transition: all .2s ease-in-out;
}
body {
  /*font-family: var(--body-font-family);*/
  font-family: var(--body-font-family);
  font-size: var(--body-font-size);
  font-weight: var(--body-font-weight);
  font-variant: slashed-zero;
  margin: 0;
}
h1 {
  margin: 0;
}
b {
  font-weight: 600;
}
.section-heading {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 0;
  font-family: var(--body-font-family);
  font-size: var(--title-font-size-s);
  font-weight: var(--body-font-weight);

  label {
    color: var(--blue);
    margin-right: 8px
  }
}

.section-box {
  padding: var(--body-padding) var(--body-padding) 60px;
  scroll-margin-top: var(--navbar-height);

  .section-body {
    padding: var(--body-padding) 118px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }
}

#navbar, #nav-items, .nav-item {
  font-family: var(--body-font-family);
  font-size: var(--nav-font-size);
  font-weight: 400;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
#navbar {
  width: 100%;
  height: var(--navbar-height);
  position: sticky;
  top: 0;
  z-index: var(--navbar-layer);
  background-color: #F1EEE2;

  img {
    height: 50%;
    margin-left: var(--body-padding);
    cursor: pointer;
  }
  #menu-hamburger {
    margin-right: var(--body-padding);
    display: none;
  }
  #nav-items {
    padding-right: var(--body-padding);

    .nav-item {
      align-items: center;
      margin-left: 40px;
      text-decoration: none;
      color: var(--body-color);
      cursor: pointer;
      transition: all .2s ease-in-out;

      label {
        color: var(--blue);
        margin-right: 8px;
      }
      &:hover {
        color: var(--blue);
      }
    }
  }
}

#header-section {
  width: 100%;
  height: calc(100vh - var(--navbar-height));
  position: sticky;
  top: var(--navbar-height);
  z-index: -1;

  div {
    background-image: url("assets/header-img.jpg");
    background-size: cover;
    background-position: center;
    height: var(--header-height);
    position: relative;
  }
  
  h1,h2 {
    font-family: var(--title-font-family);
    line-height: 1;
  }
  h1 {
    font-size: var(--title-font-size-xl);
    font-weight: var(--title-font-weight);
    position: absolute;
    bottom: calc(0px - var(--body-padding) + 4px);
    left: var(--body-padding);
    color: white;
    text-transform: uppercase;
  }
  
  h2 {
    font-size: var(--title-font-size-l);
    font-weight: normal;
    position: absolute;
    bottom: calc(0px - 2 * var(--title-font-size-l) + 30px);
    right: var(--body-padding);
    color: var(--blue-d);
    text-transform: uppercase;
  }
}

#about-section {
  display: flex;
  flex-direction: column;
  background-color: white;
  margin-top: 50px;


  .about-content {
    display: flex;
    flex-direction: row;
    font-variant: none;

    .cv {
      p {
        margin: 0 0 calc(var(--body-padding) / 2) 0;

        a {
          color: var(--blue);
          text-decoration: none;
        }
      }
    }
    .left {
      flex: 2;
      display: flex;
      flex-direction: column;

      h3 {
        font-family: var(--title-font-family);
        font-size: var(--title-font-size);
        font-weight: normal;
        margin: 30px 0 0 0;
      }
      div {
        max-width: 80%;
      }
      
      & .cv {
        display: none;
      }
    }

    .right {
      flex: 1;
      display: flex;
      flex-direction: column;
      background-color: transparent;
      margin-top: -150px;
      
      img {
        width: 100%;
        border-radius: var(--border-radius);
        margin-bottom: 30px;
      }

      & .cv {
        display: block;
      }
    }
  }
}

#angebot-section {
  background-color: var(--beige);
  display: flex;
  flex-direction: column;

  .top-bar {
    display: flex;
    flex-direction: row;

    h2 {
      flex: 1;
      margin-bottom: 15vh;
    }
    #angebot-img {
      flex: 3;
      background-image: url('assets/angebot-a.jpg');
      background-position: calc(50%) calc(70% + 10px);
      /* background-position: center; */
      background-size: cover;
      margin-top: calc(0px - var(--body-padding));
      margin-right: calc(0px - var(--body-padding));
      border-radius: 0 0 0 var(--border-radius);
    }
  }
  .content {
    display: flex;
    flex-direction: row;
    margin-top: 80px;

    .nav {
      flex: 1;
      display: flex;
      flex-direction: column;
      font-size: var(--title-font-size-s);
      font-weight: 200;

      div {
        display: flex;
        flex-direction: column;

        input[type="radio"] {
          display: none;

          &:checked + label, &:hover + label {
            text-decoration: underline solid var(--blue-l) 2px;
            outline: none;
          }
          &:checked + label {
            color: var(--body-color);
            font-weight: 600;
          }
        }
        label {
          opacity: 80%;
          color: var(--inactive-color);
          background-color: transparent;
          text-align: left;
          border: none;
          font-family: var(--body-font-family);
          font-weight: 400;
          font-size: 22px;
          margin-bottom: 25px;
          transition: all .2s;
        }
      }
      & #angebot-mobile {
        display: none;
      }
    }
    p {
      display: block;
      flex: 1;
      margin: 0;
      
      & a {
        color: var(--blue);
        cursor: pointer;
        transition: all .2s ease-in-out;

        &:hover {
          text-decoration: underline solid var(--blue-l) 2px;
        }
      }
    }
  }
}

#branchen-section {
  background-color: white;
  display: flex;
  flex-direction: column;
  padding-right: 0;

  .slider {
    display: flex;
    flex-direction: row;
    position: relative;
    overflow-x: scroll;
    overflow-y: hidden;
    margin-left: calc(0px - var(--body-padding));
    width: 100vw;

    .slide {
      display: flex;
      flex-direction: column;
      height: var(--slide-height);
      margin-right: 20px;

      img.number {
        width: var(--icon-size);
        margin-bottom: calc(var(--body-padding) / 2);
        border: none !important;
      }
      .slider-img {
        width: var(--slide-width);
        height: 100%;
        background-size: 100% 100%;
        background-position: center;
        border-radius: var(--border-radius);
        transition: all .2s ease-in-out;

      }
      &:hover {
        .slider-img {
          background-size: 110% 110%;
        }
      }

      &:first-of-type {
        .slider-img {
          width: 300px;
        }
      }
    }

    /* Disable Scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
    &::-webkit-scrollbar {
      display: none;
    }
  }

  .branchen-content {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    #branchen-details {
      flex: 2;
      display: flex;
      flex-direction: column;

      h3 {
        display: flex;
        flex-direction: row;
        align-items: center;
        line-height: unset;
        margin-bottom: 0;

        img {
          width: var(--icon-size);
          margin-right: var(--body-padding);
        }
        p {
          font-size: var(--title-font-size);
          font-weight: 400;
        }
      }
      #branchen-description {
        margin-top: 0;
      }
    }
    .branchen-highlights {
      flex: 1;
      margin-left: 10vw;

      h4 {
        display: block;
        font-size: calc(1.3 * var(--body-font-size));
        font-weight: 200;
        margin-bottom: 0;
        color: var(--blue);
      }
      
      ul {
        padding-inline-start: calc(var(--body-padding) / 2);
        
        & li {
          padding-left: inherit;
          margin-left: var(--icon-size);
          margin-top: calc(var(--body-padding) / 2);

          &::marker {
            content: "-> ";
          }
        }
      }
    }
  }
}

#contact-section {
  background-color: var(--beige);

  & .section-body {
    display: flex;
    flex-direction: row;

    p {
      flex: 3;
      margin: 0;
    }
    .contact-details {
      flex: 2;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      font-size: var(--title-font-size-s);
      color: var(--blue);
      text-decoration: none;
      position: relative;

      img {
        position: absolute;
        width: var(--contact-icon-size);
        height: var(--contact-icon-size);
        top: calc(0px - var(--contact-icon-size));
        right: 0;
      }
      & .email-link {
        color: var(--blue);
        text-decoration: none;
        padding-bottom: 3px;
      }
    }
  }
}

.page-footer {
  background-color: white;
  padding: calc(var(--body-padding) / 3) calc(var(--body-padding) / 2);
  font-size: calc(var(--body-font-size) * 0.85);

  & #footer-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    padding: 0 calc(var(--body-padding) / 2);

    & span {
      margin-right: auto;
    }

    & a {
      color: black;
      text-decoration: none;
      transition: all .2s ease;

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

  & #footer-content {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }
}
