/*
Theme Name: BergerSchmidt
Author: Berger Schmidt GmbH
Author URI: https://www.berger-schmidt.de
Description: A custom wordpress theme by Berger Schmidt
Version: 1
License: GNU General Public License
License URI: https://www.gnu.org/licenses/gpl.html
Tags:
Text Domain: bergerschmidt

BergerSchmidt WordPress Theme © 2019 Berger Schmidt
BergerSchmidt is distributed under the terms of the GNU GPL
*/





/**
 * ===== ===== HTML ===== =====
 */




/**
 * reset ...
 */
* {
  border: 0;
  margin: 0;
  outline: 0;
  padding: 0;
  vertical-align: top;
}




/**
 * html
 */
html {
  font-size: 100%;
  font-size: 12px;
}


/*
font-family:'GrotesqueMTW01-LightCn';
font-family:'GrotesqueMTW01-Condense';
*/

/**
 * body
 */
body {
  background-color: #FFFFFF;
  color: #111111;
  font-family: "Helvetica", "Arial", sans-serif;
  font-size: 1.0rem;
  font-weight: 600;
  line-height: 1.25;
  text-rendering: optimizeLegibility;
}




/**
 * html5
 */
article,
main,
nav,
header,
footer,
section,
aside,
figure,
figcaption {
  display: block;
}




/**
 * img
 */
img {
  display: block;
  height: auto;
  max-width: 100%;
}




/**
 * link
 */
a,
a:link,
a:visited {
  color: #111111;
  text-decoration: none;
}
a:hover {
  color: #111111;
  text-decoration: none;
}

/*
TBD: Accessibility
:focus {
  outline: 3px solid orange;
  outline-offset: -3px;
  outline-width: 3px;
}
*/




/**
 * typo
 */
h1,
h2,
h3,
h4,
h5 {
  font-size: 1.0rem;
  line-height: 1.25;
}
h1 {}
h2 {}
h3 {}
h4 {}

p {}




/**
 * list
 */
ul,
ol,
dl {
  list-style-position: outside;
  margin-bottom: 0;
}
li {
  list-style: none;
}
dl {}
dt {}
dd {}







/**
 * ===== ===== SYSTEM ===== =====
 */




/**
 * site-logo
 */
.site-logo {
  display: none;
}








/**
 * ===== ===== MODULES ===== =====
 */



/**
 * cookie-notice
 */
#cookie-notice.cn-bottom {
  background-color: transparent !important;
  bottom: 0px;
  box-sizing: border-box;
  height: auto;
  min-width: unset;
  padding: 15px;
  position: fixed;
  width: 100%;
}

#cookie-notice.cn-bottom .cookie-notice-container {
  background: #FFFFFF;
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
  color: #111111;
  padding: 15px;
}

/**/
#cookie-notice.cn-bottom a:link,
#cookie-notice.cn-bottom a:visited,
#cookie-notice.cn-bottom a:hover  {
  color: #111111;
  font-weight: bold;
}

/**/
#cookie-notice.cn-bottom #cn-notice-text {
  display: block;
  padding-bottom: 15px;
  text-align: justify;
}

/**/
#cookie-notice.cn-bottom .cn-button {
  margin-left: 0;
  padding: 7px;
}


/* @media */
@media only screen and (min-width: 768px) {
  #cookie-notice.cn-bottom {
    left: unset;
    max-width: 400px;
    right: 0;
  }
}



/**
 * wpadminbar
 * hides the admin bar when you are logged in
 */
#wpadminbar {
  display: none;
}







/**
 * ===== ===== PAGE ===== =====
 */




/**
 * page
 */
div.page {
  padding: 0 15px 15px 15px;
}


/**/
.page-head {
  display: none;
}
.page-head-box-outer {}
.page-head-box-inner {}


/**/
.page-body {}
.page-body-box-outer {}
.page-body-box-inner {}


/**/
.page-foot {}
.page-foot-box-outer {}
.page-foot-box-inner {
  overflow: hidden;
}


/* @media */
@media only screen and (min-width: 768px) {
  /**/
  div.page {
    padding: 0 30px 30px 30px;
  }
}




/**
 * regions
 */

/**/
.region-header {}

/**/
.region-navi-meta {
  float: left;
}







/**
 * ===== ===== NAVIGATION ===== =====
 */




/**
 * Social
 * menu-navi-social-container
 */

.menu-navi-social-container {}
.menu-navi-social-container ul {}
.menu-navi-social-container ul li {}
.menu-navi-social-container ul li a {}




/**
 * Meta
 * menu-navi-meta-container
 */
.menu-navi-meta-container {}
.menu-navi-meta-container ul {
  overflow: hidden;
}
.menu-navi-meta-container ul li {
  float: left;
}
.menu-navi-meta-container ul li a {
  display: block;
  padding: 5px 10px 5px 0;
}








/**
 * ===== ===== CONTENT INDEX ===== =====
 */




/**
 * content-index
 */
.content-index {
  padding-top: 220px;
}
/* @media */
@media only screen and (min-width: 768px) {
  .content-index {
    padding-top: 300px;
  }
}



/**
 * text
 */
.field-page-text {
  box-sizing: border-box;
  font-family: 'GrotesqueMTW01-LightCn';
  min-height: 175px;
  padding: 5px 15px 0 15px;
  position: fixed;
  opacity: 0;
  top: 32px;
}
.field-page-text h1,
.field-page-text h2 {
  font-size: 22px;
  font-weight: normal;
  line-height: 1.0;
}
.field-page-text p {
  font-size: 14px;
  font-weight: normal;
  margin: 15px 0;
}
body.images_visibel .field-page-text {
  opacity: 1;
} 

/* @media */
@media only screen and (min-width: 768px) {
  /**/
  .field-page-text {
    padding: 5px 30px;
  }
  .field-page-text h1,
  .field-page-text h2 {
    font-size: 40px;
  }
  .field-page-text p {
    font-size: 18px;
  }
}


/* @media */
@media only screen and (min-width: 1024px) {
  /**/
  .field-page-text {
    min-height: 275px;
  }
}

/*


!**
 * code
 *!
.field-page-code {}


!* @media *!
@media only screen and (min-width: 768px) {
  !**!
  .field-page-code {
    padding-top: 300px;
    position: relative;
  }
}*/








/**
 * ===== ===== CONTENT SINGLE ===== =====
 */


/**
 * content-single
 */
.content-single {}









/**
 * ===== ===== POST TYPES ===== =====
 */



/**
 * LEGAL
 * post-type-CONTENT
 */
.post-type-content {
  margin: 0 0 40px 0;
  max-width: 700px;
}

.post-type-content h1 {
  font-family: 'GrotesqueMTW01-LightCn';
  font-size: 40px;
  font-weight: normal;
  margin-bottom: 20px;
}



/**
 * LEGAL
 * post-type-LEGAL
 */
.post-type-legal {
  margin: 0 0 40px 0;
  max-width: 700px;
}




/**
 * MICROSITE
 * post-type-micosite
 */
.post-type-micosite {}

/**/
.post-type-micosite .field-microsite-text {}




/**
 * PROJECT
 * post-type-project
 */
.post-type-project {}


/* name */
.post-type-project .field-project-name {
  font-size: 15px;
  margin: 30px 0;
  padding: 5px 0;
}


/* media items */
.post-type-project .project-items {}


/* media items - single */
.post-type-project .project-items.single {
  display: flex;
  justify-content: center;
  overflow: hidden;
}


/* image */
.post-type-project .project-items .field-project-image {
  margin: 30px 0;
  width: 100%;
}

/* image - single */
.post-type-project .project-items.single .field-project-image {
  margin: 0 auto;
}


/* video */
.post-type-project .project-items .field-project-video-embed {
  margin: 0 0 30px 0;
  width: 100%;
}
.post-type-project .project-items .field-project-video-embed .video-placeholder {
  display: none;
}
.post-type-project .project-items .field-project-video-embed iframe {
  max-width: 100%;
}

/* video - single */
.post-type-project .project-items.single .field-project-video-embed {
  margin: 0 auto;
}


/* controls */
.post-type-project .project-controls {
  display: flex;
  flex-flow: row wrap;
  margin: 33px 0 43px -5px;
}


/**/
.post-type-project .home-link {
  background: transparent url(images/filter-close.png) center center no-repeat;
  background-size: 10px;
  display: block;
  font-size: 15px;
  height: 10px;
  padding: 5px;
  width: 10px;
}

/**/
.post-type-project .home-link-mobile {
  display: block;
  padding: 5px 0;
}
.post-type-project .project-items.single {
  flex-wrap: wrap;
  justify-content: left;
}
.post-type-project .project-items.single .home-link-mobile {
  margin-top: 30px;
}


/**/
.post-type-project .scroll-button {
  cursor: pointer;
  display: none;
  font-size: 18px;
  font-weight: normal;
  height: 55vh;
  line-height: 55vh;
  padding: 2px 7px;
  position: fixed;
  width: 20%;
  z-index: 10;
}
.post-type-project #scroll-left {
  cursor: w-resize;
  left: 0;
}
.post-type-project #scroll-right {
  cursor: e-resize;
  right: 0;
}


/* rights */
.post-type-project .rights {
  margin: 30px 0 15px;
  padding: 5px 0;
}


/* @media */
@media only screen and (max-width: 767px) {

  /* media items */
  .post-type-project .project-items {
    position: relative !important;
  }

  /* image */
  .post-type-project .project-items .field-project-image {
    height: auto !important;
    width: 100% !important;
  }

  /* video */
  .post-type-project .project-items .field-project-video-embed {
    height: auto !important;
    max-width: 100%;
  }

}


/* @media */
@media only screen and (min-width: 768px) {

  /* name */
  .post-type-project .field-project-name {
    position: fixed;
    left: 5vw;
    top: 5vh;
  }

  /* media items */
  .post-type-project .project-items {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    height: 100vh;
    max-height: 100vh;
    padding: 20vh 0 25vh 5vw;
    white-space: nowrap;
  }


  /* media items - single */
  .post-type-project .project-items.single {
    width: 95vw;
  }


  /* image */
  .post-type-project .project-items .field-project-image {
    display: block;
    margin: 0 30px 0 0;
    position: relative;
    width: auto;
  }

  /* video */
  .post-type-project .project-items .field-project-video-embed {
    display: block;
    margin: 0 30px 0 0;
    position: relative;
  }

  .post-type-project .project-items .field-project-video-embed .video-placeholder {}

  .post-type-project .project-items .field-project-video-embed > div {
    position: absolute;
    z-index: 1;
  }
  /* controls */
  .post-type-project .project-controls {
    margin: 38px 0;
    position: fixed;
    right: calc(5vw - 5px);
    top: calc(5vh - 5px);
    z-index: 10;
  }
  .post-type-project .project-items .scroll-button.hidden {
    display: none;
  }


  /**/
  .post-type-project .home-link-container {
    position: fixed;
    right: 5vw;
    top: 5vh;
  }


  /**/
  .post-type-project .home-link {
    padding: 5px;
  }

  .post-type-project .home-link-mobile {
    display: none;
  }


  /**/
  .overflown .scroll-button {
    display: block;
  }


  /* rights */
  .post-type-project .rights {
    bottom: 5vh;
    left: 5vw;
    margin: 30px 0;
    position: fixed;
  }

}




/**
 * PROJECT DETAIL
 * body.single-post_type_project
 */
body.single-post_type_project {}


/* @media */
@media screen and (min-width: 768px) {


  /* ===== HTML ===== */

  /**/
  body.single-post_type_project {
    margin: 0;
    padding: 0;
    height: 100vh;
    max-height: 100vh;
    overflow-y: hidden;
  }


  /* ===== PAGE ===== */

  /**/
  body.single-post_type_project .page {
    margin: 0;
    padding: 0;
  }

  /**/
  body.single-post_type_project .page-head {
    position: fixed;
    right: 5vw;
    top: 5vh;
  }

  /**/
  body.single-post_type_project #menu-navi-meta {
    margin: 30px 0;
    position: fixed;
    bottom: 1.5vh;
    left: 5vw;
  }

}








/**
 * ===== ===== VIEWS ===== =====
 */



/**
 * Project-List
 * project-list
*/
#project-list {
  opacity: 0;
  position: relative;
  width: 100%;
}
body.images_visibel #project-list {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  opacity: 1;
}


/**/
#project-list .project-list-item {
  box-sizing: border-box;
  margin: 0 30px 40px 0;
  max-width: 100%;
  opacity: 1;
  position: relative;
  transition: opacity, 0.3s;
  z-index: 1;
}

/**/
#project-list.filtered .project-list-item {
  display: none;
  opacity: 0;
  transition: opacity, 0.3s;
}

/**/
#project-list.filtered.all .project-list-item.all {
  display: inline-block !important; opacity: 1 !important;
}


/**/
.project-list-item .field-project-image-teaser {
  max-width: 100%;
}
.project-list-item .field-project-image-teaser:hover {
  opacity: 0;
}
.mobile .project-list-item .field-project-image-teaser:hover {
  opacity: 1;
}
.project-list-item .field-project-image-teaser img {
  width: auto;
}


/**/
.project-list-item .field-project-video-embed {
  max-width: 100%;
  width: 560px;
}
.project-list-item:hover .field-project-video-embed {
  opacity: 0;
}
.mobile .project-list-item .project-list-item:hover .field-project-video-embed {
  opacity: 1;
}


/* covering video element */
.project-list-item .field-project-link {
  left: 0;
  height: 100%;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 100;
}


/* text layer */
.project-list-item .project-list-text {
  background: #FFFFFF;
  border-top: 1px solid #000000;
  box-sizing: border-box;
  height: 100%;
  padding: 7px 3px;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: -1;
}
.mobile .project-list-item .project-list-text {
  position: relative;
}


/**/
.project-list-item .field-project-name {
  margin: 3px 0 10px 0;
}

/**/
.project-list-item .field-project-client {}
.mobile .project-list-item .field-project-client {
  display: none;
}

/**/
.project-list-item .taxonomy-project-category {}
.mobile .project-list-item .taxonomy-project-category {
  display: none;
}

/**/
.project-list-item .field-project-date {}
.mobile .project-list-item .field-project-date {
  display: none;
}

/**/
.project-list-item .field-project-description {}
.mobile .project-list-item .field-project-description {
  display: none;
}
.mobile .project-list-item .field-project-description p {
  margin-top: 0;
}


/* media */
@media only screen and (min-width: 768px) {

  /**/
  #project-list .project-list-item {
    margin: 0 30px 30px 0;
  }

  /**/
  .project-list-item .project-list-text {
    height: 100%;
    width: 100%;
  }

}








/**
 * ===== ===== CUSTOM ===== =====
 */





/**
 * Home Link
 */

.home-link-container {
  display: flex;
  justify-content: flex-end;
}
.home-link-container .home-link {
  display: block;
  padding: 10px 0 10px 10px;
}




/*
 * JS Filters
 */


/**/
.filter-container {
  box-sizing: border-box;
  padding: 5px 15px;
  position: fixed;
  right: 0;
  top: 0;
  transition: background, 0.2s;
  width: 100%;
  z-index: 2;
}
.filter-container.visible {
  background: rgba(255, 255, 255, 0.85);
  height: 100vh;
  width: 100vw;
}


/**/
.filter-items {
  clear: right;
  display: none;
  padding: 0 15px 15px 15px;
}
.visible .filter-items {
  display: inline-block;
  float: right;
}


/**/
.filters-toggle {
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  display: inline-block;
  float: right;
  padding: 10px 15px;
}
.visible .filters-toggle {
  background: transparent url('images/filter-close.png') 0 12px no-repeat;
  background-size: 10px;
}


/**/
.filter-item,
.link-container {
  clear: right;
  cursor: pointer;
  display: inline-block;
  float: right;
  overflow: hidden;
  padding: 5px 0 5px 5px;
  text-align: right;
  transition: all, 0.3s;
}
.filter-item:hover {
  text-decoration: none;
}

/**/
.filter-item-inner,
.link-container .link {
  border-bottom: none;
  font-size: 44px;
}

/**/
.filter-container .filter-item.active .filter-item-inner {
  border-bottom: 1px solid #000000;
}
.filter-container.filters-active .filter-item.active {
  color: #111111;
}



/* media */
@media only screen and (min-width: 1024px) {

  /**/
  .filter-container {
    left: auto;
    overflow: hidden;
    right: 30px;
    top: 15px;
    width: auto;
  }

  /**/
  .filter-items {
    padding: 0 8px;
    display: block;
  }

  /**/
  .filter-item,
  .link-container {
    float: none;
    padding: 5px 7px;
    text-align: left;
  }

  /**/
.filter-item-inner,
.link-container .link {
  font-size: 16px;
}

  /**/
  .filters-toggle {
    display: none;
  }

}

