/*! HTML5 Boilerplate v6.1.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* Complete */

@font-face {
  font-family: "LL Akkurat Regular Web";
  src: url("fonts/lineto-akkurat-regular.eot");
  src: url("fonts/lineto-akkurat-regular.eot?#iefix") format("embedded-opentype"),
    url("fonts/lineto-akkurat-regular.woff2") format("woff2"),
    url("fonts/lineto-akkurat-regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}


/* Subsetted */

@font-face {
  font-family: "LL Akkurat Regular Sub";
  src: url("fonts_subsetted/lineto-akkurat-regular.eot");
  src: url("fonts_subsetted/lineto-akkurat-regular.eot?#iefix") format("embedded-opentype"),
    url("fonts_subsetted/lineto-akkurat-regular.woff2") format("woff2"),
    url("fonts_subsetted/lineto-akkurat-regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

body {
  background: #c29492;
  color: #000;
  font: 20px/1.3 "LL Akkurat Regular Web", Arial, sans-serif;
  height: 100%
}

h1, h2, h3 {
  font-weight: normal;
}

h2 {
  font-size: 20px;
  color: #000;
  margin: 45px 0 36px;
}

h3 {
  font-size: 31px;
  margin-bottom: 15px;
}

.meta_small h3 {
  font-size: 12px;
  margin-bottom: 13px;
}

h5 {
  font-size: 12px;
  text-decoration: underline;
  margin: 13px 0 2px;
  padding-bottom: 0;
}

h3 + p,
h5 + p {
  margin-top: 0;
}

a {
  color: #f2f0e0;
  text-decoration: none;
  outline: none;
}

p {
  padding: 0;
  margin: 20px 0;
}

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

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

.main-content li {
  margin-left: 0;
  padding-left: 0;
}

.main-content li:before {
  content: "\2013\A0";
  margin-left: 0;
}

.container {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page-wrapper {
  position: relative;
  width: calc(100% - 120px);
  max-width: 1020px;
  margin: 47px auto 585px;
}

.header {
  position: fixed;
  top: 0;
  width: calc(100% - 85px);
  max-width: 1020px;
  padding-top: 47px;
  background: #c29492;
  z-index: 10;
  margin-left: -100px;
}

.header.scroll .logo {
  width: 10px;
  overflow: hidden;
}

.logo {
  font-size: 31px;
  margin-left: 275px;
  white-space: nowrap;
}

.logo-btn {
  display: none;
  position: absolute;
  left: 255px;
  top: 48px;
  height: 50px;
  width: 200px;
}

.nav{
  width: 275px;
  float: left;
  -webkit-transition: margin-left 0.2s; /* Safari */
  transition: margin-left 0.2s;
}

.main-content {
  width: calc(100% - 275px);
  margin: 149px 0 0 175px; /* Verschiebung nach links: 275px - 100px */
  padding-top: 68px;
  -webkit-transition: margin 0.2s; /* Safari */
  transition: margin 0.2s;
}

/* Verschiebung nach links */
.header, .nav {
  margin-left: -100px;
}

/* Navigation */

.nav {
  position: fixed;
  top: 206px;
}

.nav ul {
  list-style: none;
  padding: 0;
}

.nav ul li {
  margin: 0;
  padding: 0 0 0;
  line-height: 1.3;
}

.nav ul li a {
  color: #000;
}


.nav ul li.active a {
  color: #f2f0e0;
}

.nav ul a:hover,
.nav ul a.active {
  color: #f2f0e0;
}

.main-nav {
  font-size: 31px;
  margin-bottom: 48px;
}

/* Text Styles */

.intro {
  margin-bottom: 44px;
  font-size: 31px;
  color: #000;
  margin: 20px 0 33px;
  padding-bottom: 0;
}

.content {
  color: #f2f0e0;
}

.image {
  padding-top: 5px;
}

.meta,
.meta a,
.meta_small,
.meta_small a {
  color: #000;
}

.konzept h2 {
  margin-top: 20px;
}

.meta h2,
.meta_small h2 {
  margin-bottom: 26px;
}

.meta_small {
  font-size: 12px;
}

/* custom scrollbar */
.mCSB_inside>.mCSB_container {
  margin-right: 25px;
}

.mCSB_scrollTools .mCSB_draggerRail,
.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
  width: 25px;
  border-radius: 0;
}

.mCSB_scrollTools .mCSB_draggerRail {
  background-color: #c29492;
}

.inverse .mCSB_scrollTools .mCSB_draggerRail {
  background-color: #000;
}

.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
  background-color: #000 !important;
  /*  height: 300px;*/
}

.inverse .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
  background-color: #000 !important;
}

.mCSB_scrollTools, .mCSB_scrollTools .mCSB_buttonDown, .mCSB_scrollTools .mCSB_buttonLeft, .mCSB_scrollTools .mCSB_buttonRight, .mCSB_scrollTools .mCSB_buttonUp, .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
  transition: none;
}

.mCSB_scrollTools {
  width: 25px;
  opacity: 1;
}




/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap; /* 1 */
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
  white-space: inherit;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
  content: " "; /* 1 */
  display: table; /* 2 */
}

.clearfix:after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

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

  /* Verschiebung nach links wieder aufheben */
  .header, .nav, .main-content {
    margin-left: 0;
  }

  .main-content {
    margin: 149px 0 0 275px;
  }

}

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

  h3, .main-nav, .logo, .teaser p {
    font-size: 26px;
  }

  h2, body {
    font-size: 18px;
  }

  .page-wrapper {
    position: relative;
    /*    width: calc(100% - 120px);*/
  }

  .header {
    width: calc(100% - 85px);
  }

  .header.scroll + .nav + .main-content {
    position: relative;
    top: 60px;
  }

  .nav {
    position: fixed;
    top: 76px;
  }

  .logo {
    margin-left: 0;
    cursor: pointer;
    padding-bottom: 0;
  }

  .logo-btn {
    display: block;
    left: -20px;
    top: 45px;
    cursor: pointer;
  }

  .nav {
    margin-top: 14px;
    margin-left: -500px;
  }

  .nav {
    width: 205px;
  }

  .main-content {
    width: 100%;
    margin: 116px 0 0 0;
    padding: 0;
  }

  .teaser p {
    margin-bottom: 35px;
  }

  .page-wrapper.active .nav {
    margin-left: 0;
    -webkit-transition: margin-left 0.2s; /* Safari */
    transition: margin-left 0.2s;
  }

  .page-wrapper.active .main-content {
    margin-left: 205px;
    -webkit-transition: margin 0.2s; /* Safari */
    transition: margin 0.2s;
  }

}

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

  h2, body {
    font-size: 16px;
  }

  .page-wrapper {
    position: relative;
    width: calc(100% - 60px);
  }

  .header {
    width: calc(100% - 38px);
  }

  .header.scroll .logo {
    width: 8px;
  }

  .logo-btn {
    left: -20px;
    top: 38px;
  }

  h3, .main-nav, .logo, .teaser p {
    font-size: 21px;
  }

  .page-wrapper.active .main-content {
    margin: 111px 0 0 175px;
  }


  /* custom scrollbar */
  .mCSB_inside>.mCSB_container {
    margin-right: 8px;
  }

  .mCSB_scrollTools .mCSB_draggerRail,
  .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
    width: 8px;
    border-radius: 0;
  }

  .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
    background-color: #000 !important;
    height: 200px;
  }

  .mCSB_scrollTools {
    width: 8px;
    opacity: 1;
  }


}


@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important; /* Black prints faster */
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]:after {
    content: " (" attr(href) ")";
  }

  abbr[title]:after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */

  a[href^="#"]:after,
  a[href^="javascript:"]:after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }
  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
   * Printing Tables:
   * http://css-discuss.incutio.com/wiki/Printing_Tables
   */

  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
