/* Job detail hero desktop: Bild rechts, Inhalt links; mobil: anderer Block-Reihenfolge */

.job-hero.image_inserat {
    position: relative;
    width:100%;
    min-height: 620px;
    overflow: hidden;
    display:flex;
    align-items: center;
    justify-content: center;
}

.job-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.job-hero__media img {
    width: 100%;
    /*height: 100%;*/
    object-fit: cover;
    object-position: right top;
}

/* Flex-Item über dem absolut positionierten Media-Layer */
.job-hero > .jobdetail {
    position: relative;
    z-index: 1;
    width: 100%;
}

.job-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    max-width: 44%;
    padding-top: 40px;
    padding-bottom: 40px;
}
@media screen and (min-width: 1300px) {
    .job-hero__content {
        max-width: 49%;
    }
}
@media screen and (min-width: 1400px) {
    .job-hero__content {
        max-width: 53%;
    }
}
@media screen and (min-width: 1500px) {
    .job-hero__content {
        max-width: 55%;
    }
}
@media screen and (min-width: 1600px) {
    .job-hero__content {
        max-width: 58%;
    }
}

.job-hero__content .jobtitle {
    order: 1;
    padding-top: 0;
    margin-bottom: 0;
}

.job-hero__content .jobtitle .nobreak {
    white-space: nowrap;
}

.job-hero__content .entryinforow {
    order: 2;
    margin: 24px 0;
    padding-bottom: 0;
    margin-bottom: 0;
}
.job-hero__content i.far.fa-heart {
    margin-left: 10px;
    margin-right: 0px;
}
.job-hero__summary {
    order: 3;
    margin-bottom: 0;
}

.job-hero__summary br:first-child {
    display: none;
}

.job-hero__apply {
    order: 4;
    margin-top: 30px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    /* Button: font-size 18px (wie .col-2 .markjob), line-height 1.4, padding 10px, border 1px */
    --job-hero-apply-height: calc(18px * 1.4 + 20px + 2px);
}

.job-hero__apply .markjob {
    float: none;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    height: var(--job-hero-apply-height);
    margin-left: auto;
    margin-top: 0;
    font-size: 18px;
    min-width: 200px;
    text-align: center;
    justify-content: center;
}

.job-hero__apply .tomarklist {
    margin: 0;
    cursor: pointer;
}

.job-hero__apply .brandlogo_header {
    position: static;
    margin-right: 0;
    height: var(--job-hero-apply-height);
    width: auto;
    max-height: var(--job-hero-apply-height);
    padding: 0;
    background: transparent;
    object-fit: contain;
    object-position: left center;
    flex-shrink: 0;
}

.job-hero__apply .brandlogo_header_tti {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    height: var(--job-hero-apply-height);
    max-height: var(--job-hero-apply-height);
    margin-right: 0;
    object-fit: contain;
    object-position: left center;
    z-index: auto;
    flex-shrink: 0;
}

/* Desktop: Content nicht positioniert, damit .job-hero__video an .job-hero andockt */
@media screen and (min-width: 1200px) {
    .job-hero > .jobdetail,
    .job-hero__content {
        position: static;
    }
}

.job-hero .entryinforow .job-hero__video {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 2;
}

.job-hero .entryinforow .job-hero__video img.videobutton_header_tti {
    position: static;
    display: block;
    width: 200px;
    max-width: 30vw;
}

.job-hero .entryinforow {
    overflow: visible;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    display:grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.job-hero .entryinforow p:last-of-type{
    margin-bottom: 0;
}


.job-hero .entryinforow i{
    margin-right:8px;
}

.jobdetail .job-hero .jobtitle h1 {
    max-width: 100%;
}

@media (min-width: 1200px) and (max-width: 1499px) {
    .job-hero__content .jobtitle h1 {
        font-size: 2em;
    }
    .job-hero__content .summary p {
        font-size: 16px;
    }
}

@media screen and (max-width: 1199px) {
    .job-hero.image_inserat {
        width: auto;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        min-height: 0;
        margin-bottom: 0;
        overflow: visible;
    }

    .job-hero__media {
        display: none;
    }

    .job-hero__content {
        max-width: 100%;
        padding-top: 0;
        padding-bottom: 0;
        align-items: start;
    }

    .job-hero__content .jobtitle {
        order: 1;
        margin-bottom: 10px;
    }

    .job-hero__content .jobtitle h1 {
        max-width: 100%;
        margin-top: 30px;
    }

    .job-hero__apply {
        order: 2;
        margin-top: 10px;
        margin-bottom: 25px;
        width: 100%;
        justify-content: flex-end;
    }

    .job-hero__apply .brandlogo_header,
    .job-hero__apply .brandlogo_header_tti {
        order: 0;
        margin-right: auto;
    }

    .job-hero__apply .brandlogo_header_tti:has(+ .brandlogo_header) {
        margin-right: 0;
    }

    .job-hero__apply .markjob {
        display: inline-flex;
        float: none;
        width: auto !important;
        max-width: none;
        margin-left: 0 !important;
        margin-right: 0;
        margin-bottom: 0;
        order: 2;
    }

    .job-hero__apply .tomarklist {
        position: static;
        display: inline-block;
        flex-shrink: 0;
        order: 1;
        margin-left: 0;
        margin-right: 0;
    }

    .job-hero__summary {
        order: 3;
    }

    .job-hero__content .entryinforow {
        order: 4;
        background-image: var(--job-hero-image);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: right top;
        margin: 20px 0 !important;
        padding: 40px 10px !important;
        overflow: visible;
        aspect-ratio: 1920 / 620;
        width: 100%;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        box-sizing: border-box;
    }

    .job-hero__content .entryinforow,
    .job-hero__content .entryinforow p,
    .job-hero__content .entryinforow i {
        text-shadow:
            1px 0 0 #fafaf7,
            -1px 0 0 #fafaf7,
            0 1px 0 #fafaf7,
            0 -1px 0 #fafaf7;
    }

    .job-hero__content .entryinforow .entryinfo {
        max-width: 55%;
    }

    .job-hero__content .entryinforow .entryinfo .col-md-4 {
        max-width: 100%;
        float: none;
    }

    .job-hero__content .entryinforow .entryinfo .col-md-4 p {
        margin-bottom: 15px;
    }

    .job-hero .entryinforow {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }

    .job-hero__content .entryinforow > * {
        max-width: 50%;
    }

    .job-hero__content .entryinforow > .job-hero__video {
        max-width: none;
        right: 10px;
        bottom: 10px;
    }

    .job-hero__content .entryinforow .job-hero__video img.videobutton_header_tti {
        width: 200px;
        max-width: min(200px, 45vw);
    }
}

@media screen and (max-width: 767px) {
    .job-hero__apply {
        flex-wrap: wrap;
        justify-content: flex-start;
        row-gap: 16px;
    }

    .job-hero__apply .brandlogo_header,
    .job-hero__apply .brandlogo_header_tti {
        order: 1;
        margin-right: 0;
        margin-left: 0;
        flex: 0 1 auto;
        min-width: 0;
        max-width: 100%;
        width: auto;
        height: auto;
        max-height: var(--job-hero-apply-height);
        object-fit: contain;
        object-position: left center;
    }

    /* Beide Logos in einer Zeile: vorher kleiner skalieren statt umbrechen */
    .job-hero__apply:has(.brandlogo_header_tti):has(.brandlogo_header) .brandlogo_header,
    .job-hero__apply:has(.brandlogo_header_tti):has(.brandlogo_header) .brandlogo_header_tti {
        max-width: calc((100% - 16px) / 2);
    }

    /* Zeilenumbruch nach den Logos */
    .job-hero__apply::after {
        content: '';
        order: 2;
        flex-basis: 100%;
        width: 100%;
        height: 0;
    }

    .job-hero__apply .markjob {
        order: 3;
        margin-left: 0 !important;
    }

    .job-hero__apply .tomarklist {
        order: 4;
    }
}

@media screen and (max-width: 420px) {
    .job-hero__content .entryinforow {
        /* Pro 10px unter 420px: Bild 10px weiter nach rechts */
        background-position: calc(100% + (420px - 100vw)) top;
    }
}

@media screen and (max-width: 500px) {
    .job-hero__content .entryinforow .entryinfo .col-md-4 p {
        margin-bottom: 5px;
    }
}