
* {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
    background-repeat: no-repeat;
    outline: 0;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    /*-webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;*/
}



html {
  overflow-y: scroll;
}

body {
  background-color: $bodybackground;
  font-family: $baseFont;
  font-size: $baseFontSize;
  font-style: normal;
  font-weight: $baseFontweight;
  color: $basecolor;
  line-height: 1.4;
  overflow-x: hidden;
}

/*body.boxed {
  background-image: $backgroundImage;
  background-size: cover;
  background-attachment: $backgroundAttachment;
  background-repeat: $backgroundRepeat;
}
*/
#wrapper {
  background-color: $wrapperbackground;
}

.boxed #wrapper {
  max-width: $container-width;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 0 6px 0px rgba(0, 0, 0, 0.2);
}

h1, h2, h3, h4, h5, h6 {
  font-family: $baseFontHl;
  font-weight: $baseFontHlweight;
  color: $basecolorHl;
  margin-top: 0;
}


h1 {
  font-size:$FontsizeH1;
}
h2 {
  font-size:$FontsizeH2;
  margin-bottom: 3rem;
}
h3 {
  font-size:$FontsizeH3;
}
h4 {
  font-size:$FontsizeH4;
}

a {
  color: $basecolor
}

a:hover {
    color: $accentcolor;
}

.mod_article {
  position: relative;
}

.syndication {
    margin-bottom: 16px;
    overflow: hidden;
}
.syndication a {
    display: inline-block;
    line-height: 30px
}

.syndication a::before{
    position: relative;
    display: inline-block;
    height: 30px;
    width: 30px;
    margin-right: 4px;
    font-family: "Font Awesome 5 Brands";
    font-weight: 900;
    font-size: 15px;
    line-height: 30px;
    text-align: center;
    text-decoration: none;
}

.syndication img {
    display: none;
}

.syndication a.print::before {
    background: #e8e8e8;
    color: #555;
    content: "\f02f";
    font-family: "Font Awesome 5 Free";
}

.syndication a.pdf::before {
    background: #ff0000;
    color: #fff;
    content: "\f1c1";
    font-family: "Font Awesome 5 Free";
}

.syndication a.facebook::before {
    background: #436098;
    color: #fff;
    content: "\f39e";
}

.syndication a.twitter::before {
    background: #28a9e2;
    color: #fff;
    content: "\f099";
}

.syndication a.gplus::before {
    background: #d95232;
    color: #fff;
    content: "\f0d5";
}

.mod_article,
.container {
  width: 100%;
  padding-right: 30px;
  padding-left: 30px;
  margin-right: auto;
  margin-left: auto;
}

.mod_article.container-fluid {
  width: 100%;
  max-width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.mod_article.container-fluid.width100 {
  padding-right: 0;
  padding-left: 0;
}

@media (min-width: 1200px) {
  .mod_article.container-width .inner,
  .mod_article,
  .container {
    max-width: $container-width;
  }

.mod_article.container-width {
  max-width: 100%;
}

.mod_article.container-width > .inner {
  padding-right: 30px;
  padding-left: 30px;
  margin-right: auto;
  margin-left: auto;
}

}

.fa::before, .fab::before, .fal::before, .far::before, .fas::before {
  font-weight: 900;
  line-height: 1;
}

.fab::before {
  font-family: "Font Awesome 5 Brands";
}

#main .mod_article .ce_sliderStart,
#main .mod_article [class*=ce_],
#main .mod_article > [class*=mod_] {
  position: relative;
  margin-bottom: 20px;
  font-family: $baseFont;
  line-height: 1.4;
  z-index: 5;
}

[class*=ce_] .inner {
  position: relative;
  overflow: hidden;
}

#main .mod_article > .ce_wrapper,
#main .mod_article > .ce_wrapper {
  position: relative;
  margin-bottom: 0;
}

#main .mod_article > .row {
  margin-bottom: 0;
}

#main .mod_article .ce_sliderStart > [class*=ce_],
#main .mod_article .ce_sliderStart > [class*=mod_] {
  position: relative;
  margin-bottom: 0;
}


/**
 * =============================================================================
 * top
 * ==========================================================================
 */

header .top {
    background-color: none;
}


header .top .inside {
    max-width: 1240px;
    margin: -5px auto;
 /*   display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding-top: 10px;
    padding-bottom: 10px;*/
    color: $topcolor;
    font-size: 12px;
}

header .top .inside a {
    color: $topcolor;
}

header .top .inside a:hover {
    text-decoration: underline;
}

header .ce_ctscontact div div {
    float: left;
    margin-bottom: 0;
    margin-right: 8px;
}

header .top .ce_ctscontact div div a {
    text-decoration: none;
}

/**
 * =============================================================================
 * header
 * ==========================================================================
 */

@-webkit-keyframes slide_in {
  0% {
    top: -50px;
  }
  100% {
    top: 0;
  }
}

@keyframes slide_in {
  0% {
    top: -50px;
  }
  100% {
    top: 0;
  }
}

@-webkit-keyframes slide_out {
  0% {
    top: 0px;
  }
  100% {
    top: -200px;
  }
}

@keyframes slide_out {
  0% {
    top: 0px;
  }
  100% {
    top: -200px;
  }
}

#header .inside {
  position: relative;
  background-color: $headerbg;
  background: url(/files/bezirksmuseum-theme/layout/stufen.svg);
  background-repeat:no-repeat;
  background-size:cover;
}
#header .inside.container {
  background: none;
}
.headercontainer {
  width: 100%;
}

.home .headercontainer {
  position: absolute;
  background-color: transparent;
  z-index: 99;
}

.home .headercontainer.js--is-fixed {
  background-color: $headerbg;
  border-bottom: 0;
}

.headercontainer > .inside{
  max-width: $container-width;
  margin:0 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding-top: 0;
  padding-bottom: 0;
}

.navi-section.js--is-fixed {
  position: fixed !important;
    top: 0;
    left: 0;
    z-index: 9;
    width: 100%;
    -webkit-animation: slide_in .8s;
    -moz-animation: slide_in .8s;
    animation: slide_in 0.4s;
    box-shadow: 0 2px 2px rgba(0, 0, 0, .2);
}

.boxed .navi-section.js--is-fixed {
  box-shadow: none;
}

.nav--slide_in.js--fade-out {
    -webkit-animation: slide_out .3s;
    -moz-animation: slide_out .3s;
    -o-animation: slide_out .3s;
    animation: slide_out .4s;
    top: -200px;
}

.boxed .headercontainer.js--is-fixed {
  width: 100%;
  background-color: transparent;
  border-bottom: 0;
}

.boxed .headercontainer.js--is-fixed .inside {
  background-color: $headerbg;
  box-shadow: 0 2px 2px rgba(0, 0, 0, .2);
}

.menucontainer {
  background: rgba(0,0,0,0.4);
  z-index: 999;
}

.logocontainer {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  /*align-items: center;*/
  justify-content: space-between;
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
  color: $headercolor;
  height: 120px;
  overflow: visible;
  z-index: 2000;
  margin-top:-5px;
}

.logocontainer a {
  color: $headercolor;
}

.logo {
    padding-top: 0px;
    padding-bottom: 0px;
    display: block;
    overflow: visible;
    
}

.js--is-fixed .logo {
    padding-top: 15px;
    padding-bottom: 15px;
}

.logo .image_container {
  line-height: 0;
  margin: 0;
  display: block;
  overflow: visible;
  height: 200px;
}

.js--is-fixed .logo img {
  height: $logofix;
  width: auto;
}

.headernavi,
#header .mod_search {
  display: none;
}

.logomodule {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

@media (min-width: 768px) {

#header .mod_search {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.headernavi {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

/*#header .mod_search,*/
.headernavi {
  margin-right: 20px;
}

}

@media (min-width: 992px) {

.headercontainer > .inside {
  display: block;
}

.js--is-fixed .menucontainer::before,
.menucontainer::before {
  content: "";
  position: flex;
  top: 0;
  left: -4000px;
  width: 8000px;
  height: 300%;
  background-color: none;
  overflow: visible;
  /*border-top: $navborderthickness solid $navbordertopbottom;*/
 /* border-bottom: $navborderthickness solid $navbordertopbottom;*/
}
.menucontainer::before {
	width: 300px;
}

.home .menucontainer::before {
  background-color: transparent;
}

.home.boxed .js--is-fixed .menucontainer::before,
.boxed .menucontainer::before {
  left: -30px;
  right: -30px;
  width: auto;
}

#header .mod_search {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}


}

/**
 * =============================================================================
 * main
 * ==========================================================================
 */
.leftcolumn #container,
.rightcolumn #container,
.leftrightcolumn #container  {
  max-width: $container-width;
  margin: 0 auto;
}
#main .inside {
  padding: 50px 0;
}

.leftcolumn #main .inside {
  padding: 30px;
}

.rightcolumn #main .inside {
  padding: 30px;
}

.leftrightcolumn #main .inside {
  padding: 30px;
}

.leftcolumn #main .mod_article {
  padding-right: 0;
  padding-left: 0;
}

.rightcolumn #main .mod_article {
  padding-right: 0;
  padding-left: 0;
}

.leftrightcolumn #main .mod_article {
  padding-right: 0;
  padding-left: 0;
}


@media (min-width: 768px) {



.leftcolumn #main .inside {
  padding: 40px 30px 30px 0;
}

.rightcolumn #main .inside {
  padding: 40px 0 30px 30px;
}

.leftrightcolumn #main .inside {
  padding: 40px 0 30px 0;
}

}

aside .inside {
  padding: 40px 20px 30px 0px;
}

aside .mod_article {
  padding: 0;
}



@media (max-width: 768px) {

.leftrightcolumn #container {
  padding-left: 0;
  padding-right: 0;
}

.leftrightcolumn #main .inside {
  padding-right: 30px;
  padding-left: 30px;
}

aside .inside {
    padding: 20px 10px 20px 0px;
}

.leftrightcolumn #left {
  width: 50%;
  right: auto;
  float: left;
  margin-left: 0;
}

.leftrightcolumn #right {
  width: 50%;
  float: left;
    margin-right: 0;
}

}

@media (max-width: 767px) {

.leftrightcolumn #left {
  width: 100%;
  right: auto;
  float: none;
  margin-left: 0;
}

.leftrightcolumn #right {
  width: 100%;
  float: none;
    margin-right: 0;
}

}


/**
 * =============================================================================
 * footer
 * ==========================================================================
 */

#footer {
  background-color: $footerbg;
}

#footer .inside .footer.top.container{
    padding: 40px 30px 20px 30px;
}

#footer .inside .footer.bottom.container{
    padding: 20px 30px;
}

#footer .inside .footer.bottom.container .row {
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

#footer .footer.bottom .right,
#footer .footer.bottom .left {
  padding: 0 15px;
}

#footer, #footer a {
    color: $footerColor;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
}

#footer .footerbottom.right ul {
  margin-bottom: 0;
}

#footer .footerbottom.right ul li {
  display: inline-block;
  margin-left: 6px;
}

#footer a:hover {
  text-decoration: underline;
}

#footer h1, #footer h2, #footer h3, #footer h4, #footer h5, #footer h6 {
    color: $footerHlColor;
}

.ce_ctscontact div div {
    margin-bottom: 8px;

}

.ce_ctscontact .org {
    font-size: 18px;
}

.ce_ctscontact .contact {
    padding-left: 2px;
}

.ce_ctscontact .contact .desc {
    margin-right: 4px;
}

.footercustom a {
    display: block;
    margin-bottom: 6px;
}

.mod_socials i {
    transition: All 0.3s ease;
    -webkit-transition: All 0.3s ease;
}

.mod_socials a i {
    display: inline-block;
    float: left;
    height: 40px;
    width: 40px;
    padding:10px;
    margin-right: 2px;
    margin-bottom: 2px;
    background: rgba(0, 0, 0, 0.2);
    font-size: 21px;
    text-align: center;
}

.mod_socials i.fa-facebook-f:hover {
    background: #436098;
    color: #fff;
}

.mod_socials i.fa-twitter:hover {
    background: #28a9e2;
    color: #fff;
}

.mod_socials i.fa-xing:hover {
    background: #005d5e;
    color: #fff;
}

.mod_socials i.fa-google-plus-g:hover {
    background: #d95232;
    color: #fff;
}

.mod_socials i.fa-youtube:hover {
    background: #cc181e;
    color: #fff;
}

.mod_socials i.fa-linkedin-in:hover {
    background: #069;
    color: #fff;
}

.nav_socials li {
    display: inline-block;
    margin-right: 2px;
    margin-bottom: 2px;
}

.nav_socials li::before {
    display: none;
}

#footer .nav_socials a {
  font-size: 0;
  line-height: 0;
  text-decoration: none;
}

#footer .nav_socials a:before {
  display: block;
    height: 40px;
    width: 40px;
    background: rgba(0, 0, 0, 0.2);
    font-size: 21px;
    line-height: 40px;
    text-align: center;
}

#footer .nav_socials a.fa-facebook-f:hover {
    background: #436098;
    color: #fff;
}

#footer .nav_socials a.fa-twitter:hover {
    background: #28a9e2;
    color: #fff;
}

#footer .nav_socials a.fa-xing:hover {
    background: #005d5e;
    color: #fff;
}

#footer .nav_socials a.fa-google-plus-g:hover {
    background: #d95232;
    color: #fff;
}

#footer .nav_socials a.fa-youtube:hover {
    background: #cc181e;
    color: #fff;
}

#footer .nav_socials a.fa-linkedin-in:hover {
    background: #069;
    color: #fff;
}


@media (max-width: 767px) {
#footer .inside .footer.bottom.container .row {
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}
}

body.header-fixed #top_link {
    opacity: 1;
    bottom: 45px;
}
.header-fixed .headercontainer {
	background: rgba(0,0,0,0.6);
	height: 80px;
}
.header-fixed .headercontainer .logocontainer .mag h2 {
	color: #fff;
	font-size: 48px;
}
.header-fixed .headercontainer {
	font-size: 2em;
}

#top_link {
    position: fixed;
    opacity: 0;
    transition: All 0.2s ease;
    -webkit-transition: All 0.2s ease;
    width: 45px;
    height: 45px;
    line-height: 45px;
    right: 15px;
    z-index: 999;
    bottom: -40px;
}

#top_link a {
    position: relative;
    display: block;
    transition: All 0.6s ease;
    -webkit-transition: All 0.6s ease;
    float: left;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    text-align: center;
    line-height: inherit;
    border-radius: 100%;
    box-shadow: 0 0 25px 0 rgba(0,0,0,0.04);
    border: 1px solid rgb(235, 237, 235);
    font-size: 16px;
    line-height: 41px;
    color: $accentcolor;
    cursor: pointer;
}

#top_link:hover a {
    margin-top: -7px;
}

/**
 * =============================================================================
 * image settings
 * ==========================================================================
 */

.image_container {
  width: 100%;
  position    : relative;
  overflow    : hidden;
  line-height : 0;
  margin-bottom : 20px;
}
.logo . image_container {
	overflow: visible;
}

@media (min-width: 768px) {

.image_container {
  width: auto;
}

#main .image_container.float_above {
  margin-bottom : 20px;
  display: inline-block;
}

#main .image_container.float_below {
  margin-top : 20px;
  display: inline-block;
}

#main .image_container.float_left {
    margin-top: 4px;
    margin-right: 3%;
    margin-bottom: 1%;
}

#main .image_container.float_right {
    margin-top: 4px;
    margin-bottom: 1%;
    margin-left: 3%;
}

}

.image_container a {
  text-decoration : none;
}

#main .image_container .caption {
    position         : absolute;
    bottom           : 0;
    left             : 0;
    width            : auto !important;
    padding: 3px 6px;
    background-color: rgba(0, 0, 0, 0.6);
    color:#fff;
    font-size: .8em;
    line-height: 1.5;
}
