/* elements.css for >Knaul< */

.werbelink {
    float:right;
    line-height: 1;
    padding: 0.625rem 0.3125rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 400;
}

.werbelink span {
    font-weight: 600;
}

/* cookieconsent */
.cc-link {
    padding: 0;
    display: inline;
}

.btn.cc-revoke-button {
  margin-top: -1.5rem;
  margin-bottom: 3rem;
}

.cc-revoke.cc-bottom {
    display: none;
}

/* lightbox - we have fontawesome? awesome! */
@media all {
    .ce-media-image a { position:relative; }

    .ce-media-image a::before {
        content: '\f0c1';
        font-family: FontAwesome;
        font-size: 1rem;
        font-weight: 400;
        line-height: 1;

        width: 1rem;
        height: 1rem;
        position: absolute;
        z-index: 1;
        top: auto;
        bottom: 0.3125rem;
        right: 0.3125rem;

        color: rgb(255,255,255);
        text-shadow: 0 0 1px rgb(0,0,0);
        background: none;
    }
    .ce-media-image a {
        text-decoration: none;
    }

    .page-footer .ce-media-image a::before {
        display:none;
    }

    .ce-media-image a.lightbox::before {
        content: '\f00e';
    }
    .ce-media-image .ce-media-caption a::before {
        content: none;
    }
}

/* news */
@media all {

    .news-list-item + .news-list-item {
        border-top: 1px solid rgb(153,153,153);
        padding-top: 1.25rem;
    }
    .news-list-item + .news-list-item.news-list-item-teaser {
        border: none;
        padding-top: 0;
    }

    .news-list .news-date {
        display: inline-block;
        margin-top: 0.3125rem;
    }
    .news-list-link .fa {
        padding-left: 0.5em;
    }

    .news-list-item-teaser {
        width: 100%;
    }
    .modernizr-flexbox .news-list-teaser .ce-textpic-inner {
        display: flex;
        flex-direction: column;
    }

    .modernizr-flexbox .news-list-teaser .news-teaser-text {
        flex-grow: 1;
    }

    .news-list-masonry .has-pagination {
        margin-bottom: 5rem; /*FIXME */
    }

    .news-list-masonry .pagination {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
    }
}

/* pagination news & search */
@media all {

    .pagination {
        margin-bottom: 0.9375rem;
    }

    .pagination .pagination-count {
        margin-bottom: 0;
    }

    .pagination ul {
        display: block;
        margin: 0 -0.3125rem;
        padding:0;
    }

    .pagination li {
        display: block;
        float:left;
        line-height: 1;
        padding: 0.3125rem;
    }

    .pagination span,
    .pagination a {
        display: inline-block;
        font-size: 75%;
        color: #7a160f;
        text-decoration: none;
        text-align: center;
        line-height: 1;
        width: 1.75rem;
        padding: 0.4375rem 0;
        border: 1px solid #7a160f;
        border-radius: 3px;
    }
    .pagination a:not(.fa)::before { content: none; }

    .pagination .fa {
        margin: 0;
        padding: 0;
    }

    .pagination .current {
        background: #7a160f;
        background-clip: padding-box;
    }
    .pagination .current b {
        color: rgb(255,255,255);
    }

    .pagination .paginator-ellip {
        border: none;
        padding: 0;
        width: auto;
    }
    .ce-frame-inverted > div.ce-grid-fullwidth-bg{
        background-color:#eee;
    }
    .ce-frame-inverted > div.ce-grid-fullwidth-bg{
        color: #333;
        text-shadow: none;
    }
    .ce-frame-teaser > div{
        background-color:#7a160f;
        color:#fff;
        transition:ease all 0.2s;
        -webkit-box-shadow: 0 0rem 0.5rem rgba(0,0,0,0.25);
        -moz-box-shadow: 0 0rem 0.5rem rgba(0,0,0,0.25);
        box-shadow: 0 0rem 0.5rem rgba(0,0,0,0.25);
    }
    .ce-frame-teaser:hover > div{
        transform:translateY(-0.5rem);
        -webkit-box-shadow: 0px 10px 15px 0px rgba(0,0,0,0.25);
        -moz-box-shadow: 0px 10px 15px 0px rgba(0,0,0,0.25);
        box-shadow: 0px 10px 15px 0px rgba(0,0,0,0.25);
    }
    .ce-frame-teaser .ce-header a,
    .ce-frame-teaser .ce-header a:hover,
    .ce-frame-teaser p a:hover,
    .ce-frame-teaser .ce-header a:focus{
        color:#fff;
        text-decoration: none;
    }
    .ce-frame-inverted a:not(.btn):focus, .ce-frame-inverted a:not(.btn):hover{
        box-shadow: none;
        color:#fff;
    }
    .ce-layout-box-outer{
        box-shadow: 0 0rem 0.5rem rgba(0,0,0,0.25);
    }
    .ce-frame-teaser .ce-above-header .ce-gallery .ce-column{
        margin:0;
    }
    .ce-frame-teaser .ce-above-header .ce-gallery{
        padding:0;
    }
    .parsley-errors-list{
        color:red;
        list-style:none;
        padding:0;
    }
    .powermail_fieldwrap{
        margin-bottom:1rem;
    }
    .powermail_fieldset legend {
      display: block;
      margin-top: 1.25rem;
      padding-top: 1rem;
      border-top: .0625rem dashed #aaa;
    }
    .ce-frame-inverted .ce-header > *{
        color:#fff;
        text-shadow:none;
    }    
    .ce-frame-inverted > div:not(.ce-header){
        background-image:url("/typo3conf/ext/ti_base_knaul/Resources/Public/Images/bg_top.jpg");
        background-repeat: repeat-y;
        background-position: center top;
        background-size: cover;
    }
    .news-related-wrap ul{
        list-style:none;
        padding:0;
        position: relative;
        z-index:1;
        
    }
    .news-related-files-size{
        float:right;
    }
    .news-related-wrap ul .news-related-files-link a,
    .news-related-wrap ul .news-related-files-size{
        padding:0.5rem;
        display:inline-block;
        color:#fff;
    }
    .news-related-wrap ul .news-related-files-link a::before,
    .news-related-wrap ul .news-related-files-link a::after{
        content:'';
        display:block;
        position: absolute;
        top:0;
        left:0;
        right:0;
        bottom:0;
    }
    .news-related-wrap ul .news-related-files-link a::before{
        background:#7a160f;
        opacity: 1;
        border-radius:0.25rem;
        z-index:-1;
    }
    .news-related-files-link::before{
        content:'\f15b';
        color:#fff;
        font-family: FontAwesome;
        display:inline-block;
        padding-left:0.75rem;
    }
}

@media all and (min-width: 30em) {

}

@media all and (min-width: 47.5em), print {

    .ce-div {
        position: relative;
        overflow: hidden; 
        height:0.9375rem;
    }

    .ce-div::before {
        content: "";
        display: block;
        border-radius: 25%;
        position: absolute;
        left: 2.5rem;
        right: 2.5rem;
        bottom: 100%;
        height: 1.25rem;
    }

    .ce-media-image a::before {
        right: 0.625rem;
        bottom: 0.625rem;
    }

    /* news teaser */
    .news-list-teaser {
        margin: 0 -0.625rem;
    }
    .news-list-item-teaser {
        width: 50%;
        float: left;
        padding: 0 0.625rem;
    }
    .news-list-teaser .news-list-item-teaser:nth-child(2n+1) {
        clear: left;
    }
    .news-related-wrap ul{
        max-width:50%;
    }

    .layout1 .powermail_fieldwrap {
        float: left;
        width: 50%;
        width: calc(50% - 1rem);
    }

    .layout1 .powermail_fieldwrap:nth-of-type(2n+1) {
        clear: both;
        margin-right: 1rem;
    }

    .layout1 .powermail_fieldwrap:nth-of-type(2n) {
        margin-left: 1rem;
    }

    .powermail_field .radio label:hover {
        background-color: #e9e9e9;
    }

    .powermail_field .radio + .radio {
    }
}

/* desktop */
@media all and (min-width: 62.5em) {
    .cc-revoke.cc-bottom {
        display: flex;
    }

    .news-list-item + .news-list-item {
        padding-top: 1.5625rem;
    }

    /* news teaser */
    .news-list-teaser {
        margin: 0 -1.25rem;
    }
    .news-list-item-teaser {
        width: 33.3333%;
        float: left;
        padding: 0 1.25rem;
    }
    .news-list-teaser .news-list-item-teaser:nth-child(2n+1) {
        clear: none;
    }
    .news-list-teaser .news-list-item-teaser:nth-child(3n+1) {
        clear: left;
    }
    .news-related-wrap ul{
        max-width:60%;
    }
}

/* desktop - xlarge */
@media (min-width:82.5em) {

    .news-list-item + .news-list-item {
        padding-top: 2.5rem;
    }
    
}
