/* IDENTIFY Karriere — Bewerber-Funnel
   CI: Forest Green #24403d, Lime #bade40, Light Grey #f4f4f4, Weiß, Schwarz.
   Clash Display (Headlines) + Poppins (Text). Keine weiteren Farben. */

@font-face { font-family: "Clash"; src: url("/fonts/clash-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Clash"; src: url("/fonts/clash-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --green: #24403d;
  --lime: #bade40;
  --grey: #f4f4f4;
  --white: #ffffff;
  --black: #000000;
  --on-green-soft: rgba(255, 255, 255, 0.72);
  --line-on-green: rgba(255, 255, 255, 0.18);
  --line: rgba(36, 64, 61, 0.16);
  --muted: rgba(0, 0, 0, 0.62);
  --gutter: 20px;
  --col: 560px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --display: "Clash", "Arial Narrow", system-ui, sans-serif;
  --text: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.55;
  color: var(--black);
  background: var(--green);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
h1[tabindex]:focus, h2[tabindex]:focus { outline: none; }

#app { min-height: 100dvh; position: relative; overflow-x: hidden; }

/* ---------- Bildschirme & Übergänge ---------- */
.screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  animation: in-next 0.42s var(--ease) both;
}
.screen.back { animation-name: in-back; }
.screen.leaving { position: absolute; inset: 0; animation: out-next 0.28s ease-in both; pointer-events: none; }
.screen.leaving.back { animation-name: out-back; }
@keyframes in-next { from { opacity: 0; transform: translateX(28px); } }
@keyframes in-back { from { opacity: 0; transform: translateX(-28px); } }
@keyframes out-next { to { opacity: 0; transform: translateX(-28px); } }
@keyframes out-back { to { opacity: 0; transform: translateX(28px); } }

.wrap { width: 100%; max-width: var(--col); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Marken-Elemente ---------- */
.bracket { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px;
  border-top: 2px solid var(--lime); border-right: 2px solid var(--lime); pointer-events: none; }
.bars { display: inline-grid; gap: 4px; }
.bars i { display: block; width: 22px; height: 3px; background: var(--lime); }
.bars i:nth-child(2) { width: 16px; }
.bars i:nth-child(3) { width: 10px; }

/* ---------- Einstieg (Hero) ---------- */
.hero { background: var(--green); color: var(--white); position: relative; }
.hero .top { display: flex; align-items: center; padding-top: 22px; padding-bottom: 8px; }
.hero .logo { height: 22px; width: auto; }
.hero .body { padding-top: 40px; padding-bottom: 28px; flex: 1; display: flex; flex-direction: column; }
.hero h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(36px, 10.4vw, 64px); line-height: 1; overflow-wrap: break-word; letter-spacing: -0.015em;
  margin: 0 0 18px; text-wrap: balance;
}
.hero .sub { color: var(--on-green-soft); font-size: 17px; margin: 0 0 34px; max-width: 34ch; }

/* Gehaltsleiste: das eine Signature-Element */
.pay { margin: 0 0 34px; }
.pay .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pay .num { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 8.6vw, 44px); line-height: 1; font-variant-numeric: tabular-nums; }
.pay .num.max { color: var(--lime); }
.pay .cap { font-size: 13px; color: var(--on-green-soft); margin-top: 6px; }
.pay .cap.r { text-align: right; }
.pay .track { position: relative; height: 12px; margin: 14px 0 0; background: var(--line-on-green); }
.pay .fix { position: absolute; left: 0; top: 0; bottom: 0; width: 50%; background: var(--white); }
.pay .ote { position: absolute; left: 50%; top: 0; bottom: 0; width: 0; background: var(--lime);
  animation: fill 1.4s 0.35s var(--ease) forwards; }
@keyframes fill { to { width: 50%; } }

.points { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 14px; }
.points li { position: relative; padding-left: 28px; font-size: 15.5px; color: var(--white); max-width: 46ch; }
.points li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 14px; height: 2px; background: var(--lime); }

.foto { margin: 0 0 30px; aspect-ratio: 4 / 3; background: rgba(255,255,255,0.06); border: 1px dashed var(--line-on-green);
  display: grid; place-items: center; color: var(--on-green-soft); font-size: 13px; overflow: hidden; }
.foto img, .foto video { width: 100%; height: 100%; object-fit: cover; }

.cta-bar { position: sticky; bottom: 0; padding: 14px 0 calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--green) 70%, rgba(36,64,61,0)); }
.btn {
  appearance: none; border: 0; cursor: pointer; width: 100%;
  min-height: 58px; padding: 16px 22px;
  font-family: var(--text); font-weight: 600; font-size: 17px;
  background: var(--lime); color: var(--green);
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:active { transform: scale(0.985); }
.btn:hover { filter: brightness(1.04); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn.dark { background: var(--green); color: var(--white); }
.trust { text-align: center; font-size: 13px; color: var(--on-green-soft); margin: 10px 0 0; }

.foot { padding-top: 6px; padding-bottom: 26px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  font-size: 12px; color: var(--on-green-soft); }
.foot a { color: var(--on-green-soft); }

/* ---------- Fragen ---------- */
.q { background: var(--grey); }
.q .head { position: sticky; top: 0; z-index: 2; background: var(--grey); }
.progress { height: 4px; background: var(--line); }
.progress span { display: block; height: 100%; background: var(--lime); transition: width 0.5s var(--ease); }
.q .nav { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.back { appearance: none; background: none; border: 0; padding: 10px 10px 10px 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-weight: 500; font-size: 15px; }
.back svg { width: 18px; height: 18px; }
.step { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.q .logo-s { height: 16px; width: auto; }

.q .body { padding-top: 22px; padding-bottom: 40px; flex: 1; }
.q h2 { font-family: var(--display); font-weight: 600; color: var(--green);
  font-size: clamp(27px, 7.4vw, 38px); line-height: 1.08; overflow-wrap: break-word; letter-spacing: -0.01em; margin: 0 0 10px; text-wrap: balance; }
.q .hint { color: var(--muted); font-size: 15px; margin: 0 0 4px; max-width: 40ch; }

.opts { display: grid; gap: 10px; margin-top: 26px; }
.opt {
  appearance: none; cursor: pointer; text-align: left; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 62px; padding: 16px 18px;
  background: var(--white); border: 2px solid transparent; color: var(--black);
  font-size: 16.5px; font-weight: 500; line-height: 1.3;
  box-shadow: 0 1px 0 var(--line);
  transition: border-color 0.15s ease, background-color 0.2s ease, color 0.2s ease, transform 0.12s ease;
}
.opt:hover { border-color: var(--green); }
.opt:active { transform: scale(0.99); }
.opt .tick { flex: none; width: 26px; height: 26px; border: 2px solid var(--line); display: grid; place-items: center; transition: inherit; }
.opt .tick svg { width: 14px; height: 14px; opacity: 0; transform: scale(0.4); transition: opacity 0.15s, transform 0.25s var(--ease); }
.opt[aria-pressed="true"] { background: var(--green); color: var(--white); border-color: var(--green); }
.opt[aria-pressed="true"] .tick { background: var(--lime); border-color: var(--lime); }
.opt[aria-pressed="true"] .tick svg { opacity: 1; transform: none; }

/* ---------- Formular ---------- */
.form { display: grid; gap: 18px; margin-top: 26px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label, .field .lbl { display: block; font-size: 14px; font-weight: 500; color: var(--green); margin-bottom: 6px; }
.field .opt-tag { color: var(--muted); font-weight: 400; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px; font-size: 16.5px;
  background: var(--white); border: 2px solid transparent; box-shadow: 0 1px 0 var(--line); border-radius: 0;
  transition: border-color 0.15s ease;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); }
.field.err input, .field.err textarea { border-color: #b3261e; }
.field .msg { font-size: 13px; color: #b3261e; margin-top: 6px; min-height: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { appearance: none; cursor: pointer; padding: 10px 14px; min-height: 44px; font-size: 15px; font-weight: 500;
  background: var(--white); border: 2px solid transparent; box-shadow: 0 1px 0 var(--line); color: var(--black); transition: all 0.15s ease; }
.chip[aria-pressed="true"] { background: var(--green); color: var(--white); border-color: var(--green); }

.upload { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 12px 16px; cursor: pointer;
  background: var(--white); border: 2px dashed var(--line); color: var(--green); font-weight: 500; font-size: 15px; }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload:focus-within { border-color: var(--green); }
.upload > span:first-of-type { flex: none; }
.upload .file { color: var(--muted); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--green); }
.consent a { color: var(--green); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: var(--white); border-left: 4px solid #b3261e; padding: 12px 14px; font-size: 14.5px; }

/* ---------- Danke / K.o. ---------- */
.end { background: var(--green); color: var(--white); position: relative; }
.end .body { padding-top: 70px; padding-bottom: 40px; flex: 1; }
.end h2 { font-family: var(--display); font-weight: 600; font-size: clamp(38px, 10.5vw, 58px); line-height: 1; letter-spacing: -0.015em; margin: 0 0 18px; text-wrap: balance; }
.end p { color: var(--on-green-soft); font-size: 17px; max-width: 36ch; margin: 0 0 14px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 34px 0 36px; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line-on-green); }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--lime); line-height: 1.2; }
.steps strong { display: block; font-weight: 600; }
.steps span { color: var(--on-green-soft); font-size: 14.5px; }
.end .actions { display: grid; gap: 10px; }
.btn.ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px var(--line-on-green); }

.check { width: 64px; height: 64px; background: var(--lime); display: grid; place-items: center; margin-bottom: 28px;
  animation: pop 0.5s 0.15s var(--ease) both; }
.check svg { width: 30px; height: 30px; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }

.noscript { color: #fff; padding: 24px; }

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  .hero .wrap, .hero .body { max-width: 1080px; }
  .hero .body { display: grid; grid-template-columns: 1.1fr 0.9fr; column-gap: 64px; align-items: start; padding-top: 72px; }
  .hero .col-a { grid-column: 1; }
  .hero .col-b { grid-column: 2; position: sticky; top: 40px; }
  .hero .foto { aspect-ratio: 4 / 5; }
  .cta-bar { position: static; background: none; padding: 0; }
  .hero .top, .hero .foot { max-width: 1080px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
  .pay .ote { width: 50%; }
}

/* Mobil: Foto zwischen Gehalt und Punkten, CTA unten klebend */
@media (max-width: 899px) {
  .hero .col-a, .hero .col-b { display: contents; }
  .hero h1 { order: 1; } .hero .sub { order: 2; } .hero .pay { order: 3; }
  .hero .foto { order: 4; } .hero .points { order: 5; } .hero .cta-bar { order: 6; }
}

/* Screenshot-/Vorschaumodus ohne Animation */
html.static *, html.static *::before, html.static *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
html.static .pay .ote { width: 50%; }
