/* Farben und Schrift kommen aus tokens.css (erzeugt aus config/product.json). */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/montserrat-latin-700-normal.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-stack);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 0.6em; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 1.9vw, 2.65rem); font-weight: 700; }
h1, h2 { text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 2px; }
.section-dark :focus-visible, .cta-final :focus-visible, .site-footer :focus-visible { outline-color: var(--on-dark-accent); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--surface); padding: 12px 18px; border-radius: 6px;
}
.skip-link:focus { top: 12px; color: var(--surface); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 12px 22px; border-radius: 6px;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
  background: var(--primary); color: var(--surface); border: 2px solid var(--primary);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.button:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--surface); }
.button-secondary { background: var(--surface); color: var(--primary); }
.button-secondary:hover { background: var(--mist); color: var(--primary-dark); }
.button-small { min-height: 44px; padding: 10px 18px; font-size: 0.95rem; }
.button-inverse { background: var(--surface); color: var(--ink); border-color: var(--surface); }
.button-inverse:hover { background: var(--mist); border-color: var(--mist); color: var(--ink); }
.button-ghost { background: transparent; color: var(--surface); border-color: var(--on-dark-muted); }
.button-ghost:hover { background: rgba(255, 255, 255, 0.08); color: var(--surface); border-color: var(--surface); }
.file-meta { font-weight: 500; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 245, 242, 0.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 600; min-height: 44px; }
.wordmark-mark { background: var(--primary); color: var(--surface); padding: 4px 10px; letter-spacing: 0.02em; }
.wordmark-sub { color: var(--ink); }
.site-nav { flex: 1; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; justify-content: center; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 6px;
  color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 0.95rem;
}
.site-nav a:hover { background: var(--mist); color: var(--ink); }

/* Hero */
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--paper) 0%, var(--mist) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.eyebrow { color: var(--primary); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.proof-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.proof-list li { position: relative; padding-left: 30px; }
.proof-list li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.proof-list strong { color: var(--ink); font-weight: 600; }

/* Screenshot frames */
.shot { margin: 0; }
.shot img {
  width: 100%; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 1px 2px rgba(16, 18, 25, 0.06), 0 18px 40px -16px rgba(16, 18, 25, 0.25);
}
.shot figcaption { font-size: 0.92rem; color: var(--muted); margin-top: 12px; }
.section-dark .shot figcaption { color: var(--on-dark-muted); }

/* Flow strip */
.strip { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: flow; }
.flow li { position: relative; display: flex; flex-direction: column; gap: 2px; font-size: 0.95rem; padding-right: 18px; }
.flow li:not(:last-child)::after { content: "→"; position: absolute; right: 0; top: 0; color: var(--primary); font-weight: 600; }
.flow-label { color: var(--ink); font-weight: 600; }

/* Sections */
.section { padding: 88px 0; }
.section-tint { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p:last-child { font-size: 1.1rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.step-number {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--mist); color: var(--primary); font-weight: 700; margin-bottom: 14px;
}
.steps p { margin: 0; font-size: 0.98rem; }

.feature { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.feature + .feature { margin-top: 88px; }
.feature-reverse .feature-copy { order: 2; }
.feature-reverse .shot { order: 1; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 22px; font-size: 0.98rem; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 9px; height: 9px; background: var(--primary); border-radius: 2px; }

/* Dark differentiator */
.section-dark { background: var(--dark-section); color: var(--on-dark-muted); }
.section-dark h2, .section-dark h3 { color: var(--surface); }
.section-dark .eyebrow { color: var(--on-dark-accent); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.facts li { border: 1px solid rgba(255, 255, 255, 0.14); border-left: 4px solid var(--on-dark-accent); border-radius: 8px; padding: 24px 28px; background: rgba(255, 255, 255, 0.03); }
.facts p { margin: 0; }

/* Gallery and spec list */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-bottom: 56px; }
.spec-list { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.spec-list > div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { color: var(--ink); font-weight: 600; }
.spec-list dd { margin: 0; }

.scope { margin-top: 64px; padding: 24px 28px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); }
.scope p { margin: 0; }

/* Final CTA */
.cta-final { background: var(--paper); }
.cta-box {
  background: var(--primary); color: var(--surface); border-radius: 16px; padding: 56px 48px; text-align: center;
  max-width: 1132px;
}
.cta-box h2 { color: var(--surface); }
.cta-box p { max-width: 40em; margin-left: auto; margin-right: auto; font-size: 1.1rem; }
.cta-box .cta-row { justify-content: center; margin-bottom: 0; }
.cta-box :focus-visible { outline-color: var(--surface); }

/* Footer */
.site-footer { background: var(--dark-section); color: var(--on-dark-muted); padding: 56px 0 24px; font-size: 0.95rem; }
.site-footer a { color: var(--surface); }
.site-footer a:hover { color: var(--on-dark-accent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-title { color: var(--surface); font-weight: 600; margin-bottom: 10px; }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 32px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); margin-top: 40px; padding-top: 20px; }
.footer-bottom p { margin: 0; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid, .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature-reverse .feature-copy, .feature-reverse .shot { order: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow li::after { display: none; }
}
@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; justify-content: space-between; gap: 0 16px; padding-top: 8px; }
  .site-nav { order: 3; flex-basis: 100%; margin: 0 -8px; }
  .site-nav ul { justify-content: flex-start; overflow-x: auto; }
  .site-nav a { padding: 0 10px; white-space: nowrap; }
  html { scroll-padding-top: 128px; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 64px 0; }
  .feature + .feature { margin-top: 64px; }
  .steps, .facts, .gallery, .footer-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .spec-list > div { grid-template-columns: 1fr; gap: 4px; }
  .cta-box { padding: 40px 24px; }
  .cta-row .button { width: 100%; }
}
@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .wordmark-sub { display: none; }
}
