/* Karriere – Übersicht, Stellenseite, Bewerbung.
   Baut auf den Straus-Tokens aus site.css auf (Violett, Lavendel, Barlow Condensed kursiv,
   schräge Kante als Markenzeichen). Eine starke Geste pro Seite: das schräge Violett-Band. */

.st-nav a[aria-current="page"]{border-bottom-color:var(--st-white)}

/* Hero der Übersicht: Violett-Panel mit schräger Kante, rechts die zwei Fakten */
.kr-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);background:var(--st-lavender);overflow:hidden}
.kr-hero-panel{padding:clamp(3.5rem,8vw,6.5rem) calc(var(--st-slant) * 2.2) clamp(3rem,6vw,4.5rem) max(1.5rem,calc((100vw - 1180px)/2));background:var(--st-violet);color:var(--st-white);clip-path:polygon(0 0,100% 0,calc(100% - var(--st-slant) * 1.6) 100%,0 100%)}
.kr-hero h1{font-size:var(--st-t-hero);line-height:.95}
.kr-hero-lead{margin:1.25rem 0 0;max-width:32em;color:var(--st-lavender);font-size:var(--st-t-lg);line-height:1.45}
.kr-hero-facts{display:flex;flex-direction:column;justify-content:flex-end;gap:1rem;padding:2.5rem max(1.5rem,calc((100vw - 1180px)/2)) clamp(3rem,6vw,4.5rem) 2rem;color:var(--st-violet-deep)}
.kr-hero-facts p{margin:0;max-width:22ch;font-size:var(--st-t-lg);line-height:1.35}
.kr-hero-facts strong{display:block;font-family:var(--st-display);font-style:italic;font-weight:700;font-size:clamp(3.5rem,8vw,5.5rem);line-height:.85;color:var(--st-violet)}

/* Liste */
.kr-list-section{background:var(--st-white)}
.kr-list-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:1rem 2rem}
.kr-filter,.kr-depts{display:flex;flex-wrap:wrap;gap:.4rem}
.kr-filter a,.kr-depts a{min-height:44px;display:inline-flex;align-items:center;padding:.4rem 1rem;border:2px solid var(--st-violet);color:var(--st-violet);font-weight:600;text-decoration:none}
.kr-filter a:hover,.kr-depts a:hover{background:var(--st-lavender)}
.kr-filter a[aria-current="true"],.kr-depts a[aria-current="true"]{background:var(--st-violet);color:var(--st-white)}
.kr-depts{margin-top:1rem}
.kr-depts a{border-width:1px;font-weight:500;font-size:var(--st-t-sm)}
.kr-empty{margin:2rem 0 0;padding:1.25rem;background:var(--st-lavender)}
.kr-empty a{color:var(--st-violet);font-weight:600}
.kr-group{margin-top:2.75rem}
.kr-group-title{font-size:var(--st-t-xl);color:var(--st-muted)}
.kr-rows{margin:.9rem 0 0;padding:0;list-style:none;border-top:2px solid var(--st-violet)}
.kr-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.35rem 2rem;align-items:center;padding:1.35rem 0;border-bottom:1px solid var(--st-line)}
.kr-row h4,.kr-row .kr-row-title{grid-column:1;margin:0;font-family:var(--st-display);font-style:italic;font-weight:700;font-size:clamp(1.4rem,2.6vw,1.9rem);line-height:1.08}
.kr-row h4 a,.kr-row .kr-row-title a{color:var(--st-ink);text-decoration:none}
.kr-row h4 a::after,.kr-row .kr-row-title a::after{content:"";position:absolute;inset:0}
.kr-row-meta{grid-column:1;display:flex;flex-wrap:wrap;gap:.2rem 1.1rem;margin:0;color:var(--st-muted);font-size:var(--st-t-sm)}
.kr-row-cta{grid-column:2;grid-row:1/span 2;padding:.55rem 1rem;border:2px solid var(--st-violet);color:var(--st-violet);font-weight:600;white-space:nowrap}
.kr-row:hover h4 a,.kr-row:hover .kr-row-title a{color:var(--st-violet)}
.kr-row:hover .kr-row-cta{background:var(--st-violet);color:var(--st-white)}
.kr-row:focus-within{outline:3px solid var(--st-violet);outline-offset:4px}
.kr-row a:focus-visible{outline:none}

/* Initiativ-Band */
.kr-initiative{background:var(--st-night);color:var(--st-white)}
.kr-initiative-inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(1.5rem,6vw,5rem);align-items:end}
.kr-initiative h2{color:var(--st-white)}
.kr-initiative p{margin:0 0 1.4rem;color:var(--st-lavender);font-size:var(--st-t-lg);line-height:1.5;max-width:36ch}

/* Benefits + Ablauf */
.kr-benefits{background:var(--st-lavender)}
.kr-benefit-list{margin:2.25rem 0 0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem clamp(1.5rem,4vw,3rem)}
.kr-benefit-list li{padding-top:.9rem;border-top:2px solid var(--st-violet);font-weight:500;color:var(--st-ink);max-width:28ch}
.kr-process{background:var(--st-white)}
.kr-steps{margin:2.25rem 0 0;padding:0;list-style:none;counter-reset:step;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.5rem}
.kr-steps li{counter-increment:step;padding-top:.9rem;border-top:2px solid var(--st-violet)}
.kr-steps h3{font-size:var(--st-t-xl);color:var(--st-violet-deep)}
.kr-steps h3::before{content:counter(step);display:block;margin-bottom:.35rem;font-size:var(--st-t-3xl);line-height:.9;color:var(--st-violet)}
.kr-steps p{margin:.45rem 0 0;color:var(--st-muted)}
.kr-process-contact{margin:2.5rem 0 0;color:var(--st-muted)}
.kr-process-contact a{color:var(--st-violet);font-weight:600}

/* Brotkrumen */
.kr-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem;margin-bottom:1.25rem;font-size:var(--st-t-sm)}
.kr-crumbs a{min-height:24px;display:inline-flex;align-items:center;color:var(--st-violet);font-weight:500}
.kr-crumbs-light a{color:var(--st-lavender)}
.kr-crumbs-light span{color:var(--st-lavender-mid)}

/* Stellenseite: schräger Violett-Kopf */
.kr-job-head{background:var(--st-violet);color:var(--st-white);clip-path:polygon(0 0,100% 0,100% calc(100% - var(--st-slant)),0 100%);padding:clamp(2.25rem,5vw,3.5rem) 0 calc(clamp(2.5rem,5vw,3.75rem) + var(--st-slant))}
.kr-job-head-inner{width:var(--st-shell);margin-inline:auto}
.kr-job-head h1{max-width:26ch;font-size:clamp(2.2rem,5.2vw,4rem);line-height:.98}
.kr-job-lead{margin:1rem 0 0;max-width:40em;color:var(--st-lavender);font-size:var(--st-t-lg)}
.kr-job-facts{display:flex;flex-wrap:wrap;gap:.5rem;margin:1.4rem 0 0;padding:0;list-style:none}
.kr-job-facts li{padding:.3rem .8rem;border:1px solid rgba(220,218,232,.55);color:var(--st-white);font-size:var(--st-t-sm);font-weight:500}
.kr-jump{margin-top:1.6rem}
.kr-preview-note{display:inline-block;margin:1rem 0 0;padding:.4rem .8rem;background:#f2d34b;color:var(--st-ink);font-weight:600}

.kr-job-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,26rem);gap:clamp(2rem,5vw,4.5rem);align-items:start;padding:clamp(2rem,5vw,3.5rem) 0 clamp(3.5rem,7vw,6rem)}
.kr-job-content{min-width:0}
.kr-intro{margin:0 0 2rem;font-size:var(--st-t-lg);line-height:1.5;max-width:38em}
.kr-job-content section{padding:1.4rem 0;border-top:1px solid var(--st-line)}
.kr-job-content h2{margin:0 0 .8rem;font-size:var(--st-t-2xl);line-height:1.05;color:var(--st-violet)}
.kr-job-content ul{margin:0;padding:0;list-style:none}
.kr-job-content ul li{position:relative;padding:.3rem 0 .3rem 1.4rem;max-width:62ch}
.kr-job-content ul li::before{content:"";position:absolute;left:0;top:.95em;width:.7rem;height:2px;background:var(--st-violet)}
.kr-details{margin:0}
.kr-details div{display:grid;grid-template-columns:9rem minmax(0,1fr);gap:1rem;padding:.45rem 0;border-bottom:1px solid var(--st-line)}
.kr-details dt{font-weight:600}.kr-details dd{margin:0;color:var(--st-muted)}
.kr-contact a{color:var(--st-violet);font-weight:600}
.kr-muted{color:var(--st-muted);font-size:var(--st-t-sm)}

/* Bewerbungsformular: klebt beim Scrollen, Lavendel mit violetter Oberkante */
.kr-apply{position:sticky;top:6rem;padding:clamp(1.25rem,3vw,1.9rem);background:var(--st-white);border-top:5px solid var(--st-violet);box-shadow:0 18px 40px rgba(57,49,133,.1);scroll-margin-top:6rem}
.kr-apply:focus{outline:none}
.kr-apply h2{font-size:var(--st-t-2xl);line-height:1.05;color:var(--st-violet)}
.kr-apply-lead{margin:.4rem 0 1.1rem;color:var(--st-muted);font-size:var(--st-t-sm)}
.kr-apply .fs-form-grid{grid-template-columns:1fr 1fr}
.kr-apply .fs-field textarea{min-height:7.5rem}
.kr-apply select{width:100%;min-height:48px;padding:.6rem .8rem;border:1px solid var(--st-lavender-mid);border-radius:2px;background:var(--st-paper);color:var(--st-ink);font:inherit}
.kr-choice{margin:0 0 1rem;padding:0;border:0}
.kr-choice legend{margin-bottom:.35rem;font-size:var(--st-t-sm);font-weight:600}
.kr-choice label{display:inline-flex;align-items:center;gap:.45rem;min-height:44px;margin-right:1.2rem}
.kr-choice input{accent-color:var(--st-violet);width:1.1rem;height:1.1rem}
.kr-hint{display:block;margin-top:.3rem;color:var(--st-muted);font-size:var(--st-t-sm);line-height:1.45}
.kr-upload input[type=file]{min-height:auto;padding:.7rem;background:var(--st-paper);border:1px dashed var(--st-violet);cursor:pointer}
.kr-upload input[type=file]::file-selector-button{margin-right:.8rem;padding:.45rem .9rem;border:0;background:var(--st-violet);color:var(--st-white);font:600 var(--st-t-sm) var(--st-body);cursor:pointer}
.kr-file-feedback{display:block;margin-top:.35rem;font-size:var(--st-t-sm);color:var(--st-violet-deep)}
.kr-file-feedback.is-error{color:#a3202f;font-weight:600}
.kr-submit{width:100%}
.kr-submit[aria-busy="true"]{opacity:.75;cursor:progress}
.kr-success h2{color:var(--st-violet)}
.kr-success p{margin:.8rem 0 0}
.kr-success a{color:var(--st-violet);font-weight:600}
.kr-ref{padding:.7rem .9rem;background:var(--st-lavender);font-variant-numeric:tabular-nums}
.fs-honeypot{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.fs-error-summary ul{margin:.5rem 0 0;padding-left:1.1rem}
.fs-error-summary a{color:#7d1622}

/* 410/404 */
.kr-gone{background:var(--st-white)}
.kr-gone h1{max-width:24ch;font-size:var(--st-t-3xl);line-height:1;color:var(--st-violet)}
.kr-gone-lead{margin:1rem 0 1.5rem;color:var(--st-muted);font-size:var(--st-t-lg)}
.kr-gone .kr-rows{margin-bottom:2rem}

@media(max-width:1020px){
  .kr-hero{grid-template-columns:1fr}
  .kr-hero-panel{clip-path:none;padding-right:1.5rem}
  .kr-hero-facts{flex-direction:row;flex-wrap:wrap;align-items:flex-end;padding:1.75rem max(1.5rem,calc((100vw - 1180px)/2));gap:1rem 2.5rem}
  .kr-benefit-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kr-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kr-initiative-inner,.kr-job-body{grid-template-columns:1fr}
  .kr-apply{position:static}
}
@media(max-width:640px){
  .kr-hero-panel{padding:2.75rem 1rem 2.5rem}
  .kr-hero-facts{padding:1.5rem 1rem 2rem}
  .kr-row{grid-template-columns:1fr}
  .kr-row-cta{grid-column:1;grid-row:auto;justify-self:start;margin-top:.5rem}
  .kr-benefit-list,.kr-steps,.kr-apply .fs-form-grid{grid-template-columns:1fr}
  .kr-details div{grid-template-columns:1fr;gap:.1rem}
  .kr-job-head-inner{width:calc(100% - 2rem)}
}
@media(forced-colors:active){
  .kr-hero-panel,.kr-job-head{clip-path:none;border-bottom:1px solid CanvasText}
  .kr-filter a[aria-current="true"],.kr-depts a[aria-current="true"]{outline:2px solid CanvasText}
}
@media print{
  .st-header,.st-footer,.kr-apply,.kr-jump,.st-staging-bar{display:none!important}
  .kr-job-head{clip-path:none;background:none;color:#000;padding:0}
  .kr-job-body{grid-template-columns:1fr}
}

/* Zielgröße mindestens 24 px (WCAG 2.5.8) auch für Auswahlfelder */
.kr-form .fs-checkbox input,.kr-choice input{width:24px;height:24px;margin-top:0;flex:none}
.kr-form .fs-checkbox{align-items:flex-start}
.kr-form .fs-checkbox a{display:inline-block;min-height:24px}

/* Karriere-Kopf: Foto der Azubis über den Eckdaten */
.kr-hero-side{display:flex;flex-direction:column;min-width:0}
.kr-hero-img{display:block;width:100%;flex:1;min-height:15rem;max-height:24rem;object-fit:cover;object-position:center 35%}
.kr-hero-side .kr-hero-facts{flex-direction:row;flex-wrap:wrap;align-items:flex-end;justify-content:flex-start;gap:.75rem 2rem;padding-top:1.5rem;padding-bottom:1.75rem}
@media(max-width:1020px){.kr-hero-img{min-height:13rem;max-height:18rem}}
