@charset "utf-8";

@font-face {
    font-family: "Aptos";
    src: url("../fonts/aptos-regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Aptos";
    src: url("../fonts/aptos-bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    font-size: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: #292929;
    font-family: "Aptos", "Arial", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    background: #fff;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

#wrapper {
	position: relative;
	max-width: 50rem;
	margin: 1rem auto;
	overflow: hidden;
    border: 1px solid #ededed;
}

#wrapper {
    container-type: inline-size;
}

a {
    color: inherit;
    text-decoration: none;
}

.job-ad {
    /* The reference is 612 px wide; scale its proportions with the wrapper. */
    font-size: calc(100cqw / 38.25);
    --red: #e60012;
}

.masthead {
    position: relative;
    height: 7.125em;
    color: #ff3034;
}

.greeting,
.invitation {
    position: absolute;
    z-index: 1;
}

.greeting {
    top: 0.46153846em;
    left: 1.43589744em;
    font-size: 1.21875em;
    line-height: 1.12820513;
}

.invitation {
    top: 2.74285714em;
    left: 1.6em;
    font-size: 1.09375em;
    line-height: 1.25714286;
}

strong {
    font-weight: 700;
}

.arrow {
    position: absolute;
    top: -0.125em;
    left: 10em;
    width: 6.4375em;
}

.logo {
    position: absolute;
    top: 0;
    right: 1.4375em;
    width: 6.75em;
}

.job-title {
    display: flex;
    align-items: center;
    min-height: 4.6875em;
    margin: 0 2.0625em 0 1.6875em;
    padding: 0.75em 1em 0.75em 2.125em;
    border-radius: 2.5em 0 2.5em 0;
    background: var(--red);
    color: #fff;
    font-size: 1em;
    font-weight: 400;
    line-height: 1.1875;
}

.introduction {
    margin: 1.96428571em 2.5em 2.1875em;
    font-size: 0.7em;
    line-height: 1.1875;
}

.job-title span {
    font-size: 0.990625em;
}

.job-details {
    margin: 0 1.6875em 0 1.75em;
    padding: 1.25em 1.1875em 1.71875em 1.25em;
    border-radius: 0 3.125em 0 3.125em;
    background: var(--red);
    color: #fff;
}

.job-details section + section {
    margin-top: 1.28125em;
}

.job-details h2 {
    margin-bottom: 0.64em;
    font-size: 0.78125em;
    font-weight: 400;
    line-height: 1.44;
}

.job-details ul {
    padding-left: 2.67857143em;
    font-size: 0.7em;
    line-height: 1.47321429;
}

.job-details li {
    padding-left: 0;
}

footer {
    margin: 0.8125em 1.6875em 0 1.625em;
}

.contact {
    display: flex;
    align-items: flex-start;
    gap: 0.5em;
}

.qr-code {
    flex: 0 0 4.0625em;
    width: 4.0625em;
}

.contact-copy {
    padding-top: 0.35714286em;
    font-size: 0.7em;
    line-height: 1.1875;
}

.contact-copy p + p {
    margin-top: 0.71428571em;
}

.imprint {
    margin: 0.97826087em 0 0 0.2173913em;
    font-size: 0.575em;
    line-height: 1.26086957;
}

@media (max-width: 799px) {
    .job-ad {
        font-size: 1rem;
    }

    .masthead {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        height: auto;
        padding: 1.25rem 1rem 1.5rem;
        text-align: center;
    }

    .logo {
        position: static;
        order: -1;
        width: 6.75rem;
        margin: 0 auto 0.5rem;
    }

    .greeting,
    .invitation {
        position: static;
        line-height: 1.4;
    }

    .greeting {
        font-size: 1.25rem;
    }

    .invitation {
        font-size: 1.0625rem;
    }

    .arrow {
        display: none;
    }

    .job-title {
        min-height: 0;
        margin: 0 1rem;
        padding: 1.25rem;
        border-radius: 2rem 0 2rem 0;
        font-size: 1.125rem;
        line-height: 1.4;
    }

    .job-title span {
        font-size: inherit;
    }

    .job-title br,
    .introduction br,
    .contact-copy p + p br {
        display: none;
    }

    .introduction {
        margin: 1.5rem 1rem;
        font-size: 1rem;
        line-height: 1.5;
    }

    .job-details {
        margin: 0 1rem;
        padding: 1.5rem 1.125rem 1.75rem;
        border-radius: 0 2rem 0 2rem;
    }

    .job-details section + section {
        margin-top: 1.5rem;
    }

    .job-details h2 {
        margin-bottom: 0.75rem;
        font-size: 1.0625rem;
        line-height: 1.4;
    }

    .job-details ul {
        padding-left: 1.125rem;
        font-size: 1rem;
        line-height: 1.5;
    }

    .job-details li + li {
        margin-top: 0.375rem;
    }

    footer {
        margin: 1.5rem 1rem 1rem;
        text-align: center;
    }

    .contact {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .qr-code {
        flex: none;
        width: 5rem;
    }

    .contact-copy {
        width: 100%;
        padding-top: 0;
        font-size: 1rem;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    .contact-copy p + p {
        margin-top: 1rem;
    }

    .imprint {
        margin: 1.25rem 0 0;
        font-size: 0.8rem;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }
}
