/* ================================
   MMD Personio Job List
   ================================ */

.mmd-job-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mmd-job-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #000000;
    padding: 25px 30px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Inhalt links */
.mmd-job-content {
    max-width: calc(100% - 260px);
}

.mmd-job-title {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 600;
    color: #000000;
}

.mmd-job-meta {
    font-size: 18px;
    font-weight: 400;
    color: #000000;
}

/* Button rechts */
.mmd-job-cta {
    flex-shrink: 0;
}

.mmd-job-button {
    display: inline-block;
    background-color: #4D616E;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff!important;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* ================================
   Hover-Zustand
   ================================ */

.mmd-job-item:hover {
    background-color: #4D616E;
    border-color: #4D616E;
}

.mmd-job-item:hover .mmd-job-title,
.mmd-job-item:hover .mmd-job-meta {
    color: #ffffff;
}

.mmd-job-item:hover .mmd-job-button {
    background-color: #ffffff;
    color: #4D616E!important;
}

/* ================================
   Meta-Zeilen
   ================================ */

.mmd-job-meta-primary {
    font-size: 18px;
    font-weight: 400;
    color: #000000;
    margin-bottom: 6px;
}

.mmd-job-meta-secondary {
    font-size: 18px;
    font-weight: 400;
    color: #000000;
}

/* Hover-Zustand */
.mmd-job-item:hover .mmd-job-meta-primary,
.mmd-job-item:hover .mmd-job-meta-secondary {
    color: #ffffff;
}

/* ================================
   Mobile Anpassung (Handys)
   ================================ */

@media (max-width: 767px) {

    .mmd-job-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .mmd-job-content {
        max-width: 100%;
    }

    .mmd-job-cta {
        margin-top: 15px; /* Abstand unter den Standorten */
        width: 100%;
    }

    .mmd-job-button {
        width: auto; /* Button nicht über volle Breite */
    }
}
