/* Landing-page-spezifisches Theme. Erbt Tokens, sperrt Light-Theme + Hero-Spezifika. */
@import url("./colors_and_type.css");

:root {
  --primary: #d97757;
  --primary-hover: #c96644;
  --primary-soft: #fbe9e0;
  --bg: #ffffff;
  --bg-page: #faf9f5;
  --bg-elevated: #ffffff;
  --bg-band: #f5f3ec;
  --fg: #1a1a17;
  --fg-muted: #4b4b46;
  --fg-subtle: #6b6b63;
  --border: #e6e3d9;
  --border-strong: #d2cec1;
  --shadow-sm: 0 1px 2px rgba(20, 20, 16, 0.04);
  --shadow-md: 0 8px 24px rgba(20, 20, 16, 0.06);
  --shadow-lg: 0 18px 40px rgba(20, 20, 16, 0.1);
  --max-w: 1200px;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

/* Material symbols inline glyph helper.
   We DO NOT redefine font-family here — we rely on the rule shipped by the
   Google Fonts stylesheet for `.material-symbols-rounded` so ligatures fire.
   `.mi` is just our spacing/sizing helper alongside it. */
.mi {
  vertical-align: -4px;
  font-size: 20px;
}
.material-symbols-rounded {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
  text-rendering: auto;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
}

/* ───────────────  Layout primitives  ─────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}
.section {
  padding: 96px 0;
}
.section.tight {
  padding: 64px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.eyebrow .mi {
  font-size: 16px;
}

h1,
h2,
h3,
h4 {
  letter-spacing: -0.025em;
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
}
p {
  margin: 0;
  line-height: 1.6;
}

/* ───────────────  Top bar  ─────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 249, 245, 0.85);
  backdrop-filter: saturate(120%) blur(14px);
  -webkit-backdrop-filter: saturate(120%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms;
}
.topbar.scrolled {
  border-bottom-color: var(--border);
}
.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}
.brand .word {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 18px;
}
.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}
.nav-links a {
  color: var(--fg-muted);
  font-size: 14px;
}
.nav-links a:hover {
  color: var(--fg);
}

/* ───────────────  Buttons  ─────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--fg);
  cursor: pointer;
  transition:
    transform 80ms ease-out,
    background 120ms,
    border-color 120ms,
    box-shadow 120ms;
  text-decoration: none;
}
.btn:hover {
  border-color: var(--fg-muted);
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 0 rgba(150, 60, 30, 0.15);
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}
.btn-lg {
  padding: 14px 22px;
  font-size: 16px;
  border-radius: 12px;
}
.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--fg-muted);
}
.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--fg);
}
.btn .mi {
  font-size: 20px;
}

/* ───────────────  Hero  ─────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
  background:
    radial-gradient(
      1100px 540px at 80% -20%,
      rgba(217, 119, 87, 0.1),
      transparent 60%
    ),
    radial-gradient(
      900px 440px at -10% 30%,
      rgba(217, 119, 87, 0.05),
      transparent 60%
    );
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 5.6vw, 64px);
  line-height: 1.04;
  margin-top: 18px;
}
.hero h1 .accent {
  color: var(--primary);
}
.hero p.lede {
  margin-top: 18px;
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 56ch;
}
.hero-cta {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: 22px;
  display: flex;
  gap: 18px;
  color: var(--fg-subtle);
  font-size: 13px;
  flex-wrap: wrap;
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-meta .mi {
  font-size: 16px;
  color: var(--primary);
}

/* App-Mockup im Hero */
.hero-art {
  position: relative;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(0.5deg);
}
.hero-art .winchrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: #fbfaf6;
}
.hero-art .winchrome i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e0ddd1;
  display: inline-block;
}
.hero-art .winchrome i:nth-child(1) {
  background: #ec6a5e;
}
.hero-art .winchrome i:nth-child(2) {
  background: #f5bf4f;
}
.hero-art .winchrome i:nth-child(3) {
  background: #62c554;
}
.hero-art .winchrome .url {
  margin-left: 14px;
  color: var(--fg-subtle);
  font-size: 12px;
  font-family: var(--font-mono);
}
.hero-art-body {
  padding: 14px;
}
.hero-art-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 6px;
}
.hero-art-toolbar .pill {
  background: var(--primary-soft);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.hero-art-toolbar .stage {
  color: var(--fg-subtle);
  font-size: 12px;
}
.hero-art-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: var(--bg-band);
  border-radius: 10px;
  padding: 10px;
}
.hero-art-col {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 10px;
}
.hero-art-col .head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--fg);
}
.hero-art-col .head .meta {
  font-weight: 400;
  color: var(--fg-subtle);
}
.hero-art-col .row {
  font-size: 10.5px;
  padding: 3px 0;
  color: var(--fg-muted);
  font-family: var(--font-mono);
}
.hero-art-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 6px 4px;
}
.hero-art-foot .ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8f5ec;
  color: #1f8a3a;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
}

/* ───────────────  Stats / pillars  ─────────────── */
.pillars {
  background: var(--bg-band);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.pillars-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.pillar {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.pillar .mi {
  font-size: 22px;
  color: var(--primary);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pillar .lbl {
  font-weight: 600;
  font-size: 14px;
}
.pillar .desc {
  color: var(--fg-subtle);
  font-size: 13px;
  margin-top: 2px;
}

/* ───────────────  Steps (zigzag scroll-reveal)  ─────────────── */
.steps-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.steps-intro h2 {
  font-size: clamp(28px, 3.5vw, 40px);
}
.steps-intro p {
  color: var(--fg-muted);
  font-size: 17px;
  margin-top: 14px;
}

.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
  position: relative;
}
.step.reverse {
  grid-template-areas: "art body";
}
.step.reverse .step-body {
  grid-area: body;
}
.step.reverse .step-art {
  grid-area: art;
}

/* Body sitzt an der inneren Kante seiner Spalte, sodass der Text bei
   normalen UND reverse-Steps denselben Abstand zur Mittellinie hat
   und das Layout symmetrisch wirkt. Nur Desktop ≥ 1101 px. */
@media (min-width: 1101px) {
  .step .step-body {
    max-width: 520px;
    width: 100%;
    justify-self: end;
  }
  .step.reverse .step-body {
    max-width: 520px;
    width: 100%;
    justify-self: start;
  }
  .step .step-art {
    max-width: 560px;
    width: 100%;
    justify-self: start;
  }
  .step.reverse .step-art {
    max-width: 560px;
    width: 100%;
    justify-self: end;
  }
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--primary);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-sm);
}
.step h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  margin-top: 18px;
  line-height: 1.15;
}
.step p {
  color: var(--fg-muted);
  font-size: 16.5px;
  margin-top: 14px;
}
.step-features {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  color: var(--fg-muted);
  font-size: 14.5px;
}
.step-features .mi {
  color: var(--primary);
  font-size: 18px;
}
.step-features {
  padding: 0;
}

/* Bild-Platzhalter */
.step-art {
  position: relative;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.step-art .ph {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(217, 119, 87, 0.06) 0 12px,
      transparent 12px 24px
    ),
    var(--bg-band);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--fg-subtle);
}
.step-art .ph .mi {
  font-size: 44px;
  color: var(--primary);
  opacity: 0.7;
}
.step-art .ph .caption {
  font-size: 13px;
  max-width: 80%;
  text-align: center;
  line-height: 1.45;
}
.step-art .ph .badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--fg-muted);
  font-family: var(--font-mono);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms cubic-bezier(0.2, 0.6, 0.2, 1),
    transform 700ms cubic-bezier(0.2, 0.6, 0.2, 1);
  will-change: transform, opacity;
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 {
  transition-delay: 80ms;
}
.reveal.delay-2 {
  transition-delay: 160ms;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Verbindungslinie zwischen Steps */
.step-rail {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--border) 20%,
    var(--border) 80%,
    transparent
  );
  transform: translateX(-50%);
  pointer-events: none;
}
/* Rail nur im Desktop-Layout (≥1101 px). Sobald die Steps stacken,
   gibt es keine Mittellinie mehr zu zeichnen. */
@media (max-width: 1100px) {
  .step-rail {
    display: none !important;
  }
}

/* ───────────────  CTA-Band  ─────────────── */
.cta-band {
  background: linear-gradient(135deg, #1a1a17 0%, #2a2823 100%);
  color: #faf9f5;
  border-radius: 20px;
  padding: 56px 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    500px 240px at 90% -20%,
    rgba(217, 119, 87, 0.3),
    transparent 60%
  );
  pointer-events: none;
}
.cta-band,
.cta-band * {
  color: #faf9f5;
}
.cta-band h3 {
  font-size: clamp(26px, 3vw, 34px);
  position: relative;
  color: #faf9f5;
}
.cta-band p {
  color: rgba(250, 249, 245, 0.78);
  margin-top: 12px;
  position: relative;
  font-size: 16px;
}
.cta-band .actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  position: relative;
  flex-wrap: wrap;
}
/* CTA-Band-Stacking ist im Haupt-Responsive-Block weiter unten geregelt. */

/* ───────────────  Footer  ─────────────── */
footer.site-foot {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  color: var(--fg-subtle);
  font-size: 13px;
}
.foot-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.foot-inner .links {
  display: flex;
  gap: 18px;
}
.foot-inner a:hover {
  color: var(--fg);
}

/* ───────────────  Download Page  ─────────────── */
.dl-hero {
  padding: 72px 0 48px;
  text-align: center;
}
.dl-hero h1 {
  font-size: clamp(36px, 4.5vw, 52px);
}
.dl-hero p.lede {
  color: var(--fg-muted);
  font-size: 17px;
  margin: 14px auto 0;
  max-width: 56ch;
}
.version-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.version-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1f8a3a;
}
.version-pill code {
  font-family: var(--font-mono);
  color: var(--fg);
  font-size: 12.5px;
}

.dl-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 920px;
  margin: 32px auto 0;
}
.dl-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms;
}
.dl-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.dl-card .os-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-band);
}
.dl-card .os-icon svg {
  width: 36px;
  height: 36px;
}
.dl-card h3 {
  font-size: 22px;
}
.dl-card p {
  color: var(--fg-muted);
  font-size: 14.5px;
}
.dl-card .meta {
  display: flex;
  gap: 14px;
  color: var(--fg-subtle);
  font-size: 12.5px;
  font-family: var(--font-mono);
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.dl-card .meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dl-card .meta .mi {
  font-size: 14px;
}

.sysreq {
  max-width: 920px;
  margin: 36px auto 0;
  background: var(--bg-band);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 26px;
}
.sysreq h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-subtle);
  font-weight: 600;
  margin-bottom: 12px;
}
.sysreq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
  font-size: 14px;
  color: var(--fg-muted);
}
.sysreq-grid b {
  color: var(--fg);
  font-weight: 500;
}

.dl-error {
  max-width: 920px;
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  background: rgba(176, 58, 46, 0.08);
  border: 1px solid rgba(176, 58, 46, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  color: var(--fg);
}
.dl-error > .material-symbols-rounded {
  color: #b03a2e;
  font-size: 24px;
}
.dl-error b {
  display: block;
  margin-bottom: 4px;
}
.dl-error p {
  color: var(--fg-muted);
  font-size: 13.5px;
  margin: 0;
}
.dl-error code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dl-error code {
    background: rgba(255, 255, 255, 0.08);
  }
}
:root[data-theme="dark"] .dl-error code {
  background: rgba(255, 255, 255, 0.08);
}
@media (max-width: 700px) {
  .dl-error {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

.changelog {
  max-width: 920px;
  margin: 28px auto 0;
  text-align: center;
  color: var(--fg-subtle);
  font-size: 13px;
}
.changelog a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ───────────────  Dark mode  ───────────────
   Folgt dem System (prefers-color-scheme: dark). Manuelles Override
   ist über <html data-theme="dark"> oder data-theme="light" möglich —
   so kann später ein Toggle gebaut werden, ohne CSS anzufassen.
*/
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #e08a6e; /* leicht heller, damit Kontrast auf dunkler Fläche stimmt */
    --primary-hover: #ec9a80;
    --primary-soft: rgba(217, 119, 87, 0.16);
    --bg: #1a1a17;
    --bg-page: #141413;
    --bg-elevated: #1f1e1c;
    --bg-band: #232220;
    --fg: #faf9f5;
    --fg-muted: #c9c7bd;
    --fg-subtle: #908e84;
    --border: #34332f;
    --border-strong: #4a4945;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.5);
  }
}
/* Manuelles Dark-Override (z. B. aus späterem Theme-Toggle) */
:root[data-theme="dark"] {
  --primary: #e08a6e;
  --primary-hover: #ec9a80;
  --primary-soft: rgba(217, 119, 87, 0.16);
  --bg: #1a1a17;
  --bg-page: #141413;
  --bg-elevated: #1f1e1c;
  --bg-band: #232220;
  --fg: #faf9f5;
  --fg-muted: #c9c7bd;
  --fg-subtle: #908e84;
  --border: #34332f;
  --border-strong: #4a4945;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.5);
}

/* Bauteile, die in Light hartkodierte Weißtöne hatten — im Dark-Mode an Tokens hängen */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .topbar {
    background: rgba(20, 20, 19, 0.8);
  }
  :root:not([data-theme="light"]) .btn {
    background: var(--bg-elevated);
  }
  :root:not([data-theme="light"]) .btn-ghost {
    background: transparent;
  }
  :root:not([data-theme="light"]) .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
  }
  :root:not([data-theme="light"]) .hero-art,
  :root:not([data-theme="light"]) .hero-art-col,
  :root:not([data-theme="light"]) .step-num,
  :root:not([data-theme="light"]) .step-art,
  :root:not([data-theme="light"]) .version-pill,
  :root:not([data-theme="light"]) .dl-card {
    background: var(--bg-elevated);
  }
  :root:not([data-theme="light"]) .version-pill code {
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 6px;
    border-radius: 4px;
  }
  :root:not([data-theme="light"]) .hero-art .winchrome {
    background: #25241f;
  }
  :root:not([data-theme="light"]) .step-art .ph .badge {
    background: var(--bg-elevated);
  }
  :root:not([data-theme="light"]) .hero {
    background:
      radial-gradient(
        1100px 540px at 80% -20%,
        rgba(217, 119, 87, 0.18),
        transparent 60%
      ),
      radial-gradient(
        900px 440px at -10% 30%,
        rgba(217, 119, 87, 0.08),
        transparent 60%
      );
  }
  :root:not([data-theme="light"]) .hero-art-foot .ok {
    background: rgba(47, 125, 79, 0.18);
    color: #7ec894;
  }
  :root:not([data-theme="light"]) .step-art .ph {
    background:
      repeating-linear-gradient(
        135deg,
        rgba(217, 119, 87, 0.1) 0 12px,
        transparent 12px 24px
      ),
      var(--bg-band);
  }
}
:root[data-theme="dark"] .topbar {
  background: rgba(20, 20, 19, 0.8);
}
:root[data-theme="dark"] .btn {
  background: var(--bg-elevated);
}
:root[data-theme="dark"] .btn-ghost {
  background: transparent;
}
:root[data-theme="dark"] .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
}
:root[data-theme="dark"] .hero-art,
:root[data-theme="dark"] .hero-art-col,
:root[data-theme="dark"] .step-num,
:root[data-theme="dark"] .step-art,
:root[data-theme="dark"] .version-pill,
:root[data-theme="dark"] .dl-card {
  background: var(--bg-elevated);
}
:root[data-theme="dark"] .version-pill code {
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
}
:root[data-theme="dark"] .hero-art .winchrome {
  background: #25241f;
}
:root[data-theme="dark"] .step-art .ph .badge {
  background: var(--bg-elevated);
}
:root[data-theme="dark"] .hero {
  background:
    radial-gradient(
      1100px 540px at 80% -20%,
      rgba(217, 119, 87, 0.18),
      transparent 60%
    ),
    radial-gradient(
      900px 440px at -10% 30%,
      rgba(217, 119, 87, 0.08),
      transparent 60%
    );
}
:root[data-theme="dark"] .hero-art-foot .ok {
  background: rgba(47, 125, 79, 0.18);
  color: #7ec894;
}
:root[data-theme="dark"] .step-art .ph {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(217, 119, 87, 0.1) 0 12px,
      transparent 12px 24px
    ),
    var(--bg-band);
}

/* color-scheme hint, damit Browser Form-Controls / Scrollbars korrekt einfärben */
:root {
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
}

/* ───────────────  Responsive  ─────────────── */
@media (max-width: 1100px) {
  /* Tablet: Steps stacken früher, Bild oben, Text unten — und immer
     in derselben Reihenfolge, egal ob normaler oder reverse-Step. */
  .step,
  .step.reverse {
    grid-template-columns: 1fr !important;
    grid-template-areas: "art" "body" !important;
    gap: 28px;
    padding: 48px 0;
  }
  .step .step-art,
  .step.reverse .step-art {
    grid-area: art;
    max-width: none;
    justify-self: stretch;
  }
  .step .step-body,
  .step.reverse .step-body {
    grid-area: body;
    max-width: none;
    justify-self: stretch;
  }
  .step-rail {
    display: none;
  }
}
@media (max-width: 980px) {
  /* Hero, Pillars, CTA, Nav: Tablet-Stack. */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-art {
    transform: none;
  }
  .pillars-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .dl-cards {
    grid-template-columns: 1fr;
  }
  .sysreq-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .cta-band {
    grid-template-columns: 1fr;
    padding: 36px 28px;
  }
  .cta-band .actions {
    justify-content: flex-start;
  }

  /* Doppelt abgesichert: Steps stacken hier nochmal explizit, falls der
     1100-Block aus irgendeinem Grund nicht greift. */
  .step,
  .step.reverse {
    grid-template-columns: 1fr !important;
    grid-template-areas: "art" "body" !important;
    gap: 28px !important;
    padding: 48px 0 !important;
  }
  .step .step-art,
  .step.reverse .step-art {
    grid-area: art !important;
    max-width: none !important;
    justify-self: stretch !important;
    width: 100% !important;
  }
  .step .step-body,
  .step.reverse .step-body {
    grid-area: body !important;
    max-width: none !important;
    justify-self: stretch !important;
    width: 100% !important;
  }
  .step-rail {
    display: none;
  }
}
@media (max-width: 700px) {
  .pillars-inner {
    grid-template-columns: 1fr;
  }
  .step .step-num,
  .step.reverse .step-num {
    width: 48px;
    height: 48px;
    font-size: 18px;
    border-radius: 12px;
  }
  .step h3 {
    font-size: clamp(22px, 5.5vw, 28px) !important;
  }
  .step p {
    font-size: 15.5px;
  }
  .hero h1 {
    font-size: clamp(32px, 8vw, 44px) !important;
  }
  .hero p.lede {
    font-size: 16px;
  }
  .hero-cta .btn {
    flex: 1;
    justify-content: center;
  }
  .hero-art-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .topbar-inner {
    padding: 12px 20px;
  }
  .brand .word {
    display: none;
  }
  .dl-card {
    padding: 24px;
  }
  .dl-card h3 {
    font-size: 19px;
  }
  .dl-card .meta {
    flex-wrap: wrap;
    gap: 8px 14px;
  }
}
@media (max-width: 560px) {
  .section {
    padding: 64px 0;
  }
  .container {
    padding: 0 20px;
  }
  .eyebrow {
    font-size: 12px;
  }
  .step-art .ph .caption {
    font-size: 12px;
    max-width: 88%;
  }
  .step-art .ph .mi {
    font-size: 36px;
  }
  .step-art .ph .badge {
    font-size: 10px;
    padding: 3px 8px;
  }
  .hero-meta {
    gap: 12px;
    font-size: 12.5px;
  }
  .cta-band {
    padding: 28px 22px;
    border-radius: 16px;
  }
  .cta-band .actions .btn {
    width: 100%;
    justify-content: center;
  }
  .version-pill {
    font-size: 12px;
  }
  .sysreq {
    padding: 18px 20px;
  }
  .foot-inner {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .foot-inner .links {
    flex-wrap: wrap;
    gap: 14px;
  }
}

/* Density × responsive: Spacious sollte auf kleinem Schirm nicht
   absurd groß bleiben — Container/Section-Padding deckeln. */
@media (max-width: 700px) {
  :root {
    --tw-section-pad: 56px !important;
    --tw-step-pad: 36px !important;
    --tw-step-gap: 28px !important;
    --tw-hero-pad: 48px 0 40px !important;
    --tw-container-pad: 20px !important;
  }
}
