:root {
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --text: #1f2937;
  --muted: #5b6574;
  --primary: #1d4ed8;
  --primary-contrast: #ffffff;
  --border: #e3e8ef;
  --card: #ffffff;
  --radius: 14px;
  --max: 1120px;
}
html[data-theme="dark"] {
  --bg: #0f1420;
  --bg-alt: #151c2c;
  --text: #e6e9f0;
  --muted: #9aa5b8;
  --primary: #6b9bff;
  --primary-contrast: #0f1420;
  --border: #263049;
  --card: #151c2c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--primary); }
img, svg { max-width: 100%; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { font-weight: 800; font-size: 1.5rem; text-decoration: none; color: var(--text); letter-spacing: -0.02em; }
.logo span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--primary); }
.theme-toggle {
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  border-radius: 999px; width: 38px; height: 38px; cursor: pointer; font-size: 1rem;
}

/* Buttons */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  background: var(--primary); color: var(--primary-contrast);
  text-decoration: none; font-weight: 600; border: 2px solid var(--primary);
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn.outline { background: transparent; color: var(--primary); }

/* Hero */
.hero { text-align: center; padding: 84px 0 40px; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.15; margin: 0 auto 20px; max-width: 860px; letter-spacing: -0.02em; }
.hero p { max-width: 760px; margin: 0 auto 30px; color: var(--muted); font-size: 1.1rem; }
.banner {
  margin: 48px auto 0; max-width: 900px; aspect-ratio: 16 / 6; border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--primary) 35%, transparent), transparent 55%),
    radial-gradient(circle at 80% 70%, color-mix(in srgb, #14b8a6 35%, transparent), transparent 55%),
    var(--bg-alt);
  border: 1px solid var(--border);
}

/* Feature-Sektionen */
.feature { padding: 64px 0; }
.feature.alt { background: var(--bg-alt); }
.feature .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature.reverse .visual { order: 2; }
.feature h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.01em; }
.feature p { color: var(--muted); margin: 0 0 18px; }
.feature ul { list-style: none; padding: 0; margin: 0 0 24px; }
.feature li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.feature li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.visual {
  aspect-ratio: 4 / 3; border-radius: var(--radius); border: 1px solid var(--border);
  display: grid; place-items: center; background: var(--card);
  background-image: linear-gradient(135deg, color-mix(in srgb, var(--primary) 18%, transparent), transparent 60%);
}
.visual svg { width: 52%; height: auto; stroke: var(--primary); fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }

/* CTA */
.cta { padding: 72px 0; }
.cta-box {
  text-align: center; border-radius: var(--radius); padding: 56px 24px;
  background: var(--bg-alt); border: 1px solid var(--border);
}
.cta-box h2 { margin: 0 0 14px; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-box p { max-width: 640px; margin: 0 auto 26px; color: var(--muted); }

/* Unterseiten */
.page { padding: 64px 0 80px; }
.page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 12px; letter-spacing: -0.02em; }
.page .lead { color: var(--muted); max-width: 720px; margin: 0 0 40px; }
.page h2 { margin-top: 36px; font-size: 1.25rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--primary); transform: translateY(-2px); }
.card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card .tag { display: inline-block; font-size: .75rem; color: var(--primary); font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .05em; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.footer-inner a { color: var(--muted); }

@media (max-width: 800px) {
  .feature .grid { grid-template-columns: 1fr; gap: 28px; }
  .feature.reverse .visual { order: 0; }
  .hero { padding-top: 56px; }
  .nav-links { gap: 14px; font-size: .95rem; }
}
