/* Code: Jonas Pelzer, jonaspelzer.com */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 100%;
  font: inherit;

  /* outline: solid 1px rgba(0,0,0,.2); */
}

@font-face {
  font-family: 'DINWebPro';
  src: url('../fonts/DINWebPro.woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'DINWebPro';
  src: url("../fonts/DINWebPro-Bold.woff");
  font-weight: bold;
  font-style: normal;
}

*:focus {
  /* outline: solid 2px rgba(0,0,0,.4); */
  outline: dotted 1px #666;
}

::selection {
  background: #000;
  color: #fff;
}

body {
  font-family: 'DINWebPro', sans-serif;

  font-size: 15px;
  line-height: 16px;
}

.body--noscroll {
  overflow: hidden;
}

a {
  color: #000;
  text-decoration: none;
  font-weight: bold;
}

a:hover, a:focus {
  font-weight: normal;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 1fr;
  column-gap: 12px;
  padding: 24px 12px;
}

.container+.container {
  padding-top: 0;
}

.cols-6-left {
  grid-column: 1 / span 6;
  grid-row-start: 1;
}

.cols-6-left--displaced {
  grid-column: 1 / span 7;
  grid-row-start: 1;
}

.cols-6-left--displaced img {
  width: 100%;
}

.linklist a:before {
  content: '→ ';
}

.cols-6-right {
  grid-column: 7 / span 6;
  grid-row-start: 1;
}

.text {
}

.text a, main .text button {
  display: inline;
  background-image: url('../images/text.png');
  background-repeat: repeat-x;
  background-position: left 40%;
}

.text p {
  line-height: 16px;
  display: inline;
  background-image: url('../images/text.png');
  background-repeat: repeat-x;
  background-position: left 40%;
}

main .text ul li {
  display: inline;
  background-image: url('../images/text.png');
  background-repeat: repeat-x;
  background-position: left 40%;
}

main .text ul li:before {
  content: '- '
}

main .text ul li:after {
  content: '\A';
  white-space: pre;
  /* display: block; */
}

.text p:after, .text h1:after, .text h2:after, .text h3:after, main .text ul:after {
  content: '\A';
  white-space: pre;
  display: block;
  line-height: 16px;
}

.text h1, .text h2, .text h3, .text strong {
  font-weight: bold;
  display: inline;
  background-image: url('../images/text.png');
  background-repeat: repeat-x;
  background-position: left 40%;
}




/* HEADER */

.header {
  background: #fff;
  position: fixed;
  width: 100%;
  z-index: 600;
}

.header > * {
  overflow: visible;
}

.header a, .mobilemenu a {
  white-space: nowrap;
  font-weight: normal;
}

.header a:hover, .header a:focus, .mobilemenu a:hover, .mobilemenu a:focus {
  font-weight: bold;
}

.header a.current, .mobilemenu a.current {
  font-weight: bold;
}

.header-logo {
  /* outline: solid 2px blue; */
  width: 82px;
  grid-column: 7 / span 3;
  order: 3;
  background: transparent !important;
  max-height: 50px;
}

.header-logo img {
  max-width: 100%;
  /* width: 82px; */
  /* outline: solid 1px red; */
  background: transparent;
}

.header-menu {
  grid-column: 1 / span 2;
  order: 1;
}

.header-menu ul, .mobilemenu ul {
  list-style-type: none;
}

.header-menu a, .mobilemenu a {
  display: inline-block;
}

.header-news {
  grid-column: 3 / span 2;
  order: 2;
}

.header-lang {
  grid-column: 12 / span 1;
  order: 4;

  padding-left: .95vw;
}

.header-menu-submenu ul, .mobilemenu-submenu ul {
  padding-left: 40px;
  display: none;
}

.header-hamburger {
  display: none;
  width: 40px;
  height: 40px;
  background: #fff;
  grid-column: 1 / span 6;
  cursor: pointer;
  border: none;
  font-size: 30px;
  line-height: 45px;
  text-align: center;

  /* outline: solid 4px red; */
}

.header-hamburger span+span {
  display: none;
}

.header-hamburger--open {}

.header-hamburger--open span {
  display: none;
  font-size: 55px;
}

.header-hamburger--open span+span {
  display: block;
}

.mobilemenu {
  display: none;
  position: fixed;
  background: #fff;
  height: 100vh;
  width: 100vw;
  top: 0; left: 0;
  z-index: 560;
  /* padding-top: 100px; */
  padding-top: 84px;
}

ul.visible, .visible {
  display: block !important;
}

main {
  padding-top: 100px;
}

.masterclose {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 500;
}

@media (min-width: 851px) {
  .projects-link {
    background: none !important;
  }
}

@media (max-width: 850px) {

  main {
    padding-top: 68px;
  }

  .container {
    display: block;
  }

  .header {
    height: 68px;
  }

  .header .container {
    display: grid;
    padding: 12px;
  }

  .cols-6-left, .cols-6-right, .cols-6-left--displaced {
    display: block;
  }

  .cols-6-left--displaced {
    margin-left: -12px;
    margin-right: -12px;
  }

  .header-menu, .header-news, .header-lang {
    display: none;
  }

  .header-logo {
    /* outline: solid 1px red; */
    grid-column: 1 / span 6;
    order: initial;
    display: inline;
    width: 70px;
  }

  .header-logo img {
  }

  .header-hamburger {
    display: block;
    grid-column: 12 / span 1;
  }

  .arrow {
    margin-left: 0 !important;
  }
}
