/**
 * NVBW Job-Manager Styles
 * Angelehnt an Newsticker/Berichte Design
 */

.nvbw-jobs-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

/* Filter-Bereich */
.nvbw-jobs-filter {
    background: #F6EFE2;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nvbw-jobs-filter label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.nvbw-jobs-filter select {
    padding: 10px 15px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    max-width: 400px;
    transition: border-color 0.3s ease;
}

.nvbw-jobs-filter select:hover,
.nvbw-jobs-filter select:focus {
    border-color: #007cba;
    outline: none;
}

/* Loading-Indikator */
.nvbw-filter-loading {
    color: #007cba;
    font-size: 13px;
    font-weight: 500;
    margin-top: 5px;
}

/* Alte Form-Klasse entfernen (wird nicht mehr gebraucht) */
.nvbw-filter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nvbw-filter-form label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.nvbw-filter-form select {
    padding: 10px 15px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    max-width: 400px;
    transition: border-color 0.3s ease;
}

.nvbw-filter-form select:hover,
.nvbw-filter-form select:focus {
    border-color: #007cba;
    outline: none;
}

/* Jobs-Liste */
.nvbw-jobs-list {
    margin-top: 20px;
    transition: opacity 0.3s ease;
}

/* Fehlermeldung */
.nvbw-error {
    color: #d63638;
    text-align: center;
    padding: 20px;
    background: #fcf0f1;
    border-radius: 4px;
    border: 1px solid #d63638;
}

/* Einzelner Job-Eintrag - ähnlich wie news-entry/berichte-entry */
.nvbw-job-entry {
    margin-bottom: 30px;
    padding-bottom: 20px;
}

.nvbw-job-entry:last-child .nvbw-job-divider {
    display: none;
}

/* Datum - secundaryText Stil wie bei Newsticker */
.nvbw-job-date.secundaryText {
    color: #666;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 400;
}

/* Titel */
.nvbw-job-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

/* Anstellungsart */
.nvbw-job-category {
    color: #555;
    font-size: 14px;
    margin-bottom: 15px;
}

.nvbw-job-category strong {
    font-weight: 600;
    color: #333;
}

/* Job-Inhalt */
.nvbw-job-content {
    color: #333;
    font-size: 15px;
    line-height: 1.6;
    margin-top: 15px;
}

.nvbw-job-content p {
    margin-bottom: 12px;
}

.nvbw-job-content a {
    color: #007cba;
    text-decoration: underline;
}

.nvbw-job-content a:hover {
    color: #005a87;
}

/* Trennlinie zwischen Jobs */
.nvbw-job-divider {
    border-bottom: 1px solid #e0e0e0;
    margin-top: 20px;
}

/* Keine Jobs Nachricht */
.nvbw-no-jobs {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
    background: #F6EFE2;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nvbw-jobs-filter {
        padding: 15px;
    }

    .nvbw-filter-form select {
        max-width: 100%;
    }

    .nvbw-job-title {
        font-size: 18px;
    }

    .nvbw-job-content {
        font-size: 14px;
    }
}

/* Integration mit Astra Theme */
.entry-content .nvbw-jobs-container {
    margin-top: 0;
}

/* Optional: Hover-Effekt für bessere UX */
.nvbw-job-entry {
    transition: background-color 0.2s ease;
    padding: 15px;
    margin-left: -15px;
    margin-right: -15px;
    border-radius: 4px;
}

.nvbw-job-entry:hover {
    background-color: #fafafa;
}
