/* Content blocks (Bausteine) that need more than the rich text styles. Ported from the Blazor
   Hero, ArticlesAndAppointments and ClubSummary components. */

/*=================================*/
/*              Hero               */
/*=================================*/

#hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    background-color: var(--primary);

    h1 {
        width: 100%;
        background-image: var(--hero-section-image);
        background-size: cover;
        background-position: bottom;
        padding: 20vh 1rem 1rem 1rem;
        text-align: center;
        color: var(--light);
        text-shadow: #000 0 0 5px;
    }

    p {
        text-align: center;
        padding: 0 1rem;
        color: var(--light);
    }

    .button {
        margin: 0 1rem 1rem 1rem;
    }

    .hero-button-desktop {
        display: none;
    }
}

@media (min-width: 768px) {
    #hero {
        height: 50vh;
        background-image: var(--hero-section-image);
        background-size: cover;
        background-position: center;
        align-items: end;
        justify-content: flex-start;
        border-radius: 0 0 .5rem .5rem;
        padding: 2rem;

        h1 {
            background: none;
            text-align: end;
            text-shadow: none;
            padding: 0;
        }

        p {
            max-width: 50%;
            text-align: end;
            margin: 0;
            text-shadow: 0 0 10px var(--dark);
            padding: 0;
        }

        .button {
            margin: 0;
        }

        .hero-button-desktop {
            display: block;
        }

        .hero-button-mobile {
            display: none;
        }
    }
}

/*=================================*/
/*   Latest news / appointments    */
/*=================================*/

.home-news {
    display: flex;
    flex-direction: column-reverse;
    gap: 2rem;

    .news {
        flex: 2;
        display: flex;
        flex-direction: column;
    }

    .appointments {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        .list {
            display: flex;
            flex-direction: column;
        }
    }

    .button-container {
        display: flex;
        justify-content: flex-end;
    }
}

@media (min-width: 992px) {
    .home-news {
        flex-direction: row;
        gap: 4rem;
    }
}

/*=================================*/
/*          Club summary           */
/*=================================*/

.club-summary {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    .column {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .column-outer {
        justify-content: center;
    }

    .column-inner {
        justify-content: space-between;

        img {
            width: 256px;
            display: none;
        }
    }

    .tile {
        background-color: var(--secondary);
        padding: 32px;
        display: flex;
        flex-direction: column;
        text-align: center;
    }
}

@media (min-width: 1200px) {
    .club-summary {
        flex-direction: row;
        gap: 4rem;

        h2 {
            display: none;
        }

        .column {
            gap: 4rem;
        }

        .column-inner img {
            display: block;
        }
    }
}

/*=================================*/
/*   Contact form over the footer  */
/*=================================*/

/* As in the old app: the form reaches into the enlarged footer (whose top padding makes room) */
@media (min-width: 992px) {
    body.footer-overlap main > .contact:last-child {
        position: relative;
        z-index: 1;
        margin-bottom: calc(-1 * (var(--section-gap) + 7.5rem));
    }

    body.footer-overlap main > .contact:last-child .contact-form {
        box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
    }
}

/*=================================*/
/*         Text with image         */
/*=================================*/

.text-image {
    display: flex;
    flex-direction: column;
    gap: 2rem;

    img {
        width: 100%;
        object-fit: cover;
    }

    .rte {
        flex: 1;
    }
}

@media (min-width: 992px) {
    .text-image {
        flex-direction: row;
        align-items: flex-start;
        gap: 4rem;

        img {
            width: 40%;
        }
    }

    .text-image.image-right {
        flex-direction: row-reverse;
    }
}

/*=================================*/
/*            Download             */
/*=================================*/

.download-block {
    display: flex;
}
