/* ============================================================
  Responsive Styles
============================================================ */

/* ============================================================
   mobile
============================================================ */


@media only screen and (max-width: 1200px) {
    aside {
        width: 20%;
    }
    main {
        width: 80%;
    }
    .home h2 {
        margin: 0 auto 50px auto;
    }
    .home .text,
    .we-are {
        width: 100%;
    }
    .we-are {
        margin-top: 0;
    }
    .we-are .and {
        left: 45%;
        top: 75px;
    }
    .customer ol li {
        width: calc((100% / 3) - 20px);
    }   
}
@media only screen and (max-width: 1024px) {
    .we-do .slick-slider {
        width: 80%;
    }
    .customer-info {
        transform: none;
        opacity: 1;
        position: relative;
    }
    .customer figure {
        overflow: visible;
    }
    .customer figure:hover .customer-info {
        transform: none;
        transition: none;
    }
    .customer figure:hover img {
        transform: none;
    }
}
@media only screen and (max-width: 1000px) {
    h2 {
        line-height: 60px;
    }
    aside {
        width: 25%;
    }
    main {
        width: 75%;
    }
    .wrapper-projects {
        grid-template-columns: 1fr 1fr; 
    }
    .customer img {
        margin: 10% auto;
    }
    .imprint .column {
        flex: calc(100% / 2);
        max-width: calc(100% / 2);
        margin-top: 20px;
    }
    .we-do-container {
        width: 50%;
    }  
    .we-do-container:nth-child(3) img,
    .we-do-container:nth-child(4) img {
        padding-top: 20px;
        border-top: 1px solid #776464;
    }
    
    .wrapper-machines .slick-next {
        right: -75px !important;
    }
    .wrapper-machines .slick-prev {
        left: -75px !important;
    }
    .footer-container {
        width: calc((100% / 2) - 20px);
    }
}
@media only screen and (max-width: 880px) {
    h2 {
        font-size: 3rem;
        line-height: 3rem;
    }
    .customer ol li {
        width: calc((100% / 2) - 20px);
    }
}

@media only screen and (max-width: 768px) {
    .wrapper-back .button-primary {
        margin-top: 20px;
        margin-left: 40px;
        float: left;
    }
    .target {
        padding-top: 40px;
    }
    
    aside {
      position: fixed;
      z-index: 5;
      height: 80px;
      width: 100%;
      box-shadow: none;
      border-bottom: 4px solid #a42b47;
      box-shadow: 0 3px 15px rgba(0,0,0,.45);
    }
    
    .logo-mobile {
        display: inline-block;
        float: right;
        padding-top: 5px;
        padding-right: 20px;
    }
    .logo-mobile .logo {
        box-sizing: border-box;
        padding: 5px;
    }
    main {
        width: 100%;
        height: 100%;
        left: 0;   
    }
    .menu-expanded li {
        margin: 10px 0;
    }
    
    
    /*
    home
    ------------------------------------------------------------ */
    .home h2 {
        margin-top: 30px;
    }
    .home .text {
        width: 100%;
    }
    .home .text p {
        padding: 0;
    }
    .we-are {
        width: 100%;
        margin-top: 50px;
    }
    
    .we-are .and {
        left: 44%;
        top: 80px;
    }
    
    /*
    customer
    ------------------------------------------------------------ */
    .customer ol li {
        width: calc((100% / 3) - 20px);
    }
    .wrapper-projects {
        grid-template-columns: 1fr 1fr; 
    }
    .wrapper-description {
        overflow: hidden;
    }
    .wrapper-image {
        width: 100%;
    }
    
    /*
    Join us
    ------------------------------------------------------------ */
    .join-us h2 {
        width: 100%;
    }
    .join-us .content {
        width: 100%;
        margin-top: 20px;
    }
    
    /*
    Imprint
    ------------------------------------------------------------ */
    .imprint {
        padding-top: 0;
    }
    .imprint-header {
        margin-top: 80px;
    }
    
    .navigation {
        display: none;
    }
    .menu-collapsed {
        display: block;
       transition: all .25s;
       position: fixed;
       top: 10px;
       left: 9px;
       height: 36px;
       width: 36px;
       z-index: 1;
       cursor: pointer;
    }
    .menu-collapsed ul {
        transition: all 0s;
        position: fixed;
        left: -9000px;
    }
    .bar,
    .cross {
       @extend .b-a;
       position: fixed;
       left: 12px;
       top: 24px;
    }
    .bar:before,
    .cross:before {
      @extend .b-a;
      top: -8px;
    }
    .bar:after,
    .cross:after {
      @extend .b-a;
      top: 8px;
    }
    .b-a-expanded {
       transition: all .25s;
       top: -0px;
    }
    .menu-expanded {
       transition: all .25s;
       text-align: center;
       line-height: 40px;
       height: 100%;
       width: 100%;
       border-radius: 0px;
       top: 0;
       left: 0;
       background-color: rgba(36, 31, 31, 0.95);
    }
    .menu-expanded ul {
        transition: all 0s;
          position: relative;
          left: 0;
          z-index: 2;
        width: 80%;
        margin: 50px auto;
        
    }
    .menu-expanded a {
        transition: all .15s;
          text-decoration: none;
          font-size: 1.5em;
          padding: 5px;
          color: #776464;
          display: block;
        text-transform: uppercase;
    }
    .menu-expanded a:hover {
        background-color:rgba(white, .8);
         transition: all .15s;
         letter-spacing: 2px;
         color:#f7f6f3;
    }
    .menu-expanded .bar
    .menu-expanded .cross {
        background-color: transparent;
          transition: all .25s;
    }
    .menu-expanded .bar:before,
    .menu-expanded .cross:before {
        @extend .b-a-expanded;
             transform: rotate(45deg);
    }
    .menu-expanded .bar:after
    .menu-expanded .cross:after {
        @extend .b-a-expanded;
             transform: rotate(-45deg);
    }
    
    .menu-collapsed.menu-expanded .bar {
        display: none;
    }
    .menu-collapsed.menu-expanded .cross {
        display: block;
    }
    
    .menu-collapsed .bar {
        display: block;
    }
    .menu-collapsed .cross {
        display: none;
    }
    
}

@media only screen and (max-width: 640px) {
    .we-are .ju-jr, 
    .we-are .ju-sr {
        width: 80%;
        position: relative;
        box-shadow: 15px 10px 45px rgba(0,0,0,.45)
    }
    .we-are .ju-sr {
        margin-top: 0;
    }
    .we-are .and {
        top: 200px;
    }
    .customer ol li {
        width: calc((100% / 2) - 20px);
    }
    .fa-4x {
        font-size: 3em;
    }
    .machines .slick-dots {
        bottom: 0;
    }
    .we-do-container {
        width: 100%;
    }
    .we-do-container:nth-child(2) img {
        padding-top: 20px;
        border-top: 1px solid #776464;
    }
    .imprint .column {
        flex: 100%;
        max-width: 100%;
    }
}

@media only screen and (max-width: 600px) {
    .container {
        padding: 40px 20px;
    }
    .wrapper-projects {
        grid-template-columns: 1fr; 
    }
    .slick-slide h2 {
        width: 50%;
        margin: 0 auto;
        font-size: 2.5rem;
    }
    .slick-slide h4 {
        font-size: 20px;
    }
    .wrapper-machines .slick-next {
        right: -60px !important;
    }
    .wrapper-machines .slick-prev {
        left: -60px !important;
    }
    .machines .wrapper-content img {
        max-width: 42%;
    }
}

@media only screen and (max-width: 400px) {
    h2 {
        font-size: 2.5rem;
    }
    .customer ol li {
        width: calc((100% / 1) - 20px);
    }
    .wrapper-machines .slick-next {
        right: -50px !important;
    }
    .wrapper-machines .slick-prev {
        left: -50px !important;
    }
    .machines .wrapper-content img {
        max-width: 32%;
    }
    .slick-slide h2 {
        font-size: 2rem;
    }
    .wrapper-machines .slick-track {
        height: 380px;
    }
    .footer-container {
        width: calc(100% - 20px);
    }
}
