// Projektkonfiguration
@import "website-configuration";
// Globaler bootstrap
@import "bootstrap";
// Helfer wie functions, mixins importieren
@import "Utilities/iconfont";
//@import "Utilities/sprites";
@import "Utilities/placeholders";
// Vendor styles importieren
@import "Vendor/_myFontsWebfontsKit.scss";
// Vendor overrides Partial importieren
//@import "Vendor/Overrides";
@import "Partials/Structure/base";
@import "Partials/Structure/grids";
@import "Partials/Content/contentStyles";
@import "Partials/Content/forms";

@import "Vendor/magnific-popup";
@import "Vendor/Overrides/magnific-popup";

@import "fontsloaded";

body{
  position: relative;
  background: transparent image-url('/typo3conf/ext/bgm_theme_azh/Resources/Public/Images/lay_vsa_demo2.png')no-repeat;
  background-size: cover;
  font-size: 16px;
}

.mfp-bg{
  //display: none;
  background: rgba(255,255,255,0.8);
  background-size: cover;
}

#formPopup{
  position: relative;
  display: block;
  background: #FFF;
  @include box-shadow(0 3px 2px 2px rgba(0,0,0,0.2));
  width: 100%;
  max-width: 700px;
  padding: 32px 0 90px 0;
  margin: auto;
  text-align: center;

  @include breakpoint($mobile-m){
    display: none;
  }

  @include breakpoint($mobile-l){
    width: 80%;
    padding: 32px 0;
  }

  @include breakpoint($mobile-xl){
    width: 50%;
  }

  p{
    text-align: left;
    margin: 0 32px 16px 32px;

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

  img{
    display: block;
    margin: 0 auto 16px auto;
  }

  .align-center{
    text-align: center;
  }

  .mfp-content &{
    display: block;
  }

  .steps{
    margin-bottom: 32px;
    background: $aqua;
    color: #FFF;
    font-size: 18px;
    line-height: 20px;

    ol{
      @include breakpoint($desktop-s){
        @include inline-block-list();

        li{
          width: 33%;
        }
      }

      li{
        padding: 8px 0;
        text-align: center;

        &:before{
          @extend %pseudoIconElement;
          @extend .icon-one;
          font-size: 130%;
          vertical-align: text-top;
          margin-right: 6px;
        }

        &:nth-child(2):before{
          @extend .icon-two;
        }

        &:nth-child(3):before{
          @extend .icon-three;
        }

        &.active{
          color: $viola;
          font-weight: bold;

          &:before{
            color: $viola;
            font-weight: bold;
            border-color: $viola;
          }
        }
      }
    }
  }

  .powermail_label{
    display: none;
  }

  table{
    width: 40%;
    margin: 0 auto 32px auto;
    text-align: left;

    tr{
      td{
        padding: 4px;

        &:first-child{
          width: 100px;
          font-weight: bold;
        }
      }
    }
  }
}

#noDesktop{
  @extend #formPopup;
  border: 8px solid $aqua;
  border-width: 8px 0;
  display: block;

  ol{
    margin: 0 32px 16px 52px;
    list-style: decimal;
    text-align: left;
  }

  @include breakpoint($mobile-l){
    position: absolute;
    left: 50%;
    top: 50%;
    @include transform(translate(-50%,-50%))
  }

}

#tim-downloadform{
  margin: 0 32px 0 32px;

  p{
    margin-bottom: 16px;
    text-align: center;
  }

  p.small{
    font-size: 90%;
    position: absolute;
    bottom: 16px;
    left: 48px;
    margin-left: 0;
  }

  > div{
    @extend .grid-2cols;

    > div:last-child{
      @include float-span(12);
      text-align: center;
    }
  }

  .clearfix{
    @extend %clearfix;
    float: none;
    width: 100%;
    clear: both;
    margin: 0;
  }

  label{
    display: none;
  }

  .formElement{

    @include breakpoint($mobile-l){
      float: left;
      width: 50%;
    }
  }

  select,input[type="text"], input[type="email"]{
    @include box-sizing('border-box');
    display: block;
    width: 100%;
    height: 38px;
    border: none;
    background: $lightgrey;
    margin: 0 4px;
    padding: 8px;
    font-size: 16px;
  }

  /* remove standard-styles */
  select{
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    border-radius: 0;
    font-size: 1em;
    width: 100%;
  }

  /* styling */
  select{
    width: 100%;
    padding: 9px 8px;
    border: medium none;
    box-shadow: 0 0 0 transparent;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSI4IiB2aWV3Qm94PSIwIDAgMTggOCI+ICAgIDxwYXRoIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgc3Ryb2tlPSIjOUI5QjlCIiBzdHJva2Utd2lkdGg9IjIiIGQ9Ik0xIDFsNy44NDUgNC45MDNMOSA2bC4xNTUtLjA5N0wxNyAxIi8+PC9zdmc+);
    background-position: 95%;
    background-repeat: no-repeat;
  }

  /* hide browser-styling (arrow) in IE10 */
  select::-ms-expand{
    display: none;
  }

  .submitButton{
    display: inline-block;
    margin-left: 16px;
    position: relative;
    @extend %pseudoIconElement;
    @extend .icon-arrow;

    @include box-shadow($std-box-shadow);
    line-height: 38px;

    input[type='submit'],
    input[type='reset'],
    input[type='button']{
      background-color: transparent;
      border: none;
      color: #4c4c4c;
      cursor: pointer;
      display: block;
      font-size: 1.2em;
      font-weight: 600;
      line-height: 1.2em;
      padding: 8px 64px 9px 30px;
      position: relative;
      z-index: 5;
    }
    &::before{
      position: absolute;
      z-index: 1;
      right: 0;
      background: $aqua none repeat scroll 0 0;
      color: #fff;
      text-align: center;
      display: inline-block;
      height: 100%;
      font-size: 24px;
      line-height: 38px;
      vertical-align: middle;
      width: 38px;
    }
  }
}

h1{
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 2em;
}

a.downloadLink{
  display: inline-block;
  margin-bottom: 16px;

  @include box-shadow($std-box-shadow);
  line-height: 38px;
  background-color: transparent;
  border: none;
  color: #4c4c4c;
  cursor: pointer;
  display: inline-block;
  position: relative;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.2em;
  padding: 8px 64px 9px 30px;
  z-index: 5;

  &:before{
    @extend %pseudoIconElement;
    @extend .icon-download-circle;
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    background: $aqua none repeat scroll 0 0;
    color: #fff;
    text-align: center;
    display: inline-block;
    height: 100%;
    font-size: 24px;
    line-height: 38px;
    vertical-align: middle;
    width: 38px;
    //@include transform(rotate(90deg));
  }
}

/* overlay at start */
.mfp-fade.mfp-bg{
  opacity: 0;

  -webkit-transition: all 0.15s ease-out;
  -moz-transition: all 0.15s ease-out;
  transition: all 0.15s ease-out;
}

/* overlay animate in */
.mfp-fade.mfp-bg.mfp-ready{
  opacity: 0.8;
}

/* overlay animate out */
.mfp-fade.mfp-bg.mfp-removing{
  opacity: 0;
}

/* content at start */
.mfp-fade.mfp-wrap .mfp-content{
  opacity: 0;

  -webkit-transition: all 0.15s ease-out;
  -moz-transition: all 0.15s ease-out;
  transition: all 0.15s ease-out;
}

/* content animate it */
.mfp-fade.mfp-wrap.mfp-ready .mfp-content{
  opacity: 1;
}

/* content animate out */
.mfp-fade.mfp-wrap.mfp-removing .mfp-content{
  opacity: 0;
}

.f3-form-error{
  outline: 1px solid #D8000C;
  outline-width: 1px 1px 0 1px;
}

ul.errors{
  outline: 1px solid #D8000C;
  outline-width: 0 1px 1px;
  background: #FFBABA;
  list-style: none;
  @include box-sizing('border-box');
  width: 100%;
  margin: 1px 4px 0 4px;
  padding: 0;
  font-size: 95%;

  li{
    padding:4px 8px;
    text-align: left;
    &:before{
      content: normal;
    }
  }
}

a.phone{
  position: relative;
  display: inline-block;
  margin-right: 16px;
  position: relative;
  @extend .icon-service;

  @include box-shadow($std-box-shadow);
  line-height: 38px;
  background-color: transparent;
  border: none;
  color: #4c4c4c;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.2em;
  padding: 8px 64px 9px 30px;
  position: relative;
  z-index: 5;
  margin-bottom: 16px;

  &::before{
    @extend %pseudoIconElement;
    position: absolute;
    z-index: 1;
    top:0;
    right: 0;
    background: $aqua none repeat scroll 0 0;
    color: #fff;
    text-align: center;
    display: inline-block;
    height: 100%;
    font-size: 28px;
    line-height: 38px;
    vertical-align: middle;
    width: 38px;
  }
}

#pageFooter{
  @extend %clearfix;
  position: static;
  z-index: 1045;
  width: 100%;
  padding: 8px 16px;
  background: #FFF;
  @include box-shadow(0 -2px 2px 2px rgba(0,0,0,0.2));
  @include box-sizing('border-box');

  @include breakpoint($mobile-l){
    position: fixed;
    bottom: 0;
    left: 0;
  }

  font-size: 12px;
  //line-height: 1.2em;

  div{
    display: inline;
    margin: 0;
    a {
      text-decoration:none;
    }
    span {
      display: inline;
    }

    @include breakpoint($mobile-m){
      display: block;
      float: left;

      span:before{
        content: "\A";
        white-space: pre;
      }
    }
  }

  ul{

    float: right;
    margin: 0;
    @include inline-block-list();

    li{
      padding: 0;

      &::before{
        content: normal;
      }

      &::after{
        padding: 0 4px;
        content: '|';
        display: inline-block;
      }

      &:last-child:after{
        content: normal;
      }
    }
  }

  a{
    color: $body-font-color;
    //text-decoration: underline;

    &:hover{
      color: $body-font-color;
    }
  }

  #impressumLink{
    display: inline-block;
    margin-left: 16px;

    @include breakpoint($mobile-m){
      display: block;
      float: right;
    }
  }
}
