/* ═══════════════════════════════════════════════════
   FÖRDERSCAN Design System
   foerderscan.com — A-2 Deal Advisory GmbH
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Serif+Display&display=swap');

:root {
  /* Colors */
  --c-ink: #0B1D2E;
  --c-ink-light: #1A3A54;
  --c-ink-muted: #4A6B84;
  --c-surface: #F7F9FB;
  --c-surface-warm: #FBF9F7;
  --c-white: #FFFFFF;
  --c-border: #E2E8F0;
  --c-border-light: #F0F4F8;
  
  --c-brand: #0A7C6A;
  --c-brand-light: #0D9B84;
  --c-brand-bg: #E8F6F3;
  --c-brand-dark: #065C4F;
  
  --c-accent: #E8A838;
  --c-accent-bg: #FEF7E8;
  
  --c-green: #16A34A;
  --c-green-bg: #DCFCE7;
  --c-yellow: #CA8A04;
  --c-yellow-bg: #FEF9C3;
  --c-red: #DC2626;
  --c-red-bg: #FEE2E2;
  
  /* Typography */
  --f-display: 'DM Serif Display', Georgia, serif;
  --f-body: 'DM Sans', -apple-system, sans-serif;
  
  /* Spacing */
  --s-xs: 0.25rem;
  --s-sm: 0.5rem;
  --s-md: 1rem;
  --s-lg: 1.5rem;
  --s-xl: 2rem;
  --s-2xl: 3rem;
  --s-3xl: 4rem;
  --s-4xl: 6rem;
  
  /* Layout */
  --max-w: 1140px;
  --max-w-narrow: 780px;
  --radius: 8px;
  --radius-lg: 16px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(11,29,46,0.06);
  --shadow-md: 0 4px 16px rgba(11,29,46,0.08);
  --shadow-lg: 0 8px 32px rgba(11,29,46,0.12);
  --shadow-xl: 0 16px 48px rgba(11,29,46,0.16);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-white);
}
img { max-width: 100%; display: block; }
a { color: var(--c-brand); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--c-brand-dark); }

/* ─── LAYOUT ─── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--s-lg); }
.container--narrow { max-width: var(--max-w-narrow); }
.section { padding: var(--s-4xl) 0; }
.section--tinted { background: var(--c-surface); }
.section--dark { background: var(--c-ink); color: var(--c-white); }
.section--brand { background: var(--c-brand); color: var(--c-white); }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
.subtitle { font-size: 1.15rem; color: var(--c-ink-muted); line-height: 1.7; max-width: 600px; }
.label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-brand); }
.text-center { text-align: center; }
.text-balance { text-wrap: balance; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-sm);
  padding: 0.85rem 1.75rem;
  font-family: var(--f-body); font-size: 0.95rem; font-weight: 600;
  border-radius: var(--radius); border: none; cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn--primary {
  background: var(--c-brand); color: var(--c-white);
  box-shadow: 0 2px 8px rgba(10,124,106,0.3);
}
.btn--primary:hover {
  background: var(--c-brand-dark); color: var(--c-white);
  box-shadow: 0 4px 16px rgba(10,124,106,0.4);
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent; color: var(--c-brand);
  border: 2px solid var(--c-brand);
}
.btn--outline:hover { background: var(--c-brand-bg); }
.btn--white {
  background: var(--c-white); color: var(--c-brand);
}
.btn--white:hover { background: var(--c-surface); color: var(--c-brand); transform: translateY(-1px); }
.btn--lg { padding: 1rem 2.25rem; font-size: 1.05rem; border-radius: 10px; }
.btn svg { width: 18px; height: 18px; }
.btn--arrow::after { content: ' →'; transition: transform 0.2s; }
.btn--arrow:hover::after { transform: translateX(3px); }

/* ─── NAVIGATION ─── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border-light);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--s-lg);
  height: 72px;
}
.nav__logo {
  font-family: var(--f-body); font-weight: 700; font-size: 1.25rem;
  color: var(--c-ink); text-decoration: none;
  display: flex; align-items: center; gap: var(--s-sm);
}
.nav__logo span { color: var(--c-brand); }
.nav__links { display: flex; align-items: center; gap: var(--s-xl); list-style: none; }
.nav__links a {
  font-size: 0.9rem; font-weight: 500; color: var(--c-ink-muted);
  text-decoration: none; transition: color 0.2s;
  padding: var(--s-xs) 0; border-bottom: 2px solid transparent;
}
.nav__links a:hover, .nav__links a.active { color: var(--c-ink); border-color: var(--c-brand); }
.nav__cta {
  background: var(--c-brand); color: var(--c-white) !important;
  padding: 0.5rem 1.25rem !important; border-radius: var(--radius);
  border: none !important; font-weight: 600 !important;
}
.nav__cta:hover { background: var(--c-brand-dark); color: var(--c-white) !important; }

/* Mobile nav */
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: var(--s-sm); }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--c-ink); margin: 6px 0; transition: 0.3s; }

@media (max-width: 768px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; top: 72px; left: 0; right: 0;
    background: var(--c-white); border-bottom: 1px solid var(--c-border);
    flex-direction: column; padding: var(--s-lg);
    transform: translateY(-100%); opacity: 0; pointer-events: none;
    transition: all 0.3s ease; gap: var(--s-md);
  }
  .nav__links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
}

/* ─── HERO ─── */
.hero {
  padding: var(--s-4xl) 0 var(--s-3xl);
  background: linear-gradient(170deg, var(--c-surface) 0%, var(--c-white) 60%, var(--c-brand-bg) 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -40%; right: -20%;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(10,124,106,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 1; max-width: 680px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: var(--s-sm);
  background: var(--c-brand-bg); color: var(--c-brand-dark);
  padding: 0.4rem 1rem; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600; margin-bottom: var(--s-lg);
}
.hero__badge::before { content: '✦'; }
.hero h1 { margin-bottom: var(--s-lg); }
.hero h1 em { font-style: normal; color: var(--c-brand); }
.hero .subtitle { margin-bottom: var(--s-xl); }
.hero__actions { display: flex; gap: var(--s-md); flex-wrap: wrap; }

/* ─── TRUST BAR ─── */
.trust-bar {
  display: flex; gap: var(--s-2xl); padding: var(--s-xl) 0;
  border-top: 1px solid var(--c-border); margin-top: var(--s-3xl);
  flex-wrap: wrap;
}
.trust-bar__item { display: flex; align-items: center; gap: var(--s-sm); }
.trust-bar__num { font-family: var(--f-display); font-size: 1.5rem; color: var(--c-brand); }
.trust-bar__label { font-size: 0.85rem; color: var(--c-ink-muted); line-height: 1.3; }

/* ─── CARDS ─── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s-lg); }
.card {
  background: var(--c-white); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); padding: var(--s-xl);
  transition: all 0.3s ease; position: relative;
}
.card:hover { border-color: var(--c-brand); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: var(--s-md);
}
.card__icon--green { background: var(--c-green-bg); }
.card__icon--blue { background: var(--c-brand-bg); }
.card__icon--yellow { background: var(--c-accent-bg); }
.card h3 { margin-bottom: var(--s-sm); }
.card p { color: var(--c-ink-muted); font-size: 0.95rem; }
.card__link {
  display: inline-flex; align-items: center; gap: var(--s-xs);
  font-size: 0.9rem; font-weight: 600; margin-top: var(--s-md);
  color: var(--c-brand);
}
.card__link:hover { gap: var(--s-sm); }

/* ─── STEPS ─── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-xl); counter-reset: step; }
.step {
  position: relative; padding: var(--s-xl); padding-top: var(--s-2xl);
  background: var(--c-white); border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -16px; left: var(--s-xl);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--c-brand); color: var(--c-white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
}
.step__label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-brand); margin-bottom: var(--s-xs); }
.step h3 { margin-bottom: var(--s-sm); }
.step p { color: var(--c-ink-muted); font-size: 0.9rem; }
.step__price { font-family: var(--f-display); font-size: 1.3rem; color: var(--c-brand); margin-top: var(--s-md); }

@media (max-width: 768px) { .steps { grid-template-columns: 1fr; } }

/* ─── CTA BANNER ─── */
.cta-banner {
  background: var(--c-ink);
  border-radius: var(--radius-lg);
  padding: var(--s-2xl) var(--s-3xl);
  text-align: center; color: var(--c-white);
}
.cta-banner h2 { color: var(--c-white); margin-bottom: var(--s-sm); }
.cta-banner p { color: rgba(255,255,255,0.7); margin-bottom: var(--s-xl); max-width: 500px; margin-left: auto; margin-right: auto; }

/* ─── QUICK CHECK ─── */
.qc { max-width: 640px; margin: 0 auto; }
.qc__progress {
  display: flex; gap: 4px; margin-bottom: var(--s-2xl);
}
.qc__progress-step {
  flex: 1; height: 4px; border-radius: 2px;
  background: var(--c-border); transition: background 0.4s;
}
.qc__progress-step.active { background: var(--c-brand); }
.qc__progress-step.done { background: var(--c-brand-dark); }

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

.qc__question {
  font-family: var(--f-display); font-size: 1.4rem;
  margin-bottom: var(--s-lg); line-height: 1.3;
}
.qc__hint {
  font-size: 0.85rem; color: var(--c-ink-muted);
  background: var(--c-surface); padding: var(--s-md);
  border-radius: var(--radius); margin-bottom: var(--s-lg);
  border-left: 3px solid var(--c-brand);
}

.qc__options { display: flex; flex-direction: column; gap: var(--s-sm); }
.qc__option {
  display: flex; align-items: center; gap: var(--s-md);
  padding: var(--s-md) var(--s-lg);
  border: 2px solid var(--c-border); border-radius: var(--radius);
  cursor: pointer; transition: all 0.2s;
  font-size: 0.95rem;
}
.qc__option:hover { border-color: var(--c-brand); background: var(--c-brand-bg); }
.qc__option.selected { border-color: var(--c-brand); background: var(--c-brand-bg); font-weight: 600; }
.qc__option input { display: none; }
.qc__option-radio {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--c-border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.qc__option.selected .qc__option-radio {
  border-color: var(--c-brand); background: var(--c-brand);
}
.qc__option.selected .qc__option-radio::after {
  content: '✓'; color: white; font-size: 0.7rem; font-weight: 700;
}

.qc__tri-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-sm); }
.qc__tri-option {
  padding: var(--s-md); text-align: center;
  border: 2px solid var(--c-border); border-radius: var(--radius);
  cursor: pointer; transition: all 0.2s; font-weight: 500;
}
.qc__tri-option:hover { border-color: var(--c-brand); }
.qc__tri-option.selected { border-color: var(--c-brand); background: var(--c-brand-bg); font-weight: 600; }
.qc__tri-option.selected--yes { border-color: var(--c-green); background: var(--c-green-bg); }
.qc__tri-option.selected--no { border-color: var(--c-red); background: var(--c-red-bg); }
.qc__tri-option.selected--maybe { border-color: var(--c-yellow); background: var(--c-yellow-bg); }

.qc__nav { display: flex; justify-content: space-between; margin-top: var(--s-2xl); }
.qc__back { background: none; border: none; color: var(--c-ink-muted); font-size: 0.9rem; cursor: pointer; font-family: var(--f-body); }
.qc__back:hover { color: var(--c-ink); }

/* Result */
.qc__result {
  text-align: center; padding: var(--s-2xl);
  border-radius: var(--radius-lg); border: 2px solid;
}
.qc__result--green { border-color: var(--c-green); background: var(--c-green-bg); }
.qc__result--yellow { border-color: var(--c-yellow); background: var(--c-yellow-bg); }
.qc__result--red { border-color: var(--c-red); background: var(--c-red-bg); }
.qc__result-icon { font-size: 3rem; margin-bottom: var(--s-md); }
.qc__result h2 { margin-bottom: var(--s-sm); }
.qc__result-amount {
  font-family: var(--f-display); font-size: 2rem;
  margin: var(--s-lg) 0;
}
.qc__result--green .qc__result-amount { color: var(--c-green); }
.qc__result--yellow .qc__result-amount { color: var(--c-yellow); }

/* ─── PILLAR CONTENT ─── */
.pillar { display: grid; grid-template-columns: 1fr 280px; gap: var(--s-2xl); }
.pillar__content h2 { margin: var(--s-2xl) 0 var(--s-md); }
.pillar__content h2:first-child { margin-top: 0; }
.pillar__content p { margin-bottom: var(--s-md); color: var(--c-ink-muted); }
.pillar__content strong { color: var(--c-ink); }
.pillar__sidebar { position: sticky; top: 96px; align-self: start; }
.pillar__toc {
  background: var(--c-surface); border-radius: var(--radius-lg);
  padding: var(--s-lg); margin-bottom: var(--s-lg);
}
.pillar__toc h4 { font-family: var(--f-body); font-weight: 600; margin-bottom: var(--s-md); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-ink-muted); }
.pillar__toc a { display: block; font-size: 0.85rem; color: var(--c-ink-muted); padding: var(--s-xs) 0; border-left: 2px solid transparent; padding-left: var(--s-md); }
.pillar__toc a:hover { color: var(--c-brand); border-color: var(--c-brand); }

.pillar__cta-box {
  background: var(--c-brand-bg); border-radius: var(--radius-lg);
  padding: var(--s-lg); text-align: center;
}
.pillar__cta-box h4 { font-family: var(--f-display); margin-bottom: var(--s-sm); }
.pillar__cta-box p { font-size: 0.85rem; color: var(--c-ink-muted); margin-bottom: var(--s-md); }

.info-box {
  background: var(--c-surface); border-left: 4px solid var(--c-brand);
  padding: var(--s-lg); border-radius: 0 var(--radius) var(--radius) 0;
  margin: var(--s-lg) 0;
}
.info-box p { color: var(--c-ink); margin: 0; }
.compare-table { width: 100%; border-collapse: collapse; margin: var(--s-lg) 0; }
.compare-table th, .compare-table td { padding: var(--s-md); text-align: left; border-bottom: 1px solid var(--c-border); font-size: 0.9rem; }
.compare-table th { font-weight: 600; background: var(--c-surface); }
.compare-table .yes { color: var(--c-green); font-weight: 600; }
.compare-table .no { color: var(--c-red); font-weight: 600; }

@media (max-width: 900px) { .pillar { grid-template-columns: 1fr; } .pillar__sidebar { display: none; } }

/* ─── FAQ ─── */
.faq-item { border-bottom: 1px solid var(--c-border); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--s-lg) 0; cursor: pointer;
  font-weight: 600; font-size: 1rem;
}
.faq-q::after { content: '+'; font-size: 1.4rem; color: var(--c-brand); transition: transform 0.3s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding-bottom: var(--s-lg); color: var(--c-ink-muted); }

/* ─── FOOTER ─── */
.footer { background: var(--c-ink); color: rgba(255,255,255,0.6); padding: var(--s-3xl) 0 var(--s-xl); }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s-2xl); margin-bottom: var(--s-2xl); }
.footer__brand { font-family: var(--f-body); font-weight: 700; font-size: 1.2rem; color: var(--c-white); margin-bottom: var(--s-md); }
.footer__brand span { color: var(--c-brand-light); }
.footer p { font-size: 0.85rem; line-height: 1.6; }
.footer h4 { color: var(--c-white); font-family: var(--f-body); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--s-md); }
.footer a { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.footer a:hover { color: var(--c-white); }
.footer ul { list-style: none; }
.footer li { margin-bottom: var(--s-sm); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: var(--s-lg); display: flex; justify-content: space-between; font-size: 0.8rem; }

@media (max-width: 768px) {
  .footer__inner { grid-template-columns: 1fr; gap: var(--s-xl); }
  .footer__bottom { flex-direction: column; gap: var(--s-sm); }
}

/* ─── STICKY CTA ─── */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--c-ink); padding: var(--s-md) var(--s-lg);
  display: flex; align-items: center; justify-content: center; gap: var(--s-lg);
  z-index: 90; transform: translateY(100%);
  transition: transform 0.4s ease; box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta p { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin: 0; }
@media (max-width: 600px) { .sticky-cta p { display: none; } }

/* ─── UTILITIES ─── */
.mt-sm { margin-top: var(--s-sm); }
.mt-md { margin-top: var(--s-md); }
.mt-lg { margin-top: var(--s-lg); }
.mt-xl { margin-top: var(--s-xl); }
.mt-2xl { margin-top: var(--s-2xl); }
.mb-md { margin-bottom: var(--s-md); }
.mb-lg { margin-bottom: var(--s-lg); }
.mb-xl { margin-bottom: var(--s-xl); }
.gap-md { gap: var(--s-md); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-xl); }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }
