.jobs {
    font-family: Montserrat;
}

.job-title:hover {
    color: #d4007f;
    cursor: pointer;
}

.job-inserate-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 2em;
}

.job-inserat {
    background-color: #f2efeb !important;
    border-radius: 5px;
    padding: 20px;
    border: 1px solid #e6e6e6;
}

.job-inserat:nth-child(even) {
    background-color: white !important;
}

.job-inserat .job-header {
    display: flex;
    align-items: baseline;
}

.job-inserat .job-title {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.3em;
    flex-grow: 1;
}

.job-inserat .job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85em;
    color: #666;
}

.job-inserat .job-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 3px;
    margin-bottom: 5px;
}

.job-inserat .job-meta i {
    font-size: 1em;
    color: #555;
    margin-right: 3px;
}

.job-inserat .job-description {
    padding-top: 1em;
    border-top: 1px solid #eee;
    font-size: 0.95em;
    color: #444;
    line-height: 1.6;
}

.job-inserat .no-jobs-found {
    padding: 1em;
    font-style: italic;
    color: #777;
    background-color: #f2efeb !important;
    border-radius: 5px;
    border: 1px solid #eee;
}

.job-description .job-featured-image {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.job-description .job-featured-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* Jobfilter */
.job-filter-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    font-size: 16px;
    font-weight: normal;
}

.job-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Einheitliche Filtertitel */
.job-filter-container .filter-group label.filter-title {
    font-size: 1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

/* Gruppenstruktur */
.filter-group {
    display: flex;
    flex-direction: column;
}

/* Checkboxen */
.filter-group select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95em;
    color: #666;
    background-color: #fff;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="#666" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position-x: 98%;
    background-position-y: 50%;
    cursor: pointer;
}

.filter-group select:focus {
    border-color: #d4007f;
    outline: none;
    box-shadow: 0 0 3px rgba(212, 0, 127, 0.3);
}

/* Pensum Slider */
.pensum-filter .slider-wrapper {
    margin-top: 5px;
}

#pensum-slider {
    margin-top: 5px;
}

#pensum-slider .noUi-target {
    background: #ddd;
    border-radius: 5px;
    height: 8px;
    border: none;
    box-shadow: none;
    position: relative;
}

#pensum-slider .noUi-connect {
    background: #d4007f;
}

#pensum-slider .noUi-handle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #d4007f;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    top: 50%;
    transform: translateY(-6%) translateX(-40%);
    cursor: pointer;
    position: absolute;
}

#pensum-slider .noUi-handle::before,
#pensum-slider .noUi-handle::after {
    display: none;
}

.pensum-filter .range-values {
    font-size: 0.9em;
    color: #666;
    margin-top: 8px;
}

/* Filter-Button */
#apply-job-filters {
    margin-top: 18px;
    margin-left: 0;
    margin-right: auto;
    display: block;
    width: fit-content;
    background-color: #d4007f;
    color: #fff;
    border: none;
    padding: 12px 45px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#apply-job-filters:hover {
    background-color: #b20066;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .job-filter-container {
        margin-left: auto;
        margin-right: auto;
        display: block;
        max-width: 100%;
        border-radius: 8px;
        border: 1px solid #ddd;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
        background-color: #ffffff;
        margin-top: 10px;
    }

    .job-filter-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    #apply-job-filters {
        width: 100%;
    }

    .job-inserate-wrapper {
        margin-left: auto;
        margin-right: auto;
        display: block;
        max-width: 100%;
        margin-bottom: 0;
    }
    .job-filter-container .filter-group label {
        font-size: 0.9em;
    }

    .filter-group select {
        font-size: 0.85em;
        padding: 8px;
    }

    .pensum-filter .range-values {
        font-size: 0.8em;
    }

    #apply-job-filters {
        font-size: 0.9em;
        padding: 10px 30px;
    }

    .job-inserat .job-title {
        font-size: 1.1em;
    }

    .job-inserat .job-meta {
        font-size: 0.8em;
    }

    .job-inserat .job-description {
        font-size: 0.9em;
    }

    .job-inserat {
        padding: 15px;
        margin-bottom: 0;
    }

    .job-inserat .job-meta {
        gap: 5px;
    }

    .job-inserat .job-meta span {
        padding: 3px 6px;
        margin-bottom: 3px;
    }
}

@media (max-width: 480px) {
    .job-inserat .job-title {
        font-size: 1em;
    }

    .job-inserat .job-meta {
        font-size: 0.75em;
    }

    .job-inserat .job-description {
        font-size: 0.85em;
    }

    .job-inserat {
        padding: 10px;
        margin-bottom: 0;
    }

    .job-inserat .job-meta span {
        display: block;
    }
}
