/* ===========================================================
   ABFINDUNG FUNNEL · Landingpages /abfindung + /abfindungsrechner
   Derived from public/aktion/styles.css — same brand system,
   campaign-specific styles (ticket counter, value badge) removed.
   =========================================================== */

:root {
  /* core ink + paper */
  --ink:    #16140F;
  --ink-2:  #2A2722;
  --paper:  #F4F2F0;
  --surface:#FBFAF9;
  --taupe:  #D1C9C8;
  --cool:   #CFD6D5;
  --line:   #E2DCD8;
  --muted:  #79726B;

  /* accent */
  --accent:    #B7FCCE;
  --accent-ink:#14130F;
  --accent-deep:#1E6B47;

  /* semantic tokens */
  --bg:            var(--paper);
  --section-alt:   #ECE8E4;
  --dark-bg:       var(--ink);
  --card-bg:       var(--surface);
  --card-line:     var(--line);
  --card-radius:   18px;
  --pill-radius:   999px;
  --btn-radius:    999px;
  --shadow:        0 1px 2px rgba(22,20,15,.04), 0 12px 30px -16px rgba(22,20,15,.18);
  --shadow-soft:   0 1px 2px rgba(22,20,15,.03), 0 18px 40px -24px rgba(22,20,15,.16);

  --display-family: "Schibsted Grotesk", system-ui, sans-serif;
  --display-weight: 800;
  --display-tracking: -0.02em;
  --display-transform: none;
  --display-leading: 1.02;

  --serif: "Newsreader", Georgia, serif;
  --body:  "Hanken Grotesk", system-ui, sans-serif;

  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 56px);
}

/* =========================== BASE =========================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  letter-spacing: .003em;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3 {
  font-family: var(--display-family);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-leading);
  text-transform: var(--display-transform);
  margin: 0;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: clamp(56px, 9vw, 120px) 0; }
.eyebrow {
  font-family: var(--display-family);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; opacity: .7; }
.serif-it { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; text-transform: none; }
.mark {
  background: linear-gradient(transparent 62%, var(--accent) 62%);
  padding: 0 .06em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* =========================== BUTTONS =========================== */
.btn {
  font-family: var(--display-family);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .005em;
  border: none; cursor: pointer;
  border-radius: var(--btn-radius);
  padding: 17px 28px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, filter .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.04); }
.btn-primary .arr { transition: transform .2s ease; }
.btn-primary:hover .arr { transform: translateX(3px); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }

/* =========================== HEADER =========================== */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.topbar .row { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo-wm { height: 22px; width: auto; }
.topbar .cta-mini { font-family: var(--display-family); font-weight:700; font-size:14px; text-decoration:none; padding:9px 18px; border-radius: var(--btn-radius); background: var(--ink); color: var(--bg); }

/* =========================== HERO =========================== */
.hero { position: relative; overflow: hidden; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(56px, 9vw, 112px); }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(38px, 7.5vw, 72px); }
.hero h1 .line2 { display: block; }
.hero .lede { font-size: clamp(17px, 2.3vw, 21px); color: var(--ink-2); max-width: 36ch; margin: 22px 0 0; line-height: 1.5; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.reassure { display: flex; flex-wrap: wrap; gap: 16px 22px; margin-top: 22px; color: var(--muted); font-size: 14px; }
.reassure span { display: inline-flex; align-items: center; gap: 7px; }
.reassure svg { width: 16px; height: 16px; color: var(--accent-deep); }

/* =========================== SECTION HEAD =========================== */
.shead { max-width: 640px; margin-bottom: clamp(34px, 5vw, 56px); }
.shead h2 { font-size: clamp(30px, 5vw, 50px); margin-top: 16px; }
.shead p { color: var(--ink-2); font-size: 18px; margin-top: 16px; }
.shead.center { margin-left: auto; margin-right: auto; text-align: center; }
.shead.center .eyebrow { justify-content: center; }

/* =========================== PROOF CARDS =========================== */
.cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 620px){ .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px){ .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--card-bg); border: 1px solid var(--card-line);
  border-radius: var(--card-radius); padding: 28px 26px 30px;
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); }
.card .ic {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--accent); color: var(--accent-ink);
}
.card .ic svg { width: 24px; height: 24px; }
.card h3 { font-size: 20px; letter-spacing: -0.01em; line-height: 1.25; }
.card p { color: var(--ink-2); font-size: 15.5px; margin-top: 9px; }

/* =========================== WIZARD SECTION =========================== */
.wizard-section { background: var(--dark-bg); padding: clamp(56px, 8vw, 100px) 0; }
.wizard-section .shead { color: #F6F3EE; }
.wizard-section .shead h2 { color: #F8F5F0; }
.wizard-section .shead p { color: rgba(246,243,238,.78); }
.wizard-section .eyebrow { color: var(--accent); }

/* Fix: wizard progress labels must be readable on light card background inside dark section */
.wizard-section .abw-progress__label,
.wizard-section .abw-progress__count { color: rgba(246,243,238,.75); }

/* =========================== ABOUT LUDGER =========================== */
.about { background: var(--dark-bg); color: #F6F3EE; }
.about .grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 900px){ .about .grid { grid-template-columns: .85fr 1.15fr; } }
.about .photo { border-radius: var(--card-radius); overflow: hidden; border: 1px solid rgba(255,255,255,.1); box-shadow: var(--shadow); }
.about .eyebrow { color: var(--accent); }
.about h2 { font-size: clamp(30px, 5vw, 52px); color: #F8F5F0; }
.about .role { color: var(--accent); font-family: var(--display-family); font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; margin-top: 14px; }
.about p { color: rgba(246,243,238,.82); font-size: 17px; margin-top: 18px; max-width: 52ch; }
.about .creds { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 13px; }
.about .creds li { display: block; position: relative; padding-left: 32px; color: rgba(246,243,238,.9); font-size: 16px; line-height: 1.5; }
.about .creds svg { position: absolute; left: 0; top: 3px; width: 20px; height: 20px; color: var(--accent); }
.about .qquote { font-family: var(--serif); font-style: italic; font-size: clamp(20px,3vw,26px); color: #fff; margin-top: 30px; padding-left: 20px; border-left: 3px solid var(--accent); line-height: 1.35; }

/* =========================== FAQ =========================== */
.faq { max-width: 800px; margin: 0 auto; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--display-family); font-weight: 700; font-size: clamp(17px, 2.3vw, 20px);
  color: var(--ink); padding: 24px 44px 24px 0; position: relative; letter-spacing: -0.01em;
  display: block; list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .plus { position: absolute; right: 4px; top: 26px; width: 20px; height: 20px; color: var(--accent-deep); transition: transform .3s ease; }
.qa[open] summary .plus { transform: rotate(45deg); }
.qa .ans { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.qa .ans p { margin: 0 0 24px; color: var(--ink-2); font-size: 16.5px; line-height: 1.6; max-width: 64ch; }
.qa[open] .ans { max-height: 400px; }

/* =========================== TRANSITION SECTION =========================== */
.transition-section { background: var(--section-alt); text-align: center; }
.transition-section .inner { max-width: 760px; margin: 0 auto; }
.transition-section h2 { font-size: clamp(28px, 4.5vw, 46px); margin-top: 16px; }
.transition-section p { color: var(--ink-2); font-size: 18px; margin: 22px auto 0; max-width: 46ch; }
.transition-section .cta-row { justify-content: center; margin-top: 32px; }

/* =========================== FOOTER =========================== */
.footer { background: var(--bg); padding: 40px 0; border-top: 1px solid var(--line); }
.footer .row { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.footer .logo-wm { height: 18px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer a:hover { color: var(--ink); }
.footer .fine { color: var(--muted); font-size: 12.5px; margin-top: 18px; max-width: 70ch; line-height: 1.5; }

/* =========================== RECHNER COMPONENT =========================== */
.abfindung-rechner { max-width: 860px; margin: 0 auto; }
.abr-container { background: var(--card-bg); border: 1px solid var(--card-line); border-radius: calc(var(--card-radius) + 6px); box-shadow: var(--shadow); overflow: hidden; }
.abr-header { background: var(--dark-bg); color: #F6F3EE; padding: clamp(28px,4vw,44px) clamp(24px,4vw,44px); }
.abr-header h1 { font-size: clamp(26px, 4vw, 40px); color: #F8F5F0; margin: 0; }
.abr-header p { color: rgba(246,243,238,.75); margin: 10px 0 0; font-size: 16px; }
.abr-content { padding: clamp(24px,4vw,40px); }
.abr-info {
  background: color-mix(in srgb, var(--accent) 18%, var(--card-bg));
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: var(--card-radius); padding: 16px 20px; margin-bottom: 28px;
  font-size: 15px; color: var(--ink-2); line-height: 1.5;
}
.abr-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 20px; }
@media (min-width: 580px){ .abr-grid { grid-template-columns: 1fr 1fr; } }
.abr-form-group { display: flex; flex-direction: column; gap: 6px; }
.abr-form-group label { font-family: var(--display-family); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.abr-form-group input, .abr-form-group select {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--card-line); border-radius: 12px;
  font: inherit; font-size: 16px; background: var(--bg); color: var(--ink);
}
.abr-form-group input:focus, .abr-form-group select:focus { outline: none; border-color: var(--accent-deep); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.abr-checkbox { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.abr-checkbox input[type="checkbox"] { width: 1.15rem; height: 1.15rem; accent-color: var(--accent-deep); cursor: pointer; }
.abr-btn {
  margin-top: 24px; width: 100%;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--display-family); font-weight: 700; font-size: 17px;
  border: none; border-radius: var(--btn-radius);
  padding: 18px 28px; cursor: pointer;
  transition: transform .18s ease, filter .18s ease;
}
.abr-btn:hover { transform: translateY(-2px); filter: brightness(1.04); }
/* Results */
.abr-results { display: none; margin-top: 36px; border-top: 1px solid var(--line); padding-top: 30px; }
.abr-results.show { display: block; }
.abr-results h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 20px; }
.abr-result-item { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.abr-result-label { color: var(--ink-2); }
.abr-result-value { font-family: var(--display-family); font-weight: 700; }
.abr-highlight { background: var(--section-alt); border-radius: 12px; padding: 4px 14px; margin: 10px 0; }
.abr-highlight .abr-result-item { border-bottom: none; font-size: 18px; }
.abr-summary-boxes { display: grid; grid-template-columns: 1fr; gap: 15px; margin-top: 20px; }
@media (min-width: 560px){ .abr-summary-boxes { grid-template-columns: 1fr 1fr; } }
.abr-savings-box { border-radius: var(--card-radius); padding: 20px 22px; }
.abr-savings-box h3 { font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 8px; font-family: var(--display-family); font-weight: 700; }
.abr-savings-value { font-family: var(--display-family); font-weight: 800; font-size: clamp(22px, 3vw, 28px); color: var(--ink); }
.abr-footer { background: var(--section-alt); padding: 20px 28px; font-size: 13.5px; color: var(--muted); line-height: 1.5; border-top: 1px solid var(--line); }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; transition: none; } }

/* V2: Topbar-Offset für den #wizard-Anker (Scroll-Logik im JS entfernt) */
#wizard { scroll-margin-top: 80px; }

/* ── Fix: About-Sektion hatte kein Padding ── */
.about { padding: clamp(56px, 9vw, 120px) 0; }

/* ── Wizard-Bühne: Karte im dunklen Abschnitt hervorheben ── */
.wizard-section .abfindung-wizard:not(.abw--takeover) .abw-card {
  border: 1px solid rgba(183, 252, 206, .35);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5), 0 0 0 6px rgba(183, 252, 206, .06);
}

/* ── Sticky-CTA: erscheint nach dem Vorbeiscrollen am Wizard ── */
.sticky-cta {
  position: fixed; left: 50%; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--display-family); font-weight: 700; font-size: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
  transform: translate(-50%, 140%); opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}
.sticky-cta.show { transform: translate(-50%, 0); opacity: 1; }
body.abw-scroll-lock .sticky-cta { display: none; }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

/* ── Stat-Leiste (ersetzt das Pseudo-Zitat in der Warum-Sektion) ── */
.stats {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  margin-top: 48px; padding: clamp(24px, 4vw, 40px);
  background: var(--section-alt); border-radius: var(--card-radius);
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.stat { text-align: center; }
.stat__num {
  font-family: var(--display-family); font-weight: 800;
  font-size: clamp(34px, 5vw, 52px); line-height: 1;
  color: var(--accent-deep);
}
.stat__label { margin-top: 8px; font-size: 15px; color: var(--ink-2); line-height: 1.45; max-width: 26ch; margin-left: auto; margin-right: auto; }

/* =========================== HERO MOTIF (decorative SVG) =========================== */

/* =========================== SCENARIO SECTION =========================== */
.scenario-section { background: var(--section-alt); padding: clamp(56px, 9vw, 120px) 0; }
.scenario-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 720px; }
.scenario-item {
  display: flex; align-items: flex-start; gap: 18px;
  background: var(--card-bg); border: 1px solid var(--card-line);
  border-radius: var(--card-radius); padding: 20px 24px;
  font-size: 17px; line-height: 1.55; color: var(--ink-2);
  box-shadow: var(--shadow-soft);
}
.scenario-check {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); display: grid; place-items: center; margin-top: 1px;
}
.scenario-check svg { width: 17px; height: 17px; color: var(--accent-ink); }
.scenario-cta { margin-top: clamp(24px, 4vw, 36px); }

/* =========================== MISTAKES SECTION =========================== */
.mistakes-section { background: var(--dark-bg); color: #F6F3EE; padding: clamp(56px, 9vw, 120px) 0; }
.mistakes-section .eyebrow { color: var(--accent); }
.mistakes-section .shead h2 { color: #F8F5F0; font-size: clamp(28px, 4.5vw, 46px); margin-top: 16px; }
.mistakes-grid {
  display: grid; grid-template-columns: 1fr; gap: 20px;
  margin-top: clamp(28px, 4vw, 44px);
}
@media (min-width: 720px) { .mistakes-grid { grid-template-columns: repeat(3, 1fr); } }
.mistake-card {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--card-radius); padding: 28px 26px 30px;
  background: rgba(255,255,255,.04);
}
.mistake-num {
  font-family: var(--display-family); font-weight: 800;
  font-size: 44px; line-height: 1; letter-spacing: -0.02em;
  color: var(--accent); display: block; margin-bottom: 18px;
}
.mistake-card h3 { font-size: 19px; letter-spacing: -.01em; color: #F8F5F0; line-height: 1.25; }
.mistake-card p { color: rgba(246,243,238,.75); font-size: 15.5px; margin-top: 10px; line-height: 1.6; }

/* =========================== CASE STUDY SECTION =========================== */
.casestudy-section { background: var(--section-alt); padding: clamp(56px, 9vw, 120px) 0; }
.casestudy-card {
  background: var(--card-bg); border: 1px solid var(--card-line);
  border-radius: calc(var(--card-radius) + 4px);
  padding: clamp(28px, 5vw, 52px);
  box-shadow: var(--shadow); max-width: 880px; margin: 0 auto;
}
.casestudy-card .eyebrow { margin-bottom: 14px; }
.casestudy-card h2 { font-size: clamp(22px, 3.5vw, 34px); margin-top: 12px; line-height: 1.15; }
.casestudy-card > p { color: var(--ink-2); font-size: 17px; margin-top: 18px; line-height: 1.65; max-width: 64ch; }
.casestudy-card .cta-row { margin-top: 28px; }

/* ── Foto-Hero (Angle-LPs): Stock-Foto mit Marken-Overlay statt Piktogramm ── */
.hero__photo {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: grayscale(35%);
}
.hero--photo { background: var(--dark-bg); }
.hero--photo .hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,19,15,.92) 0%, rgba(20,19,15,.78) 55%, rgba(20,19,15,.62) 100%);
}
.hero--photo h1 { color: #F8F5F0; }
.hero--photo .lede { color: rgba(246,243,238,.85); }
.hero--photo .hero-note { color: rgba(246,243,238,.7); }
.hero--photo .eyebrow { color: var(--accent); }
.hero--photo .reassure span { color: rgba(246,243,238,.8); }
.hero--photo .btn-ghost { color: #F6F3EE; border-color: rgba(246,243,238,.4); }

/* Ausgeschriebene Stat-Wörter (Hunderte/Tausende) etwas kleiner als Ziffern */
.stat__num { font-size: clamp(30px, 4.2vw, 44px); }
