
/* ==========================================
   LEBENSHILFE MOL
   STELLENANZEIGEN
   ========================================== */


/* ==========================================
   GRUNDEINSTELLUNGEN
   ========================================== */

.sj-jobs,
.sj-single-shortcode,
.sj-application {
    --sj-border: #d8d8d8;
    --sj-background: #f7f7f7;
    --sj-text: inherit;
    --sj-muted: .72;

    color: var(--sj-text);
}


/* ==========================================
   STELLENÜBERSICHT
   ========================================== */

.sj-job-grid {
    display: grid;
    gap: 1rem;
}


/* ==========================================
   STELLENKARTEN
   ========================================== */

.sj-job-card {
    position: relative;
    padding: 1.25rem;
    padding-right: 180px;
    border: 1px solid var(--sj-border);
    border-radius: .35rem;
    background: #fff;
}


/* ==========================================
   STELLENTITEL
   ========================================== */

.sj-job-title {
    margin: 0 0 .35rem;
    font-size: 1.35em;
}

.sj-job-title a {
    color: inherit;
    text-decoration-thickness: .08em;
    text-underline-offset: .15em;
}


/* ==========================================
   METADATEN
   ========================================== */

.sj-job-meta,
.sj-job-department,
.sj-contact {
    margin: .25rem 0;
    opacity: var(--sj-muted);
}


/* ==========================================
   KURZBESCHREIBUNG
   ========================================== */

.sj-job-excerpt {
    margin: .9rem 0 0;
}


/* ==========================================
   BUTTON IN DER STELLENÜBERSICHT
   ========================================== */

.sj-job-card .sj-job-actions {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    margin: 0;
    z-index: 1;
}


/* ==========================================
   ALLGEMEINE BUTTONS
   ========================================== */

.sj-button {
    display: inline-block;
    padding: .7rem 1rem;
    border: 1px solid currentColor;
    border-radius: .25rem;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}

.sj-button-primary {
    font-weight: 600;
}


/* ==========================================
   STELLENDETAILS
   ========================================== */

.sj-job-facts {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(180px, 1fr));
    gap: .75rem;
    margin: 0 0 1.5rem;
    padding: 1rem;
    border: 1px solid var(--sj-border);
    border-radius: .35rem;
    background: var(--sj-background);
}

.sj-job-fact {
    min-width: 0;
}

.sj-job-fact dt {
    margin: 0 0 .15rem;
    font-size: .82em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .025em;
    opacity: var(--sj-muted);
}

.sj-job-fact dd {
    margin: 0;
}


/* ==========================================
   STELLENBESCHREIBUNG
   ========================================== */

.sj-job-description {
    margin-bottom: 1.5rem;
}


/* ==========================================
   BEWERBUNGSFORMULAR
   ========================================== */

.sj-application {
    margin-top: 1.75rem;
    padding: 1.25rem;
    border: 1px solid var(--sj-border);
    border-radius: .35rem;
    background: var(--sj-background);
}

.sj-application h2 {
    margin-top: 0;
}


/* ==========================================
   MELDUNGEN
   ========================================== */

.sj-message {
    padding: 1rem;
    border: 1px solid var(--sj-border);
    border-radius: .35rem;
    background: var(--sj-background);
}


/* ==========================================
   EINZELANSICHT
   ========================================== */

.sj-single-layout {
    width: 100%;
    min-width: 0;
}

.sj-single-shortcode-title {
    margin-bottom: 1rem;
}


/* ==========================================
   NEU: HEADER MIT BEWERBUNGSBUTTON
   ========================================== */

.sj-single-job-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 1.5rem;
    width: 100%;
    margin: 0 0 1.5rem;
}


/* ==========================================
   TITEL LINKS
   ========================================== */

.sj-single-job-header
.sj-single-shortcode-title,

.sj-single-job-header
.sj-job-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}


/* ==========================================
   BUTTON RECHTS
   ========================================== */

.sj-single-layout
.sj-single-job-header
.sj-job-actions {
    position: static;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}


/* ==========================================
   BEWERBUNGSBUTTON
   ========================================== */

.sj-single-job-header .sj-button {
    display: inline-block;
    padding: .85rem 1.3rem;
    border-radius: .35rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    transition:
        background-color .2s ease,
        color .2s ease;
}


/* ==========================================
   FOKUS FÜR TASTATURBEDIENUNG
   ========================================== */

.sj-button:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}


/* ==========================================
   DESKTOP
   ========================================== */

@media (min-width: 760px) {

    .sj-job-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* ==========================================
   TABLET UND SMARTPHONE
   ========================================== */

@media (max-width: 759px) {

    /* Stellenkarten */

    .sj-job-card {
        padding: 1.25rem;
    }

    .sj-job-card .sj-job-actions {
        position: static;
        margin: 1rem 0 0;
    }

    /* Header untereinander */

    .sj-single-job-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    /* Titel */

    .sj-single-job-header
    .sj-single-shortcode-title,

    .sj-single-job-header
    .sj-job-title {
        width: 100%;
        margin: 0;
    }

    /* Bewerbungsbutton */

    .sj-single-layout
    .sj-single-job-header
    .sj-job-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .sj-single-job-header .sj-button {
        display: inline-block;
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }

}
