/* ErgoRevive – Website. Aufbau wie die Flatpitch-Seite, Farben wie die ErgoRevive-App (web/src/styles.css). */
:root {
  --bg: #0b1120;
  --surface: #131c2e;
  --surface-2: #1b2740;
  --line: #24314b;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #f97316;
  --accent-ink: #1c0a00;
  --ok: #22c55e;
  --hr: #f87171;
  --radius: 16px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f1f5f9;
    --surface: #ffffff;
    --surface-2: #f1f5f9;
    --line: #dbe3ec;
    --text: #0f172a;
    --muted: #5b6b80;
    --accent: #c2410c;
    --accent-ink: #ffffff;
    --ok: #16a34a;
    --hr: #dc2626;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: clamp(26px, 4vw, 34px); }
h3 { font-size: 18px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.lead { font-size: 19px; color: var(--muted); }
.small { font-size: 14px; }

/* Kopfzeile */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--text); text-decoration: none; }
.logo { width: 26px; height: 26px; border-radius: 7px; flex: none; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--text); }
.langsel { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }
@media (max-width: 640px) { .nav { display: none; } .langsel { margin-left: auto; } }

/* Knöpfe */
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 22px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700; text-decoration: none; }
.btn:hover { border-color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn-wide { display: flex; width: 100%; margin: 22px 0 12px; }

/* Hero */
.hero { padding: 64px 0 72px; }
.hero-in > * { min-width: 0; }
.hero-in { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.kicker { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); letter-spacing: -.02em; }
@media (max-width: 820px) {
  .hero { padding: 36px 0 48px; }
  .hero-in { grid-template-columns: 1fr; gap: 36px; }
}

/* Telefon-Vorschau der Web-App */
.hero-phone { display: flex; justify-content: center; }
.phone { width: 290px; max-width: 100%; border-radius: 40px; border: 10px solid #03060c; background: var(--bg); box-shadow: 0 30px 60px rgba(0,0,0,.35), 0 0 0 1px var(--line); padding: 14px 12px 18px; display: grid; gap: 8px; }
.phone-bar { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; padding: 2px 4px 4px; }
.phone-bar img { border-radius: 5px; }
.phone-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-left: auto; }
.p-banner { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; font-size: 12px; }
.p-banner span { color: var(--muted); font-size: 10.5px; }
.p-tiles { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.p-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px; display: flex; flex-direction: column; min-width: 0; }
.p-tile span { font-size: 10px; color: var(--muted); }
.p-tile b { font-size: 18px; font-variant-numeric: tabular-nums; }
.p-tile b small { font-size: 10px; margin-left: 2px; color: var(--muted); font-weight: 600; }
.p-main { grid-column: 1 / -1; }
.p-main b { font-size: 38px; color: var(--accent); line-height: 1.1; }
.p-main b small { font-size: 14px; }
.p-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.p-rec { display: flex; justify-content: space-between; align-items: center; font-variant-numeric: tabular-nums; }
.p-badge { font-size: 10px; font-weight: 700; color: #fff; background: var(--hr); border-radius: 999px; padding: 2px 8px; }
.p-chart { width: 100%; height: 46px; display: block; margin-top: 6px; }
.p-line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.p-area { fill: color-mix(in srgb, var(--accent) 18%, transparent); }
.p-target { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); }
.p-target b { font-size: 20px; color: var(--text); }
.p-target b small { font-size: 11px; margin-left: 2px; color: var(--muted); }
.p-line { stroke-dasharray: 400; animation: draw 4s ease-out both; }
@keyframes draw { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .p-line { animation: none; } }

/* Abschnitte */
.band { padding: 72px 0; }
.band.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps .n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 12px; }
.steps p, .feat p { color: var(--muted); margin: 0; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.sup { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.sup-card { background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 20px; }
.sup-card .i { display: block; color: var(--accent); margin-bottom: 12px; }
.sup-card h3 { margin: 0 0 6px; }
.sup-card p { margin: 0; color: var(--muted); }
.apps { margin: 24px auto 0; max-width: 720px; }
@media (max-width: 900px) { .sup { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .sup { grid-template-columns: 1fr; } }
.feat { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feat .ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--accent); margin-bottom: 12px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } .band { padding: 52px 0; } }

.textlink { font-weight: 600; }

/* Preis */
.price-pill { display: inline-block; margin-top: 4px; padding: 6px 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.price-pill:hover { border-color: var(--accent); }
.price-card { margin: 28px auto 16px; max-width: 520px; background: var(--bg); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: var(--radius); padding: 28px 28px 22px; text-align: left; }
.price-big { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin: 0 0 20px; }
.price-big b { font-size: clamp(44px, 9vw, 60px); letter-spacing: -.02em; line-height: 1; color: var(--accent); }
.price-big span { color: var(--muted); font-weight: 600; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.need { margin: 24px 0 16px; }
@media (max-width: 520px) { .price-card { padding: 22px 18px 18px; } }

/* Hardware-Empfehlungen */
.hw-wrap { margin-top: 44px; }
.hw-title { font-size: 22px; }
.hw { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0 14px; }
.hw-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; color: var(--text); text-decoration: none; }
.hw-card:hover { border-color: var(--accent); }
.hw-pic { display: grid; place-items: center; aspect-ratio: 5 / 3; border-radius: 12px; background: var(--surface-2); color: var(--accent); margin-bottom: 12px; }
.hw-img { width: 62%; height: auto; }
.hw-card h3 { font-size: 16px; margin: 0 0 6px; }
.hw-card p { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.hw-go { margin-top: auto; color: var(--accent); font-weight: 600; font-size: 14px; }
@media (max-width: 720px) { .hw { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .hw { grid-template-columns: 1fr; } }

details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details:first-of-type { margin-top: 20px; border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Fußzeile */
.foot { padding: 36px 0 48px; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.foot .muted { margin: 8px 0 0; font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: 15px; color: var(--muted); }
.foot .tm { font-size: 12px; margin-top: 24px; }

/* Unterseiten (Impressum, Datenschutz) */
.doc { padding: 40px 0 60px; }
.doc h1 { font-size: 30px; }
.doc h2 { font-size: 19px; margin-top: 28px; }
