/* ============================================================
   KARRIERE – Recruiting-Funnel
   ============================================================ */
.page-karriere { --k-dark: #0E0E0F; --k-soft: #F5F4F1; --k-live: #25D366; }

/* Scroll-Einblendung */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 1. Einstieg ---------- */
.kh { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--k-dark); }
.kh-bg { position: absolute; inset: 0; }
.kh-bg picture { display: contents; }
.kh-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: khZoom 18s ease-out forwards; }
.kh-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.35) 35%, rgba(10,10,10,.92) 100%); }
@keyframes khZoom { to { transform: scale(1); } }
.kh-inner { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 40px); padding-bottom: 96px; width: 100%; }
.kh-label { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.kh-live { width: 8px; height: 8px; border-radius: 50%; background: var(--k-live); box-shadow: 0 0 0 0 rgba(37,211,102,.7); animation: khPulse 1.8s infinite; }
@keyframes khPulse { 70% { box-shadow: 0 0 0 10px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

.kh-title, .kh h1 { color: #fff; }
.kh-title { font-family: var(--font-display); font-size: clamp(2.6rem, 7vw, 6rem); line-height: 1.02; letter-spacing: -.02em; margin: 22px 0 18px; font-weight: 600; }
.kh-title em { font-style: normal; background: linear-gradient(transparent 82%, var(--color-accent) 82%); background-size: 0% 100%; background-repeat: no-repeat; animation: khUnder 1.2s .9s var(--ease) forwards; }
@keyframes khUnder { to { background-size: 100% 100%; } }
.kh-sub { max-width: 620px; font-size: 1.1rem; line-height: 1.6; color: rgba(255,255,255,.85); margin: 0 0 32px; }
.kh-pick-label { display: block; font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 12px; }
.kh-roles { display: flex; flex-wrap: wrap; gap: 10px; max-width: 860px; }
.kh-role { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 14px; background: rgba(255,255,255,.95); color: var(--k-dark); font-weight: 600; font-size: .98rem; transition: transform .25s var(--ease), background .25s, box-shadow .25s; }
.kh-role svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.kh-role:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.kh-role:hover svg { transform: translateX(4px); }
.kh-role.is-match { background: var(--color-accent); color: #fff; box-shadow: 0 0 0 4px rgba(227,30,36,.3); }
.kh-role--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); }
.kh-facts { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 36px; font-size: .9rem; color: rgba(255,255,255,.7); }
.kh-facts b { color: #fff; font-family: var(--font-display); font-size: 1.15rem; margin-right: 4px; }
.kh-scroll { position: absolute; left: 50%; bottom: 26px; z-index: 2; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; }
.kh-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: khScroll 1.8s infinite; }
@keyframes khScroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sektionen ---------- */
.ks { padding: 110px 0; }
.ks--soft { background: var(--k-soft); }
.ks--dark { background: var(--k-dark); color: #fff; }
.ks--dark .label { color: rgba(255,255,255,.55); }
.ks--dark h2, .ks--dark h3, .kc h2 { color: #fff; }
.ks-head { max-width: 720px; margin-bottom: 48px; }
.ks-head .label { display: block; margin-bottom: 12px; }
.ks-head h2 { margin: 0 0 12px; }
.ks-head p { color: var(--color-text-sec); font-size: 1.05rem; margin: 0; }
.ks--dark .ks-head p { color: rgba(255,255,255,.7); }

/* ---------- 2. Versprechen ---------- */
.kp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kp-card { padding: 28px 24px; border: 1px solid var(--color-border); border-radius: 18px; background: #fff; transition: transform .35s var(--ease), box-shadow .35s; }
.kp-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.kp-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(227,30,36,.08); color: var(--color-accent); margin-bottom: 18px; }
.kp-icon svg { width: 24px; height: 24px; }
.kp-card h3 { font-size: 1.15rem; margin: 0 0 8px; }
.kp-card p { margin: 0; color: var(--color-text-sec); line-height: 1.55; }
.show-todo .kp-card.todo-block { display: block; }

/* ---------- 3. Vorher/Nachher + Galerie ---------- */
.kba { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; user-select: none; background: #222; }
.kba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.kba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.kba-handle span { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.kba-handle span::before, .kba-handle span::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px; border: 6px solid transparent; }
.kba-handle span::before { left: 8px; border-right-color: var(--k-dark); }
.kba-handle span::after { right: 8px; border-left-color: var(--k-dark); }
.kba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.kba-tag { position: absolute; top: 16px; padding: 6px 12px; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: rgba(0,0,0,.55); color: #fff; pointer-events: none; }
.kba-tag--l { left: 16px; } .kba-tag--r { right: 16px; }
.kg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 32%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 18px; padding-bottom: 8px; scrollbar-width: thin; }
.kg-item { margin: 0; scroll-snap-align: start; }
.kg-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; display: block; }
.kg-item figcaption { margin-top: 8px; font-size: .85rem; color: rgba(255,255,255,.65); }

/* ---------- 4. Weg (zeichnet sich beim Scrollen) ---------- */
.kw { list-style: none; margin: 0; padding: 0 0 0 44px; position: relative; max-width: 760px; --progress: 0; }
.kw::before, .kw::after { content: ""; position: absolute; left: 11px; top: 6px; width: 2px; bottom: 6px; }
.kw::before { background: var(--color-border); }
.kw::after { background: var(--color-accent); transform-origin: top; transform: scaleY(var(--progress)); }
.kw-step { position: relative; padding-bottom: 44px; opacity: .35; transition: opacity .5s; }
.kw-step:last-child { padding-bottom: 0; }
.kw-step::before { content: ""; position: absolute; left: -44px; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--color-border); transition: all .4s var(--ease); z-index: 1; }
.kw-step.on { opacity: 1; }
.kw-step.on::before { border-color: var(--color-accent); background: var(--color-accent); box-shadow: 0 0 0 6px rgba(227,30,36,.15); }
.kw-when { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--color-accent); }
.kw-step h3 { margin: 6px 0 6px; font-size: 1.3rem; }
.kw-step p { margin: 0; color: var(--color-text-sec); }

/* ---------- 5. Zitat ---------- */
.ks--quote { background: var(--k-soft); }
.kq-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.kq-img { margin: 0; }
.kq-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; display: block; }
.kq p { margin: 0; }
.kq::before { content: "“"; display: block; font-size: 5rem; line-height: .6; color: var(--color-accent); margin-bottom: 18px; }
.kq { margin: 0; max-width: 860px; font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.35; }
.kq cite { display: block; margin-top: 16px; font-family: var(--font-body); font-size: .95rem; font-style: normal; color: var(--color-text-sec); }

/* ---------- 6. Stellen ---------- */
.page-karriere .job-list { max-width: none; }
.page-karriere .job-card { border-radius: 18px; transition: box-shadow .3s, transform .3s var(--ease); }
.page-karriere .job-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,.07); }
.page-karriere .job-card h3 small { font-size: .65em; color: var(--color-text-sec); font-weight: 400; }
.page-karriere .job-card.is-match { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(227,30,36,.15); }

/* ---------- 7. FAQ ---------- */
.kf { max-width: 860px; }
.kf-item { border-bottom: 1px solid var(--color-border); }
.kf-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-weight: 600; font-size: 1.08rem; }
.kf-item summary::-webkit-details-marker { display: none; }
.kf-plus { position: relative; width: 16px; height: 16px; flex: none; }
.kf-plus::before, .kf-plus::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.kf-plus::after { transform: rotate(90deg); }
.kf-item[open] .kf-plus::after { transform: rotate(0); }
.kf-item p { margin: 0 0 22px; color: var(--color-text-sec); max-width: 680px; }
.show-todo .kf-item.todo-block { display: block; }

/* ---------- 8. Abschluss ---------- */
.kc { background: var(--k-dark); color: #fff; padding: 110px 0; text-align: center; position: relative; overflow: hidden; }
.kc::before { content: ""; position: absolute; width: 700px; height: 700px; left: 50%; top: 50%; margin: -350px 0 0 -350px; background: radial-gradient(circle, rgba(227,30,36,.28), transparent 65%); }
.kc-inner { position: relative; }
.kc h2 { font-size: clamp(2rem, 5vw, 3.6rem); margin: 0 0 14px; }
.kc p { color: rgba(255,255,255,.75); margin: 0 auto 32px; max-width: 520px; }
.kc-btn { display: inline-flex; align-items: center; gap: 12px; padding: 18px 30px; border-radius: 999px; background: var(--k-live); color: #fff; font-weight: 700; font-size: 1.05rem; box-shadow: 0 10px 40px rgba(37,211,102,.35); transition: transform .25s var(--ease); }
.kc-btn:hover { transform: translateY(-2px) scale(1.02); }
.kc-btn svg { width: 22px; height: 22px; }

/* ---------- Mobile-Leiste ---------- */
.k-sticky { display: none; }
@media (max-width: 768px) {
  .page-karriere .whatsapp-fab, .page-karriere .whatsapp-bubble { display: none !important; }
  .k-sticky { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 900; padding: 16px; border-radius: 16px; text-align: center; font-weight: 700; color: #fff; background: var(--k-live); box-shadow: 0 10px 30px rgba(0,0,0,.3); transform: translateY(140%); transition: transform .45s var(--ease); }
  .k-sticky.show { transform: none; }
  .page-karriere .footer { padding-bottom: 90px; }
}

/* ---------- Responsiv ---------- */
@media (max-width: 1024px) { .kp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  .ks, .kc { padding: 72px 0; }
  .kh-inner { padding-bottom: 80px; }
  .kh-sub { font-size: 1rem; }
  .kh-roles { display: grid; grid-template-columns: 1fr 1fr; }
  .kh-role { justify-content: space-between; padding: 14px 16px; font-size: .92rem; }
  .kh-role--ghost { grid-column: 1 / -1; }
  .kh-facts { gap: 18px; font-size: .8rem; }
  .kh-scroll { display: none; }
  .kp-grid { grid-template-columns: 1fr; }
  .kq-wrap { grid-template-columns: 1fr; gap: 28px; }
  .kq-img img { aspect-ratio: 4 / 3; }
  .kba { aspect-ratio: 4 / 3; border-radius: 14px; }
  .kg { grid-auto-columns: 78%; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .kh-bg img, .kh-title em, .kh-live, .kh-scroll span { animation: none; }
  .kh-title em { background-size: 100% 100%; }
}
