/* ========================================================
   afa-rechner.com – Shared Styles
   ======================================================== */

:root {
  --c-primary: #1b4533;
  --c-primary-light: #2d6a4f;
  --c-primary-dark: #0f2b1f;
  --c-accent: #40916c;
  --c-surface: #f0f6f3;
  --c-surface-warm: #f8faf9;
  --c-gold: #c8a951;
  --c-text: #333;
  --c-text-light: #6b7280;
  --c-white: #fff;
  --c-border: #e0e0e0;
  --font-body: 'Poppins', system-ui, sans-serif;
  --font-display: 'Poppins', system-ui, sans-serif;
  --max-w: 1120px;
  --section-py: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--c-text);
  line-height: 1.65;
  font-size: 16px;
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--c-primary); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 0 24px;
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo { height: 28px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--c-text-light);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--c-primary); }
.nav-links a.btn { color: var(--c-white); }
.nav-links a.btn:hover { color: var(--c-white); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  background: var(--c-primary);
  color: var(--c-white);
  border: 2px solid var(--c-primary);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s;
}
.btn:hover { background: var(--c-primary-light); border-color: var(--c-primary-light); color: var(--c-white); }
.btn-outline { background: transparent; color: var(--c-primary); }
.btn-outline:hover { background: var(--c-primary); color: var(--c-white); }
.btn-white { background: var(--c-white); color: var(--c-primary); border-color: var(--c-white); }
.btn-white:hover { background: rgba(255,255,255,0.9); color: var(--c-primary); }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 8px; }

/* ============ SECTIONS ============ */
section { padding: var(--section-py) 24px; }
.bg-alt { background: var(--c-surface-warm); }
.bg-surface { background: var(--c-surface); }

.section-overline {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--c-accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--c-primary-dark);
  line-height: 1.25;
  margin-bottom: 20px;
}
.section-desc {
  font-size: 1.02rem;
  color: var(--c-text-light);
  max-width: 680px;
  line-height: 1.7;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 80px 24px 60px;
  background: var(--c-surface);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(27,69,51,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; max-width: 800px; text-align: center; }
.hero-overline {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--c-accent);
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  color: var(--c-primary-dark);
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--c-text-light);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.trust-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--c-text-light);
}
.trust-check {
  width: 20px; height: 20px;
  background: var(--c-primary);
  color: var(--c-white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

/* ============ CONTENT GRIDS ============ */
.iab-explain-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
  margin-top: 32px;
}
.iab-explain-text p { margin-bottom: 16px; color: var(--c-text); line-height: 1.75; }
.iab-fact-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.iab-fact-card h3 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--c-surface);
}
.fact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.88rem;
}
.fact-row:last-child { border-bottom: none; }
.fact-label { color: var(--c-text-light); }
.fact-value { font-weight: 700; color: var(--c-primary); text-align: right; }

/* ============ STEPS ============ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.step-card {
  position: relative;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 32px 28px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  transition: transform 0.3s, box-shadow 0.3s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.06); }
.step-num {
  position: absolute;
  top: -18px; left: 24px;
  width: 36px; height: 36px;
  background: var(--c-primary);
  color: var(--c-white);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--c-primary-dark);
  margin-bottom: 10px;
  margin-top: 6px;
}
.step-card p { font-size: 0.88rem; color: var(--c-text-light); line-height: 1.65; }

/* ============ TARGETS ============ */
.target-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.target-card {
  display: flex;
  gap: 16px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 24px;
  transition: border-color 0.2s;
}
.target-card:hover { border-color: var(--c-accent); }
.target-icon {
  width: 48px; height: 48px;
  background: var(--c-surface);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.target-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--c-primary-dark); margin-bottom: 6px; }
.target-card p { font-size: 0.84rem; color: var(--c-text-light); line-height: 1.55; }

/* ============ PV TABLE ============ */
.pv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
  align-items: start;
}
.pv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.pv-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--c-primary);
  color: var(--c-white);
  font-weight: 600;
  font-size: 0.82rem;
}
.pv-table th:first-child { border-radius: 8px 0 0 0; }
.pv-table th:last-child { border-radius: 0 8px 0 0; }
.pv-table td {
  padding: 11px 16px;
  border-bottom: 1px solid #f0f0f0;
}
.pv-table td:last-child { color: var(--c-primary); font-weight: 600; }
.pv-cta-box {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
  border-radius: 12px;
  padding: 32px;
  color: var(--c-white);
}
.pv-cta-box h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 12px; }
.pv-cta-box p { font-size: 0.9rem; opacity: 0.9; line-height: 1.6; margin-bottom: 20px; }

/* ============ TRUST ============ */
.trust-quote-box {
  background: var(--c-white);
  border-left: 4px solid var(--c-gold);
  border-radius: 0 8px 8px 0;
  padding: 24px 28px;
  margin: 32px 0;
  font-size: 0.92rem;
  line-height: 1.6;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.trust-quote-box strong { color: var(--c-primary-dark); }
.trust-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.trust-badge {
  text-align: center;
  padding: 24px 16px;
  background: var(--c-white);
  border-radius: 10px;
  border: 1px solid var(--c-border);
}
.trust-badge-icon { font-size: 28px; margin-bottom: 10px; display: block; }
.trust-badge h4 { font-size: 0.88rem; color: var(--c-primary); margin-bottom: 6px; }
.trust-badge p { font-size: 0.78rem; color: var(--c-text-light); line-height: 1.5; }

/* ============ FAQ ============ */
.faq-list { max-width: 760px; margin: 40px auto 0; }
.faq-item { border-bottom: 1px solid var(--c-border); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-primary-dark);
  cursor: pointer;
  text-align: left;
  gap: 16px;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--c-primary); }
.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--c-surface);
  transition: transform 0.3s, background 0.3s;
}
.faq-item.open .faq-q::after { content: '\2212'; background: var(--c-primary); color: var(--c-white); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s; }
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 20px; }
.faq-a p { font-size: 0.92rem; color: var(--c-text-light); line-height: 1.7; }

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 40px;
}
.about-img { width: 100%; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.about-text h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--c-primary-dark); margin-bottom: 12px; }
.about-text p { font-size: 0.95rem; color: var(--c-text-light); line-height: 1.7; margin-bottom: 16px; }
.about-contact {
  font-size: 0.88rem;
  line-height: 1.8;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
}
.about-contact a { color: var(--c-primary); font-weight: 600; text-decoration: none; }

/* ============ FINAL CTA ============ */
.final-cta {
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 50%, var(--c-primary-light) 100%);
  padding: 80px 24px;
  text-align: center;
  color: var(--c-white);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: url('/img/o_pattern_w.svg') center / cover no-repeat;
  opacity: 0.045;
}
.final-cta .container { position: relative; z-index: 1; }
.final-cta h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 16px; }
.final-cta p { font-size: 1.05rem; opacity: 0.85; max-width: 580px; margin: 0 auto 32px; line-height: 1.65; }
.final-cta-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ============ FOOTER ============ */
.footer {
  background: var(--c-primary-dark);
  color: rgba(255,255,255,0.6);
  padding: 48px 24px 32px;
  font-size: 0.84rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-brand p { margin-top: 12px; line-height: 1.6; font-size: 0.82rem; }
.footer-logo { height: 24px; filter: brightness(0) invert(1); opacity: 0.8; }
.footer h4 {
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.footer a {
  display: block;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  padding: 3px 0;
  transition: color 0.2s;
  font-size: 0.84rem;
}
.footer a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
}

/* ============ ARTICLE / PROSE ============ */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--c-primary-dark);
  margin: 48px 0 16px;
  line-height: 1.3;
}
.prose h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-primary-dark);
  margin: 32px 0 12px;
}
.prose p { margin-bottom: 16px; line-height: 1.8; color: var(--c-text); }
.prose ul, .prose ol {
  margin: 16px 0;
  padding-left: 24px;
}
.prose li { margin-bottom: 8px; line-height: 1.7; color: var(--c-text); }
.prose strong { color: var(--c-primary-dark); }
.prose .callout {
  background: var(--c-surface);
  border-left: 4px solid var(--c-primary);
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
}
.prose .callout p { margin-bottom: 8px; }
.prose .callout p:last-child { margin-bottom: 0; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
}
.prose table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--c-surface);
  font-weight: 600;
  color: var(--c-primary-dark);
  border-bottom: 2px solid var(--c-primary);
}
.prose table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
}

/* ============ PAGE HEADER (Subpages) ============ */
.page-header {
  background: var(--c-surface);
  padding: 48px 24px;
  text-align: center;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--c-primary-dark);
  margin-bottom: 12px;
}
.page-header p {
  font-size: 1rem;
  color: var(--c-text-light);
  max-width: 600px;
  margin: 0 auto;
}
.page-content {
  padding: 48px 24px 80px;
}

/* ============ LEGAL PAGES ============ */
.legal h2 { font-size: 1.2rem; font-family: var(--font-body); font-weight: 700; margin: 32px 0 12px; }
.legal h3 { font-size: 1rem; margin: 24px 0 8px; }
.legal p { margin-bottom: 12px; line-height: 1.7; font-size: 0.92rem; }
.legal ul { margin: 12px 0; padding-left: 24px; }
.legal li { margin-bottom: 6px; font-size: 0.92rem; line-height: 1.6; }
.legal a { color: var(--c-primary); }

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate { opacity: 0; }
.animate.visible { animation: fadeUp 0.6s ease forwards; }
.animate.visible:nth-child(2) { animation-delay: 0.1s; }
.animate.visible:nth-child(3) { animation-delay: 0.15s; }
.animate.visible:nth-child(4) { animation-delay: 0.2s; }


/* ============ MOBILE NAV (Hamburger) ============ */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-primary);
  border-radius: 2px;
  transition: all 0.3s;
  margin: 5px 0;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 280px;
    height: 100vh;
    background: var(--c-white);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 32px;
    gap: 4px;
    box-shadow: -4px 0 24px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 105;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a {
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: 6px;
    color: var(--c-text);
  }
  .nav-links a:hover { background: var(--c-surface); color: var(--c-primary); }
  .nav-links .btn {
    margin-top: 12px;
    text-align: center;
    justify-content: center;
  }
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 104;
  }
  .nav-overlay.open { display: block; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  :root { --section-py: 56px; }
  .hero { padding: 56px 24px 40px; }
  .hero h1 { font-size: clamp(1.55rem, 6.5vw, 2rem); hyphens: auto; word-break: break-word; }
  .page-header h1 { font-size: clamp(1.4rem, 5.5vw, 1.8rem); hyphens: auto; word-break: break-word; }
  .section-title { font-size: clamp(1.3rem, 5vw, 1.6rem); }
  .trust-row { flex-direction: column; align-items: flex-start; gap: 12px; max-width: 380px; margin-left: auto; margin-right: auto; }
  .iab-explain-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .target-grid { grid-template-columns: 1fr; }
  .pv-grid { grid-template-columns: 1fr; }
  .trust-badges { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-img { max-width: 260px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-right { order: -1; }
}

/* ============ Infographics ============ */
.iab-timeline { background: var(--c-white); border: 1px solid var(--c-border); border-radius: 12px; padding: 32px; margin: 32px 0; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.iab-timeline-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--c-primary); margin-bottom: 28px; text-align: center; }
.timeline-track { position: relative; display: flex; justify-content: space-between; gap: 16px; padding: 0 8px; }
.timeline-track::before { content: ''; position: absolute; top: 32px; left: 40px; right: 40px; height: 3px; background: linear-gradient(to right, var(--c-primary), var(--c-accent), #a7c4b5); border-radius: 2px; z-index: 0; }
.timeline-phase { flex: 1; text-align: center; position: relative; z-index: 1; }
.timeline-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--c-primary); border: 4px solid var(--c-white); box-shadow: 0 0 0 2px var(--c-primary); margin: 20px auto 16px; }
.timeline-phase:nth-child(2) .timeline-dot { background: var(--c-accent); box-shadow: 0 0 0 2px var(--c-accent); }
.timeline-phase:nth-child(3) .timeline-dot { background: #a7c4b5; box-shadow: 0 0 0 2px #a7c4b5; }
.timeline-year { font-size: 0.7rem; font-weight: 600; color: var(--c-text-light); text-transform: uppercase; letter-spacing: 0.5px; }
.timeline-label { font-size: 0.92rem; font-weight: 700; color: var(--c-primary); margin: 8px 0 4px; }
.timeline-phase:nth-child(2) .timeline-label { color: var(--c-accent); }
.timeline-phase:nth-child(3) .timeline-label { color: #6a9a84; }
.timeline-detail { font-size: 0.78rem; color: var(--c-text-light); line-height: 1.5; }
.timeline-highlight { display: inline-block; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 6px; padding: 8px 14px; margin-top: 10px; font-size: 0.82rem; font-weight: 700; color: var(--c-primary); }
.timeline-phase:nth-child(2) .timeline-highlight { color: var(--c-accent); }
.timeline-phase:nth-child(3) .timeline-highlight { color: #6a9a84; }

.iab-waterfall { background: var(--c-white); border: 1px solid var(--c-border); border-radius: 12px; padding: 32px; margin: 32px 0; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.waterfall-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--c-primary); margin-bottom: 6px; text-align: center; }
.waterfall-subtitle { font-size: 0.82rem; color: var(--c-text-light); text-align: center; margin-bottom: 28px; }
.waterfall-bars { display: flex; align-items: flex-end; gap: 2px; height: 260px; padding: 0 20px; position: relative; }
.waterfall-bars::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: var(--c-border); }
.wf-bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }
.wf-bar { width: 100%; max-width: 80px; border-radius: 6px 6px 0 0; position: relative; display: flex; flex-direction: column; overflow: hidden; }
.wf-segment { width: 100%; display: flex; align-items: center; justify-content: center; font-size: 0.68rem; font-weight: 600; color: white; padding: 2px 4px; min-height: 16px; }
.wf-seg-iab { background: var(--c-primary); }
.wf-seg-sonder { background: var(--c-accent); }
.wf-seg-deg { background: #52796f; }
.wf-seg-afa { background: #a7c4b5; color: var(--c-primary); }
.wf-seg-rest { background: #e8e8e8; color: #999; }
.wf-label { font-size: 0.72rem; color: var(--c-text-light); margin-top: 10px; font-weight: 500; text-align: center; }
.wf-value { font-size: 0.78rem; font-weight: 700; color: var(--c-primary); margin-top: 2px; }
.waterfall-legend { display: flex; justify-content: center; gap: 20px; margin-top: 24px; flex-wrap: wrap; }
.wf-legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--c-text-light); }
.wf-legend-dot { width: 12px; height: 12px; border-radius: 3px; }

.iab-compare { background: var(--c-white); border: 1px solid var(--c-border); border-radius: 12px; padding: 32px; margin: 32px 0; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.compare-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--c-primary); margin-bottom: 24px; text-align: center; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare-card { border: 2px solid var(--c-border); border-radius: 10px; overflow: hidden; transition: border-color 0.3s; }
.compare-card:hover { border-color: var(--c-primary); }
.compare-card-header { padding: 16px 20px; background: var(--c-surface); border-bottom: 1px solid var(--c-border); display: flex; align-items: center; gap: 12px; }
.compare-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--c-primary); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.compare-card-title { font-size: 0.95rem; font-weight: 700; color: var(--c-primary); }
.compare-card-sub { font-size: 0.72rem; color: var(--c-text-light); }
.compare-card-body { padding: 20px; }
.compare-row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 0.82rem; }
.compare-row:last-child { border-bottom: none; }
.compare-row-label { color: var(--c-text-light); }
.compare-row-value { font-weight: 600; color: var(--c-primary); text-align: right; }
.compare-row.highlight { background: var(--c-surface); margin: 4px -12px; padding: 8px 12px; border-radius: 6px; border: none; }
.compare-row.highlight .compare-row-value { font-weight: 700; color: #198754; font-size: 0.92rem; }

@media (max-width: 700px) {
  .timeline-track { flex-direction: column; gap: 24px; padding: 0; }
  .timeline-track::before { display: none; }
  .timeline-dot { margin: 8px auto 8px; }
  .waterfall-bars { height: 200px; }
  .wf-segment { font-size: 0.6rem; }
  .compare-grid { grid-template-columns: 1fr; }
}

@media (max-width: 375px) {
  .hero { padding: 48px 16px 32px; }
  .hero h1 { font-size: 1.45rem; }
  .page-header h1 { font-size: 1.3rem; }
  .section-title { font-size: 1.25rem; }
  section, .container { padding-left: 16px; padding-right: 16px; }
}
