/**
 * CONTAO 5.3x JOBS - 3 COLUMN LAYOUT
 * + Viewport Scroll-Animation
 * + Details Button mit Arrow Icon
 */

.jobs-list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

@media (max-width: 767px) {
    .jobs-list-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* SCROLL ANIMATION */
@keyframes slideInFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.job-item {
    opacity: 0;
}

.job-item.visible {
    animation: slideInFade 0.6s ease-out forwards;
}

.job-item.visible:nth-child(1) {
    animation-delay: 0.1s;
}

.job-item.visible:nth-child(2) {
    animation-delay: 0.2s;
}

.job-item.visible:nth-child(3) {
    animation-delay: 0.3s;
}

.job-item.visible:nth-child(4) {
    animation-delay: 0.4s;
}

.job-item.visible:nth-child(5) {
    animation-delay: 0.5s;
}

.job-item.visible:nth-child(n+6) {
    animation-delay: 0.6s;
}

/* CARD */
.layout_default.block {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 30px;
    background: transparent;
    border: none;
    border-radius: 30px;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.layout_default.block:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

@media (max-width: 767px) {
    .layout_default.block {
        grid-template-columns: 1fr;
        gap: 1rem;
        align-items: stretch;
    }
}

/* IMAGE / LOGO */

.layout_default .image {
    max-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.layout_default .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 767px) {

}

/* CONTENT COLUMN */
.layout_default .first-column {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0;
}

/* COMPANY */
.layout_default .organizations {
    font-size: 0.8rem;
    font-weight: 400;
    margin: 0;
    padding: 0;
    border: none;
    line-height: 1.2;
}

/* TITLE */
.layout_default .title {
    margin: 0;
    padding: 0;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
}

.layout_default .title a {
    color: var(--accentColor);
    text-decoration: none;
    transition: opacity 0.2s;
}

.layout_default .title a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* LOCATION */
.layout_default .job-location {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.layout_default .job-location::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    flex-shrink: 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    content: "\f3c5";
}

/* HIDDEN */
.layout_default .job-teaser,
.layout_default .publication-date {
    display: none;
}

/* RIGHT COLUMN - TAGS & BUTTON */
.layout_default .second-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
    background: transparent;
    border: none;
    padding: 0;
}

@media (max-width: 767px) {
    .layout_default .second-column {
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
    }
}

/* EMPLOYMENT TYPES CONTAINER */
.employment-types {
    display: flex;
    flex-direction: row;
    gap: 0.4rem;
    align-items: flex-end;
}

@media (max-width: 767px) {
    .employment-types {
        align-items: flex-start;
        gap: 0.3rem;
        flex: 1;
    }
}

/* EMPLOYMENT TYPE TAGS */
.employment-type-tag {
    padding: 0.1rem 0.7rem;
    border: 1px solid #ccc;
    border-radius: 30px;
    font-size: 0.65rem;
    font-weight: 500;
    background: transparent;
    color: #333;
    white-space: nowrap;
    display: inline-block;
}

/* DETAILS LINK - MIT ARROW ICON */
.details-link {
    padding: 0.3rem 1.2rem;
    border-radius: var(--menu-highlight-border-radius);
    border-width: var(--menu-highlight-border-width);
    border-style: solid;
    color: var(--menu-highlight-color);
    background-color: var(--menu-highlight-bg-color);
    border-color: var(--menu-highlight-border-color);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    text-transform: uppercase;
    width: max-content;
    justify-content: center;
}

.details-link::after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f054";
    font-size: 0.65rem;
    transition: all 0.3s ease;
}

.details-link:hover {
    opacity: 0.85;
    padding-left: 1.4rem;
    padding-right: 1.4rem;
}

.details-link:hover::after {
    transform: translateX(3px);
}

/* SORTING */
.sorting-wrapper {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.sorting-wrapper label {
    font-weight: 600;
    margin-right: 1rem;
    display: inline-block;
}

.sorting-wrapper select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background: white;
    font-size: 0.95rem;
    cursor: pointer;
}

.sorting-wrapper select:hover,
.sorting-wrapper select:focus {
    border-color: var(--accentColor);
    outline: none;
}

@media (max-width: 767px) {
    .sorting-wrapper {
        display: flex;
        flex-direction: column;
    }

    .sorting-wrapper label {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }

    .sorting-wrapper select {
        width: 100%;
    }
}

/* PAGINATION */
.pagination-wrapper {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.pagination-wrapper a,
.pagination-wrapper span {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    margin: 0.25rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination-wrapper a {
    background: white;
    color: var(--accentColor);
}

.pagination-wrapper a:hover {
    background: var(--accentColor);
    color: white;
    border-color: var(--accentColor);
}

.pagination-wrapper span.current {
    background: var(--accentColor);
    color: white;
    border-color: var(--accentColor);
    font-weight: 600;
}

/* EMPTY */
.empty {
    text-align: center;
    padding: 3rem 1rem;
    font-size: 1.1rem;
}

/**
 * CONTAO 5.3x JOBS FILTER
 * Layout + Loading-Animation
 */
/* FILTER FORM */
.module-plenta-jobs-basic-filter form > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* HEADLINES VERSTECKEN */
.module-plenta-jobs-basic-filter .widget-html {
    position: absolute;
    visibility: hidden;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

/* CHECKBOX-BOXEN */
.module-plenta-jobs-basic-filter .widget-checkbox {
    background-color: var(--accentColor);
    color: white;
    border-radius: 30px;
    padding: 1.5rem;
    margin: 0;
    position: relative;
}

/* HEADLINE TEXT VOR CHECKBOXES */
.module-plenta-jobs-basic-filter .widget-checkbox:nth-of-type(2)::before {
    content: "STELLENARTEN";
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: "Advent Pro";
    text-transform: uppercase;
    color: white;
}

.module-plenta-jobs-basic-filter .widget-checkbox:nth-of-type(4)::before {
    content: "STANDORTE";
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: "Advent Pro";
    text-transform: uppercase;
    color: white;
}

/* CHECKBOX CONTAINER */
.checkbox_container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    border: none;
    margin: 0;
    padding: 0;
}

.checkbox_container span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* CUSTOM CHECKBOXES */
/* CUSTOM CHECKBOXES */
.checkbox_container input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid white;
    border-radius: 3px;
    cursor: pointer;
    background-color: transparent;
    transition: all 0.2s ease;
    margin: 0;
    padding: 0;
    background: var(--bgColorGray);
}

.checkbox_container input[type="checkbox"]:checked {
    background-color: var(--secondColor);
    border-color: var(--secondColor);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="white" d="M13.78 4.22a.75.75 0 010 1.06l-7.5 7.5a.75.75 0 01-1.06 0l-3.5-3.5a.75.75 0 011.06-1.06L5.5 10.94l6.72-6.72a.75.75 0 011.06 0z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

.module-plenta-jobs-basic-filter .checkbox_container input[type="checkbox"]:hover {
    border-color: white!important;
    box-shadow: none!important;
}

.checkbox_container input[type="checkbox"]:focus {
    outline: none;
}

.checkbox_container label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: white;
    font-weight: 500;
    margin: 0;
    padding: 0;
}

.item-counter {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-left: 0;
    margin-bottom: 0 !important;
}

@media (max-width: 767px) {
    .module-plenta-jobs-basic-filter form {
        grid-template-columns: 1fr;
    }
}

/* LOADING OVERLAY */
.jobs-filter-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.jobs-filter-loading.active {
    opacity: 1;
    pointer-events: all;
}

/* SPINNER */
.jobs-filter-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--accentColor);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* BLUR EFFECT */
.jobs-filter-blur {
    filter: blur(5px);
    pointer-events: none;
}

@media (max-width: 767px) {
    .checkbox_container {
        flex-direction: column;
        gap: 0.75rem;
    }
}
