/*********** Images ********/
.flex-container img {
    width: 100%;
    height: auto;
}

.flex-item-featured-image {
    margin: -20px;
}

.flex-item-featured-image + h2, .flex-item-featured-image + h1 {
    margin-top: 27px;
}

.featured-image-only {
    height: 100%!important;
    width: calc(100% - 20px)!important;
    margin-left: 10px;
    object-fit: cover;
    object-position: 0 0;
}

.flex-item.no-background {
    background: none;
}

/*********** General *******/
.flex-container {
    background: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    flex-direction: row;
    margin: 0 -10px;
}

/********** Column **********/
.flex-item-col {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.flex-item-col.flexgrow-disabled {
    flex-grow: 0;
}


/*************** Single Item ***************/
/** st_width START **/
.flex-item {
    box-sizing: border-box;
    flex-grow: 1;
    order: 1;
    background-color: rgba(255,255,255,1);
    padding: 20px;
    margin: 0 10px 20px 10px;
    align-self: stretch;
}

.flex-item :last-child {
    margin-bottom: 0px;
}

.flex-item > .flex-container {
    margin-bottom: 0;
}

.flex-item > .flex-container > .flex-item {
    padding: 0;
}

.flex-item-width-25 {
    width: 25%;
}

.flex-item-width-33 {
    width: 33.33333%;
    float: right;
}

.flex-item-width-50 {
    width: 50%;
}

.flex-item-width-66 {
    width: 66.66666%;
}

.flex-item-width-75 {
    width: 75%;
}

.flex-item-width-100 {
    width: 100%;
}

/** st_alignSelf START **/
.flex-align-self-start {
    align-self: flex-start;
}

.flex-align-self-center {
    align-self: center;
}

.flex-align-self-end {
    align-self: flex-end;
}

.flex-align-self-stretch {
    align-self: stretch;
}

/******** Allgemeine Anpassungen ********/
.flex-item .cols_full {
    padding: 0;
    margin: 0;
    width: 100%;
}

/********** YouTube-Embed **********/
.youtube-embed {
    margin-bottom: 0;
    margin-right: 0;
}

.flex-item .video-wrapper-1 .youtube-embed {
    margin-right: -20px;
}

/****** 100% ******/
.flex-item-width-100 .video-wrapper.video-wrapper-1 iframe {
    height: 600px;
}

.flex-item-width-100 .video-wrapper.video-wrapper-2 iframe {
    height: 300px;
}

.flex-item-width-100 .video-wrapper.video-wrapper-3 iframe {
    height: 200px;
}

.flex-item-width-100 .video-wrapper.video-wrapper-4 iframe {
    height: 150px;
}

.flex-item-width-100 .video-wrapper.video-wrapper-5 iframe {
    height: 120px;
}

/****** 75% ******/
.flex-item-width-75 .video-wrapper.video-wrapper-1 iframe {
    height: 450px;
}

.flex-item-width-75 .video-wrapper.video-wrapper-2 iframe {
    height: 225px;
}

.flex-item-width-75 .video-wrapper.video-wrapper-3 iframe {
    height: 150px;
}

.flex-item-width-75 .video-wrapper.video-wrapper-4 iframe {
    height: 112.5px;
}

.flex-item-width-75 .video-wrapper.video-wrapper-5 iframe {
    height: 90px;
}
/****** 66% ******/
.flex-item-width-66 .video-wrapper.video-wrapper-1 iframe {
    height: 360px;
}

.flex-item-width-66 .video-wrapper.video-wrapper-2 iframe {
    height: 180px;
}

.flex-item-width-66 .video-wrapper.video-wrapper-3 iframe {
    height: 120px;
}

.flex-item-width-66 .video-wrapper.video-wrapper-4 iframe {
    height: 90px;
}

.flex-item-width-66 .video-wrapper.video-wrapper-5 iframe {
    height: 72px;
}

/******* 50% ******/
.flex-item-width-50 .video-wrapper.video-wrapper-1 iframe {
    height: 300px;
}

.flex-item-width-50 .video-wrapper.video-wrapper-2 iframe {
    height: 150px;
}

.flex-item-width-50 .video-wrapper.video-wrapper-3 iframe {
    height: 100px;
}

.flex-item-width-50 .video-wrapper.video-wrapper-4 iframe {
    height: 75px;
}

.flex-item-width-50 .video-wrapper.video-wrapper-5 iframe {
    height: 60px;
}

/****** 33% ******/
.flex-item-width-33 .video-wrapper.video-wrapper-1 iframe {
    height: 198px;
}

.flex-item-width-33 .video-wrapper.video-wrapper-2 iframe {
    height: 99px;
}

.flex-item-width-33 .video-wrapper.video-wrapper-3 iframe {
    height: 66px;
}

.flex-item-width-33 .video-wrapper.video-wrapper-4 iframe {
    height: 49.5px;
}

.flex-item-width-33 .video-wrapper.video-wrapper-5 iframe {
    height: 39.6px;
}

/****** 25% ******/
.flex-item-width-25 .video-wrapper.video-wrapper-1 iframe {
    height: 150px;
}

.flex-item-width-25 .video-wrapper.video-wrapper-2 iframe {
    height: 75px;
}

.flex-item-width-25 .video-wrapper.video-wrapper-3 iframe {
    height: 50px;
}

.flex-item-width-25 .video-wrapper.video-wrapper-4 iframe {
    height: 37.5px;
}

.flex-item-width-25 .video-wrapper.video-wrapper-5 iframe {
    height: 30px;
}

/********** Breakpoints **********/
@media screen and (min-width: 975px){
    .flex-item-width-25 {
        width: 25%;
    }

    .flex-item-width-33 {
        width: 33.333333333%;
        float: right;
    }

    .flex-item-width-50 {
        width: 50%;
    }

    .flex-item-width-66 {
        width: 66.6666666666%;
    }

    .flex-item-width-75 {
        width: 75%;
    }

    .flex-item-width-100 {
        width: 100%;
    }
}
@media screen and (min-width: 768px) and (max-width: 974px){
    .flex-item-width-25 {
        width: 50%;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .flex-item-width-25 > .flex-item {
        width: calc(50% - 40px);
    }

    .flex-item-width-33 {
        width: 50%;
        float: right;
    }

    .flex-item-width-50 {
        width: 50%;
    }

    .flex-item-width-66 {
        width: 100%;
    }

    .flex-item-width-75 {
        width: 75%;
    }

    .flex-item-width-100 {
        width: 100%;
    }
}

@media screen and (min-width: 576px) and (max-width: 767px){
    .flex-item-width-25 {
        width: 50%;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .flex-item-width-25 > .flex-item {
        width: calc(50% - 40px);
    }

    .flex-item-width-33 {
        width: 50%;
        float: right;
    }

    .flex-item-width-50 {
        width: 66.66666%;
    }

    .flex-item-width-66 {
        width: 100%;
    }

    .flex-item-width-75 {
        width: 100%;
    }

    .flex-item-width-100 {
        width: 100%;
    }
}

@media screen and (max-width: 575px){
    .flex-item-width-25 {
        width: 100%;
    }

    .flex-item-width-33 {
        width: 100%;
    }

    .flex-item-width-50 {
        width: 100%;
    }

    .flex-item-width-66 {
        width: 100%;
    }

    .flex-item-width-75 {
        width: 100%;
    }

    .flex-item-width-100 {
        width: 100%;
    }
}
