:root {
  --bg: #f7f8fc;
  --card: #ffffff;
  --ink: #181a2b;
  --muted: #5b6078;
  --line: #e4e7f2;
  --soft: #eef0fa;
  --accent: #5b5bf0;
  --accent-2: #a855f7;
  --accent-3: #22d3ee;
  --grad: linear-gradient(135deg, #22d3ee 0%, #6366f1 55%, #a855f7 100%);
  --shadow: 0 1px 2px rgba(24, 26, 43, .06), 0 12px 32px -12px rgba(60, 60, 140, .22);
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1020; --card: #171a30; --ink: #eceefc; --muted: #a2a7c6;
    --line: #272b4a; --soft: #1f2340; --accent: #8b8bff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 36px -14px rgba(0, 0, 0, .6);
  }
  .logo-text b { color: #eceefc; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); margin-inline: auto; }

/* ---------- Kopf ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.logo img { width: 40px; height: 40px; display: block; filter: drop-shadow(0 4px 8px rgba(99, 102, 241, .35)); transition: transform .4s ease; }
.logo:hover img { transform: rotate(-8deg) scale(1.08); }
.logo-text { font-size: 1.6rem; letter-spacing: -.035em; line-height: 1; }
.logo-text b { font-weight: 800; color: #1e1b4b; }
.logo-text span { font-weight: 300; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; padding: 9px 15px; border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--soft); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.nav-group { position: relative; display: flex; align-items: center; }
.nav-group > a { padding-right: 4px; }
.nav-group.has-current > a:not([aria-current]) { background: var(--soft); }
.sub-toggle { background: none; border: 0; color: var(--ink); cursor: pointer; padding: 9px 11px 9px 4px; border-radius: 999px; display: flex; align-items: center; }
.sub-toggle svg { transition: transform .2s; }
.nav-group.open .sub-toggle svg { transform: rotate(180deg); }
.subnav {
  display: none; position: absolute; top: 100%; left: 0; min-width: 230px; z-index: 60; padding: 6px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 34px rgba(30, 27, 75, .14);
}
.subnav a { display: block; padding: 10px 14px; border-radius: 10px; white-space: nowrap; }
.nav-group:hover .subnav, .nav-group.open .subnav, .nav-group:focus-within .subnav { display: block; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { display: block; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    padding: 12px 20px 18px; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 16px; }
  .nav-group { flex-wrap: wrap; }
  .nav-group > a { flex: 1; }
  .sub-toggle { padding: 13px 16px; }
  .subnav, .nav-group:hover .subnav, .nav-group:focus-within .subnav { display: none; position: static; width: 100%; box-shadow: none; border: 0; padding: 0 0 4px 16px; background: none; }
  .nav-group.open .subnav { display: block; }
  .subnav a { padding: 11px 16px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 10vw, 120px) 0 clamp(48px, 8vw, 96px); }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; z-index: 0; pointer-events: none;
}
.hero::before { width: 460px; height: 460px; background: #22d3ee; top: -160px; left: -120px; opacity: .35; }
.hero::after { width: 520px; height: 520px; background: #a855f7; right: -160px; bottom: -220px; opacity: .35; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; background: var(--soft); color: var(--accent); margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.05; letter-spacing: -.04em; margin: 0 0 20px; font-weight: 800; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 1.2rem; line-height: 1.6; color: var(--muted); max-width: 34em; margin: 0 0 30px; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(300px, 70%); filter: drop-shadow(0 30px 40px rgba(99, 102, 241, .45)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
@media (max-width: 760px) { .hero .wrap { grid-template-columns: 1fr; } .hero-art { order: -1; } .hero-art img { width: 140px; } }
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } html { scroll-behavior: auto; } }

.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer; color: #fff; background: var(--grad);
  box-shadow: 0 10px 24px -8px rgba(99, 102, 241, .6); transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(99, 102, 241, .7); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }

/* ---------- Inhalt ---------- */
main { flex: 1; }
.page { padding: clamp(32px, 6vw, 72px) 0; }
.page > .narrow > h1, .page-title {
  font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 .6em; font-weight: 800;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(22px, 4vw, 44px);
}
.home-body { padding: 0 0 clamp(40px, 6vw, 80px); }

/* Linkseite */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 28px; }
.link-card {
  display: block; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform .2s, border-color .2s;
  position: relative;
}
.link-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.link-card strong { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.link-card span { color: var(--muted); font-size: .95rem; }
.link-card::after { content: "↗"; position: absolute; top: 18px; right: 20px; color: var(--accent); font-weight: 700; }

/* ---------- Fuß ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 30px 0 38px; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }

.notfound { text-align: center; padding: 90px 0; }
.notfound .big { font-size: 7rem; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media print {
  .site-header, .site-footer, .hero::before, .hero::after { display: none; }
  body { background: #fff; color: #000; }
}

/* ---------- Newsletter ---------- */
.nl-box { margin-top: 28px; }
.nl-box h2 { margin: 0 0 6px; font-size: 1.4rem; letter-spacing: -.02em; }
.nl-box p { color: var(--muted); }
.nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nl-label { display: block; font-weight: 600; font-size: .92rem; margin: 14px 0 6px; }
.nl-row { display: flex; flex-wrap: wrap; gap: 10px; }
.nl-row input[type=email] {
  flex: 1 1 240px; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font: inherit;
}
.nl-row input[type=email]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.nl-note { font-size: .85rem; margin: 10px 0 0; line-height: 1.5; }
.msg-ok, .msg-err { padding: 12px 16px; border-radius: 12px; margin: 0 0 16px; font-weight: 500; }
.msg-ok { background: rgba(34, 197, 94, .14); border: 1px solid rgba(34, 197, 94, .45); }
.msg-err { background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .45); }
