/* =========================================================================
 * CONCORDIA job ad — print stylesheet
 *
 * Paper gets the job information only: no navigation, no buttons, no boxes.
 * The screen layout leans on flexbox and grid for centring, which makes no
 * sense in a single text column — every component is therefore reset to
 * normal flow here rather than being nudged.
 *
 * Two rules of thumb learned the hard way:
 *   - Anything drawn with `background` disappears: browsers omit background
 *     graphics unless the user ticks the box. Rules and accents therefore
 *     use `border`, and list bullets use real list markers.
 *   - Text colour and `border` DO print, so they carry the whole design.
 * ====================================================================== */

@page {
    size: A4;
    margin: 16mm 14mm;
}

/* -------------------------------------------------------------------------
 * GLOBAL RESET — strip surfaces and elevation, normalise colour.
 * Specific rules below re-introduce brand colour and hairlines; a class
 * selector outranks the universal selector, so they win.
 * ---------------------------------------------------------------------- */
*,
*::before,
*::after {
    color: #1A1A1A !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    border-radius: 0 !important;
}

body {
    font-size: 10pt;
    line-height: 1.5;
    orphans: 3;
    widows: 3;
}

h1, h2, h3, h4 {
    break-after: avoid;
    page-break-after: avoid;
}

p {
    margin: 0 0 2.5mm;
}

a {
    text-decoration: none !important;
}

/* The screen template prints no link targets — keep it that way. */
a[href]::after {
    content: "";
}

/* -------------------------------------------------------------------------
 * NOT ON PAPER
 * ---------------------------------------------------------------------- */
.topbar,
.breadcrumb,
.share,
.hero__cta,
.hero__figure,
.btn,
.btn-hero,
.btn-icon,
.video,
.benefits__action,
.joblist__action,
.nextstep__actions,
.jobcard__bookmark,
.linkcard__arrow,
.footer__social,
.footer__start,
.icon,
.icon-sprite,
#similar-jobs,
footer,
/* The icon face duplicates the title we print from .benefit__detail. */
.benefit__face,
/* "Irina Fischer / HR-Beraterin" already appears in the sentence above. */
.nextstep__person {
    display: none !important;
}

/* -------------------------------------------------------------------------
 * MASTHEAD — logo, then the re-cropped picture band.
 * ---------------------------------------------------------------------- */
.print-logo {
    display: block !important;
    width: 34mm;
    height: auto;
    margin-bottom: 7mm;
}

.print-hero {
    display: block !important;
    width: 100%;
    height: auto;
    margin: 0 0 7mm;
    break-inside: avoid;
    page-break-inside: avoid;
}

/* -------------------------------------------------------------------------
 * FLOW RESET
 * Every flex/grid container becomes a plain block so content runs down the
 * page instead of being centred in a box that no longer exists.
 * ---------------------------------------------------------------------- */
.shell,
.hero,
.hero__inner,
.hero__content,
.intro,
.section,
.columns,
.benefits,
.benefits__grid,
.nextstep,
.nextstep__main,
.joblist,
.jobcard,
.linkcards,
.linkcard {
    display: block !important;
    max-width: none !important;
    width: auto !important;
    min-height: 0 !important;
    margin-inline: 0 !important;
    padding: 0 !important;
    position: static !important;
    text-align: left !important;
    opacity: 1 !important;
}

/* -------------------------------------------------------------------------
 * RHYTHM — generous, evenly spaced blocks.
 * ---------------------------------------------------------------------- */
.intro,
.section,
.benefits {
    margin: 0 0 8mm !important;
}

/* A trailing margin on the last block is enough to spill a blank page. */
main,
main > *:last-child,
.benefit:last-child,
.rte > *:last-child {
    margin-bottom: 0 !important;
}

/* Section headings carry the brand colour and a hairline, which is what
   keeps the page from looking like a plain text dump. */
.section-title,
.nextstep__title {
    color: #274659 !important;
    font-size: 13pt;
    line-height: 1.25;
    margin: 0 0 3mm;
    padding-bottom: 1.5mm;
    border-bottom: .35mm solid #FF8A00 !important;
}

/* Centred on screen, flush left in a text column. */
.section-title--center {
    text-align: left !important;
}

/* -------------------------------------------------------------------------
 * HERO
 * ---------------------------------------------------------------------- */
.hero {
    margin-bottom: 6mm !important;
}

/* !important beats the inline font-size that the auto-fit script sets on
   screen — paper has its own width and gets its own size. */
.hero__title {
    color: #274659 !important;
    font-size: 20pt !important;
    line-height: 1.15;
    margin: 0 0 3mm;
}

.hero__lead,
.hero__subtitle {
    font-size: 11pt;
    line-height: 1.4;
    margin: 0 0 2.5mm;
}

.hero__location {
    font-size: 10pt;
    gap: 0;
}

.intro {
    font-size: 11pt;
    line-height: 1.5;
}

/* -------------------------------------------------------------------------
 * RICH TEXT — native list markers.
 *
 * On screen the bullet is a square drawn with `background` on a ::before,
 * which would silently vanish on paper. A real list marker is text.
 * ---------------------------------------------------------------------- */
.rte ul {
    list-style: disc outside !important;
    padding-left: 5mm !important;
    margin: 0 !important;
}

.rte ul li {
    padding-left: 0 !important;
    margin-bottom: 2mm;
    break-inside: avoid;
    page-break-inside: avoid;
}

.rte ul li::before {
    display: none !important;
}

/* Tasks and requirements stack, each kept together where possible. */
.columns > * {
    break-inside: avoid;
    page-break-inside: avoid;
}

.columns > * + * {
    margin-top: 8mm;
}

/* -------------------------------------------------------------------------
 * BENEFITS — a readable list, not six cards.
 * "<b>Titel</b><br>Beschreibung" becomes "Titel – Beschreibung".
 * ---------------------------------------------------------------------- */
.benefit {
    display: block !important;
    position: static !important;
    min-height: 0 !important;
    margin: 0 0 2.5mm !important;
    padding: 0 !important;
    text-align: left !important;
    break-inside: avoid;
    page-break-inside: avoid;
}

/* Rendered as a real list item so it gets a printable marker and lines up
   with the .rte lists above. */
.benefit__detail {
    display: list-item !important;
    list-style: disc outside !important;
    position: static !important;
    opacity: 1 !important;
    text-align: left !important;
    font-size: 10pt;
    line-height: 1.5;
    gap: 0 !important;
    margin: 0 0 0 5mm !important;
    padding: 0 !important;
}

.benefit__detail::before {
    display: none !important;
}

.benefit__detail b {
    color: #274659 !important;
    font-size: inherit;
    line-height: inherit;
    font-weight: 700;
}

.benefit__detail b::after {
    content: " – ";
    color: #1A1A1A !important;
    font-weight: 400;
}

.benefit__detail br {
    display: none;
}

/* -------------------------------------------------------------------------
 * CONTACT — the one block that keeps a frame, so it reads as a call to
 * action rather than another paragraph. A left rule, not a filled box:
 * a background would not print.
 * ---------------------------------------------------------------------- */
.nextstep {
    padding-left: 5mm !important;
    border-left: .8mm solid #FF8A00 !important;
    break-inside: avoid;
    page-break-inside: avoid;
}

.nextstep__title {
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.nextstep__body {
    font-size: 10pt;
    line-height: 1.5;
}

/* -------------------------------------------------------------------------
 * EXPIRED PAGE — the two link cards are navigation, keep them minimal.
 * ---------------------------------------------------------------------- */
.linkcard {
    margin-bottom: 3mm !important;
    break-inside: avoid;
    page-break-inside: avoid;
}

.linkcard__title {
    color: #274659 !important;
    font-size: 11pt;
    margin-bottom: 1mm;
}

.linkcard__text {
    font-size: 10pt;
}
