/* Filter-Formular */
.messe-termine-facets {
    width: 25%;
    color: #333!important;
}

.messe-facets-grid {
    display: grid;
    gap: 20px 20px;
}


.wpb_wrapper:has(>.messe-termine-facets),.messe-termin-archive-wrapper{
    display: flex!important;
    justify-content: space-between;
}

.messe-facet strong {
    display: inline-block;
}

.messe-facet input[type="text"],
.messe-facet select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: solid 2px #f5f5f5;
    border-radius: 4px;
    padding: 10px 10px;
    background: #fff!important;
    margin-top: 5px;
}

.messe-facet-checkbox {
    display: block;
    margin-bottom: 5px;
    margin-top: 5px;
}

.messe-facet-checkbox input[type="checkbox"]{
    margin-top: -3px!important;
}

.messe-facets-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.messe-facets-submit {
    cursor: pointer;
    width: 100%;
    background-color: #581D74;
    color: #fff!important;
    border-radius: 4px;
    font-weight: 500;
}

.messe-facets-submit:hover {
    color: #666;
}

.messe-facets-reset{
    text-align: center;
    width:100%;
}

/* Liste der Messetermine */
.messe-termine-liste {
    display: grid;
    gap: 20px;
    width: 70%!important;
    max-height: 65vh;
    padding: 0 20px;
    overflow-y: scroll;
    padding-bottom: 40px;
}

.messe-termin-item {
    padding: 20px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 0 16px #00000026;

}
.messe-termin-item:hover {
    color: #fff!important;
    background-color: #581D74;
    cursor: pointer;
}
.messe-termin-item:hover {
    color: #fff!important;
    background-color: #581D74;
    cursor: pointer;
}

.messe-termin-title {
    color: #581D74;
    margin: 0 0 10px;
}
.messe-termin-item:hover .messe-termin-title, .messe-termin-item:hover h3{
    color: #fff!important;
}

.messe-termin-filter {
    margin-bottom: 10px;
    opacity: 1;
}

.messe-termin-meta {
    margin-bottom: 10px;
}

.messe-termin-meta > div {
    margin-bottom: 10px;
}

.messe-termin-link a {
    text-decoration: underline;
}

.messe-termin-content {
    margin-top: 6px;
}

.messe-termine-empty {
    margin: 0;
}
/*single-messe template*/
body.post-type-archive-messen .parent_container, body.messen-template-default .parent_container{
 display: none!important;
}
 .messen-header{
    padding: 20px 0px 0px 0px;
}
.messen-details
{
    padding: 0 0 20px 0;
}

.messe-archive-header, .messe-termin-archive-wrapper{
 padding: 40px 0!important;
}

.messe-facets-label{
    font-size: 1.2em;
    font-weight: 500;
}

@media (max-width: 998px) {
    .messe-termin-archive-wrapper{
        display: block!important;
        padding: 20px 0!important;
    }

    .messe-termine-facets {
    padding: 0 20px!important;
    width: 90%!important;
    }
    .messe-termine-liste{
        
        padding: 40px 20px!important;
        width: 90%!important;
        max-height: none;
    }
    .messe-facets-grid {
        grid-auto-flow: column;
        display: block;
    }
}