/* MASON Grids */
.masonryWrap {
    display: block;
}
.article + .clear + .masonryWrap {
    margin-top: 10px !important;
}
.masonryWrap .gridSizer {
    width: 8.333%;
}
.masonryWrap .articleGrid {
    height: auto;
}

.masonryWrap .wrap {
    overflow: hidden;
    display: block;
    height: 0;
}

.masonryWrap .gridWidth_3x3,
.masonryWrap .gridWidth_3x6,
.masonryWrap .gridWidth_6x12 {
    width: 50%;
}
.masonryWrap .gridWidth_6x3,
.masonryWrap .gridWidth_6x6,
.masonryWrap .gridWidth_12x6 {
    width: 100%;
}
.masonryWrap .gridWidth_6x6 .wrap,
.masonryWrap .gridWidth_3x3 .wrap {
    padding-bottom: 100%;
}
.masonryWrap .gridWidth_6x3 .wrap {
    padding-bottom: 100%;
}
.masonryWrap .gridWidth_3x6 .wrap,
.masonryWrap .gridWidth_6x12 .wrap {
    padding-bottom: 100%;
}

.masonryGridItem .articleWrap { position: relative; }

.masonryGridItem .articleTeaser {
    position: absolute;
    left: 10px;
    top: 10px;
    right: 10px;
    bottom: 10px;
    margin: 0;
}
.masonryGridItem .articleTeaser .imgWrap {
    padding-bottom: 0 !important;
    height: 100%;
    background-size: cover;
    display: block;
}

.masonryGridItem .wrap .info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    padding: 20px;
    z-index: 2;
    transition: transform .3s;
}
.masonryGridItem .wrap .info img {
    width: 100%;
    height: auto;
}
.masonryGridItem .wrap .info:after {
    content: '';
    display: block;
    position: absolute;
    z-index: -1;
    left: 0;
    top: -20px;
    right: 0;
    bottom: 0;
}
.masonryGridItem .wrap .info ul:not(.downloads) { padding-left: 30px !important; }

.masonryGridItem .articleTeaser {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    transition: transform .3s, box-shadow .3s;
    /*box-shadow: 5px 5px 8px rgba(0,0,0, 0.4);*/
}
.masonryGridItem:not(.hasImage) .textWrap, #news .textWrap { top: 20px; }
.masonryGridItem:hover .wrap .info {
    transform: scale(1.02) translateY(-1%);
}
.masonryGridItem:hover .articleTeaser {
    transform: scale(1.02) translateY(-1%);
    box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
}

.masonryGridItem.noZoomEffect:hover .articleTeaser {
    transform: none;
    box-shadow: none;
}

/* bei verstärktem Kontrast */
body.contrast .masonryGridItem .wrap .info { background-color: #003f57; }
body.contrast #news-slider .info { background-color: transparent; }
body.contrast #news-slider .headline { background-color: #003f57; padding-top: 10px; width: 100%; }
body.contrast .articleGrid .imgWrap::before { display: none; }

@media only screen and (min-width: 320px) {

        /* MASON Grids */
    .masonryWrap .gridWidth_3x3 {
        width: 100%;
    }
    .masonryWrap .gridWidth_3x6 {
        width: 100%;
    }
    .masonryWrap .gridWidth_6x3 {
        width: 100%;
    }
    .masonryWrap .gridWidth_6x6 {
        width: 100%;
    }
    .masonryWrap .gridWidth_6x12 {
        width: 100%;
    }
}

@media only screen and (min-width: 480px) {
    .gridWrap .gridWidth_20,
    .gridWrap .gridWidth_25 {
        width: 50%;
    }

    /* MASON Grids */
    .masonryWrap .gridWidth_3x3 {
        width: 50%;
    }
    .masonryWrap .gridWidth_3x6 {
        width: 50%;
    }
    .masonryWrap .gridWidth_6x3 {
        width: 100%;
    }
    .masonryWrap .gridWidth_6x6 {
        width: 100%;
    }

    .masonryWrap .gridWidth_6x3 .wrap {
        padding-bottom: 48.5%;
    }
    .masonryWrap .gridWidth_3x6 .wrap,
    .masonryWrap .gridWidth_6x12 .wrap {
        padding-bottom: calc(200% + 2em);
    }
}

@media only screen and (min-width: 560px) {
    .gridWrap .gridWidth_50,
    .gridWrap .leftContainer,
    .gridWrap .rightContainer {
        width: 50%;
    }
}

@media only screen and (min-width: 640px) {
    .gridWrap .gridWidth_33 {
        width: 50%;
    }

    /* MASON Grids */
    /*.masonryWrap .gridWidth_3x3 {
        width: 33.333%;
    }
    .masonryWrap .gridWidth_3x6 {
        width: 33.333%;
    }
    .masonryWrap .gridWidth_6x3 {
        width: 66.66%;
    }
    .masonryWrap .gridWidth_6x6 {
        width: 66.66%;
    }*/
}
@media only screen and (min-width: 720px) {
    .gridWrap .gridWidth_20 {
        width: 33.33%;
    }
    .gridWrap .gridWidth_20:nth-child(3n+1) {
        clear: left;
    }
    .articleGrid .btnMore {
        bottom: 10px;
        right: 10px;
        line-height: 1.667;
    }
}


@media only screen and (min-width: 960px) {
    .gridWrap .gridWidth_33 {
        width: 33.33%;
    }
    .gridWrap .gridWidth_33:nth-child(3n+1) {
        clear: left;
    }
    .gridWrap .gridWidth_25 {
        width: 25%;
    }
    .gridWrap .gridWidth_25:nth-child(4n+1) {
        clear: left;
    }

    /* MASON Grids */
    .masonryWrap .gridWidth_3x3 {
        width: 33.33%;
    }
    .masonryWrap .gridWidth_3x6 {
        width: 33.33%;
    }
    .masonryWrap .gridWidth_6x3 {
        width: 66.66%;
    }
    .masonryWrap .gridWidth_6x6 {
        width: 66.66%;
    }
    .masonryWrap .gridWidth_6x12 {
        width: 50%;
    }
}

@media only screen and (min-width: 1080px) {
    .gridWrap .gridWidth_20 {
        width: 20%;
    }
    .gridWrap .gridWidth_20:nth-child(3n+1) {
        clear: none;
    }
    .gridWrap .gridWidth_20:nth-child(5n+1) {
        clear: left;
    }

    /* MASON Grids */
    .masonryWrap {
        margin: 0 -1em -10px -1em !important;
        margin-bottom: 0 !important;
    }
    .article + .clear + .masonryWrap {
        margin-top: 0 !important;
    }
    .masonryGridItem .wrap .info,
    .masonryGridItem .articleTeaser {
        /*left: 20px;
        right: 20px;
        top: 20px;
        bottom: 20px;*/
        left: 0px;
        right: 0px;
        top: 0px;
        bottom: 0px;
    }
    .masonryGridItem .wrap .info {
        padding: 20px;
        overflow: hidden;
    }
    .masonryGridItem .flag {
        left: 40px;
        top: 40px;
    }
}

@media only screen and (min-width: 1500px) {

    /* MASON Grids */
    .masonryWrap .gridWidth_3x3 {
        width: 25%;
    }
    .masonryWrap .gridWidth_3x6 {
        width: 25%;
    }
    .masonryWrap .gridWidth_6x3 {
        width: 50%;
    }
    .masonryWrap .gridWidth_6x6 {
        width: 50%;
    }
}
