/*
 * Event list (Partials/News/EventList.html, Partials/List/ItemEvents.html): filter bar (classes of the job search bar,
 * JobSearchBar.css), number of events, event cards (".eventlist" in main.css), "Load more".
 */
.c-eventlist__bar.c-jobsearchbar {
    margin-top: 0;
}

.c-eventlist__count {
    margin: 3rem 0 2.5rem;
}

.c-eventlist__items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.c-eventlist__item[hidden],
.c-eventlist__none[hidden],
.c-eventlist__load-more[hidden] {
    display: none;
}

.c-eventlist__item .news .article.eventlist,
.c-eventlist__item .article.eventlist {
    margin-bottom: 0 !important;
}

.c-eventlist__none {
    text-align: center;
}

/* card: green date block (left), infos (right) with the category as pill in the upper right corner */
.c-eventlist__item .eventlist .inner {
    min-height: 15rem;
}

.c-eventlist__item .eventlist .thedate {
    flex: 0 0 20%;
    min-width: 14rem;
}

.c-eventlist__item .eventlist .eventinfos {
    position: relative;
    flex: 1 1 auto;
    padding: 2rem 3rem;
    align-self: center;
}

.c-eventlist__categories {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .5rem;
    max-width: 70%;
}

.c-eventlist__category {
    display: inline-block;
    padding: .6rem 1.1rem;
    border-radius: 1.5rem;
    background: #e5e5e5;
    color: #000;
    font-size: .9rem;
    font-weight: bold;
    line-height: 1.2;
}

.c-eventlist__item .eventlist .teaser-text h3 {
    margin: 0 0 1.25rem;
    font-size: 1.6rem;
}

.c-eventlist__item .eventlist .teaser-text [itemprop="description"] {
    max-width: 52rem;
    font-size: .95rem;
    line-height: 1.6;
}

.c-eventlist__item .eventlist .locationname {
    margin-top: 1rem;
    font-size: .9rem;
    font-weight: bold;
}

.c-eventlist__more {
    margin-top: 2.5rem;
    text-align: center;
}

.c-eventlist__load-more {
    padding: .55rem 1.25rem;
    border: 0;
    border-radius: 2rem;
    background: #e5e5e5;
    color: #000;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
}

.c-eventlist__load-more:hover,
.c-eventlist__load-more:focus-visible {
    background: #d6d6d6;
}

@media (max-width: 767.98px) {
    .c-eventlist__item .eventlist .eventinfos {
        padding: 1.5rem 1.25rem 2rem;
    }

    .c-eventlist__categories {
        position: static;
        justify-content: flex-start;
        max-width: none;
        margin-bottom: 1rem;
    }
}

/* filter bar directly below the header (like the job search bar), field as wide as possible */
.section:has(.c-eventlist) {
    margin-top: -2px;
}

.frame:has(> .frame-container .c-eventlist),
.frame:has(.c-eventlist) {
    padding-top: 0 !important;
}

.c-eventlist__bar .c-jobsearchbar__text {
    flex: 1 1 15rem;
}

/* pill with a small distance to the corner of the card */
.c-eventlist__categories {
    top: .6rem;
    right: .6rem;
}

/* teaser on the start page: "Show all events +" is a link styled like the button */
.c-eventlist__all {
    display: inline-block;
    text-decoration: none;
}

.c-eventlist__all:hover,
.c-eventlist__all:focus-visible {
    background: #d6d6d6;
    color: #000;
}

/* teaser on the start page: more space between the headline and the first event and below the button (footer) */
.c-eventlist--teaser {
    margin-top: 3rem;
    margin-bottom: 5rem;
}
