.invisible {
    display: none;
}

/*header*/
#pageheader {
    position: relative;
    width: 100%;
}

#pageheader-image{
    background: url("../../images/pagecontent/index/headimage.jpg");
    opacity: 0.75;
    width: 100%;
    height:auto;
    max-height: 60vh;
    aspect-ratio: 5/2;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    vertical-align: middle;
    position: relative;
    z-index: 1;
}

#pageheader-text {
    position: absolute;
    top: 15%;
    left: 30%;
    transform: translate(-50%, -50%) rotate(-10deg);
    text-align: center;
    z-index: 10;
    display: flex;
}

/*Aktuelles*/
#current-container {
    padding: 2vh;
}

#current-header {
    text-align: center;
}

#current-image {
    aspect-ratio: auto;
    max-height: 56vh;
    padding: 2vh;
}

#current-image-file {
    max-height: 52vh;
    aspect-ratio: auto;
    display: block;
    margin: auto;
}

#current-text {
    text-align: center;
}

#current-text a {
    color: rgb(28, 84, 255);
}

#greeting {
    padding: 2vw 15vw;
}

#greeting-header {
    text-align: center;
    padding-bottom: 2vw;
}

#greeting-text {
    text-align: center;
}
/*Kurzplan*/

@media only screen and (min-width: 768px) {
    #plan-textcontainer {
    width: 100%;
    padding-bottom: clamp(6px, 2vw, 22px);
    display: flex;
    justify-content: center;
    }
    #plan-image {
    aspect-ratio: auto;
    max-width: 45vw;
    }
}


@media only screen and (max-width: 767px) {
    #plan-textcontainer {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #plan-image {
        aspect-ratio: auto;
        max-width: 70vw;
    }
}

#plan-container {
    text-align: center;
    justify-items: center;
    margin-top: clamp(10px, 4vw, 31px);
    margin-bottom: clamp(6px,2vw, 22px);
}

#plan-header {
    padding-bottom: clamp(6px, 2vw, 22px);
    width: 100%;
    display: flex;
    justify-content: center;
}

@media only screen and (max-with: 767px) {
    #plan-container {
        padding-right: clamp(6px, 2vw, 22px);
        padding-left: clamp(6px, 2vw, 22px);
    }
}

@media only screen and (min-width: 768px) {
    #plan-container {
        padding-right: clamp(20px, 20vw, 20vw);
        padding-left: clamp(20px, 20vw, 20vw);
    }
}

#plan-text {
    display: flex;
    align-items: center;
    flex-direction: column;
}

#plan-end {
    width: 100%;
    display: flex;
    justify-content: center;
}

#std-sponsorsContainer {
    padding: clamp(8px, 3vw, 26px );
    display: grid;
    gap: 3vw;
    grid-template-columns: repeat(auto-fill, 15%);
    justify-content: space-between;
}

.sponsor-img {
    aspect-ratio: auto;
    max-width: 15vw;
    height: auto;
}


/*news*/

@media only screen and (max-width: 767px) {
    #news-container {
        padding: clamp(8px, 3vw, 26px);
        display: grid;
        grid-template-columns: 100%;
        row-gap: 2vw;
        justify-items: center;
    }

    .news-image {
        justify-self: center;
        height: 30vh;
        aspect-ratio: auto;
    }
    .news-block {
        max-height: 80vh;
        width: 50vw;
    }

    .news-text {
        overflow: hidden;
        text-overflow: clip;
    }
}

@media only screen and (min-width: 768px) {
    #news-container {
        padding: clamp(8px, 3vw, 26px);
        display: grid;
        gap: 3vw;
        grid-template-columns: repeat(auto-fill, 30%);
        justify-content: space-between;
    }
    .news-block {
        max-width: 30vw;
        height: auto;
    }
    .news-image {
        aspect-ratio: auto;
        max-height: 30vw;
        height: auto;
    }
}

.news-header {
    text-align: center;
}

.news-text {
    text-align: left;
}

.news-titel {
    text-align: center;
}

.news-kachel {
    padding-top: clamp(4px, 1vw, 16px);
    padding-right: clamp(8px, 3vw, 26px);
    padding-bottom: clamp(8px, 3vw, 26px);
    padding-left: clamp(8px, 3vw, 26px);
    background-color: var(--darkblue);
}

.news-bild {
    width: 25vw;
    aspect-ratio: auto;
    object-fit: cover;
}

.news-text {
    padding: clamp(6px, 2vw, 22px);
    margin-top: clamp(4px, 1vw, 16px);
}

.news-link {
    color: var(--darkblue);
    font-size: x-small;
}

.news-button {
    padding: clamp(6px, 2vw, 22px);
    margin: clamp(4px, 1vw, 16px);
    text-align: center;
    border-radius: 25px;
    box-shadow: 0 2.5px 5px 0 rgba(0,0,0,0.5);
}

.news-button:hover {
    background-color: var(--darkblue);
    cursor: pointer;
}

.news-button:active {
    box-shadow: none;
    transform: translateY(2.5px);
}

#buttons {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
}
@media only screen and (min-width: 767px) {
    #sponsorsContainer {
        padding: clamp(8px, 3vw, 26px);
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        column-gap: 1vw;
        row-gap: 2vw;
        justify-items: center;
    }

    .sponsoren-bild {
        width: 10vw;
        height: auto;
    }
}

@media only screen and (max-width: 768px) {
    #sponsorsContainer {
        padding: clamp(6px, 2vw, 22px);
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        column-gap: 1vw;
        row-gap: 2vw;
        justify-items: center;
    }

    .sponsoren-bild {
        width: 20vw;
        height: auto;
    }
}

.sponsoren-bild:hover {
    transform: scale(1.1);
}

.invisible {
    display: none
}
