/* crimson-text-regular - latin: Copyright (c) 2010, Sebastian Kosch (sebastian@aldusleaf.org), with Reserved Font Name "Crimson", SIL Open Font License Version 1.1 (http://scripts.sil.org/OFL) */
@font-face {
  font-family: 'Crimson Text';
  font-style: normal;
  font-weight: 400;
  src: local('Crimson Text Regular'), local('CrimsonText-Regular'),
       url('/sys/fonts/crimson-text-v8-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('/sys/fonts/crimson-text-v8-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* crimson-text-700 - latin: Copyright (c) 2010, Sebastian Kosch (sebastian@aldusleaf.org), with Reserved Font Name "Crimson", SIL Open Font License Version 1.1 (http://scripts.sil.org/OFL) */
@font-face {
  font-family: 'Crimson Text';
  font-style: normal;
  font-weight: 700;
  src: local('Crimson Text Bold'), local('CrimsonText-Bold'),
       url('/sys/fonts/crimson-text-v8-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('/sys/fonts/crimson-text-v8-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary {
  display: block;
}

audio, canvas, progress, video {
  display: inline-block;
}

* {
  margin: 0; padding: 0;
}

body {
  font: 400 20px/1.5em 'Crimson Text', Times, serif;
  color: #222;      
}

strong, b {
  font-weight: 700;
}

h1, h2, h3, h4 {    
  margin: 2em 0 1em;
  line-height: 1.5em;
  font-size: 1em;
  font-weight: 700;
  color: #222;
}

h1:first-child, h2:first-child {
  margin-top: 0;
}

h1, h2 { 
  margin-bottom: 0.5em;
  line-height: 1.2em;
  font-size: 2em; 
  font-weight: 400;
}

h3 {
  font-size: 1.2em;  
}

p {
  margin: 0 0 1em;
  line-height: 1.5em;
}

ol {
  margin: 0; padding-left: 25px;
  list-style-type: decimal;
}

ul {
  margin: 0; padding-left: 25px;
}

li {    
  margin: 0 0 1em;       
  line-height: 1.5em;
}

table {
  margin-bottom: 1em;
  border-collapse: collapse;
  width: 100%;
}

td {
  padding: 0 0 0 20px; margin: 0;
  text-align: left;
  vertical-align: top;
  font: inherit;
  line-height: 1.5em;
  font-size: 1em;
}

td:first-child {
  padding-left: 0;
}

a {
  color: #222;
}

a:hover {
  text-decoration: none;
  outline: 0;
}

a img {
  border: 0;
}

a:hover img {
  opacity: 0.8;
  filter:alpha(opacity=80);
}

img {
  max-width: 100%;
}

/*** Klassen ***/
.menu {
  margin: 0; padding: 0;
}

.menu li {
  margin: 0; padding: 0;
  list-style: none;
}

.menu a {
  display: block;
  text-decoration: none;
}

.menu a:hover,
.menu .active a {
  color: #bf1e2d;
}

.mobile {
  display: none;
}

/*** Header ***/
#header {
  padding: 0 5%;
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;   
  overflow: hidden;  
  background: #fff;    
  -webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  -ms-transition: all 0.5s;
  -o-transition: all 0.5s;
  transition: all 0.5s;
} 

.scroll #header {
  -moz-box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
}

#logo {
  margin: 0; 
  line-height: 70px;
  float: left;
  display: block; 
}

#logo a {
  color: #bf1e2d;
  text-decoration: none;
}

/*** Primary ***/
#primary { 
  float: right; 
} 

#primary .menu li {
  padding-left: 30px;
  line-height: 70px;
  float: left;
}

/*** Content ***/
#content {
  padding-top: 70px; 
}

.post {
  background: #ededed;  
}

#home  {
  background: #E5E5E5; 
}

.post .inner {
  position: relative;
}

.slideshow {
  position: absolute; top: 0; bottom: 0; left: 0; right: 50%;
}

.right .slideshow {
  left: 50%; right: 0;
}

#home .slideshow {
  height: 500px;
  position: relative; top: auto; left: auto; right: auto; bottom: auto;
}

.bx-wrapper, .bx-viewport, .slides, .slide {
  height: auto !important;
  position: absolute !important; left: 0; right: 0; top: 0; bottom: 0;
}

.slide {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;  
}

#home .slide {
  display: none;
}

#home .slide:first-child {
  display: block;
}

.content {
  margin-left: 50%;
  padding: 100px 5% 90px;
  padding: 5vw 5% 4.5vw;  
}

.right .content {
  margin: 0 50% 0 0;
}

#home .content {
  margin: 0 auto; padding: 30px 5% 20px;
  max-width: 1340px; 
}

/*** Map ***/
#map {
  margin: 100px -12.5% -90px;
  margin: 5vw -12.5% -4.5vw;
  height: 300px;
  height: 50vh;
}

/*** Footer ***/
#footer {  
  padding: 30px 7%;
  text-align: center;
  font-size: 0.9em;
  line-height: 1.5em;
  color: #ccc;
}

#footer a {
  text-decoration: none;
  color: #ccc;
}


@media screen and (max-width: 800px) {
  body {
    font-size: 20px;
  }
  
  h1, h2 {
    font-size: 1.5em;
  }
 
  .mobile {
    display: block;
  }
    
  #header {
    padding: 0 7%;
  }
  
  #logo {
    line-height: 50px;
  }
        
  #primary {
    text-align: right;   
  }

  #primaryCtrl {
    display: block;
    float: right;
    overflow: hidden;
  }

  #primaryCtrl span {
    width: 25px;
    display: block;
  }

  #primaryCtrl > span {
    padding: 14px 0 11px 20px;
    float: right;
  }

  #primaryCtrl > span > span {
    margin-bottom: 4px;
    height: 4px;
    background: #222;
  }

  #primaryCtrl:hover > span > span {
    background: #bf1e2d;
  }
  
  #primary .menu {
    padding: 10px 0 20px;
    display: none;
    clear: both;
  }

  #primary .menu li {
    padding: 0;
    line-height: 40px;
    float: none;
  }
  
  #content {
    padding-top: 50px;
  }
      
  .slideshow,
  .right .slideshow,
  #home .slideshow {
    height: 300px;
    height: 66vw;
    position: relative; top: auto; left: auto; right: auto; bottom: auto;
  }
    
  .content,
  .right .content,
  #home .content {
    margin: 0;
    padding: 25px 7% 25px;
    padding: 7vw 7% 6.5vw;
  }
    
  #map {
    margin: 25px -25px -25px;
    margin: 7vw -8.13% -6.5vw;
  }
}