/* Flyer ("Demnächst" auf der Startseite) und Terminliste. */
.flyer-bereich {
    margin-bottom: var(--abstand-xl);
}

/* Handy: seitlich wischbare Reihe wie im WhatsApp-Status, rastet pro Flyer ein */
.flyer-reihe {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(75%, 16rem);
    gap: var(--abstand-m);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--abstand-s);
    margin-bottom: var(--abstand-m);
}

.flyer-karte {
    margin: 0;
    scroll-snap-align: start;
    background: var(--farbe-weiss);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.12);
}

.flyer-karte__bild img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.flyer-karte figcaption {
    padding: var(--abstand-s) var(--abstand-m) var(--abstand-m);
    font-size: calc(0.95 * var(--schriftgroesse-basis));
}

/* Terminliste */
.termine-monat {
    font-size: var(--schriftgroesse-gross);
    margin-top: var(--abstand-l);
}

.termin-liste {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--abstand-s);
}

.termin {
    display: flex;
    gap: var(--abstand-m);
    align-items: flex-start;
    background: var(--farbe-weiss);
    border-left: 4px solid var(--farbe-gruen);
    border-radius: var(--radius);
    padding: var(--abstand-m);
}

.termin__text {
    flex: 1;
}

.termin__text p {
    margin: 0;
}

.termin__zeit {
    color: var(--farbe-text-leise);
    font-size: calc(0.95 * var(--schriftgroesse-basis));
}

.termin__titel {
    font-weight: 700;
    font-size: calc(1.05 * var(--schriftgroesse-basis));
}

.termin__flyer img {
    display: block;
    width: 5rem;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 0.25rem;
}

/* Ab Tablet: Flyer als Raster statt Wischreihe */
@media (min-width: 48em) {
    .flyer-reihe {
        grid-auto-flow: row;
        grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
        overflow-x: visible;
    }

    .termin__flyer img {
        width: 7rem;
    }
}
