/* ===== EMPLOYA Bewerbungs-Funnel ===== */

/* Selbst gehostete Schrift (kein Google-CDN → keine IP-Übertragung an Google) */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('assets/fonts/plusjakartasans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('assets/fonts/plusjakartasans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --green:        #059444;   /* logo primary */
  --green-bright: #0d9e00;   /* CTA green */
  --green-dark:   #16341f;   /* deep brand green */
  --green-mid:    #2e8d37;
  --lime:         #95c122;   /* lime accent */
  --ink:          #131313;
  --muted:        #5d6b62;
  --line:         #e4eae6;
  --bg:           #f4f8f5;
  --card:         #ffffff;
  --radius:       16px;
  --radius-lg:    24px;
  --shadow:       0 10px 30px rgba(22, 52, 31, .08);
  --shadow-lg:    0 24px 60px rgba(22, 52, 31, .16);
  --font:         'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

html, body {
  max-width: 100%;
  overflow-x: hidden;   /* verhindert horizontales Wegscrollen/Wackeln */
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1140px, 92%); margin: 0 auto; }

img { max-width: 100%; display: block; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font-family: inherit; font-weight: 700; font-size: 1rem;
  border: none; border-radius: 999px;
  padding: .85rem 1.6rem; cursor: pointer;
  text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--green-bright), var(--green));
  color: #fff;
  box-shadow: 0 8px 20px rgba(5, 148, 68, .32);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(5, 148, 68, .42); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--green);
  border: 2px solid var(--green); padding: .75rem 1.5rem;
}
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-ghost { background: transparent; color: var(--muted); padding: .6rem 1rem; }
.btn-ghost:hover { color: var(--ink); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.08rem; }
.btn-sm { padding: .6rem 1.2rem; font-size: .92rem; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; padding: .7rem 0; }
.logo { height: 38px; width: auto; }
.header-tagline {
  font-weight: 600; color: var(--green); font-size: .95rem;
  margin-left: .4rem;
}
.header-cta { margin-left: auto; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(149,193,34,.18), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(5,148,68,.10), transparent 55%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  grid-template-areas:
    "intro funnel"
    "rest  funnel";
  column-gap: clamp(2rem, 4vw, 4rem); row-gap: 0;
  align-items: start;
}
.hero-intro { grid-area: intro; }
.hero-rest  { grid-area: rest; }
.funnel-wrap { grid-area: funnel; }
.hero-rest .hero-cta-btn { margin-top: .4rem; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .82rem;
  letter-spacing: .03em; text-transform: uppercase;
  color: var(--green); background: rgba(5,148,68,.10);
  padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.hero-intro h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.08;
  font-weight: 800; letter-spacing: -.02em; margin-bottom: 1.1rem;
}
.hero-intro h1 .hl {
  background: linear-gradient(120deg, var(--green), var(--lime));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 1.12rem; color: var(--muted); max-width: 34rem; margin-bottom: 1.8rem; }
.hero-trust { display: flex; gap: 2rem; margin-top: 2.2rem; flex-wrap: wrap; }
.trust-item { display: flex; flex-direction: column; }
.trust-item strong { font-size: 1.7rem; font-weight: 800; color: var(--green); }
.trust-item span { font-size: .88rem; color: var(--muted); }

/* ===== Funnel card ===== */
.funnel-wrap { position: relative; }
.funnel {
  background: var(--card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: clamp(1.4rem, 2.5vw, 2.2rem);
  border: 1px solid var(--line);
  position: sticky; top: 90px;
}
.funnel-head { margin-bottom: 1.6rem; }
.progress { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-bar {
  height: 100%; width: 17%;
  background: linear-gradient(90deg, var(--green), var(--lime));
  border-radius: 999px; transition: width .4s cubic-bezier(.4,0,.2,1);
}
.progress-meta {
  display: flex; justify-content: space-between;
  font-size: .82rem; color: var(--muted); font-weight: 600; margin-top: .55rem;
}

.step { display: none; animation: fadeIn .35s ease; }
.step.is-active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.step-title { font-size: 1.4rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: .4rem; }
.step-hint { color: var(--muted); margin-bottom: 1.4rem; font-size: .98rem; }

/* Option cards */
.options { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.option {
  display: flex; align-items: center; gap: .7rem; text-align: left;
  font-family: inherit; font-size: .98rem; font-weight: 600; color: var(--ink);
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  padding: .95rem 1rem; cursor: pointer;
  transition: border-color .15s, background .15s, transform .12s, box-shadow .15s;
}
.option:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: var(--shadow); }
.option.selected { border-color: var(--green); background: rgba(5,148,68,.07); box-shadow: var(--shadow); }
.opt-ico { font-size: 1.3rem; line-height: 1; flex-shrink: 0; }

/* Contact fields */
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.field input,
.field select,
.field textarea {
  width: 100%; font-family: inherit; font-size: 1rem;
  padding: .85rem 1rem; border: 2px solid var(--line); border-radius: 12px;
  background: #fff; transition: border-color .15s, box-shadow .15s; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 80px; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(5,148,68,.12); }
.field input.invalid,
.field select.invalid { border-color: #dc3545; }
.field input[type="file"] { padding: .6rem; font-size: .88rem; cursor: pointer; }
.file-hint { display: block; color: var(--muted); font-size: .78rem; margin-top: .3rem; }
.opt-tag { font-weight: 600; font-size: .72rem; color: var(--muted); background: var(--line); padding: .1rem .45rem; border-radius: 999px; margin-left: .25rem; }

/* Two-column rows */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.field-row .field { margin-bottom: 1rem; }
.field-row .field-anrede { max-width: 220px; }

/* Recap box */
.recap {
  background: rgba(5,148,68,.06); border: 1px solid rgba(5,148,68,.18);
  border-radius: 14px; padding: .9rem 1rem; margin-bottom: 1.3rem;
}
.recap-title { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--green); margin-bottom: .5rem; }
.recap-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.recap-tag { font-size: .82rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .25rem .7rem; }
.recap-tag b { font-weight: 700; color: var(--green-mid); }
.error { display: block; color: #dc3545; font-size: .82rem; font-weight: 600; min-height: 1em; margin-top: .25rem; }

.checkbox {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: .86rem; color: var(--muted); margin: .4rem 0 1.2rem; cursor: pointer;
}
.checkbox input { margin-top: .2rem; width: 18px; height: 18px; accent-color: var(--green); flex-shrink: 0; }
.checkbox a { color: var(--green); }

.reassure { text-align: center; font-size: .85rem; color: var(--muted); margin-top: .9rem; }

/* Mail-Routing-Hinweis (Schritt 7) */
.mail-route { font-size: .88rem; font-weight: 600; color: var(--green-mid); margin: -.6rem 0 1.2rem; }

/* Fehlerbox mit E-Mail-Fallback */
.submit-error {
  margin-top: .9rem; background: #fdecec; border: 1px solid #f2c4c4; color: #8f2222;
  border-radius: 12px; padding: .8rem 1rem; font-size: .9rem;
}
.submit-error a { color: inherit; font-weight: 700; }

/* Honeypot (Spam-Falle) – unsichtbar für Menschen */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Standort-Kontakt auf der Erfolgsseite */
.success-contact { color: var(--muted); font-size: .95rem; margin-top: .9rem; }
.success-contact a { color: var(--green); font-weight: 700; text-decoration: none; }

/* Success */
.success { text-align: center; padding: 1rem 0; }
.success-ico {
  width: 72px; height: 72px; margin: 0 auto 1.2rem;
  display: grid; place-items: center; font-size: 2.2rem; color: #fff; font-weight: 800;
  background: linear-gradient(135deg, var(--green-bright), var(--green));
  border-radius: 50%; box-shadow: 0 12px 28px rgba(5,148,68,.4);
  animation: pop .4s cubic-bezier(.2,1.4,.5,1);
}
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-actions { margin-top: 1.4rem; }

/* Funnel nav */
.funnel-nav { display: flex; align-items: center; margin-top: 1.3rem; }
.nav-spacer { flex: 1; }

/* ===== Benefits ===== */
.benefits { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-title { text-align: center; font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; }
.section-sub { text-align: center; color: var(--muted); margin: .6rem auto 2.5rem; max-width: 38rem; font-size: 1.05rem; }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.benefit-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.3rem; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
  min-width: 0;   /* verhindert Überlauf im Grid */
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.b-ico {
  width: 52px; height: 52px; display: grid; place-items: center; font-size: 1.6rem;
  background: rgba(149,193,34,.16); border-radius: 14px; margin-bottom: 1rem;
}
.benefit-card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: .4rem; }
.benefit-card p { color: var(--muted); font-size: .95rem; }

/* ===== Stats ===== */
.stats { background: var(--green-dark); color: #fff; padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat strong { display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--lime); line-height: 1; }
.stat span { font-size: .95rem; opacity: .85; }

/* ===== Testimonial ===== */
.testimonial { padding: clamp(3rem, 6vw, 5rem) 0; text-align: center; }
.testimonial blockquote {
  font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 600; line-height: 1.4;
  max-width: 44rem; margin: 0 auto 1rem; letter-spacing: -.01em;
}
.testimonial cite { color: var(--muted); font-style: normal; font-weight: 600; }

/* ===== Final CTA ===== */
.final-cta {
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  color: #fff; text-align: center; padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.final-cta h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; margin-bottom: 1.6rem; letter-spacing: -.02em; }
.final-cta .btn-primary { background: #fff; color: var(--green); box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.final-cta .btn-primary:hover { background: #f0fff5; }
.final-more { margin-top: 1.4rem; font-size: .95rem; color: rgba(255,255,255,.9); }
.final-more a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.footer-more { display: inline-block; margin-top: .9rem; color: var(--lime); font-weight: 700; text-decoration: none; font-size: .9rem; }
.footer-more:hover { color: #fff; }

/* ===== Footer ===== */
.site-footer { background: var(--green-dark); color: rgba(255,255,255,.85); padding: clamp(2.5rem,5vw,3.5rem) 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 2.4fr; gap: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-logo { height: 40px; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.footer-brand p { font-size: .92rem; max-width: 18rem; }
.footer-locs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.loc h4 { color: var(--lime); font-size: .98rem; margin-bottom: .5rem; }
.loc p { font-size: .85rem; margin-bottom: .5rem; }
.loc a { display: block; color: rgba(255,255,255,.85); text-decoration: none; font-size: .85rem; }
.loc a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 1.3rem; font-size: .82rem; flex-wrap: wrap; gap: .5rem; }
.footer-links a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer-links a:hover { color: #fff; }

/* ===== Cookie-/Marketing-Consent-Banner ===== */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  padding: 1rem; display: flex; justify-content: center;
  animation: consentUp .4s ease;
}
@keyframes consentUp { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
.consent-inner {
  width: min(760px, 100%);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.1rem 1.3rem;
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
}
.consent-text { font-size: .88rem; color: var(--muted); flex: 1 1 300px; margin: 0; }
.consent-text strong { color: var(--ink); }
.consent-text a { color: var(--green); }
.consent-btns { display: flex; gap: .6rem; flex-shrink: 0; }

@media (max-width: 560px) {
  .consent-btns { width: 100%; }
  .consent-btns .btn { flex: 1; }
}

/* ===== Rechtsseiten (Impressum / Datenschutz) ===== */
.legal { padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .4rem; }
.legal .lead { color: var(--muted); margin-bottom: 2.2rem; }
.legal h2 { font-size: 1.25rem; font-weight: 800; margin: 2rem 0 .6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.legal h2:first-of-type { border-top: none; padding-top: 0; }
.legal h3 { font-size: 1.02rem; font-weight: 700; margin: 1.2rem 0 .3rem; }
.legal p, .legal li { color: #35413a; font-size: .98rem; margin-bottom: .7rem; }
.legal ul { padding-left: 1.3rem; margin-bottom: .8rem; }
.legal li { margin-bottom: .35rem; }
.legal a { color: var(--green); }
.legal .addr { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.legal .note { background: rgba(149,193,34,.10); border: 1px solid rgba(5,148,68,.18); border-radius: 12px; padding: .9rem 1.1rem; font-size: .9rem; color: #35413a; }
.legal .back { display: inline-block; margin-top: 2rem; font-weight: 700; text-decoration: none; color: var(--green); }
.legal .updated { color: var(--muted); font-size: .85rem; margin-top: 2.5rem; }

/* ===== Responsive ===== */
@media (max-width: 920px) {
  /* Mobil: Funnel direkt unter die Headline, Rest darunter */
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "intro" "funnel" "rest";
    row-gap: 1.6rem;
  }
  .hero-intro { margin-bottom: 0; }
  .funnel { position: relative; top: 0; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-locs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .header-tagline { display: none; }
  .options { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-locs { grid-template-columns: 1fr; }
  /* Trust-Zahlen mobil in EINER Reihe (3 gleiche Spalten statt Umbruch) */
  .hero-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
  .trust-item strong { font-size: 1.4rem; }
  .trust-item span { font-size: .72rem; line-height: 1.25; }
}
