/* StepDraw CAD – Website
   Gestaltung nach Apples Grundsätzen (Rückmeldung sofort, ruhige Bewegung, klare Hierarchie,
   Schrift mit größenabhängiger Laufweite, durchscheinende Kopfleiste). Bewegung nur über
   transform/opacity; bei „weniger Bewegung“ nur sanftes Einblenden. */
:root {
  --navy: #24385B;
  --navy-dark: #1a2a45;
  --navy-deep: #121e33;
  --accent: #FFB020;
  --accent-press: #f0a010;
  --on-accent: #2b2100;
  --text: #1d2530;
  --muted: #5b6676;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --border: #e1e6ee;
  --ok: #2E8B57;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(18, 30, 51, .06), 0 2px 8px rgba(18, 30, 51, .05);
  --shadow-md: 0 2px 6px rgba(18, 30, 51, .06), 0 12px 32px rgba(18, 30, 51, .10);
  --shadow-lg: 0 4px 12px rgba(18, 30, 51, .10), 0 24px 56px rgba(18, 30, 51, .18);
  /* kritisch gedämpft, ohne Überschwingen (≈ Feder mit Dämpfung 1.0, Ansprechzeit 0,35 s) */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --t-fast: 120ms;
  --t-med: 350ms;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 100%/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, Arial, sans-serif;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

/* Schrift: große Schrift enger laufen lassen, Fließtext neutral, kleine Schrift minimal weiter */
h1, h2, h3 { font-optical-sizing: auto; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.06; letter-spacing: -0.028em; font-weight: 750; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.25rem); line-height: 1.12; letter-spacing: -0.022em; font-weight: 720; margin: 0 0 .6rem; }
h3 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.012em; font-weight: 650; }
small, .small { letter-spacing: .005em; }
p.sub { color: var(--muted); margin: 0 0 2.25rem; font-size: 1.125rem; line-height: 1.55; max-width: 46rem; }

/* Hinweisband */
.banner { background: var(--accent); color: var(--on-accent); text-align: center; padding: .6rem 1rem;
          font-weight: 600; font-size: .9375rem; letter-spacing: .003em; }

/* Kopfleiste: durchscheinendes Material, Inhalt läuft darunter; Kante erst beim Scrollen */
header.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(18, 30, 51, 0);
  transition: box-shadow var(--t-med) var(--ease), background-color var(--t-med) var(--ease);
}
html.scrolled header.top { box-shadow: 0 1px 0 rgba(18, 30, 51, .08), 0 6px 20px rgba(18, 30, 51, .06); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 4rem; gap: 1rem; }
header.top img.logo { height: 2.6rem; display: block; }
nav { display: flex; align-items: center; gap: .25rem; }
nav a { text-decoration: none; color: var(--text); font-weight: 550; font-size: .9375rem; letter-spacing: -.003em;
        padding: .4rem .7rem; border-radius: 999px;
        transition: background-color var(--t-fast) ease-out, color var(--t-fast) ease-out; }
nav a:hover { background: rgba(36, 56, 91, .07); }
nav a:active { background: rgba(36, 56, 91, .13); }
nav a.lang { border: 1px solid var(--border); padding: .25rem .65rem; font-size: .8125rem; margin-left: .35rem; }

/* Startbereich */
.hero { position: relative; overflow: hidden; color: #fff; padding: clamp(3.5rem, 8vw, 6rem) 0;
        background: radial-gradient(1200px 500px at 85% -10%, rgba(255, 176, 32, .16), transparent 60%),
                    linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 55%, var(--navy-deep) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.hero h1 { color: #fff; margin: 0 0 1.1rem; }
.hero h1 span { color: var(--accent); }
.hero p.lead { font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); line-height: 1.55; color: #d6dfee; margin: 0 0 2rem; max-width: 34rem; }
.hero img { width: 100%; display: block; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-lg),
            0 0 0 1px rgba(255, 255, 255, .08); }

/* Knöpfe: Rückmeldung beim Drücken, nicht erst beim Loslassen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
       padding: .8rem 1.4rem; min-height: 2.9rem; border-radius: 999px; font-weight: 650; font-size: 1rem;
       letter-spacing: -.005em; text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
       -webkit-tap-highlight-color: transparent; user-select: none;
       transition: transform var(--t-fast) ease-out, background-color var(--t-fast) ease-out,
                   box-shadow var(--t-med) var(--ease), filter var(--t-fast) ease-out; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 6px 16px rgba(255, 176, 32, .28); }
.btn-primary:active { background: var(--accent-press); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; margin-left: .6rem; }
.btn-ghost:active { background: rgba(255, 255, 255, .12); }
.btn-dark { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-dark:active { background: var(--navy-dark); }
.btn[disabled], .btn.disabled { background: #e6eaf0; color: #6b7686; cursor: not-allowed; box-shadow: none; }
.btn.disabled:active { transform: none; }
@media (hover: hover) {
  .btn-primary:hover { filter: brightness(1.04); }
  .btn-ghost:hover { background: rgba(255, 255, 255, .08); }
  .btn-dark:hover { background: #2c4470; }
}

/* Abschnitte */
section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
section.soft { background: var(--bg-soft); }

/* Karten: eine Formensprache für alle */
.step, .feature, .price, .compare figure, details, .smartscreen {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.step { padding: 1.6rem; box-shadow: var(--shadow-sm); }
.step h3 { margin: .9rem 0 .4rem; }
.step p { margin: 0; color: var(--muted); }
.step b.n { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%;
            background: var(--navy); color: #fff; font-size: .9375rem; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
.compare figure { margin: 0; padding: .75rem; box-shadow: var(--shadow-sm); }
.compare img { width: 100%; display: block; border-radius: 8px; }
.compare figcaption { text-align: center; color: var(--muted); font-size: .9375rem; margin-top: .6rem; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature { padding: 1.3rem 1.35rem; }
.feature h3 { margin: 0 0 .35rem; font-size: 1.0625rem; }
.feature p { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.55; }
@media (hover: hover) {
  .step, .feature, .price { transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease); }
  .step:hover, .feature:hover, .price:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
}

/* Preise */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.price { padding: 1.75rem 1.5rem; display: flex; flex-direction: column; position: relative; border-radius: var(--radius-lg); }
.price.best { border: 2px solid var(--accent); box-shadow: var(--shadow-md); }
.price .tag { position: absolute; top: -.8rem; left: 1.5rem; background: var(--accent); color: var(--on-accent);
              font-weight: 700; font-size: .8125rem; letter-spacing: .01em; padding: .2rem .7rem; border-radius: 999px; }
.price h3 { margin: 0 0 .4rem; }
.price .amount { font-size: 2.4rem; font-weight: 780; letter-spacing: -.03em; line-height: 1.15; color: var(--text);
                 font-variant-numeric: tabular-nums; }
.price .amount small { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.price .gross { color: var(--muted); font-size: .875rem; margin: .2rem 0 .9rem; }
.price .founder { background: #fff6e0; border-radius: 10px; padding: .55rem .7rem; font-size: .875rem; margin-bottom: .9rem; }
.price ul { padding-left: 1.1rem; margin: 0 0 1.25rem; color: var(--muted); font-size: .9375rem; flex: 1; }
.price .btn { width: 100%; }
.counter { text-align: center; margin: 0 0 2rem; font-size: 1.125rem; }
.counter b { color: var(--navy); font-size: 1.375rem; font-variant-numeric: tabular-nums; }
.free { text-align: center; margin-top: 1.6rem; color: var(--muted); }

/* Häufige Fragen: Pfeil dreht sich, Antwort fährt weich auf (wo der Browser es kann) */
details { padding: 0; margin-bottom: .6rem; overflow: hidden;
          transition: box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease); }
details[open] { box-shadow: var(--shadow-sm); border-color: #d3dae5; }
summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
          padding: 1rem 1.2rem; font-weight: 600; cursor: pointer; color: var(--navy); letter-spacing: -.005em;
          -webkit-tap-highlight-color: transparent; transition: background-color var(--t-fast) ease-out; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: .55rem; height: .55rem; margin-right: .2rem;
                 border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
                 transform: translateY(-25%) rotate(45deg); transition: transform var(--t-med) var(--ease); opacity: .7; }
details[open] > summary::after { transform: translateY(15%) rotate(-135deg); }
summary:active { background: var(--bg-soft); }
details p { margin: 0; padding: 0 1.2rem 1.1rem; color: var(--muted); }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  details::details-content { height: 0; overflow: clip; opacity: 0;
    transition: height var(--t-med) var(--ease), opacity var(--t-med) var(--ease), content-visibility var(--t-med) allow-discrete; }
  details[open]::details-content { height: auto; opacity: 1; }
}

.notice { border-left: 4px solid var(--accent); background: #fffaf0; padding: .9rem 1.1rem; border-radius: 8px; color: #4a3b10; }

/* Fußzeile */
footer { background: var(--navy-deep); color: #b9c4d6; padding: 2.25rem 0; font-size: .9375rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
footer a { color: #fff; margin-right: 1rem; }

.legal { max-width: 820px; margin: 2.5rem auto; padding: 0 1.25rem; }
.legal h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); }
.legal .ph { background: #fff3cd; padding: 0 4px; border-radius: 3px; }

/* Preise nur sichtbar, wenn shop.js die Klasse "live" setzt (SHOP.sale) */
.after-launch { display: none; }
html.live .after-launch { display: block; }
html.live .before-launch { display: none; }
.before-launch { text-align: center; padding: .6rem 0 .4rem; }
.before-launch p.sub { margin-left: auto; margin-right: auto; }
.after-inline { display: none; }
html.live .after-inline { display: inline; }

/* Video und 3D-Abschnitt */
.video { max-width: 960px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden;
         box-shadow: var(--shadow-lg); background: #000; }
.video video { display: block; width: 100%; height: auto; }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.75rem, 4vw, 2.75rem); align-items: center; }
.split img { width: 100%; display: block; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.sub.left { text-align: left; margin-left: 0; }
.checks { list-style: none; padding: 0; margin: .9rem 0 0; }
.checks li { padding: .35rem 0 .35rem 1.9rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .62rem; width: 1.15rem; height: 1.15rem; border-radius: 50%;
                     background: rgba(46, 139, 87, .12)
                       url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.5L12 5.4' fill='none' stroke='%232E8B57' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
                       center / 70% no-repeat; }

.price .sublinks { margin-top: .7rem; font-size: .875rem; color: var(--muted); text-align: center; }
.price .sublinks a.disabled { color: var(--muted); pointer-events: none; text-decoration: none; }
#zusatzmodule .price { scroll-margin-top: 5rem; }
html.live .prices.after-launch { display: grid; }

/* Zusatzmodule: Erklärungen */
.module { margin: clamp(2rem, 5vw, 3.5rem) 0; }
.module h3 { font-size: clamp(1.4rem, 2.4vw, 1.65rem); letter-spacing: -.018em; margin: 0 0 .4rem; }
.module.rev img { order: 2; }
.howto { margin: .9rem 0 .4rem; padding-left: 1.4rem; color: var(--text); }
.howto li { padding: .2rem 0; }
.howto li::marker { color: var(--navy); font-weight: 700; }
.module-paket { text-align: center; margin: .6rem 0 1.2rem; }
.module-paket h3 { margin: 0 0 .25rem; font-size: 1.375rem; }
.module-paket p { margin: 0; color: var(--muted); }
.module-paket p.beta-price { margin: .7rem auto 0; max-width: 40rem; font-size: .9375rem; color: #7a4d00;
                             background: rgba(255, 176, 32, .12); border-radius: 10px; padding: .55rem .9rem; }
.module-faq { max-width: 820px; margin: 0 auto 1.6rem; }

/* Hinweis Windows SmartScreen */
.download-row { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; }
.download-row .store { color: var(--muted); }
.smartscreen { max-width: 760px; margin: 1.6rem 0 0; text-align: left; background: var(--bg-soft);
               padding: 1rem 1.25rem; font-size: .9375rem; }
.smartscreen p { margin: 0 0 .5rem; }
.smartscreen ol { margin: 0 0 .5rem; padding-left: 1.4rem; }
.smartscreen .small { color: var(--muted); font-size: .875rem; margin: 0; }

/* Neuerungen und Oberflächenbilder */
.badge { display: inline-block; vertical-align: .15em; margin: 0 0 .45rem; padding: .12rem .55rem; border-radius: 999px;
         background: rgba(255, 176, 32, .18); color: #7a4d00; font-size: .75rem; font-weight: 650; letter-spacing: .02em; }
h3 .badge { margin: 0 0 0 .4rem; }
.news .feature { display: flex; flex-direction: column; }
.news .feature .badge { align-self: flex-start; }
.wide-shot { margin: clamp(2rem, 5vw, 3rem) 0 0; }
.wide-shot img { width: 100%; display: block; border-radius: var(--radius); border: 1px solid var(--border);
                 box-shadow: var(--shadow-lg); }
.wide-shot figcaption { color: var(--muted); font-size: .9375rem; text-align: center; margin-top: .8rem; }
.checks li b { color: var(--navy); font-weight: 650; }
.side-shot { margin: 0; }
.side-shot img { width: 100%; display: block; border-radius: var(--radius); border: 1px solid var(--border);
                 box-shadow: var(--shadow-md); }
.side-shot figcaption { color: var(--muted); font-size: .875rem; margin-top: .6rem; }
.split.rev-ui { grid-template-columns: 1fr 1.15fr; }
/* Zusatzmodule: Bild größer, beim Lesen des Textes oben stehen lassen */
.module.split { grid-template-columns: 1.55fr 1fr; align-items: start; }
.module.split.rev { grid-template-columns: 1fr 1.55fr; }
.module.split > img { position: sticky; top: 5.5rem; }
/* Bilder per Klick vergrößern */
.zoomable { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
            padding: clamp(.75rem, 3vw, 2.5rem); background: rgba(12, 18, 30, .82);
            -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
            opacity: 0; transition: opacity 220ms var(--ease); cursor: zoom-out; }
.lightbox.open { opacity: 1; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: var(--shadow-lg);
                transform: scale(.97); transition: transform 320ms var(--ease); background: #fff; }
.lightbox.open img { transform: none; }
.lightbox .close { position: absolute; top: .8rem; right: 1rem; color: #fff; font-size: 2rem; line-height: 1;
                   background: none; border: 0; cursor: pointer; padding: .25rem .5rem; }
@media (prefers-reduced-motion: reduce) { .lightbox, .lightbox img { transition: none; } }
.split.rev-ui .side-shot { order: 2; }
@media (max-width: 860px) { .module.split, .module.split.rev { grid-template-columns: 1fr; }
  .module.split > img { position: static; } .module.rev img { order: 0; } .split.rev-ui { grid-template-columns: 1fr; } .split.rev-ui .side-shot { order: 0; } }

/* Einblenden beim Scrollen: nur mit JavaScript (ohne JS bleibt alles sichtbar) */
html.js .reveal { opacity: 0; transform: translateY(18px);
                  transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .hero .wrap, .compare, .steps, .features, .prices, .split { grid-template-columns: 1fr; }
  .module.rev img { order: 0; }
  nav a:not(.lang) { display: none; }
  .btn-ghost { margin-left: .4rem; }
}
@media (max-width: 400px) {
  .hero .btn { width: 100%; }
  .btn-ghost { margin: .6rem 0 0; }
}

/* Barrierefreiheit: weniger Bewegung, weniger Transparenz, mehr Kontrast */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  html.js .reveal { transform: none; transition: opacity 200ms ease !important; }
  .btn:active, .step:hover, .feature:hover, .price:hover { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  header.top { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #3c4552; --border: #8a96a8; }
  header.top { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 1px 0 #8a96a8; }
}

/* Offene Beta */
.banner a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.beta-box { max-width: 760px; margin: 0 auto 2rem; background: var(--bg); border: 1px solid var(--border);
            border-radius: var(--radius); padding: 1.25rem 1.5rem; text-align: left; transition: box-shadow .3s ease; }
.beta-box h3 { margin: 0 0 .6rem; }
.beta-box ul { margin: 0 0 .8rem; padding-left: 1.2rem; }
.beta-box li { margin: .35rem 0; }
.beta-box .small { color: var(--muted); font-size: .875rem; margin: 0 0 .9rem; }
.beta-ok { display: flex; gap: .6rem; align-items: flex-start; background: #fff6e0; border-radius: 10px;
           padding: .7rem .85rem; font-size: .9375rem; cursor: pointer; }
.beta-ok input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; flex: none; accent-color: var(--accent); }
.beta-box.attn { box-shadow: 0 0 0 3px var(--accent); }
.counter small { font-size: .875rem; color: var(--muted); }
.btn.disabled { cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .beta-box { transition: none; } }

/* Vor dem Verkaufsstart (SHOP.checkout = false): Preise sichtbar, Kauf noch nicht möglich */
.pre { display: none; }
html.precheckout .pre { display: inline; }
html.precheckout .co, html.precheckout .co-block, html.live.precheckout .after-inline.co { display: none; }
html.precheckout p.pre-note { display: block; text-align: center; font-weight: 600; margin: .4rem auto 1.2rem; }
html.precheckout .price .btn.disabled { cursor: default; }
