/* ── site.css ──────────────────────────────────────────────────
   Gemeinsame Basis für index.html UND die Blog-Templates
   (blog/_template-index.html, blog/_template-post.html):
   Design-Tokens, Reset, Layout-Helpers, Logo, Nav, Footer,
   Section-Header. Seiten-spezifische Styles (Hero, Pricing,
   Carousel, Blog-Artikel-Typografie …) bleiben inline in der
   jeweiligen Seite.
   ────────────────────────────────────────────────────────────── */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --brand-sidebar:    #16213e;
  --brand-accent:     #4263d0;
  --brand-accent-h:   #3652bf;
  --brand-accent-lt:  #6382e6;
  --brand-accent-bg:  rgba(99,130,230,.10);

  --n-900: #111827;
  --n-700: #374151;
  --n-500: #6b7280;
  --n-400: #9ca3af;
  --n-300: #d1d5db;
  --n-200: #e2e5ed;
  --n-100: #f3f4f8;
  --n-50:  #f8f9fc;
  --white: #ffffff;

  --s-success:      #22c55e;
  --s-success-bg:   #f0fdf4;
  --s-success-text: #16a34a;
  --s-warning:      #f59e0b;
  --s-warning-bg:   #fffbeb;
  --s-warning-text: #d97706;
  --s-danger:       #ef4444;

  --r-sm:  5px;
  --r-md:  7px;
  --r-lg:  10px;
  --r-xl:  12px;
  --r-2xl: 16px;

  --sh-xs: 0 1px 2px rgba(0,0,0,.05);
  --sh-sm: 0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  --sh-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --sh-lg: 0 10px 15px rgba(0,0,0,.10), 0 4px 6px rgba(0,0,0,.05);
  --sh-xl: 0 20px 40px rgba(0,0,0,.12), 0 8px 16px rgba(0,0,0,.06);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--n-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── Layout Helpers ────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* ── Logo ──────────────────────────────────────────────────── */
.logo {
  font-size: 20px;
  letter-spacing: -0.5px;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-mark {
  width: 26px; height: 26px;
  background: var(--brand-accent);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
}
.logo-mark svg { width: 14px; height: 14px; }
.logo-open  { font-weight: 800; color: var(--n-900); }
.logo-points{ font-weight: 400; color: var(--brand-accent); }

/* Dark background logo */
.logo-dark .logo-open  { color: #fff; }
.logo-dark .logo-points{ color: var(--brand-accent-lt); }
.logo-dark .logo-mark  { background: var(--brand-accent-lt); }

/* ── Nav ───────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--n-200);
  transition: box-shadow 200ms;
}
.nav.scrolled { box-shadow: var(--sh-sm); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--n-500);
  transition: color 120ms;
}
.nav-links a:hover { color: var(--n-900); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-ghost-nav {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--n-700);
  padding: 7px 14px;
  border-radius: var(--r-md);
  transition: background 120ms;
}
.btn-ghost-nav:hover { background: var(--n-100); }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  transition: background 120ms, box-shadow 120ms;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary:hover { background: var(--brand-accent-h); box-shadow: var(--sh-md); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  color: var(--n-700);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--n-200);
  box-shadow: var(--sh-xs);
  transition: background 120ms;
  cursor: pointer;
  font-family: inherit;
}
.btn-secondary:hover { background: var(--n-50); }

/* ── Section Header (Features/Pricing/Blog gemeinsam) ─────────── */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--brand-accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--n-900);
  margin-bottom: 12px;
}
.section-sub {
  font-size: 15px;
  color: var(--n-500);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--brand-sidebar);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 24px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,.35); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  transition: color 120ms;
}
.footer-links a:hover { color: rgba(255,255,255,.75); }
.footer-links a.danger { color: rgba(239,68,68,.6); }
.footer-links a.danger:hover { color: rgba(239,68,68,.9); }

/* ── Blog-Card (Blog-Übersicht + Landingpage-Teaser gemeinsam) ── */
.blog-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--n-200);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: var(--sh-xs);
  transition: box-shadow 200ms, transform 200ms;
}
.blog-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.blog-card-date {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--brand-accent);
  margin-bottom: 10px;
}
.blog-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--n-900);
  line-height: 1.35;
  margin-bottom: 8px;
}
.blog-card-excerpt {
  font-size: 13px;
  color: var(--n-500);
  line-height: 1.6;
}

/* ── Responsive (Nav/Footer gemeinsam) ─────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
