/*
Theme Name: In Your Aerial
Author: Ingmar Standke
Author URI: http://ingmarstandke.com/
Version: 0.0.1
*/

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  overflow-y: scroll;
  height: 100%;
  margin: 0px;
  font-family: 'Open Sans', sans-serif;
  font-size: 23px;
  line-height: 32px;
  font-weight: normal;
  word-wrap: break-word;
  color: #666666;
}

body {
  background: url(m/test.jpg);
  background-position: center top;
  background-repeat: no-repeat;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  font-size: 1em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  text-decoration: none;
}

.center {
  position: relative;
  margin: 0 auto; 
}

.clear:after {
  content: '';
  display: block;
  clear: both;
}

.table {
  display: table;
  position:relative;
  width: 100%;
  table-layout: fixed;
}

.table > .col {
  position:relative;
  display:table-cell;
  width: auto;
  vertical-align:top;
}

/* */

.center.main {
  max-width: 1280px;
}

.center.main > div {
  padding: 0 4.6875%; 
}

.rich p img {
  max-width: 100%;
  height: auto;
}

.rich p a {
  color: #ed1c16;
}

.rich p + p {
  margin-top: 40px;
}

/* Header */

#logo {
  display: inline-block;
  width: auto;
  padding-top: 62px;
  margin-bottom: 10px;
  background: url(m/logo.svg);
  background-size: 254px auto;
  background-repeat: no-repeat;
  background-position: 0px 0px;
  font-size: 19.7px;
  line-height: 32px;
  font-weight: 700;
  color: #ed1c16;
}

#logo span {
  display: block;
  margin-left: -1px;
}

#logo span:first-child {
  display: none;
}

#header > div {
  padding-top: 41px;
  margin-bottom: 19px;
}

#header > .center > div > div {
  position: relative;
  border-bottom: 1px solid #333333;
}

#header .navigation.main {
  float: right;
  margin-top: 36px;
  list-style: none;
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 1.043em;
}

#header .navigation.main li {
  float: left;
}

#header .navigation.main li a {
  padding: 0 35px;
  color: #333333;
}

#header .navigation.main li a:hover {
  color: #ed1c16; 
}

#header .navigation.main li:last-child a {
  padding-right: 0;
}

#header .row2 p {
  margin-top: 23px;
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 1.217em;
  color: #333333;
}

#header .navigation.area {
  position: relative;
  height: 42px;
  overflow: hidden;
  padding: 0;
  margin: 13px 0 34px 0;
  list-style: none;
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 1.217em;
  line-height: 42px;
  text-align: justify;
  text-align-last: justify;
}

#header .navigation.area:after {
  content: '';
  display: inline-block;
  width: 100%;
}

#header .navigation.area li {
  display: inline-block;
}

#header .navigation.area a {
  display: block;
  padding: 0 16px;
  background: #ed1c16;
  color: #fff;
}

#header .navigation.area a:hover,
#header .navigation.area a.selected {
  background: #333333;
  transition: background 0.5S ease-out;
} 

#header .menu {
  position: absolute;
  z-index: 101;
  right: 0;
  width: 29px;
  height: 21px;
  top: 35px;
  cursor: pointer;
  display: none;
}

#header .menu span {
  display: block;
  position: absolute;
  left: 2px;
  top: 2px;
  width: 25px;
  height: 3px;
  background: #333333;
}

#header .menu span+span {
  top: 9px;
}

#header .menu span+span+span {
  top: 16px;
}

#header .menu:hover span {
  background: #ed1c16;
}

#navigation {
  position: fixed;
  right: -330px;
  top: 0;
  z-index: 100;
  width: 300px;
  height: 100%;
  padding: 100px 20px 20px 20px;
  background: #fff;
  transition: right 0.2S ease-out;
  display: none;
}

.show-menu #navigation {
  right: 0px;
}

#navigation > span {
  position: absolute;
  z-index: -1;
  left: 0;
  top: -10%;
  width: 100%;
  height: 120%;
  -webkit-box-shadow: -10px 0px 21px 0px rgba(0,0,0,0.5);
  -moz-box-shadow: -10px 0px 21px 0px rgba(0,0,0,0.5);
  box-shadow: -10px 0px 21px 0px rgba(0,0,0,0.5);
}

#navigation ul {
  list-style: none;
  padding: 0;
}

#navigation ul a {
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 1.043em;
  line-height: 1.5em;
  color: #333333;
}

/* Frontpage */

.content.teaser {
  position: relative;
  margin-bottom: 42px;
  padding-bottom: 46.37931034482759%;
  background-color: #dfdfdf;
  background-size: cover;
  background-repeat: no-repeat;
}

.content.teaser > a {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.content.teaser > div {
  position: absolute;
  width: 55.689%;
  min-height: 25.650%;
  bottom: 9.107%;
  padding: 1.776% 2.476% 1.776% 2.476%;
  background: #fff;
}

.content.teaser h2 {
  margin-bottom: 1.2%;
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 1.217em;
  color: #ed1c16;
}

.content.teaser p {
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 0.782em;
  line-height: 1.22em;
  color: #000000;
}

/* */

.content.cols2 {
  padding-bottom: 40px;
}

.content.cols2 h2,
.content.projects h2 {
  margin: 8px 0 0 16px;
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 1.217em;
  color: #333333;
}

.content.cols2 > .table > .col:nth-child(1) {
  width: 25.862%;
}

.content.cols2 + .content.cols2,
.content.cols2 + .content.projects {
  border-top: 1px solid #333333;
  padding-top: 30px;
}

.content.image + .content.cols2 {
  padding-top: 30px;
}

/* Text */

/* Team */

.content.team ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.content.team ul li {
  background: #e6e6e6;
}

.content.team ul li + li {
  margin-top: 40px;
}

.content.team ul li .col {
  padding: 20px;
}

.content.team ul li .col:nth-child(1) {
  width: 33.216%;
}

.content.team ul li .col:nth-child(1) img {
  width: 100%;
}

.content.team ul li .col:nth-child(2) {
  padding-left: 0;
}

.content.team h3,
.content.team span.title {
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 0.782em;
  line-height: 1.173em;
}

.content.team h3 { 
  margin-top: -0.2em;
  color: #ed1c16;
}

.content.team span.title {
  display: block;
  color: #333333;
} 

.content.team .rich {
  margin-top: 20px;
  font-size: 0.739em;
  line-height: 1.086em;
  color: #000000;
}

/* Contact */

.content.contact form {
  margin-top: 55px;
}

.content.contact input[type="text"],
.content.contact textarea {
  display: block;
  padding: 7px 10px 7px 10px;
  width: 100%;
  border: 1px solid #b4b4b4;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.86em;
  color: #666666;
}

.content.contact input[type="text"] + input[type="text"],
.content.contact input[type="text"] + textarea {
  margin-top: 22px;
}

.content.contact textarea {
  resize: none;
  height: 350px;
}

.content.contact input[type="submit"] {
  float: right;
  padding: 0 24px;
  margin-top: 18px;
  background: #ed1c16;
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  line-height: 40px;
  font-size: 16px;
  border: none;
  color: #fff;
}

/* Image */

.content.image {
  position: relative;
  padding-bottom: 46.37931034482759%;
  background-color: #dfdfdf;
  background-size: contain;
  background-repeat: no-repeat;
}

/* Projects */

.content.projects > ul {
  position: relative;
  list-style: none;
  margin: 60px 0 0 -60px;
  padding: 0;
}

.content.projects > ul > li {
  position: absolute;
  padding-left: 60px;
}

.content.projects > ul > li > div {
  background: #e6e6e6;
  margin-bottom: 40px;
}

.content.projects > ul > li .image {
  background-size: contain;
}

.content.projects > ul > li .text {
  padding: 25px;
}

.content.projects > ul > li h3 {
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 0.782em;
  color: #000000;
}

.content.projects > ul > li .rich {
  font-size: 0.56em;
  line-height: 1.46em;
  color: #000000;
}

.content.projects > ul > li .meta {
  margin-top: 15px;
  border-top: 1px dashed #B4B4B4;
  font-size: 0.521em;
  color: #ed1c16;
}

/* Footer */

#footer {
  background: #e6e6e6;
}

#footer h6,
#footer .navigation a {
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 0.956em;
  line-height: 1.434em;
  color: #333333;
}

#footer .navigation {
  list-style: none;
  margin: 0;
  padding: 0;
}

#footer .row {
  padding-top: 30px;
  padding-bottom: 15px;
}

#footer .row + .row {
  border-top: 1px solid #2F2F2F;
}

#footer .mailing {
  padding-right: 30px;
}

#footer .mailing p {
  margin-bottom: 6px;
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 0.695em;
  line-height: 1.26em;
  color: #333333;
}

#footer .mailing input[type="text"] {
  display: block;
  padding: 7px 10px 7px 10px;
  width: 100%;
  border: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.86em;
  color: #666666;
}

#footer .mailing input[type="submit"] {
  padding: 0 24px;
  margin-top: 10px;
  background: #ed1c16;
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  line-height: 40px;
  font-size: 16px;
  border: none;
  color: #fff;
}

#footer .social {
  list-style: none;
  margin: 10px 0 0 0;
  padding: 0;
}

#footer .social li {
  float: left;
  margin: 0 18px 16px 0;
}

#footer .social a {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ed1c16;
  background-image: url(m/social.svg);
  background-size: cover;
  background-repeat: no-repeat;
}

#footer .social a.google {
  background-position: 25% 0;
}

#footer .social a.facebook {
  background-position: 50% 0;
}

#footer .social a.instagram {
  background-position: 75% 0;
}

#footer .social a.linkedin {
  background-position: 100% 0;
}

#footer .logo {
  display: block;
  margin-bottom: 15px;
  width: 220px;
  height: 53px;
  background: url(m/logo.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: 0px 0px;
}

#footer .funders {
  list-style: none;
  margin: 10px 0 0 0;
  padding: 0;
}

#footer .funders li {
  float: left;
  margin: 0 18px 16px 0;
}

#footer .funders li img {
  height: 57px;
  width: auto;
}

#footer .row3 {
  font-size: 0.608em;
  font-weight: 600;
}

#footer .row3 p {
  width: auto;
  float: left;
}

#footer .row3 p + p {
  float: right;
}

@media screen and ( max-width: 1200px ) {
  #app {
    font-size: 0.9em;
    line-height: 1.252em;
  }

  #header .navigation.area {
    height: 38px;
    line-height: 38px;
  }

  #header .navigation.area a {
    padding: 0 15px;
  }
}

@media screen and ( max-width: 1100px ) {
  #app {
    font-size: 0.8em;
    line-height: 1.2em;
  }

  #header .navigation.area {
    height: 34px;
    line-height: 34px;
  }

  #header .navigation.area a {
    padding: 0 13px;
  }
}

@media screen and ( max-width: 1000px ) {
  #app {
    font-size: 0.7em;
    line-height: 1.2em;
  }

  #header .navigation.area {
    height: 30px;
    line-height: 30px;
  }

  #header .navigation.area a {
    padding: 0 12px;
  }
}

@media screen and ( max-width: 850px ) {

  #header > div {
    padding-top: 19px;
  }

  #header .row2 {
    display: none;
  }

  #header .navigation.main {
    display: none;
  }

  #header .menu {
    display: block;
  }

  #navigation {
    display: block;
  }

  #footer .row1 > .table > .col {
    display: block;
  }

  #footer .row1 > .table > .col + .col {
    margin-top: 30px;
  }
}

@media screen and ( max-width: 640px ) {

  .content.cols2 > .table > .col:nth-child(1),
  .content.cols2 > .table > .col:nth-child(2) {
    display: block;
    width: 100%;
  }

  .content.cols2 h2, 
  .content.projects h2 {
    margin-left: 0;
    margin-bottom: 16px;
  }

  .content.projects > ul {
    margin-top: 0;
  }
}