/* ===== Job-Liste ===== */
.job-liste {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30%, 0fr));
    gap: 2rem;
    padding: 1rem 0;
    place-content: center;
}

.job-item {
    overflow: hidden;
    transition: transform 0.3s ease;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid;
}

.job-item:hover {
    transform: translateY(-5px);
}

.job-item .job-thumb {
    width: 100%;
    overflow: hidden;
    display: block;
}

.job-item img {
    width: 100%;
    max-height: 220px;
    min-height: 218px;
    object-fit: cover;
    display: block;
}

.job-content {
    padding: 10px 10px 20px 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.job-item h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.job-content a {
    color: #000;
}

.job-item p {
    margin: 0.5rem 0;
    color: #3d5c63;
}

.job-item .teaser {
    color: #666;
    font-weight: 400;
    margin-bottom: 1rem;
}

.job-cat {
    margin: 0 0 0.75rem 0 !important;
}

.job-cat-tag {
    display: inline-block;
    background: #3d5c63;
    color: #fff;
    padding: 3px 10px;
    font-size: 0.8rem;
    margin-right: 5px;
    border-radius: 2px;
}

.job-button {
    display: inline-block;
    align-self: flex-start;
    margin-top: auto;
    padding: 10px 22px;
    background: var(--e-global-color-primary, #d0661c);
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.job-button:hover {
    opacity: 0.85;
}

/* ===== Filter ===== */
.jobs-filter-wrapper {
    position: relative;
    overflow: hidden;
}

.jobs-filter {
    padding: 30px 0 15px 0;
}

.jobs-filter .filter-item {
    border: 2px solid #3d5c63;
    color: #3d5c63;
    padding: 8px 18px;
    margin-right: 15px;
    margin-bottom: 15px;
    display: inline-block;
    text-decoration: none;
    transition: all 0.2s ease;
}

.jobs-filter .filter-item:hover,
.jobs-filter .filter-item.active {
    border-color: var(--e-global-color-primary, #d0661c);
    background: var(--e-global-color-primary, #d0661c);
    color: #fff;
}

/* ===== Detail-Widgets ===== */
.job-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--e-global-color-primary, #d0661c);
    font-weight: 600;
    font-style: italic;
}

.job-section {
    margin-bottom: 2.5rem;
}

.job-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1b;
    margin-bottom: 1rem;
}

.job-section-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
}

.job-section-content p {
    margin-bottom: 1rem;
}

.job-section-content ul {
    list-style: none;
    padding-left: 0;
}

.job-section-content ul li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.5rem;
}

.job-section-content ul li:before {
    content: "";
    position: absolute;
    top: 0.45rem;
    left: 0;
    height: 0.9em;
    width: 0.9em;
    background: var(--e-global-color-primary, #d0661c);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* ===== Bild-Container ===== */
.rls-fsimg {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.rls-fsimg.ratio-16-9 { padding-bottom: 56.25%; }
.rls-fsimg.ratio-4-3  { padding-bottom: 75%; }
.rls-fsimg.ratio-1-1  { padding-bottom: 100%; }
.rls-fsimg.ratio-3-2  { padding-bottom: 66.66%; }

.rls-fsimg .job-featured-image,
.rls-fsimg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.job-image-placeholder {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    min-height: 200px;
}

.job-image-placeholder span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ===== Single-Layout (Fallback-Template) ===== */
.job-single {
    padding: 4rem 0;
}

.job-single .article-header .title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--e-global-color-primary, #d0661c);
    font-weight: 600;
    font-style: italic;
}

.job-single .content-area {
    margin-top: 3rem;
}

/* Grid System */
.cols-l {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}

.col-l-50 {
    width: 50%;
    padding: 15px;
    position: relative;
}

.pull { order: -1; }
.push { order: 1; }

.rls-pagebounds {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

@media (min-width: 768px) {
    .rls-pagebounds {
        padding: 0 2rem;
    }
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .col-l-50 {
        width: 100%;
    }

    .pull, .push {
        order: 0;
    }

    .job-single {
        padding: 2rem 0;
    }

    .job-title,
    .job-single .article-header .title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .job-liste {
        grid-template-columns: 1fr;
    }
}

/* ===== Animationen ===== */
.js-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}
