/* ═══════════════════════════════════════════════════════════════
   elewa — Design System v2 («Klarheit»)
   Gemeinsames Fundament aller Seiten: Tokens, Basis-Typografie,
   Buttons, Header/Nav, Footer. Seiten-spezifisches CSS bleibt in
   der jeweiligen Seite. Änderungen hier gelten überall.
   ═══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:      #7c3aed;
  --brand-deep: #5b21b6;
  --brand-ink:  #3b0f77;
  --tint:       #f3efff;
  --tint-2:     #ece5ff;
  --ink:        #17141f;
  --ink-2:      #48434f;
  --ink-3:      #837e8f;
  --bg:         #ffffff;
  --bg-soft:    #faf9fd;
  --line:       #eae7f2;
  --line-2:     #dcd7ea;
  --green:      #16a34a;
  --amber:      #d97706;
  --red:        #dc2626;
  --r-s: 10px; --r: 16px; --r-l: 24px;
  --shadow-s: 0 1px 2px rgba(23,20,31,.06), 0 4px 12px -4px rgba(23,20,31,.08);
  --shadow:   0 1px 2px rgba(23,20,31,.05), 0 16px 40px -16px rgba(23,20,31,.18);
  --shadow-l: 0 2px 4px rgba(23,20,31,.05), 0 32px 80px -24px rgba(59,15,119,.25);
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--tint-2); color: var(--brand-ink); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 18px;
}
.section-title { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 16px; }
.section-lead { font-size: 18px; color: var(--ink-2); max-width: 640px; line-height: 1.7; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--brand); color: #fff;
  padding: 15px 28px; border-radius: 13px; border: none;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  box-shadow: 0 2px 6px rgba(124,58,237,.28), 0 10px 28px -8px rgba(124,58,237,.45);
  transition: background .18s, transform .12s, box-shadow .18s;
}
.btn:hover { background: var(--brand-deep); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(124,58,237,.3), 0 16px 36px -8px rgba(124,58,237,.5); }
.btn.big { padding: 17px 34px; font-size: 17px; }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; color: var(--ink);
  padding: 15px 28px; border-radius: 13px;
  border: 1.5px solid var(--line-2);
  font-size: 16px; font-weight: 600;
  transition: border-color .18s, background .18s, transform .12s;
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand-ink); background: var(--bg-soft); transform: translateY(-2px); }
.btn-outline.big { padding: 17px 34px; font-size: 17px; }
.link-arrow { font-weight: 600; color: var(--brand); font-size: 15.5px; }
.link-arrow:hover { color: var(--brand-deep); }

/* ── Header / Nav ── */
header.site {
  position: sticky; top: 0; z-index: 300;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; gap: 32px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; letter-spacing: -0.04em; }
.logo svg { display: block; }
.logo .logo-sub { font-weight: 600; color: var(--ink-3); font-size: 15px; letter-spacing: -0.01em; margin-left: -2px; }
.nav-links { display: flex; gap: 26px; align-items: center; margin-left: auto; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--brand-ink); font-weight: 600; }
.nav-cta {
  background: var(--brand); color: #fff !important;
  padding: 9px 18px; border-radius: 10px; font-weight: 600 !important;
  transition: background .15s;
}
.nav-cta:hover { background: var(--brand-deep); }
.nav-burger { display: none; margin-left: auto; background: none; border: none; padding: 8px; }
.nav-burger svg { display: block; }

/* ── Footer ── */
footer.site {
  background: var(--ink); color: rgba(255,255,255,.7);
  padding: 64px 0 40px;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.foot-brand .logo { color: #fff; margin-bottom: 14px; }
.foot-brand p { font-size: 13.5px; color: rgba(255,255,255,.45); line-height: 1.7; max-width: 280px; }
.foot-col h5 { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.foot-col a { display: block; font-size: 14px; color: rgba(255,255,255,.72); padding: 5px 0; transition: color .15s; }
.foot-col a:hover { color: #fff; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 12.5px; color: rgba(255,255,255,.35);
}
.foot-bottom a { color: rgba(255,255,255,.5); }
.foot-bottom a:hover { color: #fff; }

/* ── Schlanker Rahmen (Tool-/Konto-Seiten) ── */
footer.site-slim {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  background: var(--bg-soft);
}
footer.site-slim .wrap {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: var(--ink-3);
}
footer.site-slim nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site-slim a { color: var(--ink-3); transition: color .15s; }
footer.site-slim a:hover { color: var(--ink); }

/* ── Responsive ── */
@media (max-width: 960px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 18px 24px 24px; gap: 14px; box-shadow: var(--shadow);
  }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
