/* Public careers pages (jobs.carreer24.de, /jobs/:ref) — deliberately
   NOT design.md's tokens (that file is explicitly scoped to the
   internal admin UI). These pages must look like part of www.car24.de
   itself (recruiter request 2026-10-08: "man sollte einfach keinen
   Unterschied sehen"), so every token below is taken from car24.de's
   own stylesheet: Archivo body / Yantramanav headings (self-hosted,
   same files car24.de serves — no Google Fonts request, DSGVO), red
   #ed1c24, ink #171717, grey #f2f2f2 tiles, square corners, white
   header, black footer. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/archivo-300.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/archivo-regular.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/archivo-600.woff2") format("woff2"); }
@font-face { font-family: "Yantramanav"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/yantramanav-regular.woff2") format("woff2"); }
@font-face { font-family: "Yantramanav"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/yantramanav-500.woff2") format("woff2"); }
@font-face { font-family: "Yantramanav"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/yantramanav-700.woff2") format("woff2"); }

:root {
    --car24-red: #ed1c24;
    --car24-red-dark: #c8141b;
    --ink: #171717;
    --text: rgba(0, 0, 0, .7);
    --ink-soft: #575f66;
    --paper: #ffffff;
    --tile: #f2f2f2;
    --border: rgba(0, 0, 0, .1);
    --danger: #c0392b;
    --footer: #171717;
    --footer-bottom: #333333;
    --font: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-head: "Yantramanav", "Archivo", "Segoe UI", system-ui, sans-serif;
    --ease: cubic-bezier(0, 0, 0.3642, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
    font-family: var(--font);
    font-size: 16px;
    font-weight: 300;
    color: var(--text);
    background: var(--paper);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    /* Sticky footer: body is a flex column of header/hero/page-body/
       footer, page-body (the only piece with variable height) grows to
       fill whatever's left — on a short job list the footer still ends
       up pinned to the bottom of the viewport instead of floating right
       under the content with bare background below it. */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); font-weight: 700; line-height: 1.2; }

/* Same content width as car24.de's Bootstrap .container at xl. */
.site-container {
    width: 100%;
    max-width: 1188px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Section kicker — car24.de's .subtitle: red uppercase Yantramanav with
   a short red rule in front. */
.subtitle {
    position: relative;
    display: inline-block;
    margin: 0 0 7px;
    padding-left: 45px;
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--car24-red);
}
.subtitle::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--car24-red);
}

/* ---- Header (car24.de's top frame: white, logo left, contact + red
   square button right) ---- */
.site-header { background: var(--paper); }
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 22px;
    padding-bottom: 22px;
}
.site-logo { display: block; flex: none; }
.site-logo img { width: 180px; height: auto; }
.site-header-right { display: flex; align-items: center; gap: 28px; }
.site-contact { display: flex; flex-direction: column; }
.site-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 2em;
    color: var(--ink);
    text-decoration: none;
    transition: color .2s var(--ease);
}
.site-contact-item:hover { color: var(--car24-red); }
.site-contact-icon { width: 15px; height: 15px; flex: none; fill: var(--car24-red); }
.site-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    padding: 0 24px;
    background: var(--car24-red);
    color: #fff;
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: background .4s var(--ease);
}
.site-header-btn:hover { background: var(--car24-red-dark); }
@media (max-width: 760px) {
    .site-contact { display: none; }
    .site-logo img { width: 140px; }
    .site-header-btn { height: 46px; padding: 0 16px; font-size: 14px; }
}

/* ---- Hero (light, centered — car24.de's "JETZT BEWERBEN! /
   Stellenangebote" section head) ---- */
.hero { background: var(--paper); padding: 70px 0 40px; }
.hero-inner { text-align: center; }
.hero h1 {
    font-size: clamp(32px, 4.5vw, 48px);
    margin: 11px auto 0;
    max-width: 820px;
}
.hero-detail { padding-top: 46px; padding-bottom: 34px; }
.hero-detail h1 { font-size: clamp(28px, 3.6vw, 42px); }
.hero-back {
    display: table;
    margin: 0 auto 26px;
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 500;
    color: var(--car24-red);
    text-decoration: none;
    border-bottom: 1px solid var(--car24-red);
}
.hero-back::before { content: "← "; }
.hero-facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    font-size: 15px;
    color: var(--ink-soft);
}
.hero-fact-sep, .job-meta-sep {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d4d4d4;
    flex: none;
}

.page-body {
    /* flex:1 — the piece of body's flex column that actually grows, so
       header/hero keep their natural size and the footer stays pinned
       to the bottom of the viewport (see body's own comment). */
    flex: 1 0 auto;
    width: 100%;
    max-width: 1188px;
    margin: 0 auto;
    padding: 10px 24px 90px;
}
/* Detail page's content column is narrower than the listing page's —
   long-form text and the apply form read better at this width. */
.page-body-narrow { max-width: 908px; }

.section-title-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 18px;
}
.section-title {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
}
.result-count {
    font-size: 15px;
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
}

/* ---- Job tiles (car24.de Stellenangebote tiles, without the photo) ---- */
#jobList {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
@media (max-width: 991px) { #jobList { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { #jobList { grid-template-columns: 1fr; } }

.job-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 230px;
    padding: 26px 22px 24px;
    background: var(--tile);
    color: inherit;
    text-decoration: none;
    border-top: 3px solid transparent;
    transition: border-color .4s var(--ease);
}
.job-card:hover { border-top-color: var(--car24-red); }
.job-card-body { flex: 1; }
.job-badge-new {
    display: inline-block;
    margin-bottom: 10px;
    padding: 3px 9px;
    background: var(--car24-red);
    color: #fff;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.job-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    font-size: 15px;
    color: var(--ink-soft);
}
.job-card-title {
    margin: 14px 0 0;
    font-size: 22px;
    line-height: 28px;
    transition: color .4s var(--ease);
}
.job-card:hover .job-card-title { color: var(--car24-red); }
.job-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}
.job-card-more {
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 500;
    color: var(--ink);
}
.job-card-plus { display: inline-block; margin-left: 12px; font-size: 20px; line-height: 1; transition: transform .4s var(--ease); }
.job-card:hover .job-card-plus { transform: rotate(90deg); color: var(--car24-red); }
.job-meta-posted { font-size: 13px; color: var(--ink-soft); }

.jobs-empty-state {
    grid-column: 1 / -1;
    background: var(--tile);
    padding: 40px 20px;
    text-align: center;
}
.jobs-empty-title { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--ink); }
.jobs-empty-hint { font-size: 15px; color: var(--ink-soft); margin-top: 6px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 0;
    padding: 12px 24px;
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

/* job.description is real HTML (<p>/<ul>/<li>/<strong>, see
   seed-jobs-from-recruitee.mjs and the admin job editor's
   richTextEditor.js) written across multiple source lines purely for
   readability — white-space:pre-wrap used to preserve every one of
   those newlines as an extra visible blank line on top of the normal
   block-level margins below, stretching the whole page (bug reported
   live: description text and the apply-form fields both looked far
   more spread out than intended). Normal whitespace collapsing is
   correct for real HTML; the tags alone already define every line/
   paragraph break. */
.prose { font-size: 16px; line-height: 1.65; color: var(--text); }
.prose p { margin: 0 0 12px; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { margin: 0 0 12px; padding-left: 20px; }
.prose ul:last-child { margin-bottom: 0; }
.prose li { margin-bottom: 5px; }
.prose li:last-child { margin-bottom: 0; }
.prose li::marker { color: var(--car24-red); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--car24-red); }
/* A paragraph that's just a bold run acts as an inline section heading
   in these descriptions ("Deine Aufgaben", "Dein Profil", ...) — give it
   real heading spacing instead of blending into the body copy. */
.prose p:has(> strong:only-child) {
    margin-top: 24px;
    margin-bottom: 8px;
    font-family: var(--font-head);
    font-size: 20px;
}
.prose p:has(> strong:only-child) strong { font-weight: 700; }
.prose p:first-child:has(> strong:only-child) { margin-top: 0; }

/* Detail page's section-per-tile layout (description/requirements/
   highlight/apply-form). */
.detail-card {
    background: var(--tile);
    padding: 32px 34px;
    margin-bottom: 22px;
}
.detail-card:last-child { margin-bottom: 0; }
.detail-card-title {
    font-family: var(--font-head);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
}
.detail-card .prose { margin: 14px 0 0; }
.detail-list { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.detail-list-item { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.55; color: var(--text); }
.detail-list-dot { flex: none; margin-top: 9px; width: 7px; height: 7px; background: var(--car24-red); }
@media (max-width: 600px) {
    .detail-card { padding: 24px 20px; }
}

.apply-card { padding: 0; }
.apply-card-head { padding: 32px 34px 0; }
.apply-card-title { font-family: var(--font-head); font-size: 30px; font-weight: 700; line-height: 1.2; color: var(--ink); margin-top: 4px; }
.apply-card-sub { font-size: 15px; color: var(--ink-soft); margin-top: 6px; }
.apply-card-body { padding: 22px 34px 34px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 600px) {
    .apply-card-head { padding: 24px 20px 0; }
    .apply-card-body { padding: 18px 20px 24px; }
}

#applyForm { display: flex; flex-direction: column; gap: 16px; }

/* Name + E-Mail side by side; the phone field (country picker + number)
   always takes its own full row via .apply-field-wide, so it never
   lands alone next to an empty column. */
.apply-fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.apply-field { min-width: 0; }
.apply-field-wide { grid-column: 1 / -1; }
@media (max-width: 600px) {
    .apply-fields-grid { grid-template-columns: 1fr; }
}
.apply-label { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.apply-required { color: var(--car24-red); }
/* Inputs on the grey tile: white fields, square, a single bottom rule
   that turns red on focus — car24.de's own form look. */
.apply-input,
.apply-select,
.apply-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0 14px;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, .2);
    border-radius: 0;
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    color: var(--ink);
    outline: none;
}
.apply-input, .apply-select { height: 48px; }
.apply-input::placeholder, .apply-phone-input input::placeholder { color: #8a8a8a; }
.apply-textarea { padding: 12px 14px; min-height: 96px; resize: vertical; }
.apply-input:focus, .apply-select:focus, .apply-textarea:focus { border-bottom-color: var(--car24-red); }

/* Phone: a native <select> laid transparently over a custom flag+name
   display (keeps the OS picker on mobile), plus the number input with
   the chosen dial code as a fixed prefix. */
.apply-phone-row { display: flex; gap: 10px; }
.apply-country {
    position: relative;
    flex: 0 0 230px;
    height: 48px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(0, 0, 0, .2);
    background: #fff;
    font-size: 15px;
    font-weight: 400;
    color: var(--ink);
}
.apply-country:focus-within { border-bottom-color: var(--car24-red); }
.apply-country-flag { flex: none; display: flex; width: 22px; height: 15px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }
.apply-country-flag svg { width: 100%; height: 100%; display: block; }
.apply-country-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apply-country-caret { flex: none; font-size: 9px; color: var(--ink-soft); }
.apply-country-select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.apply-phone-input {
    flex: 1;
    min-width: 0;
    height: 48px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, .2);
    background: #fff;
}
.apply-phone-input:focus-within { border-bottom-color: var(--car24-red); }
.apply-phone-dial { flex: none; padding: 0 10px 0 14px; border-right: 1px solid rgba(0, 0, 0, .12); font-size: 15px; font-weight: 600; color: var(--ink); line-height: 18px; }
.apply-phone-input input { flex: 1; min-width: 0; height: 100%; padding: 0 12px; border: 0; background: transparent; font-family: inherit; font-size: 15px; font-weight: 400; color: var(--ink); outline: none; }
.apply-phone-hint { margin-top: 6px; font-size: 13px; color: var(--ink-soft); }
@media (max-width: 600px) {
    .apply-phone-row { flex-direction: column; }
    .apply-country, .apply-phone-input { flex: none; }
}

.apply-questions-title { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--ink); margin-top: 6px; }

/* auto-fit (not auto-fill) — auto-fill reserves empty same-width tracks
   for however many WOULD fit the container even with nothing to put in
   them, so 3 real cards sat bunched on the left with dead space filling
   the rest of the row instead of stretching to use it. */
.apply-files-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
@media (max-width: 600px) {
    .apply-files-grid { grid-template-columns: 1fr; }
}
.apply-dropzone {
    display: block;
    position: relative;
    border: 1.5px dashed rgba(0, 0, 0, .22);
    background: #fff;
    padding: 18px 14px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s var(--ease);
}
.apply-dropzone:hover { border-color: var(--car24-red); }
.apply-dropzone.has-file { border-style: solid; border-color: #16794a; }
/* One neutral icon tone for every file type (the per-type tone classes
   from detail.js's FILE_FIELD_META all map to the same CAR24 red). */
.apply-dropzone-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto;
    background: #fdecec;
    color: var(--car24-red);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.apply-tone-red, .apply-tone-blue, .apply-tone-amber { background: #fdecec; color: var(--car24-red); }
.apply-dropzone.has-file .apply-dropzone-icon { background: #e6f5ee; color: #16794a; }
.apply-dropzone-label { margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 4px; font-family: var(--font-head); font-size: 17px; font-weight: 500; color: var(--ink); }
.apply-dropzone-text { margin-top: 3px; font-size: 13px; color: var(--ink-soft); line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apply-dropzone.has-file .apply-dropzone-text { color: #16794a; font-weight: 600; }
.apply-dropzone-hint { margin-top: 2px; font-size: 12px; color: var(--ink-soft); }
.apply-dropzone-btn { margin-top: 10px; display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border: 1px solid var(--ink); background: #fff; white-space: nowrap; font-family: var(--font-head); font-size: 14px; font-weight: 500; text-transform: uppercase; color: var(--ink); }

.apply-consent { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--text); cursor: pointer; }
.apply-consent input {
    flex: none;
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    margin: 0;
    border: 1.5px solid rgba(0, 0, 0, .3);
    border-radius: 0;
    background: #fff;
    display: grid;
    place-content: center;
    cursor: pointer;
}
.apply-consent input:checked { background: var(--car24-red); border-color: var(--car24-red); }
.apply-consent input:checked::after { content: ""; width: 5px; height: 9px; margin-top: -2px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.apply-consent input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.apply-consent a { color: var(--car24-red); text-decoration: none; }
.apply-consent a:hover { text-decoration: underline; }

/* car24.de's .mil-button: red, square, uppercase Yantramanav, 70px. */
.apply-submit {
    width: 100%;
    height: 64px;
    background: var(--car24-red);
    color: #fff;
    transition: background .4s var(--ease);
}
.apply-submit:hover { background: var(--car24-red-dark); }
.apply-submit:disabled { opacity: 0.7; cursor: default; }
.apply-hint { font-size: 13px; color: var(--ink-soft); text-align: center; }

.form-error {
    background: #fdecec;
    color: var(--danger);
    border-left: 3px solid var(--car24-red);
    padding: 12px 14px;
    font-size: 15px;
    margin-bottom: 18px;
}
.form-success {
    text-align: center;
    padding: 48px 24px;
}
.form-success h2 { font-size: 30px; margin: 0 0 10px; }
.form-success p { color: var(--ink-soft); }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--ink-soft);
}
.empty-state a { color: var(--car24-red); }

/* ---- Footer (car24.de's: #171717 main block with three columns,
   #333 bottom bar with © and social icons) ---- */
.site-footer { background: var(--footer); color: #fff; }
.site-footer-main {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    padding-top: 60px;
    padding-bottom: 50px;
}
@media (max-width: 760px) {
    .site-footer-main { grid-template-columns: 1fr; gap: 32px; padding-top: 44px; }
}
.site-footer-title {
    font-family: var(--font-head);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 18px;
}
.site-footer-col p { margin: 0 0 14px; color: rgba(255, 255, 255, .7); }
.site-footer-col p a { color: #fff; text-decoration: none; }
.site-footer-col p a:hover { color: var(--car24-red); }
.site-footer-links { list-style: none; margin: 0; padding: 0; }
.site-footer-links li { margin-bottom: 15px; }
.site-footer-links li:last-child { margin-bottom: 0; }
.site-footer-links a {
    display: inline-block;
    color: rgba(255, 255, 255, .4);
    text-decoration: none;
    transition: transform .2s var(--ease), color .2s var(--ease);
}
.site-footer-links a:hover { color: #fff; transform: translateX(5px); }
.site-footer-bottom { background: var(--footer-bottom); }
.site-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: 15px;
    color: rgba(255, 255, 255, .4);
}
.site-footer-social { display: flex; gap: 10px; }
.site-footer-social a { display: block; color: rgba(255, 255, 255, .4); transition: color .2s var(--ease); }
.site-footer-social a:hover { color: #fff; }
.site-footer-social svg { display: block; width: 26px; height: 26px; fill: currentColor; }
