* { -webkit-transition: all 0.6s ease;  /* apple, chrome if it is moving use easing effect*/
    -moz-transition: all 0.6s ease; /* firefox */
    -o-transition: all 0.6s ease; /* opera */
    transition: all 0.6s ease;
}

html {
    height: 100%;
}

body {
    height: 100%;
    padding: 0;
    font-size: 100%;
    font: 1em/1.6 'Roboto', Arial, sans-serif;
}

/*------------- HEADER ---------------------------*/

header {
    margin: 1em 0;
}

header h1 span {
    margin-left: -999em;
}

header h1 a {
    display: block;
}

header h1 img {
    display: block;
    margin: 0 auto 0 auto;
    min-width: 276px;
    width: 70%;
    max-width: 384px;
}

header a#menu {
    display: none;
}
/*------------- SECTION CENTER ---------------------------*/

section.center {
    width: 90%;
    margin: 0 auto;
    max-width: 1400px;
}

section div.border {
    border: 3px #4a56d0 solid;
    /*border: 3px  rgb(214,76,4)solid;*/
    padding: 0 2em 0 2em;
    overflow: hidden;
}

div.container {
  display: flex;
  flex-direction: row;
  align-items: center;
} /*flexbox to vertically center article and picture */

section.center article {
  float: left;
  width: 48%;
  padding-right: 2%;
  height: 374px; /*to vertically center paragraph */
  display: table; /*to vertically center paragraph */
}

section.center article div.vertcenter {
  display: table-cell; /*to vertically center paragraph */
  vertical-align: middle;
}

section.center article p {
  font-size: 1.4em;
  line-height: 1.7em;
}

section.center article p#first {
  margin-bottom: 0.6em;
}

section.center figure {
  float: left;
  width: 50%;
}

section.center figure img {
    width: 100%;
}

section.center div#more {
  padding-top: 2em;
  align-items: flex-start;
}

section.center article#second {
  padding-left: 1em;
  padding-right: 0;
}

/*------------- NAVIGATION ---------------------------*/

section nav.top {
    overflow: hidden;
    margin-bottom: 2em;
}

section nav.top a#menu {
    display: none;
}

section nav.top ul {
   float: right;
   width: 70%;
   margin-right: 3%;
}

section nav.top ul li {
    float: left;
    width: 30%;
    margin-right: 3%;
    background-color: #5b9bfd;
    /*background-color: rgb(250,105,23);*/
    text-align: center;
}

section nav.top ul li a {
    text-decoration: none;
    display: block;
    color: #fff;
    font-size: 1.5em;
    font-weight: 400;
}

section nav.top ul li:hover {
    background-color: #fff;
    /*background-color: rgb(255, 85, 85);*/
}

section nav.top ul li a:hover {
    font-family: 'Kalam', cursive;
    font-size: 1.5em;
    font-weight: 400;
    color: #4a56d0;
}

section nav.bottom {
    clear: both;
    overflow: hidden;
    padding-top: 2em;
}

section nav.bottom ul {
   float: right;
   width: 50%;
}

section nav.bottom ul li {
    float: left;
    width: 30%;
    margin-right: 3%;
    background-color: #5b9bfd;
    /*background-color: rgb(250,105,23);*/
    text-align: center;
}

section nav.bottom ul li a {
    text-decoration: none;
    display: block;
    color: #fff;
    font-size: 1em;
    font-weight: 400;
}

section nav.bottom ul li:hover {
    background-color: #fff;
}

section nav.bottom ul li a:hover {
    font-family: 'Kalam', cursive;
    font-size: 1em;
    font-weight: 400;
    color: #4a56d0;
}

section nav.bottom ul li#hidenav {
  display: none;
}

/*------------- SECTION SERVICES ---------------------------*/

section.services ul li a span {
    margin-left: -999em;
}

section.services {
    width: 90%;
    margin: 0 auto;
    max-width: 1400px;
}

section.services ul {
    width: 100%;
    overflow: hidden;
    margin: 4em 0 0 0;
}

section.services ul li {
    float: left;
    width: 16%;
    margin: 0 2% 0 2%;
}

section.services ul li a {
    display: block;
    width: 100%;
}

section.services ul li a img{
    display: block;
    margin: 0 auto 0 auto;
}


/*------------- FOOTER ---------------------------*/

footer {
    width: 90%;
    margin: 0 auto;
    max-width: 1400px;
}

footer ul {
    overflow: hidden;
    margin: 2em 0 0 0;
}

footer ul li {
    float: left;
    width: 35%;
    margin: 0 0 0 15%;
}

footer ul li a {
  text-decoration: none;
  color: #000;
}

/*footer ul li img{
    margin-top: 0.4em;
} */

/*------------- SPECIAL RULES IMPRESSUM---------------------------*/
section.center div.container p a{
  text-decoration: none;
  color: #000;
}

/*------------- SPECIAL RULES REFERENZEN---------------------------*/
section.center article#referenzen {
  width: 100%;
  padding-right: 0;
  height: auto;
}

section.center article#referenzen div#reflist {
  display: flex;
  flex-direction: row;
  padding-top: 1em;
}

section.center article#referenzen div#reflist ul {
  width: 45%;
  margin: auto;
}

section.center article#referenzen div#reflist ul li {
  font-size: 0.8em;
}

/*------------- UNDER CONSTRUCTION PLACEHOLDER---------------------------*/
 article.placeholder {
  width: 70%;
  margin: 0 auto;
}

article.placeholder p {
  margin-bottom: 1em;
}

article.placeholder a{
  display: block;
  margin: 2em auto;
}
/*------------- MEDIA QUERY RULES---------------------------*/
@media screen and (max-width: 1500px){
  section.center article {
    height: 300px; /*to vertically center paragraph */
  }

  section.center article p {
    font-size: 1.2em;
    line-height: 1.5em;
  }
}

@media screen and (max-width: 1250px){
  section.center article {
    height: 240px; /*to vertically center paragraph */
  }

  section.center article p {
    font-size: 1em;
    line-height: 1.3em;
  }
}

@media screen and (max-width: 1200px){
section nav.top ul {
   width: 90%;
}

section nav.bottom ul {
   width: 70%;
}
}

@media screen and (max-width: 960px){
header {
    overflow: hidden;
}

header h1 {
    width: 85%;
    float: left;
}

section.center article {
  height: 190px; /*to vertically center paragraph */
}

section.center article p {
  font-size: 0.8em;
  line-height: 1.2em;
}

section.center article#referenzen p {
  font-size: 1em;
  line-height: 1.3em;
}

section.services ul li a img {
    width: 75px;
}

header a span {
    margin-left: -999em;
}

header a#menu {
    background: url(../images/feather.jpg) no-repeat center right;
    display: block;
    max-width: 100px;
    height: 80px;
    float: right;
    width: 15%;
    box-sizing: border-box;
    border: 2px #fff solid;
    /*background-size: 100%;
    font-size: 1.2em;
    font-weight: 400;
    border: 3px rgb(214,76,4) solid;
    padding: 3px 4px;
    color: #fff;
    text-decoration: none;
    text-align: center;
    background: rgb(250,105,23);*/
}

header a#menu:hover {
    border: 2px #4a56d0 solid;
}

nav.top ul.desktopnav {
    display: none;
}

nav.bottom ul.desktopnav {
    display: none;
}

.mobilenav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 600;
    width: 100%;

}

nav.top ul.mobilenav {
    float: none;
    width: 100%;
    margin-right: 0;
    background: rgba(91,155,253,0.95);
}

nav.top ul.mobilenav li {
    float: none;
    width: 100%;
    height: 4em;
    line-height: 4em;
    text-align: left;
    font-size: .8em;
    border-bottom: 1px solid #fff;

}

nav.top ul.mobilenav li a {
    color: #fff;
    display: block;
    height: 100%;
    width: 100%;
    padding-left: 2em;
}

nav.top ul.mobilenav li#hidenav{
    background: url(../images/up.png) no-repeat center center;
}

nav.top ul.mobilenav li#hidenav a{
    opacity: 0;
    background: rgb(255, 85, 85); /*orange*/
    padding-left: 0;
}

nav.top ul.mobilenav li#hidenav a:hover {
    opacity: 1;
}

nav.top ul.mobilenav li#hidenav a img{
    display: block;
    margin: auto;
}

 footer ul li {
    float: left;
    width: 28%;
    margin: 0 0 0 15%;
}

@media screen and (max-width: 895px){
  section.center article#referenzen div#reflist ul li {
    font-size: 0.7em;
  }

  section.center article#referenzen p {
    font-size: 0.9em;
    line-height: 1.3em;
  }
}

@media screen and (max-width: 795px){
  section.center article#referenzen div#reflist ul li {
    font-size: 0.6em;
  }
}

@media screen and (max-width: 700px){
  header {
      margin: 1em 0 0 0;
  }

  section div.border {
      border: none;
  }

  section nav.top {
      margin-bottom: 0;
  }

  section nav.bottom {
      padding-top: 0;
  }

  div.container {
    display: block;
  }

  section.center article {
    float: none;
    width: 100%;
    padding-right: 0;
    display: inline;
  }

  section.center figure {
    float: none;
    width: 100%;
    display: block;
    margin-top: 1em;
  }
}

@media screen and (max-width: 685px){
  section.center article#referenzen div#reflist ul li {
    font-size: 0.5em;
  }

  section.center article#referenzen p {
    font-size: 0.8em;
    line-height: 1.3em;
  }
}

@media screen and (max-width: 590px){
    header h1 a {
      margin-top: 1em;
    }

    header h1 img {
      min-width: 250px;
    }

    header a#menu {
      background: url(../images/feathersmall.jpg) no-repeat center right;
 }

    section.services ul {
      margin: 2em 0 0 0;
    }

    section.services ul li {
      float: none;
      width: 96%;
    }

    footer ul li {
      float: none;
      width: 100%;
      margin: 0;
    }

    section.center article#referenzen div#reflist {
      display: block;
    }

    section.center article#referenzen p {
      font-size: 0.7em;
      line-height: 1.3em;
    }
}

    @media screen and (max-width: 400px){
      header h1 {
        width: 80%;
    }

      header a#menu {
        width: 20%;
    }

    section.center article#referenzen div#reflist ul {
      width: 55%;
      margin: auto;
    }
}
