/* Karriereseite – bewusst ohne Build-Schritt und ohne externe Ressourcen (DSGVO). */

:root {
    --brand: #1e3a5f;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --surface: #ffffff;
    --background: #f6f7f9;
    --radius: 10px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
}

a { color: var(--brand); }

img { max-width: 100%; height: auto; }

h1, h2, h3 { line-height: 1.25; color: var(--brand); text-wrap: balance; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(680px, 100% - 32px); }

.visually-hidden, .hp {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Kopf- und Fußzeile */

.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand__logo { max-height: 44px; width: auto; }
.brand__name { font-weight: 700; font-size: 1.2rem; color: var(--brand); }
.site-header__link { font-size: 0.95rem; text-decoration: none; font-weight: 600; }

.site-footer { margin-top: 64px; padding: 24px 0; border-top: 1px solid var(--border); background: var(--surface); font-size: 0.9rem; color: var(--muted); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); }

/* Buttons & Formulare */

.button {
    display: inline-block;
    padding: 11px 22px;
    border: 0;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: filter .15s;
}
.button:hover { filter: brightness(1.12); }
.button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 2px; }
.button--block { display: block; width: 100%; margin-top: 20px; }
.button--large { padding: 14px 28px; font-size: 1.05rem; }

input[type="text"], input[type="email"], input[type="tel"], input[type="search"], textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #cfd4dc;
    border-radius: 8px;
    font: inherit;
    background: #fff;
    color: var(--text);
}
textarea { resize: vertical; }

/* Übersicht */

.hero { padding: 48px 0 32px; background: var(--surface); border-bottom: 1px solid var(--border); }
.hero h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.hero__intro { margin: 0 0 24px; max-width: 65ch; color: var(--muted); }
.search { display: flex; gap: 8px; max-width: 560px; }

.job-list { padding-top: 24px; }
.job-list__count { color: var(--muted); font-size: 0.95rem; }

.job-card {
    display: block;
    margin-bottom: 16px;
    padding: 22px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.job-card:hover { border-color: var(--brand); box-shadow: 0 4px 16px rgb(0 0 0 / .06); }
.job-card__title { margin: 0 0 8px; font-size: 1.25rem; }
.job-card__date { display: block; margin-top: 12px; font-size: 0.85rem; color: var(--muted); }

.facts--inline { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.95rem; }
.facts--inline li { display: flex; align-items: center; gap: 6px; }
.icon { flex: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.chips li {
    padding: 4px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand) 9%, #fff);
    color: var(--brand);
    font-size: 0.85rem;
    font-weight: 600;
}

.empty { padding: 32px; text-align: center; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }

/* Detailseite */

.preview-banner { padding: 10px 16px; background: #fef3c7; color: #92400e; text-align: center; font-weight: 600; font-size: 0.95rem; }

.job { padding-top: 32px; }
.back { display: inline-block; margin-bottom: 12px; font-size: 0.95rem; text-decoration: none; }
.job__header h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.3rem); }
.job__company { margin: 6px 0 0; font-weight: 600; color: var(--muted); }

.job__layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; margin-top: 32px; align-items: start; }
.job__aside { position: sticky; top: 24px; display: grid; gap: 16px; }

.prose { max-width: 70ch; }
.prose h2 { margin: 36px 0 12px; font-size: 1.35rem; }
.prose h3 { margin: 24px 0 8px; font-size: 1.1rem; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--brand); }
.prose--lead { font-size: 1.08rem; }

.card { padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.card__title { margin: 0 0 14px; font-size: 1.05rem; }

dl.facts { display: grid; gap: 12px; margin: 0; }
dl.facts dt { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
dl.facts dd { margin: 0; }

.contact p { margin: 0; }
.contact__name { font-weight: 700; }
.contact__role, .contact__org { color: var(--muted); font-size: 0.95rem; }
.contact__links { margin: 12px 0; padding: 0; list-style: none; }
.contact__links li { margin-bottom: 4px; overflow-wrap: anywhere; }
.contact__note { font-size: 0.85rem; color: var(--muted); }

.apply { margin-top: 48px; padding: 28px; }
.apply h2 { margin-top: 0; }
.apply__intro { margin-top: 0; color: var(--muted); }

.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.95rem; }
.field small { display: block; margin-top: 4px; color: var(--muted); font-size: 0.85rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; }
.check input { margin-top: 5px; flex: none; width: 17px; height: 17px; accent-color: var(--brand); }
.form .button { justify-self: start; }

.alert { margin-bottom: 20px; padding: 14px 18px; border-radius: 8px; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert ul { margin: 6px 0 0; padding-left: 1.2em; }

.message { padding: 64px 0; text-align: center; }
.message h1 { margin-top: 0; }

@media (max-width: 860px) {
    .job__layout { grid-template-columns: 1fr; }
    .job__aside { position: static; order: -1; }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .form__row { grid-template-columns: 1fr; }
    .search { flex-direction: column; }
    .apply { padding: 20px; }
    .form .button { justify-self: stretch; }
}
