/***********************************************

  ©  herrmann@yellowlabel.de
     fuer buergerstiftung-weimar.de

     September 2017

***********************************************/

@media (min-width: 768px) {
    html {
        height: 100%;
        overflow-y: scroll;
    }
    body {
        height: 100%;
    }
}


/**
 * Containers
 */
#wrap-outer, #footer > .container-fluid {
    background-color: #fff;
    border: solid #990000;
    border-width: 0 2px;
}
#wrap-outer.container-fluid, #footer > .container-fluid {
    max-width: 1054px;
}
@media (min-width: 768px) {
    #wrap-outer {
        min-height: 100%;
    }
}
@media (min-width: 1050px) {
    #wrap-outer {
        box-shadow: 5px 0 30px rgba(0,0,0, .5);
    }
}
#wrap-inner {
    margin-bottom: 80px;
    margin-top: 40px;
}


    /* Row with equal height columns */
@media (min-width: 768px) {
    .row-eq-height {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
    }
}

#header {
    position: relative;
    z-index: 1;
}
#header-text {
    background: #990000 url("../Images/bg.header-text.svg") no-repeat scroll center;
    position: relative;
}
@media (max-width: 991px) {
    #header-text {
        background-size: cover;
        height: 15.33vw;
        min-height: 60px;
    }
}
@media (min-width: 992px) {
    #header-text {
        height: 152px;
    }
}
#header-text > * {
    color: #e6ad9c;
    font: bold 19px/1 Arial,Helvetica,Verdana,Geneva,sans-serif;
    margin: 0;
    position: absolute;
    right: 20px;
    text-align: right;
    text-transform: uppercase;
    white-space: nowrap;
}
#header-text h1 {
    bottom: 7px;
}
#header-text h1 a {
    color: #e6ad9c;
}
#header-text h2 {
    bottom: 27px;
    font-size: 10px;
}
@media (min-width: 480px) and (max-width: 991px) {
    #header-text h1 {
        bottom: 1.512vw;
        font-size: 4vw;
    }
    #header-text h2 {
        bottom: 5.555vw;
        font-size: 2vw;
    }
}
@media (min-width: 992px) {
    #header-text h1 {
        bottom: 15px;
        font-size: 40px;
    }
    #header-text h2 {
        bottom: 55px;
        font-size: 20px;
    }
}


#menu-meta {
    background: #990000 none;
    border-bottom: solid #990000;
    border-width: 0 0 2px;
    margin: 0;
    transition: border-color .5s, box-shadow .5s;
}
.is-sticky #menu-meta {
    box-shadow: 0 5px 15px rgba(0,0,0, .5);
    transition: border-color.25s, box-shadow .25s;
}
@media (min-width: 768px) {
    #menu-meta > .container-fluid {
        border: solid #fff;
        border-width: 4px 0;
        padding-bottom: 6px;
        padding-top: 6px;
    }
    .is-sticky #menu-meta > .container-fluid {
        border-color: #c70101;
    }

    .content-center {
        border: #990000 solid;
        border-width: 0 1px 0 0;
    }
}
@media (min-width: 992px) {
    .content-center {
        border-width: 0 1px;
    }
}

@media (min-width: 768px) {
    #footer {
        /*margin-top: 20px;*/
        bottom: 0;
        left: 0;
        right: 0;
        position: fixed;
    }
}
#footer-inner {
    background-color: #cfcfcf;
    /*background: #cfcfcf linear-gradient(#999, #cfcfcf 35%) repeat-x scroll left top;*/
    font-weight: bold;
    padding: 10px 0;
    text-align: center;
}
#footer-inner > .nav, #footer-inner > .nav li {
    float: none;
}
#footer-inner > .nav li {
    display: inline-block;
}
#footer-inner .nav > li > a:hover, #footer-inner .nav > li > a:focus, #footer-inner .nav > li > a:active {
    background-color: transparent;
    text-decoration: underline;
}


/**
 * Typography
 */

html {
    hyphens: auto;
    -ms-hyphens: auto;
}
html, body {
    font-family: arimo, "Helvetica Neue", Helvetica, Arial, sans-serif;;
}
h1, h2, h3, h4, #menu-main {
    hyphens: none;
    -ms-hyphens: none;
}


/** Columns **/
#content-left img {
    display: block;
    margin: 0 auto 2em;
}
#content-right {
    font-size: .91em;
}
#content-right #img-aufruf {
    border: rgb(170,170,170) solid;
    border-width: 0 0 1px;
    margin-bottom: 2em;
    padding-bottom: 2em;
}

#content-right-sm {
    border-top: 1px solid #990000;
    margin-top: 40px;
    padding-top: 20px;
}


/**
 * Navigation
 */
#menu-meta-sticky-wrapper {
    z-index: 2;
}

.navbar-nav > li > a {
    text-shadow: none;
}

.navbar-nav > li > a, .navbar-nav > li > span {
    display: block;
    line-height: 1;
    padding: 6px;
}
#menu-meta span {
    color: #e6ad9c;
}
#menu-meta a:link, #menu-meta a:visited {
    color: #fff;
}

#nav-sec {
    margin-right: 0;
}
@media (max-width: 767px) {
    .navbar-brand button {
        background: transparent url(../Icons/Sprite.svg) no-repeat scroll right center / 55px 22px;
        border: none;
        display: block;
        float: right;
        height: 22px;
        margin: 2px 0 0 10px;
        transition: transform 0.3s ease-in-out 0s;
        width: 22px;
    }
    .navbar-brand button.opened {
        transform: rotate(90deg);
    }
    #nav-sec  {
        display: none;
        float: right;
        text-align: right;
    }
}
@media (min-width: 768px) {
    #nav-sec li + li a {
        border-left: 1px solid #e6ad9c;
    }
}

.navbar-brand {
    float: right;
    font-size: 16px;
    height: auto;
    line-height: 28px;
    margin-top: 18px;
    padding: 0 20px 0 0;
}
.navbar-toggle {
    border-radius: 0 4px 4px 0;
    color: #fff;
    float: none;
    font-size: 16px;
    left: -2px;
    position: relative;
    transform: translate3d(0, 0, 0);
    transition: transform .4s cubic-bezier(0.16, 0.68, 0.43, 0.99) 0s;
    z-index: 10000;
}
.pushy-open-left .navbar-toggle {
    background-color: #990000;
}
@media (min-width: 768px) and (max-width: 991px) {
    .navbar-toggle {
        border: none;
        display: inline-block;
        left: -22px;
        margin: -10px 0 -11px;
    }
}
.navbar-toggle::before {
    content: "☰";
    display: inline-block;
    padding-right: 5px;
}
.pushy-open-left .navbar-toggle::before {
    content: "✖";
}
.pushy-open-left .navbar-toggle {
    transform: translate3d(230px, 0, 0);
}
@media (max-width: 767px) {
}
@media (min-width: 768px) {
    .navbar-brand {
        display: none;
    }
}

#menu-main {
    border-color: #aaa;
    border-style: solid;
    border-width: 1px 0;
    margin-bottom: 25px;
    padding: 15px 0 10px;
}
#menu-main ul {
    list-style-type: none;
    padding-left: 0;
}
#menu-main ul ul {
    margin-left: 15px;
}
#menu-main ul > .ifsub > ul {
    display: none;
}
#menu-main a {
    display: block;
    line-height: 20px;
    padding: 5px 0;
}

@media (max-width: 991px) {
    #menu-main .actifsub > a,
    #menu-main .active > a {
        color: #cc0000;
    }
}
@media (min-width: 992px) {
    #menu-main .actifsub > a,
    #menu-main .active > a,
    #menu-main .act > a {
        color: #222;
    }
}
#menu-main .active > a,
#menu-main .act > a {
    font-weight: bold;
}
.nav > li > a:hover, .nav > li > a:focus {
    background-color: transparent;
    text-decoration: underline;
}

#menu-main button {
    border: none;
    background: transparent url(../Icons/Sprite.svg) no-repeat scroll right center / 55px 22px;
    float: right;
    height: 22px;
    margin: 4px -6px 0 -2px;
    padding: 0;
    transition: transform 0.3s ease-in-out 0s;
    width: 21px;
}
#menu-main button.opened {
    transform: rotate(90deg);
}


/**
 * CSC
 */
/** Headers **/
h1 {
    border-bottom: 1px dotted #990000;
    font-family: eb_garamond, Garamond,Georgia,"New York","Times New Roman",Times,serif;
    font-weight: normal;
    margin-top: 0;
}
h1 a:focus, h1 a:hover, h1 a:active {
    text-decoration: none;
}
h2, h3 {
    color: #990000;
    font-weight: bold;
}
#content-right > div:first-child > div:first-child h2 {
    font-family: eb_garamond, Garamond,Georgia,"New York","Times New Roman",Times,serif;
    font-weight: normal;
    margin-top: 0;
}

h3 {
    font-size: 15px;
}
.ce-image img,
div.csc-textpic div, div.csc-textpic figure {
    max-width: 100%;
}
div.csc-textpic .csc-textpic-imagewrap img,
div.news-img-wrap img,
video {
    display: inline-block;
    max-width: 100%;
    height: auto;
}
.image-caption,
.csc-textpic-caption {
    font-size: .86em;
    line-height: 1.5;
}

hr {
    border-bottom: 1px dashed rgb(170,170,170);
    margin: 1em 0;
}

ul, ol {
    padding-left: 1.2em;
}

.detail, .important {
    color: #990000;
}
.important {
    text-transform: uppercase;
}
.name-of-person {
    font-style: italic;
    font-size: .91em;
}

div.csc-bodytext a::before,
div.news-text-wrap a::before {
    content: '';
    background: transparent url("../Icons/Sprite.svg") no-repeat scroll 0 -11px / 55px 22px;
    display: inline-block;
    height: 11px;
    margin-right: 2px;
    width: 11px;
}
div.csc-bodytext a[target="_blank"]::before,
div.news-text-wrap a[target="_blank"]::before {
    background-position: -11px -10px;
}
div.csc-bodytext a[href^="/fileadmin"]::before,
div.news-text-wrap a[href^="/fileadmin"]::before {
    background-position: -22px -10px;
}
div.csc-bodytext a[href^="javascript:linkTo_UnCryptMailto"]::before,
div.news-text-wrap a[href^="javascript:linkTo_UnCryptMailto"]::before {
    background-position: -22px 1px;
}
div.csc-bodytext a[href^="tel:"]::before,
div.news-text-wrap a[href^="tel:"]::before {
    background-position: 0 0;
}

/* Space */
.csc-frame + .csc-frame {
    margin-top: 20px;
}
.csc-frame-none + .csc-frame {
    margin-top: 0;
}

.csc-frame + .csc-space-before-extra-small { margin-top: 1em; }
.csc-frame + .csc-space-before-small { margin-top: 1.5em; }
.csc-frame + .csc-space-before-medium { margin-top: 2em; }
.csc-frame + .csc-space-before-large { margin-top: 2.5em; }
.csc-frame + .csc-space-before-extra-large { margin-top: 3em; }
.csc-space-after-extra-small { margin-bottom: 1em; }
.csc-space-after-small { margin-bottom: 1.5em; }
.csc-space-after-medium { margin-bottom: 2em; }
.csc-space-after-large { margin-bottom: 2.5em; }
.csc-space-after-extra-large { margin-bottom: 3em; }

/* Galleries on small devices */
@media (max-width: 360px) {
    div.csc-textpic div.csc-textpic-imagecolumn {
         max-width: 45%;
    }
    div.csc-textpic div.csc-textpic-imagecolumn:nth-child(odd) {
         clear: left
    }

    div.csc-textpic div[data-csc-cols="1"] div.csc-textpic-imagecolumn {
        max-width: initial;
    }
}


/* NO-Positioning of images: */
@media (max-width: 540px) {
    /* Add margin from image-block to text (in case of "Text & Images") */
    div.csc-textpic-intext-left .csc-textpic-imagewrap,
    div.csc-textpic-intext-left-nowrap .csc-textpic-imagewrap {
        margin-right: 0;
    }
    div.csc-textpic-intext-right .csc-textpic-imagewrap,
    div.csc-textpic-intext-right-nowrap .csc-textpic-imagewrap {
        margin-left: 0;
    }

    /* Left (in text) */
    div.csc-textpic-intext-left .csc-textpic-imagewrap { float: none; }

    /* Right (in text) */
    div.csc-textpic-intext-right .csc-textpic-imagewrap { float: none; }

    /* Right (in text, no wrap around) */
    div.csc-textpic-intext-right-nowrap .csc-textpic-imagewrap { float: none; }

    /* Left (in text, no wrap around) */
    div.csc-textpic-intext-left-nowrap .csc-textpic-imagewrap { float: none; }

    /* specific page styles for extension "tx_cssstyledcontent" */
    .csc-textpic-intext-right-nowrap .csc-textpic-text { margin-right: 0; }
    .csc-textpic-intext-left-nowrap .csc-textpic-text { margin-left: 0; }
}




/**
 * freinet-online.de iFrames
 */
#fn_iframe::after {
    content: '';
    display: table;
    clear: both;
}



/**
 * Extensions
 */
/** News **/
.news-list-item + .news-list-item {
    border-top: 1px dotted rgb(141,141,141);
    margin: 1em 0 0;
    padding: 1em 0 0;
}
.news-list-item h2 {
    margin-top: 0;
}
.news-list-item .extra {
    font-weight: bold;
}
@media (min-width: 768px) {
    .news-list-item .extra {
        line-height: 1;
        text-align: right;
    }
}
.news-list-item .more::after {
    content: ' »';
}

/* List/Latest */
#content-right .news-list-newsLatest .news-list-date,
#content-right .news-list-newsLatest p {
    font-size: 10px;
}
#content-right .news-list-newsLatest h2 {
    font-size: 13px;
    padding: 0 0 2px 0;
    margin: 0;
}
#content-right .news-list-newsLatest .news-img-wrap {
    float: left;
    margin: 0 5px 5px 0;
}
#content-right .news-list-newsLatest .article::after {
    content: '';
    display: table;
    clear: left;
}

.news .page-navigation {
    border-top: 1px solid rgb(141,141,141);
    margin: 1em 0 0;
    padding: 1em 0 0;
}

.news-latest-archive {
    margin-top: 1em;
    padding: 5px;
    background-color: #f3f3f3;
}

/* Detail */
.news-single .news-list-date {
    float: right;
    margin-left: 20px;
}
.news-single .teaser-text {
    font-weight: bold;
}
.news-single .news-img-wrap {
    background: #fff;
    float: right;
    margin: 0 0 10px 20px;
    max-width: 211px;
}
.news-single .news-img-wrap .outer + .outer {
    margin-top: 20px;
}
.news-img-caption {
    font-size: .86em;
    line-height: 1.5;
}
.news-single div.csc-textpic {
     overflow: visible;
}
.news-backlink-wrap a::before {
    content: '« ';
}

/* DateMenu */
.news-date-menu > li > h3 {
    cursor: pointer;
    margin-top: 10px;
}
.news-date-menu > li:first-child > h3 {
    margin-top: 0;
}
.news-date-menu > li > ul {
    display: none;
}
.news-date-menu > li > ul > li.active {
    font-weight: bold;
}

/* misc */
.news .alert {
    box-shadow: none;
    padding: 0;
}
.news-list-view .crop-image {
    max-height: 240px;
    overflow-y: hidden;
}


/** Powermail **/
.powermail_form h3 {
    display: none;
}
.powermail_form .mandatory {
    color: #990000;
}
