/* this file contains the style of start / home page */

/* header */
body#content-area #content {
    margin-top: 25px;
}

.custom-headerSlider .header-text-wrapper::before {
    position: absolute;
    display: block;
    content: "";
    background-color: var(--primary-color-80);
    top: 0;
    left: 0;
    height: 100%;
    width: 50vw;
}

@media screen and (max-width: 1023px) {
    .custom-headerSlider .header-text-wrapper {
        position: relative;
        width: 100vw;
        left: 0;
        right: 0;
        padding: 20px;
        margin: 0;
        max-width: none;
        background-color: var(--primary-color);
        height: auto;
    }

    .custom-headerSlider .header-text-wrapper::before {
        display: none;
    }

    .header-image .header-image--item {
        position: relative;
    }

    .header-image {
        display: flex;
        flex-direction: column;
    }

    .header-item .header-item--item {
        height: clamp(300px, 661px, 50vh);
    }
}

@media screen and (min-width: 834px) {
    .header-image, .custom-headerSlider, .headerSlider {
        height: clamp(300px, 441px, 50vh);
    }
}

@media screen and (max-width: 570px) {
    body.blogentry {
        margin-top: 0
    }
}

@media screen and (max-width: 1023px) {
    .header-image, .custom-headerSlider, .headerSlider {
        height: unset !important;
    }
}

@media screen and (min-width: 550px) {
    .header-image, .custom-headerSlider, .headerSlider {
        height: clamp(300px, 661px, 50vh);
    }
}

/* news */
.news-list-view .article .news-list-date {
    margin-bottom: 0px;
}

.news-list-view .article .header h3 {
    font-size: 22px;
    line-height: 1.2; /* margin-bottom: 15px; */
    margin-bottom: 0;
    hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
}

.news-list-view .article .footer {
    font-style: normal;
    font-size: 14px;
}

.news-list-view .article {
    display: flex;
    flex-direction: column;
}

.news-list-view .article .header {
    margin-top: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* number of lines to show */
    -webkit-box-orient: vertical;
}

.news-list-view .article .news-img-wrap {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.news-list-view .article:nth-child(1) .news-img-wrap img {
    width: 100%;
    object-fit: cover;
}

.news-list-view .article:nth-child(2) .news-img-wrap img,
.news-list-view .article:nth-child(3) .news-img-wrap img {
    width: 100%;
    object-fit: cover;
}

.news-list-view .article .teaser-text {
    margin-bottom: 20px;
}

.news-list-view .article .detail-button {
    margin-top: auto;
}

.news-list-view .article .footer {
    font-style: normal;
}

.news-list-view .article .news-list-date {
    font-size: 14px; /* margin-top: 15px; */
}

.news-list-view .article .footer .news-list-category,
.news-list-view .article .footer .news-list-author {
    display: none;
}

.news-list-view .article {
    padding: 22px;
    background: #FFF;
    border-radius: 10px;
}

/* .header-image,
.custom-headerSlider { height: 500px; }
.custom-headerSlider .header-text-wrapper { bottom: 53px;} */

@media screen and (max-width: 480px) {
    .news-list-view .article:nth-child(1) .news-img-wrap img,
    .news-list-view .article:nth-child(2) .news-img-wrap img,
    .news-list-view .article:nth-child(3) .news-img-wrap img {
        height: 280px;
    }
}

@media screen and (min-width: 481px) {
    .news-list-view {
        margin: 0;
    }

    .news-list-view .article {
        flex: unset;
        max-width: unset;
    }

    .news-list-view .article:nth-child(1) .news-img-wrap img,
    .news-list-view .article:nth-child(2) .news-img-wrap img,
    .news-list-view .article:nth-child(3) .news-img-wrap img {
        height: 300px;
    }
}

@media screen and (min-width: 590px) {
    .news-list-view .article:nth-child(1) .news-img-wrap img,
    .news-list-view .article:nth-child(2) .news-img-wrap img,
    .news-list-view .article:nth-child(3) .news-img-wrap img {
        height: 400px;
    }
}

@media screen and (min-width: 550px) {
    /* Header for Tablet */
    /* .header-image, .custom-headerSlider	{ height: 520px; }
    .custom-headerSlider .header-text-wrapper { bottom: 94px;} */
}

@media screen and (min-width: 834px) {
    /* Header for Desktop */
    /* .header-image, .custom-headerSlider  {height: 460px; }
    .custom-headerSlider .header-text-wrapper { bottom: 94px;} */
}

@media screen and (min-width: 769px) {
    .news .news-list-view {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 30px 30px;
        grid-template-areas:
            "eins eins"
            "zwei drei";
    }

    .news-list-view .article:nth-child(1) {
        grid-area: eins;
    }

    .news-list-view .article:nth-child(2) {
        grid-area: zwei;
    }

    .news-list-view .article:nth-child(3) {
        grid-area: drei;
    }

    .news-list-view .article:nth-child(1) .news-img-wrap img {
        height: 395px;
    }

    .news-list-view .article:nth-child(2) .news-img-wrap img,
    .news-list-view .article:nth-child(3) .news-img-wrap img {
        height: 280px;
    }
}

@media screen and (min-width: 1024px) {
    .news .news-list-view {
        display: grid;
        grid-template-columns: 2fr 1fr;
        grid-template-rows: 1fr 1fr;
        column-gap: 30px;
        grid-template-areas:
                "eins zwei"
                "eins drei";
    }

    .news-list-view .article:nth-child(1) {
        grid-area: eins;
    }

    .news-list-view .article:nth-child(2) {
        grid-area: zwei;
    }

    .news-list-view .article:nth-child(3) {
        grid-area: drei;
    }

    .news-list-view .article:nth-child(2) .teaser-text div[itemprop="description"],
    .news-list-view .article:nth-child(3) .teaser-text div[itemprop="description"] {
        display: none;
    }

    .news-list-view .article:nth-child(1) .news-img-wrap img {
        height: 595px;
    }

    .news-list-view .article:nth-child(2) .news-img-wrap img,
    .news-list-view .article:nth-child(3) .news-img-wrap img {
        height: 280px;
    }

}

@media screen and (min-width: 481px) and (max-width: 768px) {
    .news-list-view .article {
        flex: unset;
        max-width: unset;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 480px) {
    .news-list-view .article {
        margin-bottom: 20px;
    }
}

/* eof */
