/* ── Home Page Layout ── */
/* Layout-specific styles for the home page (index.html, "Prozessanalyse mit Preisschild").
   Tokens, base reset, headings, buttons, nav, footer, theme toggle and the CTA section
   all come from style.css — this file only adds what is unique to the home page. */

/* Anchor targets clear the fixed nav */
html { scroll-padding-top: 80px; }

/* ── Shared building blocks ── */
.home-section { padding: 5.5rem 0; background: var(--bg-0); }
.home-section-alt { background: var(--bg-1); }
.home-section h2 {
  font-size: clamp(34px, 4.2vw, 54px);
  letter-spacing: -0.01em; line-height: 1.08;
  max-width: 44rem;
  text-wrap: balance;
}
.home-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.home-split { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .home-split { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* ── Hero ── */
.home-hero {
  padding: calc(5rem + 64px) 0 5rem;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 55% at 20% -5%, var(--gold-dim) 0%, transparent 65%);
  pointer-events: none;
}
.home-hero-grid { position: relative; display: grid; gap: 3rem; }
@media (min-width: 1024px) {
  .home-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
}
.home-hero h1 {
  font-size: clamp(44px, 6vw, 76px);
  letter-spacing: -0.01em; line-height: 1.04;
  text-wrap: balance;
}
.home-lead { margin-top: 1.5rem; font-size: 1.05rem; max-width: 36rem; color: var(--text-2); }
.home-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.home-actions svg { width: 1.1em; height: 1.1em; margin-left: 0.4rem; vertical-align: -0.2em; }

/* Lever chart */
.home-levers { padding: 1.5rem; }
.home-levers-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.home-levers-head p:first-child { font-weight: 500; font-size: 0.9rem; color: var(--text-1); }
.home-levers-head p:last-child,
.home-levers figcaption { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.08em; color: var(--text-3); }
.home-levers ul { list-style: none; }
.home-levers li {
  display: grid; grid-template-columns: 7rem minmax(0, 1fr) auto;
  align-items: center; gap: 0.75rem;
  padding: 0.45rem 0; font-size: 0.82rem; color: var(--text-1);
}
.home-bar { height: 0.4rem; background: var(--bg-3); border-radius: 999px; overflow: hidden; }
.home-bar span { display: block; height: 100%; border-radius: 999px; background: var(--gold); }
.home-bar-soft span { background: color-mix(in oklab, var(--gold) 45%, transparent); }
.home-grade {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem; border-radius: 3px; border: 1px solid;
}
.home-grade-proven { color: var(--teal); background: var(--teal-dim); border-color: color-mix(in oklab, var(--teal) 35%, transparent); }
.home-grade-plausible { color: var(--gold); background: var(--gold-dim); border-color: color-mix(in oklab, var(--gold) 35%, transparent); }
.home-grade-hypothesis { color: var(--rose); background: color-mix(in oklab, var(--rose) 12%, transparent); border-color: color-mix(in oklab, var(--rose) 35%, transparent); }
.home-levers-foot {
  margin-top: 1rem; padding: 0.75rem;
  background: var(--gold-dim);
  border: 1px solid color-mix(in oklab, var(--gold) 25%, transparent);
  border-radius: 4px;
  font-size: 0.82rem; line-height: 1.55;
}
.home-levers-foot strong { color: var(--text-1); font-weight: 500; }
.home-levers figcaption { margin-top: 0.85rem; letter-spacing: 0.02em; line-height: 1.5; }
/* Narrow screens: label and grade on one row, full-width bar below */
@media (max-width: 480px) {
  .home-levers li { grid-template-columns: minmax(0, 1fr) auto; gap: 0.35rem 0.75rem; }
  .home-levers .home-bar { grid-column: 1 / -1; grid-row: 2; }
}

/* ── Die Lage: stats with sources ── */
.home-kicker { margin-top: 1rem; max-width: 42rem; color: var(--text-2); }
.home-cite a { font-family: 'IBM Plex Mono', monospace; font-size: 0.7em; color: var(--gold); padding: 0 0.1em; }
.home-cite a:hover { text-decoration: underline; }
.home-stats { margin-top: 2.5rem; display: grid; gap: 1.25rem; list-style: none; }
@media (min-width: 768px) { .home-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.home-stats li { padding: 1.75rem; display: flex; flex-direction: column; }
.home-fig {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 52px; font-weight: 300; line-height: 1;
  color: var(--gold); letter-spacing: -0.02em;
}
.home-stats p { margin-top: 0.85rem; font-size: 0.9rem; color: var(--text-2); }
.home-src {
  margin-top: auto; padding-top: 1rem;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.06em;
  color: var(--text-3);
}
.home-src a:hover { color: var(--gold); }
.home-bridge { margin-top: 2.5rem; max-width: 44rem; font-size: 1.05rem; color: var(--text-1); }

/* ── Warum: numbered points and the "Mit ValueFlows" box ── */
.home-points { margin-top: 2rem; display: grid; gap: 1.5rem; list-style: none; }
.home-points li { display: grid; grid-template-columns: 2.25rem 1fr; gap: 0.75rem; }
.home-num { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--gold); padding-top: 0.15rem; }
.home-points p { color: var(--text-2); font-size: 0.92rem; }
.home-points strong { display: block; color: var(--text-1); font-weight: 500; margin-bottom: 0.15rem; }
.home-change {
  background: var(--gold-dim);
  border: 1px solid color-mix(in oklab, var(--gold) 25%, transparent);
  border-radius: 8px; padding: 2.25rem;
}
.home-section .home-change h2 { font-size: clamp(28px, 3.2vw, 40px); }
@media (max-width: 600px) { .home-change { padding: 1.5rem; } }

/* ── Vorgehen: four steps ── */
.home-steps { margin-top: 2.5rem; display: grid; gap: 1rem; list-style: none; }
@media (min-width: 640px) { .home-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .home-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.home-steps li { padding: 1.5rem; }
.home-steps li:last-child { background: var(--gold-dim); border-color: color-mix(in oklab, var(--gold) 40%, transparent); }
.home-step-n {
  display: inline-grid; place-items: center;
  width: 1.75rem; height: 1.75rem;
  border: 1px solid var(--border-hi); border-radius: 4px;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--gold);
}
.home-steps h3 {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 1rem; font-weight: 500;
  margin: 0.85rem 0 0.35rem;
}
.home-steps p { font-size: 0.875rem; color: var(--text-2); }
.home-note { margin-top: 1.5rem; font-size: 0.9rem; color: var(--text-2); }

/* ── Prozesse & Datenschutz ── */
.home-sub { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; text-wrap: balance; }
.home-chips { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; }
.home-chips li {
  font-size: 0.85rem; color: var(--text-1);
  padding: 0.4rem 0.85rem;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 999px;
}
.home-chips li.home-chip-own { border-style: dashed; color: var(--text-2); }
.home-trust { margin-top: 1.5rem; display: grid; gap: 0.85rem; list-style: none; }
.home-trust li { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.6rem; color: var(--text-2); font-size: 0.92rem; }
.home-trust svg { width: 1.1rem; height: 1.1rem; color: var(--teal); margin-top: 0.3rem; }

/* ── Kontakt (extends .cta-section from style.css) ── */
.cta-section p.home-wink {
  margin: 1.75rem auto 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic; font-size: 1.5rem;
  color: var(--gold);
}

/* ── Quellen ── */
.home-sources { padding: 3.5rem 0; background: var(--bg-1); border-top: 1px solid var(--border); }
.home-sources h2 {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 1rem; font-weight: 500;
}
.home-sources-intro { margin-top: 0.35rem; font-size: 0.875rem; color: var(--text-2); }
.home-sources ol {
  margin-top: 1.25rem; display: grid; gap: 0.85rem;
  list-style: none; counter-reset: q;
  font-size: 0.82rem; color: var(--text-2);
}
.home-sources li { display: grid; grid-template-columns: 1.75rem 1fr; gap: 0.25rem; }
.home-sources li::before { counter-increment: q; content: counter(q); font-family: 'IBM Plex Mono', monospace; color: var(--gold); }
.home-sources li:target { background: var(--gold-dim); }
.home-sources a {
  color: var(--text-1);
  text-decoration: underline; text-decoration-color: var(--border-hi); text-underline-offset: 2px;
  overflow-wrap: anywhere;
}
.home-sources a:hover { text-decoration-color: var(--gold); }
