/* =====================================================
   KIDS AM DÖNBERG E.V.
   STARTSEITE
   ===================================================== */


/* =====================================================
   HERO
   ===================================================== */

.hero {
    min-height: 0;

    padding: 0 20px 38px;

    background-image:
        url("../../images/startseite/hero-spielplatz.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    width: 100%;
    min-width: 0;
    min-height: 0;

    display: flex;
    flex-direction: column;
}


/* Überschrift */

.hero-heading {
    padding-top: 20px;
}

.hero h1 {
    max-width: 290px;

    margin: 0 0 14px;

    color: var(--white);

    font-size: clamp(2.2rem, 10vw, 4rem);
    line-height: 1.05;

    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}

.hero-text {
    width: fit-content;
    max-width: 230px;

    margin: 0;
    padding: 8px 12px;

    color: var(--white);
    background-color: rgba(40, 40, 40, 0.55);

    border-radius: 8px;

    font-size: 1rem;
    font-weight: 500;
}


/* Aktionen */

.hero-bottom {
    margin-top: 32px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

    padding: 0 8px;
}

.hero-actions .button {
    width: 200px;
    max-width: 100%;
}

/* =====================================================
   PROJEKTVORSCHAU
   ===================================================== */

.project-preview {
    position: relative;

    margin-top: -18px;

    background-color: var(--background-light);

    border-radius: 28px 28px 0 0;
}

.project-image {
    margin: 18px 0 28px;
}

.project-image img {
    width: 100%;
}

.project-text {
    margin: 0 0 24px;

    line-height: 1.6;
}

/* =====================================================
   GEMEINSAM MÖGLICH MACHEN
   ===================================================== */

.get-involved {
    background-color: var(--white);
}

.involvement-icons {
    display: flex;
    justify-content: center;
    gap: 16px;

    margin: 24px 0;
}

.involvement-icons img {
    width: 64px;
    height: 64px;

    object-fit: contain;
}

/* =====================================================
   AKTUELLES – VORSCHAU
   ===================================================== */

.news-preview {
    background-color: var(--background-beige);
}

.news-card {
    overflow: hidden;

    width: 100%;
    max-width: 520px;

    margin-top: 32px;

    background-color: var(--white);

    border-radius: 24px;
}


/* Bild */

.news-image {
    display: block;
    overflow: hidden;

    width: 70%;
    margin-inline: auto;
}

.news-image img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;
}

/* Inhalt */

.news-content {
    padding: 22px;
}

.news-content time {
    display: block;

    margin-bottom: 8px;

    color: var(--green-text);

    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-content h3 {
    margin: 0 0 12px;

    color: var(--blue);

    font-size: 1.35rem;
    line-height: 1.2;
}

.news-content h3 a {
    color: inherit;

    text-decoration: none;
}

.news-content h3 a:hover {
    text-decoration: underline;
}

.news-content h3 a:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}

.news-content p {
    margin: 0 0 18px;

    line-height: 1.55;
}


/* Alle Neuigkeiten */

.news-all {
    display: flex;
    justify-content: center;

    margin-top: 28px;
}

.news-all .button {
    width: 100%;
    max-width: 520px;
    margin-inline: auto;

}


/* =====================================================
   NÄCHSTER TERMIN
   ===================================================== */

.home-events {
    background-color: var(--white);
}

.home-event {
    max-width: 760px;
    overflow: hidden;

    margin: 28px auto 0;

    background-color: var(--background-light);

    border-radius: 24px;
}

.home-event:nth-child(n + 2) {
    display: none;
}
.home-events-list {
    display: grid;
    gap: 24px;
}

.home-event-date {
    padding: 16px 22px;

    color: var(--white);
    background-color: var(--blue);

    font-size: 0.9rem;
    font-weight: 700;
}

.home-event-content {
    padding: 24px 22px 26px;
}

.home-event-content h3 {
    margin: 0 0 10px;

    color: var(--blue);

    font-size: 1.35rem;
    line-height: 1.2;
}

.home-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    margin: 0 0 16px;

    color: var(--green);

    font-size: 0.9rem;
    font-weight: 700;
}

.home-event-description {
    margin: 0;

    line-height: 1.6;
}


/* Termin-Link */

.home-event-detail {
    margin-top: 18px;
}


/* Alle Termine */

.home-events-more {
    display: flex;
    justify-content: center;

    margin-top: 24px;
}

.home-events-more .button {
    width: 100%;
    max-width: 520px;

    margin-inline: auto;
}

/* =====================================================
   ÜBER UNS – VORSCHAU
   ===================================================== */

.about-preview {
    background-color: var(--white);
}

.about-text {
    margin: 0 0 28px;

    font-size: 1.05rem;
    line-height: 1.6;
}

.about-action {
    display: flex;
    justify-content: center;
}

.button-about {
    color: var(--white);
    background-color: var(--light-blue);
}


/* =====================================================
   TABLET
   ===================================================== */

@media (min-width: 768px) {

    /* Hero */

    .hero {
        min-height: 600px;

        padding: 48px 32px;
    }

    .hero-content {
        max-width: var(--page-width);

        margin-inline: auto;
    }

    .hero-bottom {
        margin-top: 100px;
    }

    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }

    .hero-actions .button {
        width: auto;
        min-width: 165px;
    }

    /* Aktuelles */

    .news-card {
        max-width: 520px;

        margin-inline: auto;
    }

    .news-image {
        width: 80%;
    }

    /* Nächster Termin */

    .home-event {
        display: grid;
        grid-template-columns: 190px 1fr;
    }

    .home-event-date {
        display: flex;
        align-items: center;

        padding: 28px;
    }

    .home-event-content {
        padding: 28px 32px;
    }

    .home-event-content h3 {
        font-size: 1.5rem;
    }

}


/* =====================================================
   DESKTOP
   ===================================================== */

@media (min-width: 1000px) {

    /* Hero */

    .hero {
        min-height: 200px;
    }

    .hero-content {
    min-height: 200px;
    }

    .hero-heading {
        padding-top: 30px;
    }

    .hero h1 {
        max-width: 600px;

        font-size: 4rem;
        line-height: 1.05;
    }

    .hero-text {
        max-width: 360px;

        font-size: 1.15rem;
    }

    .hero-text br {
        display: none;
    }

    .hero-bottom {
    margin-top: 32px;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    /* Project Preview */

    .project-preview .section-content {
        display: grid;
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
        grid-template-areas:
            "text image"
            "button image";
        column-gap: 64px;
        row-gap: 24px;
        align-items: center;
    }

    .project-preview-text {
        grid-area: text;
        align-self: end;
    }

    .project-image {
        grid-area: image;
        align-self: center;
    }

    .project-preview .button {
        grid-area: button;
        justify-self: start;
        align-self: start;

        margin: 0;
    }

    /* Aktuelles */

    .news-card {
        display: grid;
        grid-template-columns: 250px minmax(0, 1fr);
        align-items: center;

        max-width: 800px;

        margin-inline: auto;
    }

    .news-image {
        width: 100%;
        margin: 0;
    }

    .news-content {
        padding: 32px;
    }

    /* Termine */

    .home-event {
        grid-template-columns: 130px minmax(0, 1fr);

        max-width: none;
        margin-top: 0;
    }

    .home-events-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        max-width: 1200px;
        margin-inline: auto;
    }

    .home-event:nth-child(n + 2) {
        display: grid;
    }
}

