/* Apprentice page of draft 3 (lernende.html), combination chosen by Gianni on 22.09.2026:
   the apprentices as a list with year bars next to a photo with the Lehrbetrieb seal (from proposal "Stelleninserat"),
   then the open positions as job cards on Kern green (from proposal "Lehrweg"). Only loaded by lernende.html. */

.kl { --kl-green: #017153; --kl-dark: #04382A; --kl-ink: #062C22; --kl-yellow: #FDF21E; --kl-grey: #EDEEED;
  font-family: var(--_typography---font--body-font); color: var(--kl-ink); }

.kl-sec { padding: var(--_sizes---section--section-padding-vertical) 6vw; position: relative; }
.kl-sec.white { background: #fff; }
.kl-sec.grey { background: var(--kl-grey); }
.kl-sec.green { background: var(--kl-green); color: #fff; }
.kl h2 { margin: 0; font-family: var(--_typography---font--heading-font); font-weight: 500; letter-spacing: -.035em; line-height: 1.04; color: var(--kl-dark); font-size: clamp(2rem, 3.6vw, 3.6rem); }
.kl .green h2 { color: #fff; }
.kl h3 { margin: 0; font-family: var(--_typography---font--heading-font); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; color: var(--kl-dark); font-size: clamp(1.25rem, 1.6vw, 1.6rem); }
.kl p { margin: 0; font-size: 17px; line-height: 1.6; }
.kl .tag-wrap { justify-content: flex-start; margin-bottom: 22px; }
.kl-head-center { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 52rem; margin: 0 auto 4vw; }
.kl-head-center p { margin-top: 1.1rem; max-width: 40rem; color: rgba(255, 255, 255, .82); }

.kl-ic { font-family: "Material Icons"; font-weight: normal; font-style: normal; line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap; font-feature-settings: "liga"; -webkit-font-smoothing: antialiased; }
.kl-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 8px; background: var(--kl-green); color: #fff; text-decoration: none; font: 500 16px/1 var(--_typography---font--body-font); transition: background-color .25s, color .25s; }
.kl-btn:hover { background: var(--kl-dark); color: #fff; }
.kl a:focus-visible { outline: 2px solid var(--kl-dark); outline-offset: 3px; }
.kl .green a:focus-visible { outline-color: var(--kl-yellow); }
.kl-chip { align-self: flex-start; margin-bottom: 14px; padding: 5px 8px; border-radius: 4px; background: var(--kl-grey); font-size: 11px; font-weight: 500; letter-spacing: .02em; color: var(--kl-dark); }

/* round construction icon in the style of the start page counters: yellow on a green circle */
.kl-dot { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--kl-green); color: var(--kl-yellow); display: grid; place-items: center; }
.kl-dot .kl-ic { font-size: 26px; }

/* open positions: two job cards plus a partner column, on Kern green */
.kl1-jobs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .7fr); gap: 1.6vw; align-items: stretch; }
.kl1-job { display: flex; flex-direction: column; background: #fff; border-radius: var(--_sizes---radius--md-radius); overflow: hidden; color: var(--kl-ink); }
.kl1-job figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; }
.kl1-job img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kl1-job-body { display: flex; flex-direction: column; flex-grow: 1; padding: 26px; }
.kl1-job h3 { margin-bottom: 14px; }
.kl1-job p { font-size: 16px; color: rgba(6, 44, 34, .72); margin-bottom: 24px; }
.kl1-job .kl-btn { margin-top: auto; align-self: flex-start; }
.kl1-facts { margin: 0 0 24px; padding: 0; list-style: none; border-top: 1px solid rgba(4, 56, 42, .14); }
.kl1-facts li { display: grid; grid-template-columns: 3.4rem 1fr; gap: .8rem; padding: 12px 0; border-bottom: 1px solid rgba(4, 56, 42, .14); font-size: 15px; }
.kl1-facts span { font-weight: 600; color: var(--kl-green); }
.kl1-facts b { font-weight: 500; color: var(--kl-dark); }
.kl1-partner { display: flex; flex-direction: column; gap: 1.6vw; }
.kl1-partner a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; border-radius: var(--_sizes---radius--md-radius); background: var(--kl-dark); color: #fff; text-decoration: none; text-align: center; font-size: 15px; font-weight: 500; transition: background-color .25s; }
.kl1-partner a:hover { background: #065C45; }
.kl1-partner img { display: block; max-width: 100%; height: 44px; padding: 10px 14px; box-sizing: content-box; background: #fff; border-radius: 8px; }
.kl1-partner img.round { width: 120px; height: 120px; padding: 0; border-radius: 50%; }

/* ============ apprentices ============ */
.kl2-team { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 5vw; align-items: center; }
.kl2-photo { position: relative; }
.kl2-photo figure { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--_sizes---radius--md-radius); overflow: hidden; }
.kl2-photo figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; display: block; }
/* the official apprenticeship seal as a round sticker, turns with the scroll */
.kl2-sticker { --r: 0deg; position: absolute; right: -44px; top: 10%; width: 150px; height: 150px; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 16px 34px rgba(4, 56, 42, .22), 0 0 0 6px #fff; transform: rotate(var(--r)); }
.kl2-sticker img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kl2-team > div > p { margin-top: 1.2rem; max-width: 34rem; color: rgba(6, 44, 34, .78); }
.kl2-list { margin: 2.2rem 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.kl2-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 18px 14px 14px; background: #fff; border-radius: 12px; }
.kl2-list b { display: block; font: 500 18px/1.2 var(--_typography---font--heading-font); color: var(--kl-dark); }
.kl2-list span { display: block; margin-top: 3px; font-size: 15px; color: rgba(6, 44, 34, .64); }
.kl2-list .kl-dot .kl-ic { margin: 0; font-size: 26px; color: inherit; }
/* year bars: --n bars (length of the apprenticeship), the first --y filled */
.kl2-years { display: grid; grid-template-columns: repeat(3, 26px); gap: 5px; align-items: center; justify-items: stretch; }
.kl2-years i { height: 10px; border-radius: 3px; background: rgba(4, 56, 42, .12); }
.kl2-years[style*="--y:1"] i:nth-child(1),
.kl2-years[style*="--y:2"] i:nth-child(-n + 2),
.kl2-years[style*="--y:3"] i:nth-child(-n + 3) { background: var(--kl-green); }
.kl2-years small { grid-column: 1 / -1; justify-self: end; font-size: 13px; font-weight: 500; color: var(--kl-dark); }
.kl2-legend { margin-top: 1rem !important; font-size: 14px !important; color: rgba(6, 44, 34, .6) !important; }

/* ============ responsive ============ */
@media (max-width: 991px) {
  .kl2-team { grid-template-columns: 1fr; }
  .kl1-jobs { grid-template-columns: 1fr 1fr; }
  .kl1-partner { grid-column: 1 / -1; flex-direction: row; }
  .kl2-photo { max-width: 520px; }
  .kl2-sticker { right: -20px; }
}
@media (max-width: 767px) {
  .kl-sec { padding: 64px 20px; }
  .kl-head-center { margin-bottom: 36px; }
  .kl1-jobs { grid-template-columns: 1fr; gap: 16px; }
  .kl1-partner { flex-direction: column; gap: 16px; }
  .kl2-list li { grid-template-columns: auto minmax(0, 1fr); }
  .kl2-years { grid-column: 2; justify-self: start; }
  .kl2-years small { justify-self: start; }
  .kl2-sticker { width: 108px; height: 108px; right: -8px; top: -24px; }
  .kl2-photo { margin-right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .kl2-sticker { transform: none; }
}
