.job_filters {
    display: flex;
    gap: var(--small-y-padding);
    flex-direction: column;
    align-items: flex-start;
}

.block-padding.job_overview {
    padding-bottom: 0;
}

.checkbox-button,
.radio-button {
    gap: var(--gap);
    /* border: 2px solid var(--primary);
     */
    box-shadow: var(--box-shadow);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    background-color: var(--white);
}

.checkbox-button {
    border: 2px solid var(--white);
}

.checkbox-button.active {
    border: 2px solid var(--secondary);
}

.checkbox-button:not(.active):hover {
    border: 2px solid var(--primary);
}

.job_titles {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--gap);
    /* height: -webkit-fill-available; */
}
.job_titles .radio-button span {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    text-align: left;
    padding-left: 3rem;
    padding-right: 3rem;
}

.checkbox-button label,
.radio-button label {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    color: var(--primary);
    cursor: pointer;
    line-height: 1;
}

.checkbox-button label {
    padding: 1rem;
}

.checkbox-button label span,
.radio-button label span {
    text-align: center;
    /* padding: 3px 0; */
    padding: 0;
    display: block;
    font-size: 1.6rem;
    font-weight: bold;
    margin: auto;
}
.checkbox-button label input,
.radio-button label input {
    position: absolute;
    display: none;
}
.checkbox-button label input + span,
.radio-button label input + span {
    color: var(--primary);
    padding: 1em var(--gap);
    font-weight: bold;
}
.checkbox-button input:checked + span,
.radio-button input:checked + span {
    border: 2px solid var(--secondary);
    /* color: var(--secondary); */
}
.radio-button input + span {
    border: 2px solid var(--white);
}
.radio-button:hover input:not(:checked) + span {
    border: 2px solid var(--primary);
}
.checkbox-button input:checked ~ span {
    /* color: var(--secondary); */
}

.checkbox-button {
    min-height: calc(14.6rem + var(--gap));
}
.radio-button label input + span {
    min-height: 7.3rem;
}

.checkbox-button img {
    width: 100%;
    height: 10rem;
    object-fit: contain;
}

.grid-job-filter {
    display: grid;
    grid-template-columns: 5fr 7fr;
    grid-template-columns: minmax(30rem, 2fr) var(--job_specialties_fr, 3fr);
    grid-gap: var(--gap);
    width: 100%;
    align-items: start;
}
.grid-job-filter .job_specialties {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
    grid-gap: var(--gap);
    grid-auto-rows: 1fr;
    transition: all .3s ease;
}

.grid-job-filter .job_specialties.inactive {
    opacity: .3;
    pointer-events: none;
}

/* DivTable.com */
.job-wrapper .grid-job:not(.table-head) {
    background-color: var(--white);
    display: grid;
}

.accordion-entry {
    display: none;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    padding: var(--small-y-padding) calc(var(--column) + var(--gap));
    width: 100%;
}

.accordion-entry.active {
    display: block;
}

.job-wrapper {
    display: grid;
    gap: var(--gap);
    width: 100%;
    justify-content: stretch;
}

.grid-job {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr var(--column);
    grid-gap: var(--gap);
    padding: 0;
    background-color: var(--white);
    justify-content: start;
    box-shadow: var(--box-shadow);
    width: 100%;
}

.grid-job > * {
    padding: var(--gap) 0;
    line-height: 1.2;
}

.grid-job > :first-child {
    /* width: 3; */
    padding-left: 3rem;
    font-weight: var(--bold, 700);
}

.grid-job > :last-child {
    /* width: 3; */
    /* padding-right: 3rem; */
}

.grid-job.job-entry {
    position: relative;
    cursor: pointer;
    min-height: 7.2rem;
}

.grid-job.job-entry:before {
    content: '';
    border: .2rem solid var(--primary);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    right: 4.5rem;
    overflow: hidden;
    z-index: 2;
    border-top-color: var(--secondary);
    transform: translate(50%, -50%) rotate(45deg);
}
.grid-job.job-entry:after {
    content: '';
    border: .2rem solid var(--primary);
    border-right: none;
    border-top: none;
    width: 1rem;
    height: 1rem;
    position: absolute;
    top: 50%;
    right: 4.5rem;
    overflow: hidden;
    z-index: 2;
    transform: translate(50%, -75%) rotate(-45deg);
    transition: all .3s ease;
}

a.grid-job.job-entry {
    font-weight: normal;
}

a.grid-job.job-entry:after {
    content: '+';
    border: none;
    width: 3rem;
    height: 3rem;
    font-size: 3rem;
    transform: translate(50%, -50%) rotate(0deg);
    line-height: 1;
    text-align: center;
    font-weight: 400;
}

.grid-job.job-entry.open:after {
    transform: translate(50%, -25%) rotate(135deg);
}

.grid-job.job-entry.open + .active {
    margin-top: calc(0px - var(--gap));
}

.grid-job.table-head {
    font-weight: bold;
    background-color: unset;
    box-shadow: unset;
    border-bottom: 0.5rem solid var(--secondary);
    margin-bottom: 2em;
}

.job_filters .error-message {
    color: red;
}

.job-wrapper .wp_core_block:before {
    content: none;
}

.job-wrapper .wp_core_block {
    padding-left: 0;
    padding-right: 0;
}

.job-wrapper .accordion-entry .text-content {
    /* gap: 0; */
    align-items: flex-start;
    width: 100%;
}

.job-wrpapper-not-found .headline {
    text-align: center;
    /* font-size: 1.5em; */
    margin-bottom: var(--small-y-padding);
}

.job-wrpapper-not-found .headline:after {
    content: none;
}

.job_overview + .text-image {
    margin-top: var(--y-padding);
}

@media (max-width: 1780px) and (min-width: 1580px) {
    .grid-job-filter .job_specialties {
        grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    }
}

@media (max-width: 1380px) {
    .grid-job-filter .job_specialties {
        grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    }
}

@media (max-width: 768px) {
    .job_filters {
        padding-left: var(--mobile-padding);
        padding-right: var(--mobile-padding);
    }
    .grid-job-filter {
        margin-left: calc(0px - var(--padding));
        margin-right: calc(0px - var(--padding));
        width: calc(100% + var(--padding) * 2);
    }

    .block-padding.job_overview {
        padding-top: var(--small-y-padding);
        padding-bottom: var(--small-y-padding);
    }

    .job-wrapper .wp_core_block {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .grid-job-filter {
        grid-template-columns: 1fr;
    }

    .grid-job > :first-child,
    .grid-job > * {
        padding: 0;
    }

    .grid-job.table-head {
        display: none;
    }

    .job-wrapper .grid-job:not(.table-head) {
        padding: 1em calc(var(--padding) + 3rem) 1em var(--padding);
    }
    .job-wrapper,
    .grid-job,
    .job-wrapper .grid-job:not(.table-head) {
        display: flex;
        flex-direction: column;
        gap: .5em;
        align-items: flex-start;
        width: 100%;
    }

    .grid-job.job-entry:before,
    .grid-job.job-entry:after {
        right: calc((var(--padding) + 3rem) / 2);
        top: calc((var(--padding) + 3rem) / 2);
    }

    .radio-button label input + span,
    .checkbox-button {
        min-height: 0;
    }
    
    .checkbox-button label span, .radio-button label span {
        font-size: var(--text-size);
    }

    .checkbox-button img {
        margin-bottom: .5em;
    }

    .grid-job-filter .job_specialties {
        grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
        grid-auto-rows: auto;
    }

    .checkbox-button img {
        height: auto;
    }

    .job_titles .radio-button span,
    .accordion-entry {
        padding-left: var(--padding);
        padding-right: var(--padding);
    }
        
}
