/* Weinmann Karriere – nur auf Karriereseiten geladen.
   Farben: #c71626 = Markenrot (Fläche + Großtext). #ff5c66 = abgeleiteter Ton für
   kleinen roten Text auf Dunkel (≥4,9:1 bis zum hellsten Verlaufspunkt #2b2f34), keine Kundenfarbe. */

@font-face {
    font-family: 'PT Sans Narrow';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/pt-sans-narrow-700-latin.woff2') format('woff2');
}

/* Nur für den T-Shirt-Schriftzug */
@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 800;
    font-display: block;
    src: url('fonts/barlow-condensed-800-latin.woff2') format('woff2');
}

.wk {
    --wk-ink: #141618;
    --wk-ink-2: #1b1d1f;
    --wk-ink-3: #26292c;
    --wk-red: #c71626;
    --wk-red-dark: #a3101e;
    --wk-red-on-dark: #ff6b73;
    --wk-dark-bg: radial-gradient(120% 90% at 70% 100%, #2b2f34 0%, #23272b 45%, #1d2023 100%);
    --wk-paper: #f4f3ef;
    --wk-white: #ffffff;
    --wk-muted: #5c6166;
    --wk-muted-on-dark: #b8bcc0;
    --wk-narrow: 'PT Sans Narrow', 'Arial Narrow', 'PT Sans', Arial, sans-serif;
    --wk-sans: 'PT Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --wk-gutter: clamp(16px, 4vw, 40px);
    --wk-section: clamp(56px, 9vw, 120px);

    display: block;
    font-family: var(--wk-sans);
    font-size: 18px;
    line-height: 1.6;
    color: var(--wk-ink);
    background: var(--wk-white);
    overflow-x: clip;
}
.wk *, .wk *::before, .wk *::after { box-sizing: border-box; }
.wk p { margin: 0 0 1em; }
.wk p:last-child { margin-bottom: 0; }
.wk ul { margin: 0; padding: 0; list-style: none; }
.wk li { margin: 0; }
.wk img { display: block; max-width: 100%; height: auto; }
.wk figure { margin: 0; }
.wk address { font-style: normal; }
.wk a { color: inherit; }
.wk ::selection { background: var(--wk-red); color: var(--wk-white); }
.wk-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wk-icon { width: 1em; height: 1em; flex: none; }

/* Theme färbt h1/h2 global rot mit !important – hier gezielt überschreiben */
.wk h1, .wk h2, .wk h3 {
    color: inherit !important;
    font-family: var(--wk-narrow);
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    margin: 0 0 .5em;
}

.wk-container {
    width: min(100%, 1240px);
    margin-inline: auto;
    padding-inline: var(--wk-gutter);
}

.wk-section { position: relative; padding-block: var(--wk-section); }
.wk-section--dark { background: #1d2023 var(--wk-dark-bg); color: var(--wk-white); }
.wk-section--light { background: var(--wk-paper); }
.wk-section--red { background: var(--wk-red); color: var(--wk-white); }

.wk-h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.05; }
.wk-h1--job { font-size: clamp(34px, 5.2vw, 64px); }
.wk-h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.08; max-width: 22ch; }
.wk-h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; }
.wk-lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; max-width: 62ch; }

.wk-accent { color: var(--wk-red-on-dark); }

/* Buttons – Mindesthöhe 48px */
.wk-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.wk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 26px;
    border: 2px solid transparent;
    border-radius: 2px;
    font-family: var(--wk-narrow);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none !important;
    line-height: 1.1;
    transition: background-color .15s, color .15s, border-color .15s;
}
.wk-btn--red { background: var(--wk-red); color: var(--wk-white) !important; }
.wk-btn--red:hover { background: var(--wk-red-dark); }
.wk-btn--light { background: var(--wk-white); color: var(--wk-red) !important; }
.wk-btn--light:hover { background: var(--wk-paper); }
.wk-btn--outline { border-color: var(--wk-ink); color: var(--wk-ink) !important; background: var(--wk-white); }
.wk-btn--outline-light { border-color: var(--wk-white); color: var(--wk-white) !important; }
.wk-btn--outline-light:hover { background: rgba(255, 255, 255, .12); }

/* Fokus: 3px, auf Hell dunkel, auf Dunkel/Rot weiß */
.wk a:focus-visible, .wk button:focus-visible, .wk [tabindex]:focus-visible {
    outline: 3px solid var(--wk-ink);
    outline-offset: 3px;
}
.wk-hero a:focus-visible, .wk-section--dark a:focus-visible, .wk-section--red a:focus-visible,
.wk-section--dark [tabindex]:focus-visible {
    outline-color: var(--wk-white);
}

/* Punktraster wie auf dem T-Shirt */
.wk-dots {
    position: absolute;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .35) 1.6px, transparent 2px);
    background-size: 26px 26px;
}

/* ---------- Hero ---------- */
.wk-hero {
    position: relative;
    background: #1d2023 var(--wk-dark-bg);
    color: var(--wk-white);
    padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 112px);
}
.wk-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}
.wk-hero .wk-lead { color: var(--wk-white); }
.wk-hero__media { position: relative; }
.wk-hero__img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.wk--job .wk-hero__img { aspect-ratio: 4 / 3; background: var(--wk-white); }
.wk-dots--hero { inset: 18% -24px -24px 24%; z-index: 0; }
.wk-hero__tagline { font-size: clamp(20px, 1.8vw, 24px); color: var(--wk-white); max-width: 40ch; }

.wk-crumbs { font-size: 16px; margin-bottom: 20px; color: var(--wk-muted-on-dark); }
.wk-crumbs a { color: var(--wk-white); text-underline-offset: 3px; }
.wk-draft {
    display: inline-block;
    background: #ffc42e;
    color: var(--wk-ink);
    font-weight: 700;
    padding: 4px 10px;
    margin-bottom: 16px !important;
}

.wk-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px !important; }
.wk-tags li {
    border: 1px solid rgba(255, 255, 255, .5);
    padding: 4px 12px;
    font-size: 16px;
}

/* ---------- T-Shirt-Schriftzug (SVG, Maße siehe VORLAGE-ANALYSE.md) ---------- */
.wk-lockup {
    display: block;
    width: min(100%, 620px);
    height: auto;
    margin: 0 0 clamp(28px, 4vw, 44px) -7px;
    overflow: visible;
}
.wk-lockup__bar { fill: var(--wk-red); }
.wk-lockup__w, .wk-lockup__txt { fill: var(--wk-white); }
.wk-lockup__txt { font-family: 'Barlow Condensed', var(--wk-narrow); font-weight: 800; }
.wk-lockup__txt--red { fill: var(--wk-red); }

/* ---------- Claim mit wechselndem Wort ---------- */
.wk-claim { margin: 0 0 4px !important; color: var(--wk-white) !important; }
.wk-claim__visual { display: block; }
.wk-claim { font-family: var(--wk-narrow) !important; font-weight: 700; }
.wk-hero__text { container-type: inline-size; }
.wk-claim { margin-bottom: clamp(24px, 3vw, 40px) !important; }
/* Größe so, dass „Lust auf Abwechslung“ (gemessen ≈ 7,7 em) immer in die Textspalte passt */
.wk-claim__line { display: block; font-size: min(110px, 100cqi / 8.2); line-height: .98; white-space: nowrap; }
.wk-claim__word { display: inline-block; color: var(--wk-red); } /* Weinmann-Rot auf Wunsch (Großschrift, 2,2–2,8:1 auf dem Grauverlauf) */
.wk-claim__rest { display: block; margin-top: .4em; font-size: clamp(24px, 6cqi, 40px); line-height: 1.2; color: var(--wk-white); }
.wk-hero__sub { font-family: var(--wk-narrow); font-weight: 700; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; color: var(--wk-white); margin: 0 0 12px !important; }

/* ---------- Vielfalt ---------- */
.wk-variety { padding-bottom: calc(var(--wk-section) - 16px); }
.wk-variety__scroller { position: relative; margin-top: 40px; }
.wk-variety__list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--wk-gutter);
    padding: 4px max(var(--wk-gutter), calc((100vw - 1240px) / 2 + var(--wk-gutter))) 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--wk-red) transparent;
}
.wk-variety__item { flex: 0 0 clamp(220px, 26vw, 300px); scroll-snap-align: start; }
.wk-variety__figure { background: var(--wk-paper); height: 100%; display: flex; flex-direction: column; }
.wk-variety__media {
    display: block;
    aspect-ratio: 4 / 5;
    background: var(--wk-white);
    border: 1px solid #e3e2dd;
    border-bottom: 0;
}
.wk-variety__img { width: 100%; height: 100% !important; object-fit: contain; padding: 14px; }
.wk-variety__caption { padding: 14px 16px 18px; border-top: 4px solid var(--wk-red); }
.wk-variety__what { display: block; font-family: var(--wk-narrow); font-weight: 700; font-size: 24px; line-height: 1.1; }
.wk-variety__how { display: block; font-size: 16px; color: var(--wk-muted); }
.wk-variety__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: end; }
.wk-variety__title { max-width: none; margin: 0 !important; }
.wk-variety__swap { display: block; }
.wk-variety__row { display: block; white-space: nowrap; }
.wk-variety__row--next { color: var(--wk-muted); }
.wk-variety__word { display: inline-block; color: var(--wk-red); }
.wk-variety__row--next .wk-variety__word { color: inherit; }
.wk-variety__bar { height: 3px; background: #e3e2dd; width: min(calc(100% - 2 * var(--wk-gutter)), calc(1240px - 2 * var(--wk-gutter))); margin: 4px auto 0; overflow: hidden; }
.wk-variety__progress { display: block; height: 100%; width: 100%; background: var(--wk-red); transform-origin: left; transform: scaleX(.09); }
.wk-variety__item { transition: opacity .3s; }
.wk-variety--pinned .wk-variety__list { overflow: visible; scroll-snap-type: none; }
.wk-variety--pinned .wk-variety__item.is-past { opacity: .35; }
.wk-variety__nav[hidden] { display: none; }
.wk-variety__nav { display: flex; gap: 8px; justify-content: flex-end; padding-inline: var(--wk-gutter); width: min(100%, 1240px); margin: 8px auto 0; }
.wk-variety__btn {
    width: 48px; height: 48px;
    border: 2px solid var(--wk-ink);
    background: var(--wk-white);
    color: var(--wk-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    border-radius: 2px;
}
.wk-variety__btn:hover { background: var(--wk-ink); color: var(--wk-white); }
.wk-variety__btn:focus-visible { outline: 3px solid var(--wk-red); outline-offset: 2px; }

/* ---------- Output ---------- */
.wk-output { background: var(--wk-paper); }
.wk-output__claim { font-family: var(--wk-narrow); font-weight: 700; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; color: var(--wk-ink); }
.wk-output .wk-h2 { margin-bottom: clamp(32px, 4vw, 56px); }
.wk-output__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.wk-output__img { width: 100%; }

/* ---------- Normen ---------- */
.wk-norms { overflow: hidden; }
.wk-norms__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
.wk-norms__text { color: var(--wk-white); }
.wk-norms .wk-dots { right: -40px; bottom: -40px; width: 340px; height: 260px; opacity: .6; }
.wk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px !important; }
.wk-chips li {
    font-family: var(--wk-narrow);
    font-weight: 700;
    font-size: 18px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .22);
}

/* ---------- Stellen ---------- */
.wk-jobs__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px !important; }
.wk-card { display: flex; }
.wk .wk-card__link {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--wk-ink);
    color: var(--wk-white);
    text-decoration: none !important;
    transition: transform .2s;
}
a.wk-card__link:hover { transform: translateY(-4px); }
a.wk-card__link:hover .wk-card__more { color: var(--wk-white); }
a.wk-card__link .wk-icon { transition: transform .2s cubic-bezier(.16, 1, .3, 1); }
a.wk-card__link:hover .wk-icon { transform: translateX(4px); }
.wk-card__media { display: block; aspect-ratio: 4 / 3; background: var(--wk-white); overflow: hidden; }
.wk-card__img { width: 100%; height: 100% !important; object-fit: cover; }
.wk-card--soon .wk-card__img { filter: grayscale(1); opacity: .75; }
.wk-card__body { display: flex; flex-direction: column; gap: 10px; padding: 24px; flex: 1; border-top: 6px solid var(--wk-red); }
.wk-card__title { font-family: var(--wk-narrow); font-weight: 700; font-size: 28px; line-height: 1.1; }
.wk-card__tagline { color: var(--wk-white); }
.wk-card__facts { font-size: 16px; color: var(--wk-muted-on-dark); }
.wk-card__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: auto;
    padding-top: 8px;
    font-family: var(--wk-narrow);
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--wk-red-on-dark);
}
.wk-card__soon { margin-top: auto; padding-top: 8px; color: var(--wk-white); }
.wk-card__soon a { color: var(--wk-white); text-decoration: underline; text-underline-offset: 3px; }
.wk-card__soon a:focus-visible { outline-color: var(--wk-white); }

/* ---------- Warum ---------- */
.wk-why { background: var(--wk-paper); }
.wk-why__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.wk-why__figure { position: sticky; top: 120px; }
.wk-why__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.wk-why__caption { margin-top: 10px; font-size: 15px; color: var(--wk-muted); }
.wk-why__list { margin: clamp(24px, 3vw, 40px) 0 0 !important; }
.wk-why__item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px 32px; padding: 24px 0; border-top: 1px solid #d6d4cc; }
.wk-why__item:last-child { border-bottom: 1px solid #d6d4cc; }
.wk-why__item dt { margin: 0 !important; }
.wk-why__item dd { margin: 0; font-size: 17px; }

/* ---------- Stellendetails ---------- */
.wk-intro__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 64px); }
.wk-details__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.wk-details__col { background: var(--wk-white); padding: clamp(24px, 3vw, 36px); border-top: 6px solid var(--wk-red); }
.wk-details__title { font-size: clamp(26px, 2.4vw, 32px); }
.wk-list li { position: relative; padding-left: 26px; margin-bottom: 12px; font-size: 17px; }
.wk-list li::before {
    content: '';
    position: absolute;
    left: 0; top: .55em;
    width: 12px; height: 4px;
    background: var(--wk-red);
}

/* ---------- Bewerben ---------- */
.wk-apply__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.wk-apply .wk-lead { color: var(--wk-white); }
.wk-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--wk-ink);
    padding: 28px;
    color: var(--wk-white);
}
.wk-contact__label { font-family: var(--wk-narrow); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 16px; color: var(--wk-red-on-dark); }
.wk-contact__name { font-family: var(--wk-narrow); font-size: 30px; line-height: 1.1; }
.wk-contact a { color: var(--wk-white); text-underline-offset: 3px; padding-block: 4px; }
.wk-contact a:focus-visible { outline-color: var(--wk-white); }

/* ---------- Mobile Leiste ---------- */
.wk-ctabar { display: none; }

/* ---------- Tablet ---------- */
@media (max-width: 991px) {
    .wk-hero__grid, .wk-norms__grid, .wk-output__grid, .wk-why__grid, .wk-apply__grid, .wk-intro__grid, .wk-variety__head { grid-template-columns: minmax(0, 1fr); }
    .wk-why__figure { position: static; }
    .wk-why__img { aspect-ratio: 4 / 3; }
    .wk-hero__media { max-width: 560px; }
    .wk-jobs__list, .wk-details__grid { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
}

/* ---------- Mobil ---------- */
@media (max-width: 767px) {
    .wk { font-size: 17px; }
    .wk-why__item { grid-template-columns: minmax(0, 1fr); }
    .wk-variety__row { white-space: normal; }
    .wk--overview .wk-hero__media { display: none; }
    .wk-dots--hero { inset: 20% -12px -12px 30%; }
    .wk-actions .wk-btn { flex: 1 1 100%; }
    .wk-variety__nav { display: none !important; }

    .wk-ctabar {
        display: flex;
        gap: 8px;
        position: sticky;
        bottom: 0;
        z-index: 50;
        padding: 10px var(--wk-gutter) calc(10px + env(safe-area-inset-bottom));
        background: var(--wk-white);
        box-shadow: 0 -2px 12px rgba(0, 0, 0, .18);
    }
    .wk-ctabar .wk-btn { min-height: 48px; font-size: 18px; padding: 10px 14px; }
    .wk-ctabar .wk-btn--red { flex: 1 1 auto; }
    .wk-ctabar .wk-btn--outline { flex: 0 0 auto; }
}

/* ---------- Auftritt Schriftzug (einziger inszenierter Moment) ----------
   Balken fährt entlang der Schräge auf, der lange W-Strich schießt hoch,
   die Zeilen kommen unter dem Balken hervor, „WE TEST“ setzt wie ein Prüfstempel auf. */
@keyframes wk-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes wk-rise { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes wk-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes wk-stamp { 0% { opacity: 0; transform: scale(1.18); } 60% { opacity: 1; } 100% { opacity: 1; transform: scale(1); } }
.wk-motion .wk-lockup__bar, .wk-motion .wk-lockup__w, .wk-motion .wk-lockup__txt { transform-box: fill-box; }
.wk-motion .wk-lockup__bar { animation: wk-wipe .6s cubic-bezier(.16, 1, .3, 1) .1s both; }
.wk-motion .wk-lockup__w { animation: wk-rise .5s cubic-bezier(.16, 1, .3, 1) .38s both; }
.wk-motion .wk-lockup__txt { animation: wk-up .5s cubic-bezier(.16, 1, .3, 1) both; }
.wk-motion .wk-lockup__txt:nth-of-type(1) { animation-delay: .5s; }
.wk-motion .wk-lockup__txt:nth-of-type(2) { animation-delay: .58s; }
.wk-motion .wk-lockup__txt:nth-of-type(3) { animation-delay: .72s; }
.wk-motion .wk-lockup__txt--red { transform-origin: 50% 60%; animation: wk-stamp .45s cubic-bezier(.16, 1, .3, 1) .9s both; }

@media (prefers-reduced-motion: reduce) {
    .wk *, .wk *::before, .wk *::after { transition: none !important; scroll-behavior: auto !important; }
}
