/* 
 * Name:          modules.css
 * Description:   modules styles for IMPP
 * Author:        design frischgepresst
 * Author URI:    https://design-frischgepresst.de/
 * Contributors:  design frischgepresst
 * Version:       0.0.1 (c) 2018 design frischgepresst
 *
 */


/*  HEADER SEARCH MODULE */

/*  Search mobile */

#search-header {
  display: none;
  position: absolute;
  top: 4.5em;
  right: 0;
  width: 100%;
  z-index: 1000;  
  }

#search-header .inside {
  display: block;
  position: relative;
  height: 100%;
  }

#search-header form {
  display: block;
  margin: 0 auto;
  padding: 0;
  background: none;
  -webkit-clip-path: none;
  clip-path: none;
  }

#search-header .formbody {
  position: relative;
  width: auto;
  height: 2em;
  margin: 0 1em;
  }

#search-header .widget-text {
  width: 100%;
  height: 100%;
  }
  
#search-header input.text {
  height: 100%;
  width: 100%;
  -webkit-appearance: none;
  border-radius: 0;
  border: none;
  }

#search-header .widget-submit {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  }

#search-header button.submit {
  font-size: 0.75em;
  height: 100%;
  margin: 0;
  -webkit-appearance: none;
  border-radius: 0;
  border: none;
  }

input[type=checkbox].toggle-search-header,
label.toggle-search-header {
  display: none;
  }

/*  Search Desktop */

@media only screen and (min-width: 48em) {
  #search-header {
    display: block;
    position: fixed;
    top: 0;
    height: 4.5em;
    width: 0;
    background: #fff;
    -webkit-transition: width 0.5s ease-in-out;
    -moz-transition: width 0.5s ease-in-out;
    -o-transition: width 0.5s ease-in-out;
    transition: width 0.35s ease-in-out;
    }
    
  #search-header .formbody {
    position: relative;
    width: 30em;
    margin: 0 auto;
    }
  
  #search-header .widget-text {
    margin: 1.25em 0;
    }
    
  #search-header input.text {
    padding: 1em;
    }
  
  #search-header button.submit {
    font-size: 0.75em;
    }
  
  .toggle-search-header {
    position: absolute;
    right: 0;
    top: 0;
    padding: 1em;
    font-size: 1em;
    }
  
  input[type=checkbox].toggle-search-header {
    display: block;
    position: absolute;
    top: -9999px;
    left: -9999px;
    z-index: 10000;
    }
    
  label.toggle-search-header {
    display: block;
    position: fixed;
    right: 0.5em;
    top: 0.875em;
    height: 2.5em;
    width: 2.5em;
    text-align: left;
    text-indent: -9999px;
    color: red;
    overflow: hidden;
    cursor: pointer;
    z-index: 10000;
    border-radius: 50%;
    background-image: url('../img/icon-search@2x.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 1em; 
    }
  
  /*#search-header.show-search-header,  */
  input[type=checkbox].toggle-search-header:checked ~ #search-header{
    left: 0;
    width: 94%;
    }
}


/*  NEWS ARCHIVE / NEWS LIST START */

@media only screen and (min-width: 24em) {
  .mod_newsarchive,
  .mod_newslist {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
  }
}

.mod_newsarchive > .block,
.mod_newslist > .block {
  position: relative;
  margin-bottom: 1.25em;
  padding-top: 10em;
  padding-bottom: 0.5em;
  -webkit-clip-path: polygon(1.25em 0, 100% 0, 100% 100%, 0 100%, 0 4.5em);
  clip-path: polygon(1.25em 0, 100% 0, 100% 100%, 0 100%, 0 4.5em);
  }

@media only screen and (min-width: 24em) {
  .mod_newsarchive > .block,
  .mod_newslist > .block {
    width: 48%;
    margin-left: 1%;
    margin-right: 1%;
    }
    
  #main-left .mod_newsarchive > .block,
  #main-right .mod_newsarchive > .block,
  #main-left .mod_newslist > .block,
  #main-right .mod_newslist > .block {
    width: 100%;
    }
  }
  
@media only screen and (min-width: 40em) {
  .mod_newsarchive > .block,
  .mod_newslist > .block {
    width: 31.333%;
    margin-left: 1%;
    margin-right: 1%;
    }
    
  #main-left .mod_newsarchive > .block,
  #main-right .mod_newsarchive > .block,
  #main-left .mod_newslist > .block,
  #main-right .mod_newslist > .block {
    width: 100%;
    }
  }
  
@media only screen and (min-width: 46em) {    
  #main-left .mod_newsarchive > .block,
  #main-right .mod_newsarchive > .block,
  #main-left .mod_newslist > .block,
  #main-right .mod_newslist > .block {
    width: 48%;
    margin-left: 1%;
    margin-right: 1%;
    }
  }

@media only screen and (min-width: 48em) {
  .one-column .mod_newsarchive > .block,
  .one-column .mod_newslist > .block {
    width: 23%;
    margin-left: 1%;
    margin-right: 1%;
    }
  }
  
.mod_newsarchive > .block .info,
.mod_newslist > .block .info {
  position: absolute;
  left: 0;
  bottom: 0.5em;
  font-size: 0.75em;
  margin: 0 1.25em;
  margin-right: 1.25em;
  }

.mod_newsarchive > h1 {
  width: 100%;
  }

.mod_newsarchive figure,
.mod_newslist figure {
  display: block;
  position: absolute;
  top: 0;
  margin-top: 0;
  margin-bottom: 1em;
  height: 10em;
  width: 100%;
  overflow: hidden;
  }

.mod_newsarchive figure img,
.mod_newslist figure img {
  display: block;
  position: absolute;
  min-height: 100%;
  min-width: 100%;
  width: auto;
  height: auto;
  top: 50%;
  left: 50%; 
  transform: translate(-50%, -50%);
  opacity: 0.7;
  }

.mod_newsarchive > .block:hover img,
.mod_newslist > .block:hover img {
  opacity: 1;
  -webkit-transition: opacity 0.25s ease-in-out;
  -moz-transition: opacity 0.25s ease-in-out;
  -o-transition: opacity 0.25s ease-in-out;
  transition: opacity 0.25s ease-in-out;
  }
  
.mod_newsarchive h1,
.mod_newsarchive h2,
.mod_newsarchive .ce_text,
.mod_newslist h1,
.mod_newslist h2,
.mod_newslist .ce_text {
  margin: 0 1em 0 1em;
  }

.mod_newsarchive h1,
.mod_newsarchive h2,
.mod_newslist h1,
.mod_newslist h2 {
  margin-top: 1em;
  font-size: 1em;
  min-height: 4em;
  }

.mod_newsarchive .ce_text,
.mod_newslist .ce_text {
  margin-top: 0.5em;
  margin-bottom: 2em;
  max-height: 7.5em;
  overflow: hidden;
  }

.mod_newsarchive .ce_text h1,
.mod_newslist .ce_text h1,
.mod_newsarchive .ce_text h2,
.mod_newslist .ce_text h2,
.mod_newsarchive .ce_text h3,
.mod_newslist .ce_text h3,
.mod_newsarchive .ce_text h4,
.mod_newslist .ce_text h4,
.mod_newsarchive .ce_text h5,
.mod_newslist .ce_text h5,
.mod_newsarchive .ce_text h6,
.mod_newslist .ce_text h6,
.mod_newsarchive .ce_text p,
.mod_newslist .ce_text p {
  margin-bottom: 0;
  font-size: 0.875em;
  line-height: 1.5em;
  }

.mod_newsarchive .more,
.mod_newslist .more {
  margin: 0 1.25em 2em 1.25em;
  font-size: 0.75em;
  }

.mod_newsarchive .more,
.mod_newslist .more {
  }
 
 .mod_newsmenu li {
  margin-left: 0;
  list-style: none;
  }
 

/*  PAGINATION */

.pagination {
  display: block;
  margin-top: 2em;
  width: 100%;
  text-align: center;
  -webkit-clip-path: none !important;
  clip-path: none !important;
  }

.pagination p {
  display: block;
  float: left;
  padding: 0.5em 0;
  }
  
.pagination ul {
  display: block;
  float: left;
  margin: 0 0 0 1em !important;
  }
  
.pagination ul:after {
  content: '';
  display: table;
  clear: both;
  }

.pagination li {
  list-style: none;
  float: left;
  margin-right: 1px;
  }

.pagination li * {
  display: block;
  padding: 0.5em 1em;
  }

.pagination li a:hover {
  text-decoration: none;
  }


/*  NEWSREADER */

.mod_newsreader .info {
  position: absolute;
  top: -2.5em;
  font-size: 0.75em;
  }


/*	ACCORDION */

.ce_accordionSingle {
  margin-bottom: 1em;
  }

.ui-accordion-header {
  padding: 0.5em 1em;
  cursor: pointer;
  }

.ui-accordion-header:after {
  content: '+';
  transform: rotate(0deg);
  position: absolute;
  right: 1.25em;
  right: 1.25rem;
  font-weight: bold;
  font-size: 1.5em;
  }

.ui-accordion-header.active:after {
  font-size: 1.75em;
  right: 1.25em;
  right: 1.25rem;
  transform: rotate(135deg);
  -webkit-transition: width 2s ease;
  -moz-transition: width 2s ease;
  -o-transition: width 2s ease;
  transition: width 2s ease;
  }
  
.ui-accordion-content {
  padding: 1em 1.5em;
  }
  
.ui-accordion-content h1,
.ui-accordion-content h2,
.ui-accordion-content h3 {
  font-size: 1.5em;
  }


/*  MODULE TAGCLOUD, extension by hschottm/tags */

.tagcloud li {
  display: inline-block;
  margin: 0 0 2em 0;
  padding: 0;
  }

.tagcloud .cloud {
  margin: 0 !important;
  padding: 0;
  }

.tagcloud li a {
  display: block;
  padding: 0.25em 0.75em 0.25em 1em;
  font-size: 0.75em;
  -webkit-clip-path: polygon(0.35em 0, 100% 0, 100% 100%, 0 100%, 0 1.25em);
  clip-path: polygon(0.35em 0, 100% 0, 100% 100%, 0 100%, 0 1.25em);
  }

.tagcloud li a:hover {
  text-decoration: none;
  }


/*  PRIMARY NAVIGATION MOBILE */

#nav-primary-container {
  display: none;
  position: absolute;
  top: 0;
  margin: 0 auto;
  width: 100%;
  z-index: 10;
  }

.nav-primary {
  margin: 7em 0 1em 0;
  }

.nav-primary a,
.nav-primary strong {
  display: block;
  position: relative;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  line-height: 1.25em;
  z-index: 1000;
  text-decoration: none;
  }

.nav-primary a:hover {
  text-decoration: none;
  }
  
.nav-primary .level_1 > li > a,
.nav-primary .level_1 > li > strong {
  text-transform: uppercase;
  }

.nav-primary .level_1 > .submenu > a {
  padding-right: 1.5em;
  background-image: url(../img/icon-chevron-down-shade-01@2x.png);
  background-size: 0.75em 0.5em;
  background-repeat: no-repeat;
  background-position: right 1em top 0.75rem;
  } 

.nav-primary .level_1 > .submenu > a:hover {
  background-image: url(../img/icon-chevron-down-red@2x.png) !important;
  -webkit-transition: background-image 0.35s ease-in-out;
  -moz-transition: background-image 0.35s ease-in-out;
  -o-transition: background-image 0.35s ease-in-out;
  transition: background-image 0.35s ease-in-out;
  }
    
.nav-primary .level_1 .toggle-sub > a {
  background-image: url(../img/icon-chevron-up-red@2x.png);
  } 
  
.nav-primary .level_2-container {
  display: none;
  } 
    
/*.nav-primary li:hover > .level_2-container,*/
.nav-primary .toggle-sub .level_2-container {
  display: block;
  } 

.nav-primary .level_2 a,
.nav-primary .level_2 strong {
  padding-left: 2.5em; 
  font-size: 0.875em;
  text-transform: none;
  }
  
.nav-primary .level_3 {
  font-style: italic;
  }

.nav-primary .level_3 a,
.nav-primary .level_3 strong {
  padding-left: 4em;
  }
  
.toggle-nav-header {
  position: absolute;
  font-size: 1em;
  top: 0.75em;
  right: 0.75em;
  z-index: 10000;
  }

input[type=checkbox].toggle-nav-header {
  opacity: 0;
  }

label.toggle-nav-header {
  height: 3em;
  padding: 0.75em 2em 1em 1em;
  text-align: right;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 10000;
  background-image: url(../img/icon-navigation-mobile@2x.png);
  background-size: 1.5em;
  background-position: right center;
  background-repeat: no-repeat;
  }

label.close {
  opacity: 0;  
  background-image: url(../img/icon-close@2x.png);
  }
  
input[type=checkbox].toggle-nav-header:checked ~ #nav-primary-container,
input[type=checkbox].toggle-nav-header:checked ~ #search-header {
  display: block;
  transition-delay: 0s;
  }

input[type=checkbox].toggle-nav-header:checked ~ label.close {
  opacity: 1;
  }  
  
input[type=checkbox].toggle-nav-header:checked ~ label.open {
  opacity: 0;
  } 

/*  primary navigation desktop */

@media only screen and (min-width: 48em) {
  #nav-primary-container {
    display: block;
    position: fixed;
    }
  
  #nav-primary-container .inside {
    width: auto;
    max-width: none;
    }

  .nav-primary {
    margin: 0;
    }
    
  .nav-primary > .level_1 > li > a,
  .nav-primary > .level_1 > li > strong {
    padding: 2em 1em;
    }
  
  .nav-primary a:hover {
    text-decoration: none;
    }
    
  .nav-primary > ul {
    display: block;
    max-width: 58em;
    margin: 0 auto;
    /* background: teal; */
    }
  
  .nav-primary:after,
  .nav-primary > ul:after,
  .nav-primary > ul > ul:after {
    content: "";
    display: table;
    clear: both;
    }
  
  .nav-primary > ul > li {
    display: block;
    float: left;
    }
  
  .nav-primary > ul > li:first-child  {
    margin-left: 8em;
    }
  
  
  .nav-primary > ul > li.active strong {
    display: block;
    position: relative;
    }
  
    
  .nav-primary .level_1 > a {
    font-weight: bold;
    }

  .nav-primary .level_1 > .submenu > a {
    background-position: right 0.6em top 2.25em;
    }

  .nav-primary .level_1 > .submenu > a:hover {
    background-image: url(../img/icon-chevron-down-shade-01@2x.png);
    }
    
  .nav-primary .level_1 .toggle-sub > a {
    background-image: url(../img/icon-chevron-up-red@2x.png) !important;
    } 


  .nav-primary > .level_1 > .toggle-sub > a:after {
    content: "";
    display: block;
    position: absolute;
    height: 4px;
    left: 0;
    right: 0;
    bottom: 0;
    }
    
  .nav-primary .level_2-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: auto;
    min-height: 12.5em;
    padding: 2em;
    text-align: left;
    }
  
  .nav-primary li ul .active {
    font-weight: normal;
    }

  .nav-primary .level_2 {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    display: -webkit-flex;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
            justify-content: flex-start;
    margin: 0 auto;
    max-width: 58em;
    }
    
  .nav-primary .level_2 > li {
    margin-right: 2em;
    min-height: 100%;
    }
    
  .nav-primary .level_2 a,
  .nav-primary .level_2 strong {
    padding-left: 1rem; 
    }
  
  .nav-primary ul li ul li:first-child {
    margin-left: 0;
    }
    
  .nav-primary .level_3 {
    display: block;
    }

  .nav-primary .level_3 strong,
  .nav-primary .level_3 a {
    padding: 0.5em 1rem;
    font-size: 0.75rem;
    font-weight: normal;
    }
    
  .nav-primary ul li ul li ul li:first-child {
    margin-left: 0;
    background: none;
    }
    
  .toggle-nav-header {
    display: none !important;
    }
  }      




/*  BREADCRUMBS */

#header .mod_breadcrumb {
  position: absolute;
  padding: 0 1rem;
  bottom: 1rem;
  width: 100%;
  max-width: 60rem;
  left: 50%;
  transform: translateX(-50%);
  }

.mod_breadcrumb {
  font-size: 0.75em;
  z-index: 1000;
  }

.mod_breadcrumb:after {
  content: "";
  display: table;
  clear: both;
  }

.mod_breadcrumb ul li {
  display: block;
  float: left;
  }

.mod_breadcrumb li:after {
  content: "/";
  }

.mod_breadcrumb li:last-child:after {
  content: "";
  }

.mod_breadcrumb li:last-child {
  margin-left: 0.5em;
  }
          
.mod_breadcrumb li a {
  padding: 0.5em;
  }

.mod_breadcrumb li:first-child a {
  padding: 0.5em 0.5em 0.5em 0;
  }


/* ADDED FOR ALT HOME HEADLINES */
/*
.home #header .mod_breadcrumb {
  display: table;
  width: auto;
  left: 0;
  transform: none;
  max-width: 60rem;
  background: rgba(255,255,255,0.9);
  color: #2E4154;
  }


@media only screen and (min-width: 58em) {
  .home #header .mod_breadcrumb {
    left: 50%;
    transform: translateX(-29rem);  
    }
  }

*/

#header .image_container::after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: -moz-linear-gradient(bottom, rgba(47,81,106,0.8) 0%, rgba(47,81,106,0) 60%); /* FF3.6-15 */
  background: -webkit-linear-gradient(bottom, rgba(47,81,106,0.8) 0%,rgba(47,81,106,0) 60%); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to top, rgba(47,81,106,0.8) 0%,rgba(47,81,106,0) 60%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#2f516a', endColorstr='#2f516a',GradientType=0 ); /* IE6-9 */
}


/* / ADDED FOR ALT HOME HEADLINES */
/* 
.home #header .image_container::after {
  background: none;
}
*/ 
  
/*  SITE FOOTER */
  
@media only screen and (min-width: 60em) {
  #footer .inside {
    
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    justify-content: flex-start;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
    }
  
  #footer #footer-content {
    width: 60%;
    }
    
  #footer .nav-secondary,
  #footer .nav-tertiary {
    width: 20%;
    } 
  }

#footer nav a,
#footer nav strong {
  display: block;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  }
  
#copyright {
  width: 100%;
  margin-top: 1em;
  }

#copyright p {
  font-size: 0.75em;
  }

#footer .link-top {
  display: block;
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 0.5em 1em;
  font-size: 0.75em;
  -webkit-clip-path: polygon(0.35em 0, 100% 0, 100% 100%, 0 100%, 0 1.25em);
  clip-path: polygon(0.35em 0, 100% 0, 100% 100%, 0 100%, 0 1.25em);
  }
