/* =========================================================================
   Abrahamson.Tools – Landingpage
   Premium, ruhig, viel Weißraum. Keine Frameworks. Light + Dark (automatisch).
   Design-Token an einer Stelle, damit spätere Tools dieselbe Sprache erben.
   ========================================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --surface: #ffffff;
  --text: #10131a;
  --text-soft: #5b6472;
  --text-faint: #8a929e;
  --border: #e7e9ee;
  --brand: #4f6bff;
  --brand-2: #7c5cff;
  --accent-grad: linear-gradient(120deg, #4f8cff, #7c5cff);
  --shadow: 0 10px 40px rgba(20, 24, 40, 0.08);
  --shadow-lg: 0 24px 70px rgba(20, 24, 40, 0.12);
  --radius: 16px;
  --radius-lg: 22px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-soft: #0f1626;
    --surface: #121a2b;
    --text: #eef1f7;
    --text-soft: #a7b0c0;
    --text-faint: #7c869a;
    --border: #223049;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.grad {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 16px max(20px, 5vw);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.nav__mark { width: 28px; height: 28px; border-radius: 8px; display: block; }
.nav__dot { color: var(--brand); }
.nav__links { display: flex; align-items: center; gap: 26px; font-size: 15px; color: var(--text-soft); }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  padding: 9px 16px; border-radius: 999px;
  background: var(--text); color: var(--bg) !important;
  font-weight: 600;
}
.nav__cta:hover { opacity: .9; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(72px, 12vw, 150px) max(20px, 5vw) clamp(60px, 9vw, 110px);
  text-align: center;
  background:
    radial-gradient(60% 60% at 50% -10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%);
}
.hero__inner { max-width: 820px; margin: 0 auto; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand);
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 6vw, 62px); font-weight: 800; }
.lead { margin: 22px auto 0; max-width: 620px; font-size: clamp(16px, 2.2vw, 20px); color: var(--text-soft); }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero__note { margin-top: 20px; font-size: 13px; color: var(--text-faint); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 12px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn--primary { background: var(--text); color: var(--bg); box-shadow: var(--shadow); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn--ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--border)); }

/* ---------- Abschnitte ---------- */
section { scroll-margin-top: 84px; }
.section-head { max-width: 640px; margin: 0 auto clamp(34px, 5vw, 56px); text-align: center; }
.section-head h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; }
.section-head p { margin-top: 14px; color: var(--text-soft); font-size: 17px; }

.tools { padding: clamp(56px, 9vw, 110px) max(20px, 5vw); max-width: var(--maxw); margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }

.card {
  position: relative; display: flex; flex-direction: column;
  padding: 26px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .18s ease, box-shadow .25s ease, border-color .25s ease;
}
.card--live:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.card__icon { font-size: 30px; margin-bottom: 14px; }
.card h3 { font-size: 21px; font-weight: 700; }
.card p { margin-top: 10px; color: var(--text-soft); font-size: 15px; flex: 1; }
.card__link { margin-top: 18px; font-weight: 600; color: var(--brand); }
.card__link--soon { color: var(--text-faint); }
.card__badge {
  position: absolute; top: 18px; right: 18px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  color: #0a7d32; background: color-mix(in srgb, #17c964 18%, transparent);
}
.card__badge--soon { color: var(--text-faint); background: var(--bg-soft); }

/* ---------- Baufinanzierung CTA ---------- */
.promo-cta { padding: clamp(20px, 4vw, 40px) max(20px, 5vw) clamp(56px, 9vw, 100px); }
.promo-cta__inner {
  max-width: var(--maxw); margin: 0 auto; text-align: center;
  padding: clamp(40px, 6vw, 72px) 28px; border-radius: var(--radius-lg);
  background: var(--accent-grad); color: #fff;
  box-shadow: var(--shadow-lg);
}
.promo-cta__inner h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; }
.promo-cta__inner p { margin: 16px auto 0; max-width: 560px; font-size: 17px; opacity: .95; }
.promo-cta__inner .btn--primary { background: #fff; color: #1a2233; }
.promo-cta__inner .hero__note { color: rgba(255,255,255,.85); }

/* ---------- Über ---------- */
.about { padding: clamp(56px, 9vw, 110px) max(20px, 5vw); }
.about__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center;
}
.about__text h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; margin-bottom: 18px; }
.about__text p { color: var(--text-soft); font-size: 17px; margin-top: 14px; }
.about__stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.about__stats > div {
  text-align: center; padding: 22px 10px; border-radius: var(--radius);
  background: var(--bg-soft); border: 1px solid var(--border);
}
.about__stats .stat { display: block; font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.02em; }
.about__stats small { color: var(--text-faint); font-size: 13px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 40px max(20px, 5vw); }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.footer__brand { font-weight: 700; }
.footer__links { display: flex; gap: 22px; color: var(--text-soft); font-size: 15px; }
.footer__links a:hover { color: var(--text); }
.footer__legal { width: 100%; color: var(--text-faint); font-size: 13px; }
.footer__legal a:hover { color: var(--text); }

/* ---------- Einblenden beim Scrollen ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsiv ---------- */
@media (max-width: 760px) {
  .nav__links a:not(.nav__cta) { display: none; }
  .about__inner { grid-template-columns: 1fr; }
}

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: clamp(40px, 8vw, 90px) max(20px, 5vw) 80px; }
.legal h1 { font-size: clamp(28px, 5vw, 42px); font-weight: 800; }
.legal .updated { margin-top: 10px; color: var(--text-faint); font-size: 14px; }
.legal h2 { font-size: 20px; font-weight: 700; margin: 38px 0 12px; }
.legal h3 { font-size: 16px; font-weight: 700; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--text-soft); font-size: 15.5px; }
.legal p { margin-top: 10px; }
.legal ul { margin: 10px 0 0; padding-left: 20px; }
.legal li { margin-top: 6px; }
.legal a { color: var(--brand); }
.legal .placeholder { color: #b4530e; background: color-mix(in srgb, #f5a623 16%, transparent); padding: 0 4px; border-radius: 4px; font-weight: 600; }
.legal__note {
  margin-top: 14px; padding: 14px 16px; border-radius: 12px;
  background: var(--bg-soft); border: 1px solid var(--border);
  font-size: 13.5px; color: var(--text-faint);
}
.legal__back { display: inline-block; margin-top: 40px; font-weight: 600; color: var(--brand); }
