/* ---{ Sizes }--- */
/* ---{ General colors }--- */
/* ---{ media queries. When using responsive }--- */
/* ---{ Columns }--- */
/* ---{ Other }--- */
/* ---{ Mixins }--- */
/*----- CSS3 Animation functions -----*/
/* ---{ Header }--- */

.header {
  position: fixed;
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  width: 100%;
  background-color: white;
  border-bottom: solid 1px #dedede;
  box-shadow: 0 -9px 20px 5px #dedede;
  z-index: 1000;
}
@media only screen and (min-width: 1024px) {
  .header {
    position: sticky;
  }
}
.header__topbar {
  position: absolute;
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  height: 3px;
  background-color: #333333;
  z-index: 9999;
}
.header__navigation__open {
  position: absolute;
  top: 0;
  right: auto;
  left: 0;
  bottom: auto;
  width: 60px;
  height: 60px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 5px 15px 0;
}
@media only screen and (min-width: 1024px) {
  .header__navigation__open {
    display: none;
  }
}
.header__navigation__open:after {
  content: "Menu";
  display: block;
  font-size: 0.9em;
  text-align: center;
  margin-top: -3px;
}
.header__navigation__open span {
  display: block;
  width: 100%;
  margin: 0 auto;
  height: 2px;
  background-color: black;
  margin-bottom: 6px;
}
@media only screen and (max-width: 1023px) {
  .header {
    height: 60px;
  }
}
.header > .container {
  display: flex;
  flex-direction: column;
  flex-flow: wrap;
  align-content: center;
  padding-top: 15px;
  padding-bottom: 15px;
  height: 60px;
}
@media only screen and (min-width: 1024px) {
  .header > .container {
    height: 90px;
    transition: height 0.4s ease-in-out;
  }
}
.header:not(.sticky) .headerBackground img {
  height: 0;
  opacity: 1;
  -webkit-transition: all 0.8s ease-in-out;
  -moz-transition: all 0.8s ease-in-out;
  -o-transition: all 0.8s ease-in-out;
  transition: all 0.8s ease-in-out;
  /*-moz-backface-visibility: hidden;*/

}
@media only screen and (min-width: 1024px) {
  .header:not(.sticky) .headerBackground img {
    height: 147px;
  }
}
@media only screen and (min-width: 1280px) {
  .header:not(.sticky) .headerBackground img {
    height: 183px;
  }
}
@media only screen and (min-width: 1440px) {
  .header:not(.sticky) .headerBackground img {
    height: 206px;
  }
}
@media only screen and (min-width: 1680px) {
  .header:not(.sticky) .headerBackground img {
    height: 240px;
  }
}
@media only screen and (min-width: 1920px) {
  .header:not(.sticky) .headerBackground img {
    height: 275px;
  }
}
.header:not(.sticky) .headerBackground + .container {
  height: 60px;
}
@media only screen and (min-width: 1024px) {
  .header:not(.sticky) .headerBackground + .container {
    height: 147px;
  }
}
@media only screen and (min-width: 1280px) {
  .header:not(.sticky) .headerBackground + .container {
    height: 183px;
  }
}
@media only screen and (min-width: 1440px) {
  .header:not(.sticky) .headerBackground + .container {
    height: 206px;
  }
}
@media only screen and (min-width: 1680px) {
  .header:not(.sticky) .headerBackground + .container {
    height: 240px;
  }
}
@media only screen and (min-width: 1920px) {
  .header:not(.sticky) .headerBackground + .container {
    height: 275px;
  }
}
@media only screen and (min-width: 1024px) {
  .header:not(.sticky) .headerBackground + .container .header__logo img {
    max-height: 100%;
    max-width: 300px;
  }
}
.header .headerBackground img {
  display: none;
}
@media only screen and (min-width: 1024px) {
  .header .headerBackground img {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    text-align: center;
    height: 147px;
    opacity: 0;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    /*-moz-backface-visibility: hidden;*/
  
  }
}
@media only screen and (min-width: 1280px) {
  .header .headerBackground img {
    height: 183px;
  }
}
@media only screen and (min-width: 1440px) {
  .header .headerBackground img {
    height: 206px;
  }
}
@media only screen and (min-width: 1680px) {
  .header .headerBackground img {
    height: 240px;
  }
}
@media only screen and (min-width: 1920px) {
  .header .headerBackground img {
    height: 275px;
  }
}
.header__logo {
  z-index: 9;
}
@media only screen and (max-width: 1023px) {
  .header__logo {
    position: absolute;
    top: 50%;
    right: 0;
    bottom: auto;
    left: 0;
    margin: 0 auto;
    transform: translateY(-50%);
    max-height: 60px;
    text-align: center;
    z-index: -1;
  }
}
.header__logo.text {
  margin: auto;
}
.header__logo img {
  position: relative;
  max-width: 200px;
  max-height: 60px;
}
@media only screen and (max-width: 1023px) {
  .header__logo img {
    max-height: 50px;
    max-width: 100%;
    width: auto;
    display: block;
    margin: 0 auto;
  }
}
@media only screen and (min-width: 400px) {
  .header__logo img {
    max-width: 250px;
  }
}
@media only screen and (min-width: 1024px) {
  .header__logo img {
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    /*-moz-backface-visibility: hidden;*/
  
  }
}
.header__utils {
  flex: 1;
  min-height: 19px;
}
@media only screen and (max-width: 1023px) {
  .header__utils {
    display: none;
  }
}
.header__utils ul {
  margin: 0;
  padding: 0 15px 0 0;
  float: right;
  list-style-type: none;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}
.header__utils ul li {
  display: inline-block;
  margin-left: 10px;
  line-height: 19px;
}
.header__utils ul li a {
  color: black;
  text-decoration: none;
}
.header__utils ul li a:hover {
  color: #888888;
  text-decoration: underline;
}
@media only screen and (max-width: 1023px) {
  .header__search {
    position: fixed;
    top: 60px;
    right: 0;
    bottom: auto;
    left: 0;
    padding: 15px;
    background-color: #f1f1f1;
    border-bottom: solid 1px #dedede;
    display: none;
  }
  .header__search--active {
    display: block;
  }
}
.header__search__toggle {
  position: absolute;
  top: 0;
  right: 0;
  bottom: auto;
  left: auto;
  width: 60px;
  height: 60px;
  background-color: white;
  border-radius: 0;
  border-top: none;
  border-bottom: none;
  border-right: none;
  border-left: solid 1px #dedede;
  cursor: pointer;
  background: url(../../images/img_icon_search.gif) no-repeat 19px 13px;
  background-size: 65%;
}
@media only screen and (min-width: 1024px) {
  .header__search__toggle {
    display: none;
  }
}
.header__search #search {
  position: relative;
  height: 35px;
  background-color: white;
}
@media only screen and (min-width: 1024px) {
  .header__search #search {
    top: 50%;
    transform: translateY(-50%);
  }
}
.header__search #search input[type="text"] {
  float: left;
  width: calc(100% - 35px);
  border-radius: 0;
  height: 35px;
  line-height: 35px;
  padding: 0 10px;
  margin: 0;
  border: solid 1px #dedede;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  border-right: none;
}
.header__search #search input[type="submit"] {
  float: left;
  width: 35px;
  height: 35px;
  background-color: white;
  border-radius: 0;
  border: solid 1px #dedede;
  cursor: pointer;
  background: url(../../images/img_icon_search.gif) no-repeat 9px 6px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}
