/* Fonts */
@import url('https://fonts.googleapis.com/css?family=Comfortaa');

/* Layout */

html {
  position: relative;
  min-height: 100%;
}

/*
LOGO
#dd7400 - orrange
#c6c6c6 - grey dark
#ececec - grey light
*/

body {
  margin: 0;
  display: flex;
  justify-content: space-between;
  font-family: Arial, Helvetica, sans-serif;
  border-top: 2em solid #ececec;
  border-left: 2em solid #ececec;
  border-right: 2em solid #ececec;
}

#catch {
  max-height: calc(100vh - 4rem);
  min-width: 25em;
  max-width: 30em;
  padding: 2em 0;
  box-sizing: border-box;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#contact {
  padding-left: 10%;
}
#contact strong {
  color: #dd7400;
}

header {
  text-align: center;
}
header img {
  width: 80%;
}

nav {
  padding: 0 2rem;
  color: #dd7400;
  text-align: center;
}
nav a {
  display: block;
  font-size: 1.75em;
  padding: 0.2em;
  text-transform: uppercase;
}

main {
  padding: 0 1em;
  padding-bottom: 3rem;
  min-height: calc(100vh - 2rem);
  width: 100%;
  text-align: center;
  border-left: 2px solid #ececec;
  box-sizing: border-box;
}
#landing {
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url(../img/werkstatt.jpg);
  background-size: cover;
}

footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2rem;
  background-color: #ececec;
}
footer a {
  position: absolute;
  bottom: .3rem;
  right: 2rem;
}

/* Content */
main p {
  line-height: 1.4em;
  letter-spacing: .03em;
}

#landing h1 {
  padding: 1em;
  background-color: rgba(236,236,236, .9);
}

#leistungen,
#projekte {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 55em;
  margin-left: auto;
  margin-right: auto;
}
.card {
  width: 16rem;
  height: 12rem;
  margin: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  background-color: #dd7400;
  cursor: pointer;
  transition: transform .2s .2s;
  box-shadow: 3px 3px 5px #c6c6c6;
}
.card img {
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
}
.card span {
  font-size: 1.2em;
  padding: .1em;
  padding-left: .5rem;
  color: white;
  background-color: #dd7400; /* IE11 hack */
}

.card:hover {
  transform: scale(1.1);
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.gallery img {
  height: 15em;
  margin: 1em;
  box-shadow: 3px 3px 5px #c6c6c6;
}

.content img {
  max-width: calc(100% - 2em);
  height: auto;
}

/* General */
a {
  color: inherit;
  text-decoration: none;
}

h1 {
  margin-top: 1.25em;
  font-family: 'Comfortaa', cursive;
  color: #dd7400;
  letter-spacing: .05em;
}
h2 {
  font-family: 'Comfortaa', cursive;
}
h1, h2 {
  font-weight: lighter;
}

p {
  text-align: justify;
  max-width: 33em;
  margin-left: auto;
  margin-right: auto;
}

.grey {
  font-size: .8em;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: grey;
}

.center {
  text-align: center;
}

/* mobile */

@media only screen and (min-width: 50em) {
  #nav__open,
  #nav__close {
    display: none;
  }
}

@media only screen and (max-width: 50em) {
  body {
    display: initial;
    border: none;
  }
  #catch {
    min-width: initial;
    max-width: initial;
    padding: 0;
    flex-direction: column-reverse;
    border-bottom: 2px solid #c6c6c6;
  }
  #contact {
    padding-left: 0;
  }
  #contact p {
    margin: .5em;
  }
  header {
    margin: .5em;
  }
  header img {
    height: 10em;
    width: auto;
  }
  nav {
    position: fixed;
    top: -100vh;
    min-height: 100vh;
    width: 100%;
    padding-top: 2em;
    z-index: 99;
    font-size: 1.1em;
    background: white;
    box-sizing: border-box;
    transition: top 0.5s ease;
  }
  nav a {
    display: block;
  }
  #nav:target {
    top: 0;
  }
  #nav__open {
    position: absolute;
    top: 0;
    font-size: 1.4em;
    padding: .2em;
    color: #dd7400;
  }
  main {
    position: absolute;
    width: 100%;
    min-height: calc(100% - 17rem);
    padding: .5em 1em;
    padding-bottom: 2rem;
    box-sizing: border-box;
    border: none;
  }
  footer {
    position: fixed;
    font-size: .8em;
    width: 100%;
    height: 1.5em;
    box-sizing: border-box;
    text-align: center;
    background-color: #ececec
  }
  footer a {
    position: initial;
    display: block;
    margin-top: .2em;
  }

  /* Content */
  #landing h1 {
    font-size: 1.2em;
  }
  h1 {
    margin-top: .5em;
  }
}
