/* 1. Kopfzeile (Table Header) komplett ausblenden */
.jobs-counter {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: #555;
}

.jobs-counter strong {
    color: #97B531;
    font-size: 1.25em;
}

.job-table thead, 
.job-table th {
    display: none !important;
}

/* 2. Tabelle und Zeilen-Design */
.job-table table {
    width: 100% !important;
    border-collapse: collapse !important;
    background-color: #FAFAFA !important; /* Hintergrund weiß */
    border-radius: 25px !important;
}

.job-table tr {
    background-color: #FAFAFA !important; /* Jede Zeile weiß */
    border-bottom: 5px solid #F1F2F2 !important; /* Dezente Trennlinie */
    transition: background-color 0.2s ease;
    cursor: pointer; /* Zeigt, dass die Zeile klickbar ist */
}

/* 3. Hover-Effekt: Hintergrund wird hellgrau */
.job-table tr:hover {
    background-color: #FFFFFF !important; /* Deutliches WEISS bei Hover */
}

/* 4. Zellen-Styling & Spaltenausrichtung */
.job-table td {
    padding: 20px 15px !important;
    vertical-align: middle;
    color: #333;
}

/* Spaltenbreiten (Beispielwerte, kannst du anpassen) */
.job-table td:nth-child(1) { width: 40%; font-weight: 600; } /* Standort */
.job-table td:nth-child(2) { width: 25%; font-weight: 600; } /* Jobtitel */
.job-table td:nth-child(3) { width: 20%; font-weight: 600; }       /* Pensum */
.job-table td:nth-child(4) { width: 15%; font-weight: 600; text-align: right; position: relative; padding-right: 65px !important; }

/* 5. Der Pfeil (Arrow-Right Solid) */
.job-table td:last-child::after {
    content: '\f061'; /* FontAwesome Solid Arrow Right */
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #97B531;
    transition: transform 0.3s ease;
}

/* Pfeil bewegt sich leicht beim Hover */
.job-table tr:hover td:last-child::after {
    transform: translateY(-50%) translateX(5px);
}








/* Mobile Optimierung: Spalten untereinander auf kleinen Bildschirmen */
@media (max-width: 767px) {
    .job-table table, .job-table tbody, .job-table tr, .job-table td {
        display: block !important;
        width: 100% !important;
        text-align: left !important;
    }
    .job-table td {
        padding: 5px 10px !important;
        border: none !important;
    }
    .job-table tr {
        padding: 15px 0;
    }
}

/* 6. Modals (Job Details Popup) */
.job-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6); /* abgedunkelter Hintergrund */
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 11000;
    padding: 15px;
}

/* Wird durch JS hinzugefügt, um das Modal sichtbar zu machen */
.job-modal-open {
    display: flex !important;
}

.job-modal-box {
    background-color: #fff;
    width: 100%;
    max-width: 800px; /* Schön breites Fenster für viel Text */
    max-height: 80vh; /* Verhindert, dass das Modal größer als der Bildschirm wird */
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Für saubere Ränder */
    font-family: inherit; /* Nimmt die Schrift der Webseite */
}

.job-modal-header {
    background-color: #FAFAFA;
    padding: 20px 25px;
    border-bottom: 2px solid #F1F2F2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-modal-header h2 {
    margin: 0;
    font-size: 30px !important;
    line-height: 34px !important;
    color: #333;
    font-weight: 700;
}

.job-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.job-modal-close:hover {
    color: #333;
}

.job-modal-content {
    padding: 25px;
    overflow-y: auto; /* Scrollbar, falls der Text zu lang wird */
    color: #444;
    line-height: 1.6;
}

.job-modal-meta {
    background-color: #FAFAFA;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
}

.job-modal-meta p {
    margin: 0;
    font-size: 0.95rem;
}

.job-modal-meta strong {
    color: #333;
}

.job-modal-description {
    margin-bottom: 25px;
    font-size: 1rem;
}

/* Stellt sicher, dass Listen aus WYSIWYG/HTML korrekt angezeigt werden */
.job-modal-description ul, 
.job-modal-description ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.job-modal-description p {
    margin-bottom: 15px;
}

.job-modal-description p:last-child {
    margin-bottom: 0;
}

.job-modal-footer {
    padding-top: 20px;
    border-top: 2px solid #F1F2F2;
    text-align: right;
}

.job-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
}

.job-btn-primary {
    background-color: #97B531;
    color: #fff;
}

.job-btn-primary:hover {
    background-color: #85a02a;
}