/* ============================================================
   Schuldenmappe.de – Modern Design System
   ============================================================ */

:root {
  --sm-primary:       #6366f1;
  --sm-primary-dark:  #4f46e5;
  --sm-primary-light: #818cf8;
  --sm-accent:        #06b6d4;
  --sm-success:       #10b981;
  --sm-warning:       #f59e0b;
  --sm-danger:        #ef4444;

  --sm-dark:          #0f172a;
  --sm-dark-2:        #1e293b;
  --sm-dark-3:        #334155;
  --sm-slate:         #64748b;
  --sm-muted:         #94a3b8;
  --sm-border:        #e2e8f0;
  --sm-bg:            #f8fafc;
  --sm-white:         #ffffff;

  --sm-gradient:      linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --sm-gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);

  --sm-radius:        12px;
  --sm-radius-sm:     8px;
  --sm-shadow-sm:     0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.06);
  --sm-shadow:        0 4px 16px rgba(15,23,42,.10), 0 2px 4px rgba(15,23,42,.06);
  --sm-shadow-lg:     0 20px 60px rgba(15,23,42,.15), 0 8px 16px rgba(15,23,42,.08);
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--sm-bg);
  color: var(--sm-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Navbar ───────────────────────────────────────────────── */
.sm-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--sm-border);
  padding: 0;
}

.sm-navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 2rem;
}

.sm-brand {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--sm-dark);
  text-decoration: none;
  letter-spacing: -.02em;
  flex-shrink: 0;
}

.sm-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--sm-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: .9rem;
  font-weight: 700;
  flex-shrink: 0;
}

.sm-nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sm-nav-links a {
  display: block;
  padding: .5rem .75rem;
  color: var(--sm-slate);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  border-radius: var(--sm-radius-sm);
  transition: color .2s, background .2s;
}

.sm-nav-links a:hover {
  color: var(--sm-dark);
  background: var(--sm-bg);
}

.sm-nav-actions {
  display: flex;
  align-items: center;
  gap: .625rem;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-sm-primary {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .5rem 1rem;
  font-size: .875rem;
  font-weight: 600;
  color: white;
  background: var(--sm-primary);
  border: none;
  border-radius: var(--sm-radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  letter-spacing: -.01em;
}
.btn-sm-primary:hover {
  background: var(--sm-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99,102,241,.4);
  color: white;
}

.btn-sm-ghost {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .5rem 1rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--sm-slate);
  background: transparent;
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: color .2s, border-color .2s, background .2s;
}
.btn-sm-ghost:hover {
  color: var(--sm-dark);
  border-color: var(--sm-dark-3);
  background: var(--sm-bg);
}

.btn-sm-lg {
  padding: .75rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--sm-radius);
}

/* ── Mobile menu ──────────────────────────────────────────── */
.sm-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius-sm);
  padding: .375rem .5rem;
  cursor: pointer;
  color: var(--sm-dark);
}

@media (max-width: 767.98px) {
  .sm-menu-toggle { display: flex; align-items: center; }
  .sm-nav-links, .sm-nav-actions { display: none; }
  .sm-navbar.open .sm-nav-links,
  .sm-navbar.open .sm-nav-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .sm-navbar .container { flex-wrap: wrap; height: auto; padding: 1rem; }
  .sm-nav-links { width: 100%; gap: .25rem; }
  .sm-nav-actions { width: 100%; padding-bottom: .5rem; }
  .sm-nav-actions a { flex: 1; justify-content: center; }
}

/* ── Hero ─────────────────────────────────────────────────── */
.sm-hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 5rem;
  background: var(--sm-white);
}

.sm-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% -20%, rgba(99,102,241,.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at -10% 80%, rgba(6,182,212,.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 60%, rgba(139,92,246,.10) 0%, transparent 55%);
}

.sm-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.sm-hero .container { position: relative; z-index: 1; }

.sm-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem .875rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--sm-primary);
  background: rgba(99,102,241,.1);
  border: 1px solid rgba(99,102,241,.2);
  border-radius: 100px;
  margin-bottom: 1.5rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.sm-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.04em;
  color: var(--sm-dark);
  margin-bottom: 1.25rem;
}

.sm-hero h1 .gradient-text {
  background: var(--sm-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sm-hero-desc {
  font-size: 1.125rem;
  color: var(--sm-slate);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.sm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 2.5rem;
}

.sm-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.sm-trust-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--sm-muted);
}

.sm-trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sm-success);
}

/* ── Hero visual ──────────────────────────────────────────── */
.sm-hero-visual {
  position: relative;
}

.sm-dashboard-frame {
  position: relative;
  border-radius: var(--sm-radius);
  overflow: hidden;
  box-shadow: var(--sm-shadow-lg), 0 0 0 1px rgba(15,23,42,.06);
}

.sm-dashboard-frame::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--sm-radius) + 2px);
  background: var(--sm-gradient);
  z-index: -1;
  opacity: .3;
}

.sm-dashboard-chrome {
  background: var(--sm-dark);
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.sm-chrome-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.sm-chrome-dot:nth-child(1) { background: #ff5f57; }
.sm-chrome-dot:nth-child(2) { background: #febc2e; }
.sm-chrome-dot:nth-child(3) { background: #28c840; }

.sm-chrome-bar {
  flex: 1;
  height: 24px;
  background: rgba(255,255,255,.08);
  border-radius: 6px;
  margin: 0 .5rem;
}

.sm-dashboard-body {
  background: var(--sm-dark-2);
  display: flex;
  min-height: 320px;
}

.sm-dash-sidebar {
  width: 56px;
  background: var(--sm-dark);
  padding: .75rem .5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.sm-dash-sidebar-dot {
  width: 32px;
  height: 32px;
  border-radius: var(--sm-radius-sm);
  background: rgba(255,255,255,.08);
}

.sm-dash-sidebar-dot.active {
  background: var(--sm-primary);
  opacity: .9;
}

.sm-dash-content {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.sm-dash-row {
  display: flex;
  gap: .75rem;
}

.sm-dash-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--sm-radius-sm);
  padding: .875rem;
  flex: 1;
}

.sm-dash-card-label {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.4);
  margin-bottom: .375rem;
}

.sm-dash-card-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
}

.sm-dash-card-sub {
  font-size: .65rem;
  color: rgba(255,255,255,.35);
  margin-top: .25rem;
}

.sm-dash-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,.06);
  margin-bottom: .375rem;
}

.sm-dash-line.w-80 { width: 80%; }
.sm-dash-line.w-60 { width: 60%; }
.sm-dash-line.w-40 { width: 40%; }
.sm-dash-line.accent { background: rgba(99,102,241,.5); }
.sm-dash-table { height: 120px; }

.sm-floating-badge {
  position: absolute;
  right: -1.5rem;
  bottom: 2rem;
  background: white;
  border-radius: var(--sm-radius);
  padding: .75rem 1rem;
  box-shadow: var(--sm-shadow-lg);
  display: flex;
  align-items: center;
  gap: .625rem;
  white-space: nowrap;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--sm-dark);
}

.sm-floating-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

@media (max-width: 991.98px) {
  .sm-hero { padding: 4rem 0 3rem; }
  .sm-hero-desc { max-width: 100%; }
  .sm-floating-badge { display: none; }
  .sm-hero-visual { margin-top: 2.5rem; }
}

/* ── Stats bar ────────────────────────────────────────────── */
.sm-stats-bar {
  background: var(--sm-dark);
  padding: 2.5rem 0;
}

.sm-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  text-align: center;
}

.sm-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: .375rem;
}

.sm-stat-label {
  font-size: .8125rem;
  color: rgba(255,255,255,.45);
  font-weight: 500;
}

.sm-stat-number .sm-stat-suffix {
  background: var(--sm-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section base ─────────────────────────────────────────── */
.sm-section {
  padding: 5rem 0;
}

.sm-section-alt {
  background: var(--sm-bg);
}

.sm-section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--sm-primary);
  margin-bottom: .875rem;
}

.sm-section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--sm-dark);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.sm-section-desc {
  font-size: 1.0625rem;
  color: var(--sm-slate);
  max-width: 540px;
  line-height: 1.7;
}

/* ── Feature Cards ────────────────────────────────────────── */
.sm-feature-card {
  background: var(--sm-white);
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius);
  padding: 1.75rem;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  height: 100%;
}

.sm-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sm-shadow-lg);
  border-color: transparent;
}

.sm-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  margin-bottom: 1.125rem;
  flex-shrink: 0;
}

.sm-feature-icon.indigo  { background: rgba(99,102,241,.12); color: var(--sm-primary); }
.sm-feature-icon.cyan    { background: rgba(6,182,212,.12);  color: var(--sm-accent); }
.sm-feature-icon.emerald { background: rgba(16,185,129,.12); color: var(--sm-success); }
.sm-feature-icon.amber   { background: rgba(245,158,11,.12); color: var(--sm-warning); }
.sm-feature-icon.violet  { background: rgba(139,92,246,.12); color: #8b5cf6; }
.sm-feature-icon.rose    { background: rgba(244,63,94,.12);  color: #f43f5e; }

.sm-feature-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .2rem .6rem;
  border-radius: 100px;
  background: var(--sm-bg);
  color: var(--sm-slate);
  margin-bottom: .625rem;
}

.sm-feature-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--sm-dark);
  margin-bottom: .5rem;
  letter-spacing: -.02em;
}

.sm-feature-desc {
  font-size: .9rem;
  color: var(--sm-slate);
  line-height: 1.65;
  margin: 0;
}

/* ── Module section ───────────────────────────────────────── */
.sm-module-item {
  display: flex;
  gap: 1.125rem;
  padding: 1.25rem;
  border-radius: var(--sm-radius);
  transition: background .2s;
}

.sm-module-item:hover {
  background: var(--sm-bg);
}

.sm-module-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.sm-module-title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--sm-dark);
  margin-bottom: .25rem;
  letter-spacing: -.02em;
}

.sm-module-desc {
  font-size: .875rem;
  color: var(--sm-slate);
  margin: 0;
  line-height: 1.6;
}

/* ── Cards (module right col) ─────────────────────────────── */
.sm-card {
  background: var(--sm-white);
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius);
  padding: 1.5rem;
  box-shadow: var(--sm-shadow-sm);
  transition: box-shadow .2s, transform .2s;
  height: 100%;
}
.sm-card:hover {
  box-shadow: var(--sm-shadow);
  transform: translateY(-2px);
}

.sm-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sm-dark);
  margin-bottom: .5rem;
  letter-spacing: -.02em;
}

.sm-card-text {
  font-size: .875rem;
  color: var(--sm-slate);
  line-height: 1.6;
  margin: 0;
}

/* ── Testimonials ─────────────────────────────────────────── */
.sm-testimonial {
  background: var(--sm-white);
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius);
  padding: 1.75rem;
  height: 100%;
}

.sm-testimonial-badge {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .2rem .75rem;
  border-radius: 100px;
}

.sm-testimonial-text {
  font-size: .9375rem;
  color: var(--sm-dark-3);
  line-height: 1.7;
  font-style: italic;
  margin: 1rem 0;
}

.sm-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.sm-author-name {
  font-size: .875rem;
  font-weight: 700;
  color: var(--sm-dark);
}
.sm-author-role {
  font-size: .8rem;
  color: var(--sm-muted);
}

/* ── Pricing ──────────────────────────────────────────────── */
.sm-pricing-card {
  background: var(--sm-white);
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius);
  padding: 2rem;
  transition: transform .25s, box-shadow .25s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.sm-pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sm-shadow-lg);
}

.sm-pricing-card.featured {
  border-color: var(--sm-primary);
  background: var(--sm-dark);
  color: white;
  position: relative;
}

.sm-pricing-card.featured::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--sm-radius);
  background: var(--sm-gradient);
  opacity: .08;
}

.sm-pricing-card.featured .sm-pricing-price,
.sm-pricing-card.featured .sm-pricing-name {
  color: white;
}

.sm-pricing-card.featured .sm-pricing-desc,
.sm-pricing-card.featured .sm-pricing-feature {
  color: rgba(255,255,255,.65);
}

.sm-popular-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .3rem .875rem;
  border-radius: 100px;
  background: var(--sm-gradient);
  color: white;
  margin-bottom: 1rem;
}

.sm-pricing-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--sm-dark);
  margin-bottom: .5rem;
  letter-spacing: -.02em;
}

.sm-pricing-price {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--sm-dark);
  letter-spacing: -.05em;
  line-height: 1;
  margin-bottom: .5rem;
}

.sm-pricing-price sup {
  font-size: 1.25rem;
  font-weight: 700;
  vertical-align: top;
  margin-top: .625rem;
}

.sm-pricing-price span {
  font-size: .9375rem;
  font-weight: 500;
}

.sm-pricing-desc {
  font-size: .875rem;
  color: var(--sm-slate);
  margin-bottom: 1.5rem;
}

.sm-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  flex: 1;
}

.sm-pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  font-size: .9rem;
  color: var(--sm-slate);
  padding: .375rem 0;
}

.sm-pricing-feature i {
  flex-shrink: 0;
  margin-top: .125rem;
  font-size: 1rem;
}

.sm-pricing-feature.active { color: var(--sm-dark); }
.sm-pricing-feature.active i { color: var(--sm-success); }
.sm-pricing-feature.inactive i { color: var(--sm-border); }

/* ── CTA ──────────────────────────────────────────────────── */
.sm-cta {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  background: var(--sm-dark);
}

.sm-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--sm-gradient);
  opacity: .15;
}

.sm-cta-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,.3), transparent 70%);
  right: -200px;
  top: -200px;
  pointer-events: none;
}

.sm-cta .container { position: relative; z-index: 1; }

.sm-cta h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: white;
  letter-spacing: -.04em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.sm-cta p {
  color: rgba(255,255,255,.65);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.btn-sm-white {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--sm-dark);
  background: white;
  border: none;
  border-radius: var(--sm-radius);
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, box-shadow .2s;
}

.btn-sm-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  color: var(--sm-dark);
}

.btn-sm-outline-white {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--sm-radius);
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
  backdrop-filter: blur(8px);
}

.btn-sm-outline-white:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.4);
  color: white;
}

/* ── Footer ───────────────────────────────────────────────── */
.sm-footer {
  background: var(--sm-dark);
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,.06);
}

.sm-footer-text {
  font-size: .875rem;
  color: rgba(255,255,255,.35);
}

.sm-footer-links {
  display: flex;
  gap: 1.5rem;
}

.sm-footer-links a {
  font-size: .875rem;
  color: rgba(255,255,255,.4);
  text-decoration: none;
  transition: color .2s;
}

.sm-footer-links a:hover {
  color: rgba(255,255,255,.8);
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

.sm-float { animation: float 4s ease-in-out infinite; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sm-anim { animation: fadeUp .6s ease both; }
.sm-anim-delay-1 { animation-delay: .1s; }
.sm-anim-delay-2 { animation-delay: .2s; }
.sm-anim-delay-3 { animation-delay: .3s; }
