﻿
#teamOverviewContainer {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    overflow: hidden;
}


#teamImageContainer {
    position: relative;
    padding-bottom: 80px;
}

#teamOverviewContainer,
#teamContent,
#teamLinkContainer {
    clear: both;
}


.teamBox {
    position: relative;
    width: Calc(50% - 25px);
    margin: 5px 5px 15px 5px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    background-color: #fff;
    padding: 7px;
}

.teamBox:before, .teamBox:after {
    z-index: -1;
    position: absolute;
    content: "";
    bottom: 15px;
    left: 10px;
    width: 50%;
    top: 80%;
    max-width: 300px;
    background: #777;
    -webkit-box-shadow: 0 15px 10px #777;
    -moz-box-shadow: 0 15px 10px #777;
    box-shadow: 0 15px 10px #777;
    -webkit-transform: rotate(-3deg);
    -moz-transform: rotate(-3deg);
    -o-transform: rotate(-3deg);
    -ms-transform: rotate(-3deg);
    transform: rotate(-3deg);
}

.teamBox:after {
    -webkit-transform: rotate(3deg);
    -moz-transform: rotate(3deg);
    -o-transform: rotate(3deg);
    -ms-transform: rotate(3deg);
    transform: rotate(3deg);
    right: 10px;
    left: auto;
}


.teamName {
    background: url(../../layout/images/logo.svg) 17px 10px no-repeat;
    background-size: 60px, 60px;
    display: block;
    padding: 10px 0 0px 105px;
    font-weight: 300;
    font-size: 40px;
    height: 80px;
    color: #0A8137;
}

#teamImageContainer .teamName
{
    position: absolute;
    bottom: 0;
    left: 0;
}

#teamShortInfo {
    padding: 20px;
}

#teamContent {
    margin-bottom: 30px;
}

#teamContent h1 {
    font-size: 30px;
}

#teamContent h2 {
    font-size: 28px;
}

#teamLinkContainer {
    border-radius: 10px;
    background-color: #F2F2F2;
    padding: 20px;
    margin-bottom: 30px;
}

#teamLinkContainer a
{
    margin-right: 20px;
}

#teamLinkContainer a:last-child {
    margin-right: 0;
}

.Spielbetrieb {
    font-size: 17px;
}

#footballTeam[data-hasimages="True"] #teamGamesAndResultsWrapper {
    float: left;
    width: Calc(50% - 20px);
    margin-right: 20px;
}

#footballTeam[data-hasimages="True"] #footballTeamGalleryImagesWrapper {
    float: right;
    width: Calc(50% - 20px);
    margin-left: 20px;
}

@media screen and (max-width: 1200px) {
    #footballTeam[data-hasimages="True"] #teamGamesAndResultsWrapper {
        float: none;
        width: inherit;
        margin-right: inherit;
        margin-bottom: 50px;
    }

    #footballTeam[data-hasimages="True"] #footballTeamGalleryImagesWrapper {
        float: none;
        width: inherit;
        margin-left: inherit;
    }
}


@media screen and (max-width: 1023.9px) {

    #teamOverviewContainer {
        display: block;
    }

    .teamBox {
        width: inherit;
    }

    #teamShortInfoContainer .teamName
    {
        display: none;
    }

    .teamName {
        font-size: 30px;
    }
}

@media screen and (max-width: 767.9px) {

    .teamName {
        font-size: 25px;
    }
}

@media screen and (max-width: 400px) {

    .teamName {
        background: none;
        padding: 10px 0 0px 10px;
        height: 50px;
    }

    #teamImageContainer {
        padding-bottom: 50px;
    }
}



/* Bildergalerie */
figure {
    margin: 0;
}

#footballTeamGalleryImagesContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footballTeamGalleryImageContainer {
    width: Calc(100% / 4 - (15px / 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;
}

.footballTeamGalleryImageContainer 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%;
}

/*.footballTeamGalleryImageContainer img {
    aspect-ratio: 4/3;
}*/

.gallerySingleImageDescription {
    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;
}

.footballTeamGalleryImageContainer:hover .gallerySingleImageDescription {
    bottom: 0;
}

.footballTeamGalleryImageContainer a,
.footballTeamGalleryImageContainer a:visited,
.footballTeamGalleryImageContainer a:hover {
    text-decoration: none;
    color: #4C86A5;
}

@media screen and (max-width: 1279.9px) {

    .footballTeamGalleryImageContainer {
        width: Calc(100% / 3 - (30px / 3 * 2));
    }
}

@media screen and (max-width: 1023.9px) {

    #footballTeamGalleryImagesContainer {
        gap: 20px;
    }

    .footballTeamGalleryImageContainer {
        width: Calc(100% / 2 - 10px);
    }
}


@media screen and (max-width: 580px) {

    #footballTeamGalleryImagesContainer {
        gap: 0;
        display: block;
    }

    .footballTeamGalleryImageContainer {
        width: 100%;
        margin-bottom: 30px;
    }
}
