/* ET StromFluss — Energy Compute / PV-Überschuss-Mining
   Design system: dark graphite industrial, StromFluss green accent, restrained bitcoin orange. */

:root {
  --bg: #0a0d11;
  --bg-alt: #0e1218;
  --surface: #141a22;
  --surface-2: #1b222c;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef2f6;
  --text-dim: #a7b1bd;
  --text-faint: #6d7885;

  --green: #22a35a;
  --green-strong: #2fbf6c;
  --green-deep: #0d5a26;
  --green-tint: #12291b;
  --green-tint-border: rgba(47, 191, 108, 0.28);

  --orange: #f5a623;
  --orange-tint: #2a2013;

  /* Light-section raw tokens (used via .on-light scoping below) */
  --bg-light: #f6f3ec;
  --bg-light-alt: #efeade;
  --surface-light: #ffffff;
  --surface-light-2: #f1ede3;
  --border-light: rgba(20, 22, 19, 0.10);
  --border-light-strong: rgba(20, 22, 19, 0.18);
  --text-on-light: #17191b;
  --text-on-light-dim: #4b4f47;
  --text-on-light-faint: #7a7d73;
  --green-on-light: #187a40;
  --green-on-light-strong: #106534;
  --green-tint-on-light: #e6f2ea;
  --green-tint-border-on-light: rgba(16, 101, 52, 0.24);
  --orange-tint-on-light: #fbf0dd;
  --orange-tint-border-on-light: rgba(180, 118, 10, 0.3);
  --orange-on-light: #a3670d;

  --sh-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --sh-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --sh-lg: 0 10px 30px rgba(0, 0, 0, 0.35);

  --r-sm: 3px;
  --r-md: 4px;
  --r-lg: 6px;
  --r-full: 999px;

  --tf: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --ts: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  --fs: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fd: 'Fraunces', Georgia, 'Times New Roman', serif;
  --mw: 1220px;
  --mw-narrow: 1080px;
  --hh: 76px;
}

/* Light-section scope: rebinds the working tokens; every component that already
   reads var(--surface)/var(--text)/var(--border)/etc. adapts automatically. */
.on-light {
  --bg: var(--bg-light);
  --bg-alt: var(--bg-light-alt);
  --surface: var(--surface-light);
  --surface-2: var(--surface-light-2);
  --border: var(--border-light);
  --border-strong: var(--border-light-strong);
  --text: var(--text-on-light);
  --text-dim: var(--text-on-light-dim);
  --text-faint: var(--text-on-light-faint);
  --green-strong: var(--green-on-light);
  --green: var(--green-on-light-strong);
  --green-tint: var(--green-tint-on-light);
  --green-tint-border: var(--green-tint-border-on-light);
  --orange: var(--orange-on-light);
  --orange-tint: var(--orange-tint-on-light);
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--fs);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1, h2 { font-family: var(--fd); font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0 0 1em; color: var(--text-dim); }
p.body-max { max-width: 62ch; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--mw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-tight { padding: 40px 0; }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fs);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-strong);
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; display: block; width: 26px; height: 1.5px; background: var(--green-strong); flex: 0 0 auto; }
.eyebrow.orange { color: var(--orange); }
.eyebrow.orange::before { background: var(--orange); }
.eyebrow.center { justify-content: center; }

h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1.08; color: var(--text); max-width: 21ch; }
h2 { font-size: clamp(1.8rem, 2.9vw, 2.5rem); line-height: 1.14; color: var(--text); max-width: 22ch; }
h3 { font-size: 1.25rem; color: var(--text); font-family: var(--fs); }
.lead { font-size: 1.15rem; color: var(--text-dim); max-width: 52ch; }
.center-col { margin-inline: auto; text-align: center; }
.center-col h1, .center-col h2, .center-col .lead { max-width: none; margin-inline: auto; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--tf), background var(--tf), border-color var(--tf), box-shadow var(--tf);
  white-space: nowrap;
}
.btn-primary { background: var(--green-strong); color: #06170c; box-shadow: var(--sh-sm); }
.btn-primary:hover { background: var(--green); transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--green-strong); color: var(--green-strong); }
.btn-lg { padding: 17px 32px; font-size: 16px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 2px solid var(--green-strong); outline-offset: 2px;
}

/* Header */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--hh);
  display: flex; align-items: center;
  background: rgba(10, 13, 17, 0.7);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--tf), background var(--tf);
}
.hdr.scr { border-color: var(--border); background: rgba(10, 13, 17, 0.92); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--text); }
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green-strong); box-shadow: 0 0 12px var(--green-strong); }
.brand small { display: block; font-weight: 500; font-size: 10.5px; color: var(--text-faint); letter-spacing: 0.04em; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 14.5px; font-weight: 500; color: var(--text-dim); transition: color var(--tf); }
.nav a:hover, .nav a.act { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.hamb { display: none; }
.nav .nav-dd-trigger { font-size: 14.5px; font-weight: 500; color: var(--text-dim); }
.nav .has-dd:hover .nav-dd-trigger, .nav .nav-dd-trigger[aria-expanded="true"] { color: var(--text); }

@media (max-width: 980px) {
  .nav { position: fixed; top: var(--hh); left: 0; right: 0; bottom: 0; background: var(--bg-alt);
    flex-direction: column; align-items: flex-start; padding: 32px 24px; gap: 4px;
    transform: translateX(100%); transition: transform var(--ts); overflow-y: auto; }
  .nav.act { transform: translateX(0); }
  .nav a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--border); font-size: 17px; }
  .nav .has-dd { width: 100%; flex-direction: column; align-items: flex-start; border-bottom: 1px solid var(--border); }
  .nav .has-dd .nav-dd-trigger { padding: 14px 0; width: 100%; font-size: 17px; display: flex; justify-content: space-between; }
  .nav .has-dd .nav-dd a { border-bottom: none; padding: 10px 0; }
  .nav-cta { flex-direction: column; align-items: stretch; margin-top: 20px; width: 100%; }
  .hamb { display: flex; flex-direction: column; gap: 5px; width: 26px; background: none; border: none; cursor: pointer; padding: 8px; }
  .hamb span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: var(--tf); width: 100%; }
  .hamb.act span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamb.act span:nth-child(2) { opacity: 0; }
  .hamb.act span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero { padding: calc(var(--hh) + 64px) 0 80px; position: relative; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(ellipse 900px 500px at 15% 0%, rgba(34, 163, 90, 0.16), transparent 60%),
    radial-gradient(ellipse 700px 500px at 90% 20%, rgba(245, 166, 35, 0.06), transparent 60%);
}
.hero-grid { position: absolute; inset: 0; z-index: -1; opacity: 0.35;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black, transparent);
}
.hero .lead { max-width: 700px; }

/* Energy flow diagram */
.flow-wrap { margin-top: 64px; }
.flow-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 36px 28px; box-shadow: var(--sh-md);
}
.flow-note { font-size: 12.5px; color: var(--text-faint); text-align: center; margin-top: 18px; }
.flow-steps { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; justify-content: center; }
.flow-node {
  flex: 1 1 150px; min-width: 130px; text-align: center; padding: 20px 10px; position: relative;
}
.flow-node .val { font-size: 1.6rem; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.flow-node .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-faint); margin-top: 6px; }
.flow-node .ic { width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface-2); border: 1px solid var(--border); }
.flow-node.hl .ic { background: var(--green-tint); border-color: var(--green-tint-border); }
.flow-node.compute .ic { background: var(--orange-tint); border-color: rgba(245,166,35,0.3); }
.flow-arrow { flex: 0 0 auto; display: flex; align-items: center; color: var(--text-faint); padding: 0 4px; align-self: center; }
.flow-arrow svg { width: 28px; height: 16px; }
.flow-arrow .flow-line { stroke-dasharray: 40; stroke-dashoffset: 40; animation: flowdash 2.6s linear infinite; }
@keyframes flowdash { to { stroke-dashoffset: -40; } }
@media (prefers-reduced-motion: reduce) { .flow-line { animation: none !important; stroke-dashoffset: 0; } }
@media (max-width: 900px) {
  .flow-steps { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); align-self: center; margin: 2px 0; }
}

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 30px; transition: border-color var(--tf), transform var(--tf);
}
.card:hover { border-color: var(--border-strong); }
.card .ic { width: 46px; height: 46px; border-radius: var(--r-sm); background: var(--green-tint); border: 1px solid var(--green-tint-border); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--green-strong); }
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 14.5px; }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.pill { border: 1px solid var(--border-strong); border-radius: var(--r-full); padding: 8px 16px; font-size: 13.5px; color: var(--text-dim); }

.band {
  background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.band-cta { text-align: center; padding: 80px 0; }
.band-cta h2 { max-width: 700px; margin-inline: auto; }
.band-cta .lead { margin-inline: auto; }
.band-cta .btn-row { justify-content: center; }

/* Segment nav cards */
.seg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 900px) { .seg-grid { grid-template-columns: 1fr; } }
.seg-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 26px; transition: var(--tf); }
.seg-card:hover { border-color: var(--green-tint-border); background: var(--surface-2); }
.seg-card .tag { font-size: 11.5px; color: var(--green-strong); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; }
.seg-card h3 { margin: 10px 0 8px; font-size: 1.05rem; }
.seg-card p { font-size: 14px; margin-bottom: 0; }
.seg-card .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 13.5px; font-weight: 600; color: var(--text); }

/* Table */
.tbl { width: 100%; border-collapse: collapse; margin: 24px 0; }
.tbl th, .tbl td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.tbl th { color: var(--text-faint); font-weight: 600; text-transform: uppercase; font-size: 12px; letter-spacing: 0.05em; }
.tbl td { color: var(--text-dim); }

/* Steps */
.steps { counter-reset: step; }
.step { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--border); }
.step:first-child { border-top: none; }
.step .num { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--green-strong); }
.step h3 { margin-bottom: 6px; font-size: 1.05rem; }
.step p { margin-bottom: 0; font-size: 14.5px; }

/* Disclaimer box */
.notice {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--orange);
  border-radius: var(--r-sm); padding: 18px 22px; font-size: 14px; color: var(--text-dim);
}
.notice strong { color: var(--text); }
.notice.green { border-left-color: var(--green-strong); }

/* Breadcrumbs */
.crumbs { padding: 18px 0 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--text-faint); }
.crumbs a { color: var(--text-faint); }
.crumbs a:hover { color: var(--green-strong); }
.crumbs li:not(:last-child)::after { content: '/'; margin-left: 6px; color: var(--text-faint); }

/* FAQ */
.faq-item { border-top: 1px solid var(--border); padding: 20px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; font-weight: 600; font-size: 15.5px; }
.faq-q .chev { transition: transform var(--tf); flex: 0 0 auto; color: var(--text-faint); }
.faq-item.open .faq-q .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--ts); }
.faq-a p { padding-top: 12px; font-size: 14.5px; }

/* Reveal animation */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* Forms */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-dim); margin-bottom: 7px; }
.field .req { color: var(--orange); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-alt); border: 1px solid var(--border-strong); color: var(--text);
  padding: 12px 14px; border-radius: var(--r-sm); font-size: 15px; font-family: var(--fs);
  transition: border-color var(--tf);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green-strong); outline: none; }
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .field-row { grid-template-columns: 1fr; } }
.chk-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text-dim); }
.chk-row input { width: auto; margin-top: 3px; }
.chip-select { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--border-strong); border-radius: var(--r-full); padding: 8px 15px; font-size: 13.5px; cursor: pointer; transition: var(--tf); user-select: none; }
.chip.sel { background: var(--green-tint); border-color: var(--green-tint-border); color: var(--green-strong); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 36px; }
.form-result { display: none; text-align: center; padding: 40px 20px; }
.form-result .ic { width: 56px; height: 56px; border-radius: 50%; background: var(--green-tint); border: 1px solid var(--green-tint-border); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; color: var(--green-strong); }
.form-result.err .ic { background: var(--orange-tint); border-color: rgba(245,166,35,0.3); color: var(--orange); }

/* Calculator */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 980px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px; position: sticky; top: calc(var(--hh) + 20px); }
@media (max-width: 980px) { .calc-panel { position: static; } }
.calc-out { display: flex; justify-content: space-between; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.calc-out:last-of-type { border-bottom: none; }
.calc-out .v { font-weight: 700; font-size: 17px; color: var(--text); font-variant-numeric: tabular-nums; }
.calc-out .v.accent { color: var(--green-strong); }
.calc-out .sub { color: var(--text-faint); font-size: 12px; }
.range-val { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-faint); margin-top: -8px; margin-bottom: 4px; }
input[type=range] { width: 100%; accent-color: var(--green-strong); }

/* Footer */
.ftr { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 64px 0 32px; }
.ftr-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .ftr-grid { grid-template-columns: 1fr 1fr; } }
.ftr h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 16px; }
.ftr a { display: block; padding: 6px 0; font-size: 14px; color: var(--text-dim); }
.ftr a:hover { color: var(--green-strong); }
.ftr-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-faint); }
.ftr-legal { font-size: 12.5px; color: var(--text-faint); margin-top: 20px; line-height: 1.7; max-width: 420px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--green-strong); color: #06170c; padding: 12px 20px; z-index: 200; border-radius: 0 0 8px 0; font-weight: 600; }
.skip-link:focus { left: 0; }

/* ============ Phase 2: UX / conversion additions ============ */

/* Trust strip (hero) */
.trust-strip { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 28px; }
.trust-strip span { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-dim); }
.trust-strip svg { flex: 0 0 auto; color: var(--green-strong); }

/* Hero visual illustration */
.hero-visual { position: relative; }
.hero-illustration { width: 100%; height: auto; display: block; }
.hero-illustration .hflow { stroke-dasharray: 10 8; stroke-dashoffset: 54; animation: hflowdash 2.4s linear infinite; }
@keyframes hflowdash { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-illustration .hflow { animation: none; stroke-dashoffset: 0; } }
.hero-grid-2 { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
@media (max-width: 980px) { .hero-grid-2 { grid-template-columns: 1fr; } }

/* "Was trifft auf Sie zu?" path cards */
.path-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
@media (max-width: 1080px) { .path-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .path-grid { grid-template-columns: 1fr; } }
.path-card {
  display: flex; flex-direction: column; height: 100%;
  background: transparent; border-top: 2px solid var(--border-strong); border-radius: 0; padding: 26px 4px 0 0;
  transition: border-color var(--tf);
}
.path-card:hover { border-top-color: var(--green-strong); }
.path-card .ic { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; color: var(--green-strong); margin-bottom: 22px; }
.path-card h3 { font-size: 1.1rem; margin-bottom: 10px; font-family: var(--fd); font-weight: 600; }
.path-card p { font-size: 14px; flex: 1; }
.path-card .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 13.5px; font-weight: 700; color: var(--green-strong); }
.path-card .go svg { transition: transform var(--tf); }
.path-card:hover .go svg { transform: translateX(3px); }

/* Simplified 5-step story — editorial numbered list, no icon badges */
.story { display: flex; align-items: flex-start; gap: 0; margin-top: 48px; }
.story-step { flex: 1; text-align: left; padding: 0 22px 0 0; position: relative; }
.story-step .badge { font-family: var(--fd); font-size: 2.1rem; font-weight: 600; color: var(--green-strong); line-height: 1; margin-bottom: 16px; display: block; }
.story-step h3 { font-size: 1rem; margin-bottom: 8px; }
.story-step p { font-size: 13.5px; margin-bottom: 0; }
.story-arrow { flex: 0 0 auto; width: 1px; background: var(--border-strong); margin-top: 8px; align-self: stretch; }
@media (max-width: 900px) {
  .story { flex-direction: column; }
  .story-arrow { display: none; }
  .story-step { padding: 0 0 28px; border-left: 1px solid var(--border-strong); padding-left: 20px; margin-left: 4px; }
  .story-step:last-child { padding-bottom: 0; border-left-color: transparent; }
}

/* Why mining — simple, no icon chips */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 36px; }
@media (max-width: 800px) { .why-grid { grid-template-columns: 1fr; gap: 24px; } }
.why-item { text-align: left; padding: 20px 0 0; border-top: 2px solid var(--border-strong); }
.why-item .ic { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--green-strong); }
.why-item h3 { font-size: 1.02rem; }

/* Trust section */
.trust-band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-facts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 36px; }
@media (max-width: 900px) { .trust-facts { grid-template-columns: 1fr 1fr; } }
.trust-fact { text-align: left; padding: 18px 0 0; border-top: 1px solid var(--border-strong); }
.trust-fact .ic { width: 22px; height: 22px; display: flex; align-items: center; margin-bottom: 10px; color: var(--green-strong); }
.trust-fact span { font-size: 13.5px; color: var(--text-dim); display: block; font-weight: 600; }

/* Ecosystem section */
.eco-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 32px; }
@media (max-width: 900px) { .eco-grid { grid-template-columns: 1fr 1fr; } }
.eco-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 24px 20px; }
.eco-card .tag { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.eco-card h3 { font-size: 1rem; margin: 10px 0 8px; }
.eco-card p { font-size: 13.5px; margin-bottom: 14px; }
.eco-card a.go { font-size: 13px; font-weight: 700; color: var(--green-strong); display: inline-flex; align-items: center; gap: 5px; }
.eco-note { font-size: 12.5px; color: var(--text-faint); margin-top: 20px; max-width: 640px; }

/* Choice grid (contact step 1) */
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 700px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.choice-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left;
  background: var(--bg-alt); border: 1.5px solid var(--border-strong); border-radius: var(--r-md);
  padding: 18px 16px; cursor: pointer; transition: var(--tf); color: var(--text); font-family: var(--fs);
}
.choice-btn:hover { border-color: var(--green-tint-border); }
.choice-btn.sel { border-color: var(--green-strong); background: var(--green-tint); }
.choice-btn .ic { color: var(--green-strong); }
.choice-btn span { font-size: 14px; font-weight: 600; }

/* Multi-step form */
.step-indicator { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; }
.step-indicator .si { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-faint); font-weight: 600; }
.step-indicator .si .n { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.step-indicator .si.on { color: var(--text); }
.step-indicator .si.on .n { background: var(--green-strong); border-color: var(--green-strong); color: #06170c; }
.step-indicator .sep { width: 24px; height: 1px; background: var(--border-strong); }
.form-step { display: none; }
.form-step.on { display: block; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }

/* Calculator mode toggle */
.mode-toggle { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--r-full); padding: 4px; gap: 4px; margin-bottom: 24px; }
.mode-btn { border: none; background: transparent; color: var(--text-dim); font-family: var(--fs); font-size: 13.5px; font-weight: 600; padding: 9px 20px; border-radius: var(--r-full); cursor: pointer; transition: var(--tf); }
.mode-btn.on { background: var(--green-strong); color: #06170c; }
.pro-panel { display: none; margin-top: 8px; padding-top: 20px; border-top: 1px dashed var(--border-strong); }
.pro-panel.on { display: block; }
.result-msg { font-size: 15.5px; font-weight: 600; color: var(--text); background: var(--green-tint); border: 1px solid var(--green-tint-border); border-radius: var(--r-sm); padding: 16px 18px; margin-bottom: 20px; }
.choice-pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-pill { border: 1.5px solid var(--border-strong); border-radius: var(--r-full); padding: 10px 18px; font-size: 13.5px; cursor: pointer; background: var(--bg-alt); color: var(--text); transition: var(--tf); }
.choice-pill.sel { border-color: var(--green-strong); background: var(--green-tint); color: var(--green-strong); }

/* Mobile sticky conversion bar */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: rgba(10,13,17,0.96); backdrop-filter: blur(10px); border-top: 1px solid var(--border);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    gap: 10px;
  }
  .mbar a { flex: 1; text-align: center; padding: 13px 10px; border-radius: var(--r-sm); font-weight: 700; font-size: 14px; }
  .mbar .call { background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); }
  .mbar .check { background: var(--green-strong); color: #06170c; }
  body { padding-bottom: 68px; }
}

/* Belongs-to-StromFluss badge */
.brand-parent { font-size: 12px; color: var(--text-faint); display: inline-flex; align-items: center; gap: 6px; }
.brand-parent a { color: var(--text-dim); font-weight: 600; }
.brand-parent a:hover { color: var(--green-strong); }

/* ============ Phase 3: premium redesign additions ============ */

/* Nav dropdowns (desktop) */
.has-dd { position: relative; display: inline-flex; align-items: center; }
.nav-dd-trigger { display: inline-flex; align-items: center; gap: 5px; background: none; border: none; font: inherit; color: inherit; cursor: pointer; padding: 0; }
.nav-dd-trigger .car { transition: transform var(--tf); }
.has-dd.open .nav-dd-trigger .car { transform: rotate(180deg); }
.nav-dd {
  position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%);
  min-width: 240px; background: var(--surface); border: 1px solid var(--border-strong);
  box-shadow: var(--sh-lg); padding: 10px; display: none; z-index: 50;
}
.has-dd.open .nav-dd { display: block; }
.nav-dd a { display: block; padding: 11px 14px; font-size: 14px; color: var(--text-dim); white-space: nowrap; }
.nav-dd a:hover { color: var(--text); background: var(--surface-2); }
@media (max-width: 980px) {
  .nav-dd { position: static; transform: none; box-shadow: none; border: none; background: none; padding: 0 0 0 14px; display: none; min-width: 0; }
  .has-dd.open .nav-dd { display: block; }
  .nav-dd a { padding: 12px 0; border-bottom: none; color: var(--text-faint); font-size: 15px; }
}

/* Editorial split (media + text), used for hero and content sections */
.split { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; }
.split.rev { grid-template-columns: 0.92fr 1.08fr; }
.split.rev > :first-child { order: 2; }
@media (max-width: 980px) {
  .split, .split.rev { grid-template-columns: 1fr; gap: 36px; }
  .split.rev > :first-child { order: 0; }
}

/* Divider / stat row (replaces pill rows for factual figures) */
.stat-row { display: flex; flex-wrap: wrap; gap: 32px 48px; margin: 32px 0; }
.stat { border-top: 2px solid var(--border-strong); padding-top: 14px; min-width: 120px; }
.stat .n { font-family: var(--fd); font-size: 2.1rem; font-weight: 600; color: var(--text); line-height: 1; }
.stat .l { font-size: 12.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 8px; display: block; }
.hr-rule { height: 1px; background: var(--border); margin: 56px 0; }

/* Hero v3 */
.hero-v3 { position: relative; overflow: hidden; padding: calc(var(--hh) + 56px) 0 0; }
.hero-v3-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 1100px 640px at 20% -10%, rgba(47, 191, 108, 0.14), transparent 60%),
    linear-gradient(180deg, #0a0d11 0%, #0a0d11 78%, var(--bg-light) 100%);
}
.hero-v3 h1 { max-width: 17ch; }
.hero-v3 .lead { font-size: 1.2rem; }
.hero-v3-visual { position: relative; margin-top: 8px; }
.hero-illustration { width: 100%; height: auto; display: block; }
.hero-illustration .hflow-dot { animation: hflowglide 4.5s linear infinite; opacity: 0; }
@keyframes hflowglide { 0% { offset-distance: 0%; opacity: 0; } 10% { opacity: 1; } 88% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-illustration .hflow-dot { display: none; } }

.hero-v3-visual .stat-overlay { position: absolute; left: 0; bottom: 14px; }
.stat-overlay {
  background: rgba(20, 26, 34, 0.88); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12); padding: 18px 20px;
  display: flex; flex-direction: column; gap: 10px; min-width: 168px;
}
@media (max-width: 700px) {
  .hero-v3-visual .stat-overlay { position: static; margin-top: 14px; width: 100%; }
}
.stat-overlay .row { display: flex; justify-content: space-between; gap: 16px; font-size: 12.5px; color: #b9c2cb; padding: 2px 0; }
.stat-overlay .row b { color: #fff; font-variant-numeric: tabular-nums; font-weight: 700; }
.stat-overlay .row.hl b { color: var(--green-strong); }
.stat-overlay .row.orange b { color: var(--orange); }
.stat-overlay .tag { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #7a8590; border-bottom: 1px solid rgba(255,255,255,0.14); padding-bottom: 8px; margin-bottom: 2px; }
.hero-caption { font-size: 12px; color: var(--text-faint); margin-top: 14px; }

/* Numbered problem/answer blocks (GEO direct-answer) */
.answer-block { border-left: 3px solid var(--green-strong); padding: 2px 0 2px 20px; margin: 20px 0; }
.answer-block p { font-size: 15px; color: var(--text); margin-bottom: 0; }
.answer-block .q { display: block; font-weight: 700; margin-bottom: 6px; font-size: 15.5px; }
