﻿

.newsPaperEntry {
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    padding: 10px 0 20px 0;
}

.newsPaperEntrySourroundDetailLink {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    transition: all 0.15s ease-in-out;
}

    .newsPaperEntrySourroundDetailLink:hover {
        background-color: #F7F7F7;
    }

.newsPaperEntryContentWrapper {
    position: relative;
    pointer-events: none;
    z-index: 1;
}

.newsPaperEntryContentWrapper a {
    pointer-events: all;
}

.newsPaperEntryImage {
    float: left;
    margin: -30px 0 20px 0;
    max-width: 220px;
}

.newsPaperEntryImage img {
    vertical-align: top;
    /* Part below needed if portrait images should be cut above and below. Without this the image is only cut below*/
    /*  object-fit: cover;
    width: 100%;
    max-height: 100%;
    aspect-ratio: 4/2.5;
*/
}

.newsPaperEntryDate {
    font-weight: 500;
    margin-bottom: 10px;
}

.newsPaperEntry[data-haspreviewimage="True"] .newsPaperEntryDate {
    margin-left: 240px;
}

.newsPaperEntryType {
}

.newsPaperEntryType h2 {
    margin: 6px 0 5px 0;
}

.newsPaperEntry[data-haspreviewimage="True"] .newsPaperEntryType {
    margin-left: 240px;
}

.newsPaperEntryTeam {
}

.newsPaperEntryTeam h3 {
    margin: 0 0 15px 0;
}

.newsPaperEntry[data-haspreviewimage="True"] .newsPaperEntryTeam {
    margin-left: 240px;
}

.newsPaperEntryHeader1 {
    font-weight: 500;
    margin-bottom: 10px;
}

.newsPaperEntry[data-haspreviewimage="True"] .newsPaperEntryHeader1 {
    margin-left: 240px;
}

.newsPaperEntryHeader2 {
    margin-bottom: 10px;
}

.newsPaperEntry[data-haspreviewimage="True"] .newsPaperEntryHeader2 {
    margin-left: 240px;
}

.newsPaperEntry[data-haspreviewimage="True"] .newsPaperEntryHeader3 {
    margin-left: 240px;
}

.newsPaperEntryDetailLink {
    margin: 15px 0 10px 0;
    color: #0A8137;
    font-weight: 400;
    text-decoration: underline;
}

.newsPaperEntryDetailLink:hover {
    color: #4FBE37;
}

.newsPaperEntry[data-haspreviewimage="True"] .newsPaperEntryDetailLink {
    margin-left: 240px;
}

.newsPaperEntryReadOn {
    position: absolute;
    right: 10px;
    top: 5px;
}


@media screen and (max-width: 600px) {

    .newsPaperEntryImage {
        float: none;
        margin: 20px 0 20px 0;
        max-width: 200px;
    }

    .newsPaperEntry[data-haspreviewimage="True"] .newsPaperEntryDate {
        margin-left: 0;
    }

    .newsPaperEntry[data-haspreviewimage="True"] .newsPaperEntryType {
        margin-left: 0;
    }

    .newsPaperEntry[data-haspreviewimage="True"] .newsPaperEntryTeam {
        margin-left: 0;
    }

    .newsPaperEntry[data-haspreviewimage="True"] .newsPaperEntryHeader1 {
        margin-left: 0;
    }

    .newsPaperEntry[data-haspreviewimage="True"] .newsPaperEntryHeader2 {
        margin-left: 0;
    }

    .newsPaperEntry[data-haspreviewimage="True"] .newsPaperEntryHeader3 {
        margin-left: 0;
    }

    .newsPaperEntry[data-haspreviewimage="True"] .newsPaperEntryDetailLink {
        margin-left: 0;
    }

}

@media screen and (max-width: 450px) {
    .newsPaperEntryImage {
        max-width: 100%;
    }
}



/* Detail page */

#footballNewsPaperDetailDate {
    font-weight: 500;
    margin-bottom: 20px;
}

#footballNewsPaperDetailType {
}

#footballNewsPaperDetailHeader1 {
}

#footballNewsPaperDetailHeader2 {
}

#footballNewsPaperDetailHeader3 {
    font-weight: 500;
    margin-top: 20px;
    font-size: 22px;
}

#footballNewsPaperDetailText {
}


#footballNewsPaperDetailShareIconsContainer {
    margin-top: 25px;
}

#footballNewsPaperDetailShareIconsContainer .fab {
    font-size: 35px;
    color: var(--colorMain);
    margin-right: 5px;
}

@media screen and (max-width: 1023px) {
}

/* Bildergalerie */

figure {
    margin: 0;
}

#footballNewsPaperDetailImagesContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.footballNewsPaperDetailImageContainer {
    width: Calc(100% / 4 - (30px / 4 * 3));
    border: 1px solid #ccc;
    box-shadow: 2px 2px 6px 0px rgba(0,0,0,0.3);
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.footballNewsPaperDetailImageContainer img {
    vertical-align: top;
    /* Part below needed if portrait images should be cut above and below. Without this the image is only cut below*/
    object-fit: cover;
    width: 100%;
    max-height: 100%;
    aspect-ratio: 4/3;
}

.footballNewsPaperDetailImageImageDescription {
    padding: 5px 10px 5px 10px;
    font-size: 16px;
    position: absolute;
    bottom: -40px;
    background-color: rgba(255,255,255,0.9);
    right: 0;
    left: 0;
    transition: all 0.3s ease-in 0s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footballNewsPaperDetailImageContainer:hover .footballNewsPaperDetailImageImageDescription {
    bottom: 0;
}

.footballNewsPaperDetailImageContainer a,
.footballNewsPaperDetailImageContainer a:visited,
.footballNewsPaperDetailImageContainer a:hover {
    text-decoration: none;
    color: var(--colorMain);
}

@media screen and (max-width: 1279.9px) {

    .footballNewsPaperDetailImageContainer {
        width: Calc(100% / 3 - (30px / 3 * 2));
    }
}

@media screen and (max-width: 1023.9px) {

    #footballNewsPaperDetailImagesContainer {
        gap: 20px;
    }

    .footballNewsPaperDetailImageContainer {
        width: Calc(100% / 2 - 10px);
    }

    #footballNewsPaperDetailHeader3 {
        font-size: 19px;
    }
}


@media screen and (max-width: 580px) {

    #footballNewsPaperDetailImagesContainer {
        gap: 0;
        display: block;
    }

    .footballNewsPaperDetailImageContainer {
        width: 100%;
        margin-bottom: 30px;
    }
}

