:root {
  --navy:   #1a2a4a;
  --blue:   #2c5282;
  --azure:  #3182ce;
  --sky:    #63b3ed;
  --mint:   #38a169;
  --amber:  #dd6b20;
  --red:    #e53e3e;
  --bg:     #f8f9fc;
  --bg2:    #ffffff;
  --ink:    #1a202c;
  --ink2:   #2d3748;
  --ink3:   #4a5568;
  --muted:  #718096;
  --border: #e2e8f0;
  --borderl:#f0f4f8;
  --r:      12px;
  --rl:     20px;
  --shadow: 0 1px 3px rgba(26,42,74,.08), 0 4px 16px rgba(26,42,74,.06);
  --shadowl:0 8px 40px rgba(26,42,74,.12), 0 2px 8px rgba(26,42,74,.06);
  --sans:   'DM Sans', -apple-system, sans-serif;
  --mono:   'DM Mono', 'Courier New', monospace;
  --max:    1100px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); overflow-x: hidden; }

/* ── Nav ─────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 56px;
  background: rgba(26,42,74,.96);
  backdrop-filter: blur(20px);
  display: flex; align-items: center;
  justify-content: space-between; padding: 0 40px;
}
.nl { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nl-icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--azure);
  display: flex; align-items: center; justify-content: center;
}
.nl-icon svg { width: 16px; height: 16px; }
.nl-text { font-size: 15px; font-weight: 600; color: #fff; letter-spacing: -.01em; }
.nm { display: flex; gap: 28px; }
.nm a { font-size: 13px; color: rgba(255,255,255,.65); text-decoration: none; transition: color .15s; }
.nm a:hover { color: #fff; }
.nr { display: flex; align-items: center; gap: 10px; }
.nbtn {
  font-size: 13px; font-weight: 500; color: #fff;
  background: var(--azure); text-decoration: none;
  padding: 7px 18px; border-radius: 980px;
  transition: background .15s, transform .1s;
}
.nbtn:hover { background: #2563ae; transform: translateY(-1px); }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero-wrap {
  background: linear-gradient(160deg, var(--navy) 0%, #1e3a5f 55%, #1a2a4a 100%);
  padding: 120px 40px 0; min-height: 90vh;
  display: flex; flex-direction: column; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(99,179,237,.12); border: 1px solid rgba(99,179,237,.25);
  color: var(--sky); font-size: 12px; font-weight: 500;
  padding: 5px 14px; border-radius: 980px; margin-bottom: 28px;
}
.hero-badge span {
  width: 6px; height: 6px; background: var(--sky);
  border-radius: 50%; display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.8)} }
.hero-title {
  font-size: clamp(38px, 5.5vw, 64px); font-weight: 600;
  line-height: 1.08; letter-spacing: -.03em;
  color: #fff; text-align: center; max-width: 800px; margin-bottom: 22px;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--sky) 0%, #a8d8ff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 17px; font-weight: 300; line-height: 1.7;
  color: rgba(255,255,255,.65); text-align: center;
  max-width: 520px; margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 72px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--azure); color: #fff;
  font-size: 15px; font-weight: 500;
  padding: 13px 28px; border-radius: 980px; text-decoration: none;
  transition: background .15s, transform .1s; box-shadow: 0 4px 20px rgba(49,130,206,.35);
}
.btn-primary:hover { background: #2563ae; transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.85);
  font-size: 15px; font-weight: 400;
  padding: 13px 28px; border-radius: 980px; text-decoration: none;
  border: 1px solid rgba(255,255,255,.15);
  transition: background .15s;
}
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.hero-img {
  width: 100%; max-width: 880px;
  border-radius: var(--rl) var(--rl) 0 0;
  border: 1px solid rgba(255,255,255,.1);
  border-bottom: none;
  box-shadow: 0 -8px 60px rgba(0,0,0,.3);
}

/* ── Stats strip ──────────────────────────────────────────────── */
.stats {
  background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 24px 40px;
  display: flex; justify-content: center; gap: 60px; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { font-size: 26px; font-weight: 600; color: var(--sky); }
.stat-lbl { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 2px; }

/* ── Generic section ──────────────────────────────────────────── */
section { padding: 88px 40px; }
.si { max-width: var(--max); margin: 0 auto; }
.label { font-size: 12px; font-weight: 600; color: var(--azure); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.sh { font-size: clamp(28px,3.5vw,42px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 16px; }
.ss { font-size: 16px; color: var(--ink3); line-height: 1.7; max-width: 580px; }
.fbg { background: var(--bg2); }
.dbg { background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%); }

/* ── Feature Grid ─────────────────────────────────────────────── */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.feat-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 28px;
  transition: box-shadow .2s, transform .2s;
}
.feat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--borderl); display: flex; align-items: center;
  justify-content: center; font-size: 20px; margin-bottom: 16px;
}
.feat-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.feat-desc { font-size: 13px; color: var(--ink3); line-height: 1.65; }

/* ── Design types ─────────────────────────────────────────────── */
.design-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; }
.design-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r); padding: 24px;
}
.design-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.design-badge {
  font-size: 10px; font-weight: 600; padding: 3px 8px;
  border-radius: 980px; letter-spacing: .04em;
}
.badge-free { background: rgba(56,161,105,.2); color: #68d391; }
.badge-pro  { background: rgba(99,179,237,.2); color: var(--sky); }
.design-name { font-size: 15px; font-weight: 600; color: #fff; }
.design-desc { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.6; }
.design-formula {
  font-family: var(--mono); font-size: 11px;
  color: var(--sky); margin-top: 10px;
  background: rgba(99,179,237,.08); padding: 6px 10px; border-radius: 6px;
}

/* ── Analysis tabs ────────────────────────────────────────────── */
.analysis-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 40px; }
.ana-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 20px; text-align: center;
}
.ana-icon { font-size: 28px; margin-bottom: 10px; }
.ana-title { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.ana-desc { font-size: 12px; color: var(--ink3); line-height: 1.5; }
.ana-formula {
  font-family: var(--mono); font-size: 10px; color: var(--azure);
  margin-top: 8px; background: var(--borderl); padding: 4px 8px;
  border-radius: 6px; word-break: break-all;
}

/* ── Math section ─────────────────────────────────────────────── */
.math-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 52px; }
.math-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 28px;
}
.math-card-title { font-size: 14px; font-weight: 600; color: var(--blue); margin-bottom: 14px; }
.math-formula {
  font-family: var(--mono); font-size: 12px; color: var(--ink2);
  background: var(--borderl); padding: 12px 14px; border-radius: 8px;
  line-height: 1.8; white-space: pre; overflow-x: auto;
}
.math-example {
  margin-top: 12px; font-size: 12px; color: var(--ink3); line-height: 1.7;
}
.math-example code {
  font-family: var(--mono); font-size: 11px;
  background: var(--borderl); padding: 1px 5px; border-radius: 4px; color: var(--blue);
}

/* ── Steps ────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 52px; position: relative; }
.steps::before {
  content: ''; position: absolute; top: 22px; left: 12.5%; right: 12.5%;
  height: 1px; background: var(--border); z-index: 0;
}
.step { text-align: center; padding: 0 16px; position: relative; z-index: 1; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-size: 16px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 0 0 6px var(--bg2), 0 0 0 7px var(--border);
}
.step-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.step-desc { font-size: 12px; color: var(--ink3); line-height: 1.6; }

/* ── Pricing ──────────────────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.price-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--rl); padding: 32px; position: relative;
}
.price-card.featured {
  background: var(--blue); border-color: var(--blue);
  color: #fff;
  transform: scale(1.04);
  box-shadow: var(--shadowl);
}
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--azure); color: #fff;
  font-size: 11px; font-weight: 600; padding: 4px 14px;
  border-radius: 980px; letter-spacing: .04em; white-space: nowrap;
}
.price-plan { font-size: 13px; font-weight: 600; opacity: .7; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }
.price-amount { font-size: 42px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 4px; }
.price-amount sup { font-size: 20px; vertical-align: super; font-weight: 400; }
.price-period { font-size: 13px; opacity: .6; margin-bottom: 24px; }
.price-features { list-style: none; margin-bottom: 28px; }
.price-features li { font-size: 13px; padding: 7px 0; border-bottom: 1px solid rgba(0,0,0,.06); display: flex; align-items: center; gap: 8px; }
.price-card.featured .price-features li { border-color: rgba(255,255,255,.1); }
.price-features li::before { content: "✓"; color: var(--mint); font-weight: 600; flex-shrink: 0; }
.price-card.featured .price-features li::before { color: #90EE90; }
.price-btn {
  display: block; text-align: center; text-decoration: none;
  padding: 12px; border-radius: 980px; font-size: 14px; font-weight: 500;
  transition: transform .1s, opacity .15s;
}
.price-btn:hover { transform: translateY(-1px); opacity: .9; }
.price-btn-blue { background: var(--azure); color: #fff; }
.price-btn-white { background: #fff; color: var(--blue); }
.price-btn-outline { background: transparent; color: var(--ink3); border: 1px solid var(--border); }

/* ── Lifetime ─────────────────────────────────────────────────── */
.lifetime-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px;
}
.lifetime-card {
  background: linear-gradient(135deg, #1a2a4a, #2c5282);
  border: 1px solid rgba(99,179,237,.25);
  border-radius: var(--rl); padding: 28px; color: #fff; position: relative; overflow: hidden;
}
.lifetime-card::before {
  content: "♾"; position: absolute; right: 20px; top: 16px;
  font-size: 40px; opacity: .12;
}
.lifetime-plan { font-size: 11px; font-weight: 600; color: var(--sky); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.lifetime-amount { font-size: 36px; font-weight: 600; margin-bottom: 4px; }
.lifetime-note { font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 20px; }
.lifetime-features { list-style: none; margin-bottom: 20px; }
.lifetime-features li { font-size: 13px; color: rgba(255,255,255,.75); padding: 5px 0; display: flex; align-items: center; gap: 8px; }
.lifetime-features li::before { content: "♾"; font-size: 10px; color: var(--sky); }
.lifetime-btn {
  display: block; text-align: center;
  background: var(--sky); color: var(--navy);
  font-size: 13px; font-weight: 600;
  padding: 11px; border-radius: 980px; text-decoration: none;
  transition: opacity .15s;
}
.lifetime-btn:hover { opacity: .9; }

/* ── FAQ ──────────────────────────────────────────────────────── */
.faq { max-width: 700px; margin: 52px auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  text-align: left; padding: 20px 0; font-size: 15px; font-weight: 500;
  color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--sans);
}
.faq-q::after { content: "+"; font-size: 20px; color: var(--azure); flex-shrink: 0; }
.faq-q.open::after { content: "−"; }
.faq-a { font-size: 14px; color: var(--ink3); line-height: 1.7; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s; }
.faq-a.open { max-height: 400px; padding-bottom: 20px; }

/* ── CTA ──────────────────────────────────────────────────────── */
.cta-wrap {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%);
  padding: 80px 40px; text-align: center;
}
.cta-title { font-size: clamp(26px,3vw,38px); font-weight: 600; color: #fff; margin-bottom: 16px; letter-spacing: -.02em; }
.cta-sub { font-size: 15px; color: rgba(255,255,255,.6); margin-bottom: 36px; }

/* ── Footer ───────────────────────────────────────────────────── */
footer { background: var(--navy); padding: 52px 40px 32px; color: rgba(255,255,255,.6); }
.ft { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: var(--max); margin: 0 auto 40px; }
.ft-brand p { font-size: 13px; line-height: 1.7; margin-top: 12px; color: rgba(255,255,255,.45); max-width: 260px; }
.ft-col h4 { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.9); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.ft-col a { display: block; font-size: 13px; color: rgba(255,255,255,.5); text-decoration: none; padding: 3px 0; transition: color .15s; }
.ft-col a:hover { color: #fff; }
.ft-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.ft-bottom span { font-size: 12px; }

/* ── Impressum / Datenschutz ──────────────────────────────────── */
.legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.legal-box {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 24px;
  font-size: 13px; color: var(--ink3); line-height: 1.8;
}
.legal-box h4 { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.legal-box a { color: var(--azure); }

/* ── Animations ───────────────────────────────────────────────── */
.fade { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.fade.in { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }

/* ── Responsive ───────────────────────────────────────────────── */

/* ── Programm-Simulation ─────────────────────────────────────── */
.doe-sim{font-family:'Segoe UI',system-ui,sans-serif;font-size:13px;border:1px solid var(--border);border-radius:var(--r);overflow:hidden;box-shadow:var(--shadowl)}
.sim-titlebar{background:#2c5282;padding:0 16px;height:44px;display:flex;align-items:center;justify-content:space-between}
.sim-main{display:flex;height:480px}
.sim-sidebar{width:165px;background:#1a2a4a;flex-shrink:0;display:flex;flex-direction:column}
.sim-nav{padding:10px 12px;cursor:pointer;border-left:3px solid transparent;display:flex;align-items:flex-start;gap:4px;transition:background .15s}
.sim-nav:hover{background:#243a5e}
.sim-nav-active{background:#2c5282 !important;border-left-color:#63b3ed}
.sim-content{flex:1;display:flex;flex-direction:column;overflow:hidden;background:#f0f4f8}
.sim-panel{display:none;flex:1;overflow:hidden}
.sim-panel-active{display:flex;flex-direction:column;flex:1}
.sim-ana-tabs{display:flex;background:#dde3eb;border-bottom:1px solid #cbd5e0;overflow-x:auto;flex-shrink:0}
.sim-atab{padding:7px 12px;font-size:11px;font-weight:700;cursor:pointer;color:#4a5568;white-space:nowrap;border-bottom:3px solid transparent;flex-shrink:0}
.sim-atab:hover:not(.sim-atab-active){background:#c8d3e0}
.sim-atab-active{background:#fff;color:#2c5282;border-bottom-color:#2c5282}
.sim-tab-content{display:none;height:100%}
.sim-tab-active{display:block}
.sim-metrics{display:flex;gap:6px;padding:10px 12px 4px;flex-wrap:wrap}
.sim-metric{background:#f0f4f8;border:1px solid #e2e8f0;border-radius:6px;padding:7px 10px;flex:1;min-width:70px;text-align:center}
.sim-mval{font-size:16px;font-weight:700;color:#2c5282}
.sim-mlbl{font-size:9px;color:#718096;margin-top:1px}
.sim-section-label{font-size:11px;font-weight:700;color:#2c5282;margin-bottom:5px;margin-top:10px}
.sim-section-label:first-child{margin-top:0}
.sim-tbl{width:100%;border-collapse:collapse;font-size:11px}
.sim-tbl th{background:#2c5282;color:#fff;padding:5px 7px;text-align:left}
.sim-tbl td{padding:4px 7px;border-bottom:1px solid #e2e8f0;background:#fff}
.sim-tbl tr:nth-child(even) td{background:#f7fafc}

@media(max-width:900px) {
  nav { padding: 0 20px; }
  .nm { display: none; }
  section, .hero-wrap { padding-left: 20px; padding-right: 20px; }
  .feat-grid, .analysis-grid, .steps { grid-template-columns: 1fr 1fr; }
  .price-grid, .design-grid, .math-grid, .lifetime-row, .legal-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .ft { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
}
@media(max-width:600px) {
  .feat-grid, .analysis-grid, .steps { grid-template-columns: 1fr; }
  .hero-title { font-size: 32px; }
}

/* ============================================================
   Responsive Ergänzungen für eine einzige HTML-Datei
   Diese Regeln ersetzen die separate mobile HTML-Version.
   ============================================================ */

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

body {
  min-width: 0;
}

@media (max-width: 900px) {
  nav {
    padding: 0 18px;
  }

  .nr .nbtn {
    padding: 7px 14px;
    font-size: 12px;
  }

  .hero-wrap {
    min-height: auto;
    padding-top: 88px;
  }

  .hero-actions {
    margin-bottom: 44px;
  }

  .stats {
    gap: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    padding: 18px 12px;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }

  .sim-main {
    height: auto;
    min-height: 560px;
  }

  .sim-sidebar {
    width: 140px;
  }

  .sim-nav {
    padding: 9px 8px;
    font-size: 11px;
  }
}

@media (max-width: 700px) {
  nav {
    height: 52px;
  }

  .nl-text {
    font-size: 14px;
  }

  .hero-wrap {
    padding: 78px 20px 0;
  }

  .hero-title {
    font-size: clamp(30px, 9vw, 42px);
  }

  .hero-sub {
    font-size: 15px;
    line-height: 1.65;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-ghost {
    justify-content: center;
    width: 100%;
  }

  section {
    padding: 58px 20px;
  }

  .sh {
    font-size: 26px;
  }

  .ss {
    font-size: 14px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .stat-num {
    font-size: 22px;
  }

  .stat-lbl {
    font-size: 11px;
  }

  .feat-card,
  .design-card,
  .math-card,
  .price-card,
  .lifetime-card,
  .legal-box {
    padding: 20px;
  }

  .price-amount {
    font-size: 36px;
  }

  .ft {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .ft-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .doe-sim {
    font-size: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sim-main {
    min-width: 660px;
  }
}

@media (max-width: 480px) {
  .nr .nbtn {
    display: none;
  }

  .hero-badge {
    font-size: 11px;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-sub {
    max-width: 340px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .analysis-grid,
  .feat-grid,
  .design-grid,
  .math-grid,
  .price-grid,
  .lifetime-row,
  .legal-grid,
  .steps {
    grid-template-columns: 1fr !important;
  }

  .hero-img {
    border-radius: 12px 12px 0 0;
  }
}
