/* ═══════════════════════════════════════════════════════════════════
   ImmobilienRechner24 — Design System 2026
   Farben: Blau/Indigo (#2563eb / #4f46e5) + Grün-Akzent (#10b981)
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* Brand */
  --blue:          #2563eb;
  --blue-dark:     #1d4ed8;
  --blue-light:    #dbeafe;
  --indigo:        #4f46e5;
  --green:         #10b981;
  --green-dark:    #059669;
  --green-light:   #d1fae5;

  /* Neutrals */
  --white:         #ffffff;
  --bg:            #ffffff;
  --bg-alt:        #f8fafc;
  --bg-dark:       #0f172a;
  --border:        #e2e8f0;
  --border-focus:  #2563eb;
  --text:          #1e293b;
  --text-muted:    #64748b;
  --text-light:    #94a3b8;

  /* Gradients */
  --grad-hero:     linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #312e81 100%);
  --grad-card:     linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  --grad-text:     linear-gradient(135deg, #2563eb, #7c3aed);

  /* Shadows */
  --shadow-xs:     0 1px 2px rgba(0,0,0,.05);
  --shadow-sm:     0 1px 4px rgba(0,0,0,.07);
  --shadow:        0 4px 16px rgba(0,0,0,.08);
  --shadow-md:     0 8px 24px rgba(0,0,0,.1);
  --shadow-lg:     0 16px 48px rgba(0,0,0,.12);
  --shadow-xl:     0 24px 64px rgba(0,0,0,.14);
  --shadow-blue:   0 8px 32px rgba(37,99,235,.25);

  /* Radius */
  --radius-xs:     4px;
  --radius-sm:     8px;
  --radius:        12px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --radius-full:   9999px;

  /* Layout */
  --container:     1240px;
  --gap:           2rem;

  /* Type */
  --font:          'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', monospace;

  /* Transition */
  --t:             .2s ease;
  --t-slow:        .4s ease;
}

/* ── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; font-size: 1rem; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; transition: color var(--t); }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

/* ── Typography ─────────────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { color: var(--text); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

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

/* ── Container ──────────────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .8rem 1.6rem;
  border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem;
  transition: all var(--t); text-decoration: none; white-space: nowrap;
  line-height: 1;
}
.btn-lg  { padding: 1rem 2rem; font-size: 1rem; border-radius: var(--radius); }
.btn-sm  { padding: .55rem 1.1rem; font-size: .82rem; }
.btn-xs  { padding: .35rem .8rem; font-size: .75rem; border-radius: var(--radius-xs); }

.btn-primary {
  background: var(--blue); color: var(--white);
  box-shadow: 0 2px 8px rgba(37,99,235,.25);
}
.btn-primary:hover {
  background: var(--blue-dark); transform: translateY(-1px);
  box-shadow: var(--shadow-blue);
}

.btn-green {
  background: var(--green); color: var(--white);
  box-shadow: 0 2px 8px rgba(16,185,129,.2);
}
.btn-green:hover { background: var(--green-dark); transform: translateY(-1px); }

.btn-outline { border: 2px solid var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

.btn-ghost { border: 1.5px solid rgba(255,255,255,.35); color: var(--white); background: rgba(255,255,255,.1); }
.btn-ghost:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.65); }

/* ── Badge / Pill ───────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: .25rem .75rem; border-radius: var(--radius-full);
  font-size: .75rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
}
.badge-blue   { background: var(--blue-light);  color: var(--blue); }
.badge-green  { background: var(--green-light); color: var(--green-dark); }
.badge-gray   { background: var(--bg-alt);      color: var(--text-muted); }


/* ══════════════════════════════════════════════════════════════════════
   HEADER — fix, sticky, blur
   ══════════════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226,232,240,.8);
  transition: box-shadow var(--t), background var(--t);
}
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.header-inner {
  display: flex; align-items: center; gap: 1rem;
  height: 68px;
}

/* Logo */
.site-logo {
  display: flex; align-items: center; gap: .65rem;
  flex-shrink: 0; text-decoration: none;
}
.logo-icon-svg { flex-shrink: 0; }
.logo-text {
  font-size: 1.05rem; font-weight: 800; color: var(--text);
  letter-spacing: -.03em;
}
.site-logo--light .logo-text { color: var(--white); }

/* Desktop Nav */
.desktop-nav { display: flex; align-items: center; margin-left: auto; }
.desktop-nav ul { display: flex; align-items: center; gap: .25rem; }
.desktop-nav ul li a {
  padding: .45rem .8rem; border-radius: var(--radius-xs);
  font-size: .9rem; font-weight: 500; color: var(--text-muted);
  transition: color var(--t), background var(--t);
}
.desktop-nav ul li a:hover,
.desktop-nav ul li a.active {
  color: var(--blue); background: var(--blue-light);
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: .75rem; margin-left: 1rem; }
.header-cta { display: none; }

/* Burger */
.burger {
  display: flex; flex-direction: column; justify-content: center;
  gap: 5px; width: 40px; height: 40px; padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--t);
}
.burger span {
  display: block; width: 100%; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform var(--t), opacity var(--t), width var(--t);
  transform-origin: center;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; width: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.burger:hover { background: var(--bg-alt); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed; inset: 68px 0 0 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  overflow-y: auto;
  animation: slideDown .25s ease;
  z-index: 999;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: .25rem; margin-bottom: 1.5rem; }
.mobile-nav ul li a {
  display: block; padding: .85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 500; color: var(--text);
  transition: background var(--t), color var(--t);
}
.mobile-nav ul li a:hover,
.mobile-nav ul li a.active {
  background: var(--blue-light); color: var(--blue);
}
.mobile-cta .btn { width: 100%; justify-content: center; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Body offset for fixed header */
.page-content { padding-top: 68px; }


/* ══════════════════════════════════════════════════════════════════════
   HERO — dark gradient, full impact
   ══════════════════════════════════════════════════════════════════════ */
.hero {
  background: var(--grad-hero);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(99,102,241,.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,.15) 0%, transparent 70%);
  top: -200px; right: -100px;
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .3rem .9rem; border-radius: var(--radius-full);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9); font-size: .8rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}

.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 .highlight {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc { color: rgba(255,255,255,.75); font-size: 1.1rem; margin-bottom: 2rem; max-width: 480px; }

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 2rem; margin-top: 2.5rem;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stat-num  { display: block; font-size: 1.6rem; font-weight: 800; color: var(--white); }
.hero-stat-label { font-size: .8rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .05em; }

/* Hero Visual (rechte Seite) */
.hero-visual { position: relative; }
.hero-card-stack { display: flex; flex-direction: column; gap: 1rem; }
.hero-mini-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  backdrop-filter: blur(8px);
  transition: transform var(--t), background var(--t);
}
.hero-mini-card:hover { transform: translateX(6px); background: rgba(255,255,255,.12); }
.hero-mini-icon {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
  background: rgba(255,255,255,.12);
}
.hero-mini-title { font-weight: 700; color: var(--white); font-size: .95rem; }
.hero-mini-sub   { font-size: .8rem; color: rgba(255,255,255,.55); }
.hero-mini-badge {
  margin-left: auto; padding: .2rem .65rem;
  border-radius: var(--radius-full);
  background: rgba(16,185,129,.2); color: #6ee7b7;
  font-size: .75rem; font-weight: 600;
}


/* ══════════════════════════════════════════════════════════════════════
   SECTION TITLES
   ══════════════════════════════════════════════════════════════════════ */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-header { text-align: center; max-width: 600px; margin: 0 auto 3.5rem; }
.section-label {
  display: inline-block; margin-bottom: .75rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue);
}
.section-header h2 { margin-bottom: .75rem; }
.section-header p  { color: var(--text-muted); font-size: 1.05rem; }


/* ══════════════════════════════════════════════════════════════════════
   CALCULATOR CARDS (Rechner-Grid)
   ══════════════════════════════════════════════════════════════════════ */
.calc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }

.calc-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  display: flex; flex-direction: column; gap: .75rem;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
  text-decoration: none; color: inherit;
}
.calc-card:hover {
  border-color: var(--blue); box-shadow: var(--shadow-blue);
  transform: translateY(-3px);
}

.calc-card-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  background: var(--blue-light);
  margin-bottom: .25rem;
}
.calc-card h3 { font-size: 1.05rem; color: var(--text); }
.calc-card p  { color: var(--text-muted); font-size: .875rem; margin: 0; flex: 1; }
.calc-card-cta {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .82rem; font-weight: 600; color: var(--blue);
  margin-top: .5rem;
}
.calc-card-cta svg { transition: transform var(--t); }
.calc-card:hover .calc-card-cta svg { transform: translateX(3px); }


/* ══════════════════════════════════════════════════════════════════════
   POST GRID (Blog-Karten)
   ══════════════════════════════════════════════════════════════════════ */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }

.post-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow var(--t), transform var(--t);
  text-decoration: none; color: inherit;
}
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.post-card-image {
  aspect-ratio: 16/9; overflow: hidden; background: var(--bg-alt);
  position: relative;
}
.post-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.post-card:hover .post-card-image img { transform: scale(1.04); }
.post-card-image .post-no-image {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--blue-light), #ede9fe);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}

.post-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; gap: .6rem; }
.post-card-meta {
  display: flex; align-items: center; gap: .75rem;
  font-size: .78rem; color: var(--text-light);
}
.post-card-meta span { display: flex; align-items: center; gap: .3rem; }
.post-card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border); }
.post-card h3 { font-size: 1.05rem; line-height: 1.35; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--blue); }
.post-card-excerpt { font-size: .875rem; color: var(--text-muted); flex: 1; }
.post-card-footer { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); }
.post-card-footer a {
  font-size: .82rem; font-weight: 600; color: var(--blue);
  display: inline-flex; align-items: center; gap: .3rem;
}

/* Featured Post (erste Karte groß) */
.post-card.post-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
}
.post-card--featured .post-card-image { flex: 0 0 45%; aspect-ratio: auto; }
.post-card--featured .post-card-body  { padding: 2rem 2rem; }
.post-card--featured h3               { font-size: 1.4rem; }


/* ══════════════════════════════════════════════════════════════════════
   SINGLE POST
   ══════════════════════════════════════════════════════════════════════ */
.post-hero {
  background: var(--bg-dark); padding: 4rem 0 3rem;
  position: relative; overflow: hidden;
}
.post-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(15,23,42,.5), var(--bg-dark));
}
.post-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .25;
}
.post-hero-content { position: relative; z-index: 1; max-width: 780px; }
.post-hero-breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem; color: rgba(255,255,255,.5);
  margin-bottom: 1.25rem;
}
.post-hero-breadcrumb a { color: rgba(255,255,255,.65); }
.post-hero-breadcrumb a:hover { color: var(--white); }
.post-hero h1 { color: var(--white); margin-bottom: 1rem; font-size: clamp(1.75rem, 4vw, 2.75rem); }
.post-hero-meta {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  color: rgba(255,255,255,.55); font-size: .85rem;
}

.post-layout {
  display: grid; grid-template-columns: 1fr 300px;
  gap: 3rem; align-items: start;
  padding: 3.5rem 0 5rem;
}

/* Article content */
.post-content {
  min-width: 0;
  font-size: 1.05rem; line-height: 1.8; color: var(--text);
}
.post-content h2,
.post-content h3,
.post-content h4 { margin: 2rem 0 .75rem; }
.post-content h2 { padding-top: .5rem; border-top: 2px solid var(--border); }
.post-content ul,
.post-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: .4rem; }
.post-content a  { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--blue-dark); }
.post-content blockquote {
  border-left: 4px solid var(--blue); padding: 1rem 1.5rem;
  background: var(--blue-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0; font-style: italic; color: var(--text-muted);
}
.post-content img {
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  margin: 1.5rem auto;
}
.post-content table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0;
  font-size: .9rem; border-radius: var(--radius); overflow: hidden;
}
.post-content th {
  background: var(--bg-dark); color: var(--white);
  padding: .75rem 1rem; text-align: left; font-weight: 600;
}
.post-content td {
  padding: .7rem 1rem; border-bottom: 1px solid var(--border);
}
.post-content tr:last-child td { border-bottom: none; }
.post-content tr:nth-child(even) td { background: var(--bg-alt); }

/* Sidebar */
.post-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-widget {
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 1.5rem; border: 1px solid var(--border);
}
.sidebar-widget h4 { margin-bottom: 1rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.sidebar-toc { display: flex; flex-direction: column; gap: .5rem; }
.sidebar-toc a { font-size: .875rem; color: var(--text-muted); padding: .3rem .75rem; border-radius: var(--radius-xs); transition: all var(--t); }
.sidebar-toc a:hover { color: var(--blue); background: var(--white); }

/* Rechner Box (in Artikeln) */
.rechner-box {
  background: linear-gradient(135deg, var(--blue-light), #ede9fe);
  border: 2px solid rgba(79,70,229,.15);
  border-radius: var(--radius-lg); padding: 2rem;
  margin: 2rem 0;
}
.rechner-box h3 { color: var(--indigo); margin-bottom: 1.25rem; }
.rechner-form { display: grid; gap: 1rem; }
.rechner-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.rechner-field label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--text); margin-bottom: .4rem;
}
.rechner-field input {
  width: 100%; padding: .7rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .95rem; background: var(--white); color: var(--text);
  transition: border-color var(--t), box-shadow var(--t);
}
.rechner-field input:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.rechner-result {
  background: var(--white); border-radius: var(--radius);
  padding: 1.25rem; text-align: center;
  border: 1px solid rgba(79,70,229,.2);
}
.rechner-result-num  { font-size: 2rem; font-weight: 800; color: var(--indigo); }
.rechner-result-label { font-size: .8rem; color: var(--text-muted); }


/* ══════════════════════════════════════════════════════════════════════
   ARCHIVE / BLOG
   ══════════════════════════════════════════════════════════════════════ */
.archive-header {
  background: var(--bg-alt); border-bottom: 1px solid var(--border);
  padding: 3rem 0 2rem;
}
.archive-header h1 { margin-bottom: .5rem; }
.archive-header p  { color: var(--text-muted); }

.archive-body { padding: 3rem 0 5rem; }

.archive-filters {
  display: flex; gap: .5rem; flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-pill {
  padding: .4rem 1rem; border-radius: var(--radius-full);
  font-size: .82rem; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--border); color: var(--text-muted);
  background: var(--white); transition: all var(--t);
}
.filter-pill:hover,
.filter-pill.active {
  border-color: var(--blue); color: var(--blue); background: var(--blue-light);
}

.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: .5rem; margin-top: 3rem;
}
.pagination a, .pagination span {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem; font-weight: 600;
  border: 1.5px solid var(--border); color: var(--text-muted);
  transition: all var(--t);
}
.pagination a:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.pagination .current { background: var(--blue); color: var(--white); border-color: var(--blue); }


/* ══════════════════════════════════════════════════════════════════════
   CTA BANNER
   ══════════════════════════════════════════════════════════════════════ */
.cta-banner {
  background: var(--grad-card); color: var(--white);
  padding: 4rem 0; text-align: center;
  border-radius: var(--radius-xl); margin: 3rem 0;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(255,255,255,.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); margin-bottom: .75rem; }
.cta-banner p  { color: rgba(255,255,255,.8); margin-bottom: 1.75rem; font-size: 1.05rem; }
.cta-banner .btn-ghost { margin-left: .75rem; }


/* ══════════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════════ */
.site-footer { background: var(--bg-dark); }

.footer-top { padding: 4rem 0 3rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
}

.footer-brand p {
  color: rgba(255,255,255,.5); font-size: .875rem;
  margin-top: .75rem; max-width: 260px; line-height: 1.7;
}

.footer-col h4 {
  color: rgba(255,255,255,.9); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul li a {
  color: rgba(255,255,255,.45); font-size: .875rem;
  transition: color var(--t);
}
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem 0;
}
.footer-bottom p {
  color: rgba(255,255,255,.3); font-size: .8rem; margin: 0;
}
.footer-bottom a { color: rgba(255,255,255,.45); transition: color var(--t); }
.footer-bottom a:hover { color: var(--white); }


/* ══════════════════════════════════════════════════════════════════════
   TRUST STRIP
   ══════════════════════════════════════════════════════════════════════ */
.trust-strip {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.trust-items {
  display: flex; align-items: center; justify-content: center;
  gap: 3rem; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: .6rem;
  font-size: .85rem; font-weight: 600; color: var(--text-muted);
}
.trust-icon { font-size: 1.2rem; }


/* ══════════════════════════════════════════════════════════════════════
   404
   ══════════════════════════════════════════════════════════════════════ */
.page-404 {
  min-height: 60vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 5rem 1.5rem;
}
.page-404 .num-404 {
  font-size: clamp(6rem, 15vw, 10rem); font-weight: 900; line-height: 1;
  background: var(--grad-text); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: .5rem;
}
.page-404 h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1rem; }
.page-404 p  { color: var(--text-muted); margin-bottom: 2rem; }


/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════ */

/* Large desktop: CTA sichtbar */
@media (min-width: 1024px) {
  .header-cta { display: inline-flex; }
  .burger { display: none; }
}

/* Tablet */
@media (max-width: 1023px) {
  .desktop-nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --gap: 1.25rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero-stats { gap: 1.25rem; flex-wrap: wrap; }
  .hero-btns .btn { flex: 1; justify-content: center; }
  .section { padding: 3rem 0; }
  .calc-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card--featured { flex-direction: column; }
  .post-card--featured .post-card-image { flex: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .rechner-row { grid-template-columns: 1fr; }
  .trust-items { gap: 1.5rem; }
}

@media (max-width: 400px) {
  .calc-grid { grid-template-columns: 1fr; }
}

/* ── Utilities ──────────────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }

/* ── Internal Links ──────────────────────────────────────────────────── */
.post-content a.int-link {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(37,99,235,.3);
  text-underline-offset: 2px;
  transition: text-decoration-color var(--t);
  font-weight: 500;
}
.post-content a.int-link:hover {
  text-decoration-color: var(--blue);
  color: var(--blue-dark);
}

/* ── Glossary Term ───────────────────────────────────────────────────── */
.gloss-term {
  border-bottom: 1px dotted var(--blue);
  cursor: help;
  color: inherit;
  font-weight: inherit;
}

/* ── Glossary Tooltip ────────────────────────────────────────────────── */
.gloss-tip {
  position: absolute;
  z-index: 9999;
  width: 260px;
  background: var(--bg-dark);
  color: #f1f5f9;
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-xl);
  font-size: .83rem;
  line-height: 1.55;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease;
}
.gloss-tip.visible {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}
.gloss-tip strong {
  display: block;
  font-size: .88rem;
  margin-bottom: .35rem;
  color: #fff;
}
.gloss-tip p {
  margin: 0 0 .6rem;
  color: #cbd5e1;
}
.gloss-tip a {
  color: #93c5fd;
  font-weight: 600;
  font-size: .8rem;
  text-decoration: none;
}
.gloss-tip a:hover { text-decoration: underline; }

/* ── FAQ Section ─────────────────────────────────────────────────────── */
.faq-section {
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}
.faq-section h2 {
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: var(--bg-alt);
  border: none;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background var(--t);
}
.faq-q:hover { background: var(--blue-light); }
.faq-q[aria-expanded="true"] { background: var(--blue-light); color: var(--blue-dark); }
.faq-icon {
  font-size: 1.3rem;
  line-height: 1;
  color: var(--blue);
  flex-shrink: 0;
  font-style: normal;
  font-weight: 400;
  transition: transform var(--t);
}
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-a {
  padding: .875rem 1.25rem;
  background: var(--white);
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-a p { margin: 0; }
