/* ═══════════════════════════════════════════════════════════════════
   SpekulationsfristRechner24 — Main Stylesheet
   Design: finanzen.net inspired, modern 2026
   ═══════════════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────────────── */
:root {
  --blue:        #1558b0;
  --blue-dark:   #0d3d7c;
  --blue-light:  #e8f0fc;
  --blue-mid:    #2d6bc4;
  --green:       #1e8c4a;
  --green-light: #e8f7ee;
  --red:         #c0392b;
  --red-light:   #fdf0ee;
  --orange:      #e67e22;
  --orange-light:#fef3e9;

  --text:        #1a1a2e;
  --text-muted:  #6b7280;
  --text-light:  #9ca3af;
  --border:      #e5e7eb;
  --bg:          #ffffff;
  --bg-soft:     #f8fafc;
  --bg-blue:     #eef4ff;

  --radius:      8px;
  --radius-lg:   14px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow:      0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.12);

  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --max-w:       1200px;
  --header-h:    64px;
}

/* ── Reset ──────────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }

/* ── Layout ─────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── HEADER ─────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.header-logo:hover { text-decoration: none; }
.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
}
.header-logo .logo-text strong { color: var(--blue); }

/* Desktop Nav */
.header-nav { margin-left: auto; }
.header-nav ul {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.header-nav > ul > li > a,
.nav-btn {
  display: block;
  padding: .5rem .75rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  transition: background .15s, color .15s;
}
.header-nav > ul > li > a:hover,
.nav-btn:hover {
  background: var(--bg-soft);
  color: var(--blue);
  text-decoration: none;
}
.nav-arrow { font-size: .7rem; }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: .5rem;
  z-index: 100;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu li a {
  display: block;
  padding: .55rem .85rem;
  font-size: .875rem;
  color: var(--text);
  border-radius: var(--radius);
}
.dropdown-menu li a:hover { background: var(--bg-soft); color: var(--blue); text-decoration: none; }

/* Header CTA */
.btn-header-cta {
  display: inline-flex;
  align-items: center;
  padding: .55rem 1.2rem;
  background: var(--blue);
  color: #fff !important;
  font-size: .875rem;
  font-weight: 600;
  border-radius: 6px;
  transition: background .15s;
  white-space: nowrap;
  text-decoration: none !important;
}
.btn-header-cta:hover { background: var(--blue-dark); }
.header-actions { display: flex; align-items: center; gap: .75rem; }

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .4rem;
  border-radius: 6px;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .25s;
}
.mobile-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 999;
  overflow-y: auto;
  padding: 1.5rem 1.25rem;
  border-top: 1px solid var(--border);
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: .25rem; }
.mobile-nav ul li a {
  display: block;
  padding: .85rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  border-bottom: 1px solid var(--border);
}
.mobile-nav ul li a:hover { background: var(--bg-soft); text-decoration: none; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.75rem;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 4px 14px rgba(21,88,176,.35); transform: translateY(-1px); text-decoration: none; color: #fff; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.5rem;
  background: transparent;
  color: var(--blue);
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--radius);
  border: 2px solid var(--blue);
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
}
.btn-secondary:hover { background: var(--blue); color: #fff; text-decoration: none; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.1rem; border-radius: 10px; }

/* ── Hero / Calculator Hero ─────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0d3d7c 0%, #1558b0 50%, #2d6bc4 100%);
  padding: 3.5rem 0 4rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 60px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: .35rem .85rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,.25);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero h1 span { color: #93c5fd; }
.hero-desc {
  font-size: 1.1rem;
  opacity: .9;
  margin-bottom: 1.75rem;
  max-width: 520px;
}
.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
}
.hero-stat strong { font-size: 1.5rem; font-weight: 800; }
.hero-stat span { font-size: .8rem; opacity: .75; }

/* ── Calculator Card ─────────────────────────────────────────────── */
.calc-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.calc-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.calc-card h2::before { content: '§'; color: var(--blue); font-size: 1.2rem; }

.calc-field { margin-bottom: 1rem; }
.calc-field label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: .35rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.calc-field input,
.calc-field select {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .95rem;
  color: var(--text);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.calc-field input:focus,
.calc-field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21,88,176,.12);
}
.calc-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; padding-right: 2.5rem; }

.calc-btn {
  width: 100%;
  padding: .85rem;
  background: var(--blue);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background .15s, transform .1s;
  margin-top: .5rem;
}
.calc-btn:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* Calculator Result */
.calc-result {
  display: none;
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: var(--green-light);
  border-radius: var(--radius);
  border-left: 4px solid var(--green);
}
.calc-result.show { display: block; }
.calc-result.danger {
  background: var(--red-light);
  border-left-color: var(--red);
}
.calc-result h3 {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.calc-result .result-date {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green);
}
.calc-result.danger .result-date { color: var(--red); }
.calc-result .result-note {
  font-size: .825rem;
  color: var(--text-muted);
  margin-top: .4rem;
  line-height: 1.5;
}
.result-row {
  display: flex;
  justify-content: space-between;
  font-size: .875rem;
  padding: .3rem 0;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.result-row:last-child { border-bottom: none; }
.result-row span:last-child { font-weight: 600; }

/* ── Info Strip ──────────────────────────────────────────────────── */
.info-strip {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: .6rem 0;
}
.info-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  gap: 2.5rem;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.info-strip-inner::-webkit-scrollbar { display: none; }
.info-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  white-space: nowrap;
  color: var(--text-muted);
}
.info-item strong { color: var(--text); font-weight: 600; }
.info-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }

/* ── Section ─────────────────────────────────────────────────────── */
.section { padding: 3.5rem 0; }
.section-sm { padding: 2rem 0; }
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}
.section-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
}
.section-header a {
  font-size: .875rem;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}
.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: .5rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ── Post Cards ──────────────────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.post-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card a { text-decoration: none; color: inherit; }
.post-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-soft);
}
.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-body { padding: 1.1rem 1.25rem 1.25rem; }
.post-card-cat {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--blue);
  background: var(--blue-light);
  padding: .2rem .6rem;
  border-radius: 4px;
  margin-bottom: .6rem;
}
.post-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: .5rem;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-excerpt {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: .85rem;
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .77rem;
  color: var(--text-light);
}
.post-card-meta span { display: flex; align-items: center; gap: .3rem; }

/* ── Featured Card (large) ───────────────────────────────────────── */
.post-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.post-card-featured .post-card-img { aspect-ratio: auto; height: 100%; min-height: 240px; }
.post-card-featured .post-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.post-card-featured .post-card-title { font-size: 1.3rem; -webkit-line-clamp: 3; }
.post-card-featured .post-card-excerpt { -webkit-line-clamp: 3; }

/* ── Fact Box (Homepage USP) ─────────────────────────────────────── */
.fact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 2.5rem 0;
}
.fact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}
.fact-card .fact-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: .35rem;
}
.fact-card .fact-label {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Explainer Boxes ─────────────────────────────────────────────── */
.explainer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.explainer-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.explainer-card .expl-icon {
  font-size: 1.8rem;
  margin-bottom: .75rem;
  line-height: 1;
}
.explainer-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.explainer-card p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.explainer-card ul {
  margin-top: .75rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.explainer-card ul li {
  font-size: .875rem;
  color: var(--text-muted);
  display: flex;
  gap: .5rem;
  align-items: flex-start;
}
.explainer-card ul li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* ── Alert / Info Box ────────────────────────────────────────────── */
.alert-box {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}
.alert-box.info { background: var(--blue-light); border-left: 4px solid var(--blue); }
.alert-box.success { background: var(--green-light); border-left: 4px solid var(--green); }
.alert-box.warning { background: var(--orange-light); border-left: 4px solid var(--orange); }
.alert-box .alert-icon { font-size: 1.3rem; flex-shrink: 0; line-height: 1.4; }
.alert-box .alert-text { font-size: .9rem; line-height: 1.6; }
.alert-box .alert-text strong { display: block; margin-bottom: .25rem; font-size: .95rem; }

/* ── Breadcrumb ──────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: var(--border); }

/* ── Single Post ─────────────────────────────────────────────────── */
.post-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
.post-header { margin-bottom: 2rem; }
.post-cat {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--blue);
  background: var(--blue-light);
  padding: .25rem .7rem;
  border-radius: 4px;
  margin-bottom: .85rem;
}
.post-header h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: .85rem;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.post-meta-sep { color: var(--border); }
.post-thumbnail {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* ── Post Content (WP content) ───────────────────────────────────── */
.post-content { font-size: .975rem; line-height: 1.75; }
.post-content h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 2.5rem 0 1rem;
  color: var(--text);
  padding-top: .5rem;
  border-top: 2px solid var(--border);
}
.post-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 .75rem;
  color: var(--text);
}
.post-content h4 { font-size: 1rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.post-content p { margin-bottom: 1.25rem; }
.post-content ul, .post-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { line-height: 1.65; }
.post-content a { color: var(--blue); font-weight: 500; }
.post-content a:hover { text-decoration: underline; }
.post-content strong { font-weight: 700; }
.post-content em { font-style: italic; }
.post-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--blue);
  background: var(--blue-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text);
}
.post-content img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
  max-width: 100%;
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .9rem;
}
.post-content th {
  background: var(--bg-soft);
  padding: .65rem .9rem;
  text-align: left;
  font-weight: 700;
  border: 1px solid var(--border);
}
.post-content td {
  padding: .6rem .9rem;
  border: 1px solid var(--border);
  vertical-align: top;
}
.post-content tr:nth-child(even) td { background: var(--bg-soft); }
.post-content .wp-block-image { margin: 1.5rem 0; }
.post-content .wp-caption { margin: 1.5rem 0; }
.post-content figure { margin: 1.5rem 0; }
.post-content figcaption {
  font-size: .8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: .4rem;
}

/* Fix WP classes */
.post-content .aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.post-content .alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.post-content .alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }

/* ── Sidebar ─────────────────────────────────────────────────────── */
.sidebar { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.sidebar-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget h3 {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-posts { display: flex; flex-direction: column; gap: 1rem; }
.sidebar-post-item { display: flex; gap: .85rem; align-items: flex-start; }
.sidebar-post-item img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
}
.sidebar-post-item .sp-title {
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-post-item:hover .sp-title { color: var(--blue); }
.sidebar-post-item a { text-decoration: none; }

/* Sidebar CTA */
.sidebar-cta {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  color: #fff;
  text-align: center;
  padding: 1.5rem 1.25rem;
}
.sidebar-cta h3 { color: rgba(255,255,255,.75); font-size: .8rem; margin-bottom: .75rem; border-bottom-color: rgba(255,255,255,.2); }
.sidebar-cta p { font-size: .875rem; opacity: .85; margin-bottom: 1rem; }
.sidebar-cta .btn-primary { font-size: .9rem; padding: .7rem 1.4rem; width: 100%; }

/* ── Blog / Ratgeber page ────────────────────────────────────────── */
.blog-header {
  background: var(--bg-blue);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}
.blog-header-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.blog-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: .4rem; }
.blog-header p { font-size: 1rem; color: var(--text-muted); }

.blog-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
.blog-posts-list { display: flex; flex-direction: column; gap: 1.5rem; }

/* Blog list item */
.blog-list-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s;
}
.blog-list-item:hover { box-shadow: var(--shadow); }
.blog-list-item a { text-decoration: none; color: inherit; }
.blog-list-img {
  height: 140px;
  overflow: hidden;
}
.blog-list-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-list-body { padding: 1rem 1.25rem 1rem 0; display: flex; flex-direction: column; justify-content: center; gap: .4rem; }
.blog-list-title { font-size: 1rem; font-weight: 700; line-height: 1.4; color: var(--text); }
.blog-list-item:hover .blog-list-title { color: var(--blue); }
.blog-list-excerpt { font-size: .855rem; color: var(--text-muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-list-meta { display: flex; gap: .75rem; font-size: .775rem; color: var(--text-light); }

/* ── Page Content ────────────────────────────────────────────────── */
.page-layout {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}
.page-header { margin-bottom: 2rem; }
.page-header h1 { font-size: 2rem; font-weight: 800; }
.page-content { font-size: .975rem; line-height: 1.75; }
.page-content h2 { font-size: 1.3rem; font-weight: 700; margin: 2rem 0 .75rem; }
.page-content h3 { font-size: 1.1rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.page-content p { margin-bottom: 1rem; }
.page-content ul, .page-content ol { margin: .75rem 0 1.25rem 1.5rem; list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li { margin-bottom: .4rem; }
.page-content a { color: var(--blue); }
.page-content strong { font-weight: 700; }

/* ── 404 ─────────────────────────────────────────────────────────── */
.not-found {
  text-align: center;
  padding: 5rem 1.25rem;
  max-width: 520px;
  margin: 0 auto;
}
.not-found .nf-code { font-size: 5rem; font-weight: 900; color: var(--border); line-height: 1; }
.not-found h1 { font-size: 1.6rem; font-weight: 800; margin: .5rem 0; }
.not-found p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ── Trust Banner ────────────────────────────────────────────────── */
.trust-banner {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.trust-banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .875rem;
  color: var(--text-muted);
}
.trust-icon { font-size: 1.25rem; }
.trust-item strong { color: var(--text); font-weight: 600; }

/* ── TOC (Table of Contents) ─────────────────────────────────────── */
.toc {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.toc h3 {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: .75rem;
}
.toc ol { list-style: decimal; margin-left: 1.25rem; display: flex; flex-direction: column; gap: .35rem; }
.toc ol li a { font-size: .9rem; color: var(--blue); font-weight: 500; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .calc-card { max-width: 480px; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card-featured { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .fact-cards { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: 1fr 280px; gap: 2rem; }
  .blog-layout { grid-template-columns: 1fr 260px; gap: 2rem; }
}

@media (max-width: 768px) {
  :root { --header-h: 56px; }
  .header-nav { display: none; }
  .btn-header-cta { display: none; }
  .mobile-toggle { display: flex; }

  .hero { padding: 2.5rem 0 3.5rem; }
  .hero h1 { font-size: 1.75rem; }
  .hero-stats { gap: 1.25rem; }

  .posts-grid { grid-template-columns: 1fr; }
  .post-card-featured { grid-template-columns: 1fr; }
  .post-card-featured .post-card-img { min-height: 200px; }
  .fact-cards { grid-template-columns: repeat(2, 1fr); }
  .explainer-grid { grid-template-columns: 1fr; }

  .post-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .post-header h1 { font-size: 1.5rem; }

  .blog-layout { grid-template-columns: 1fr; }
  .blog-list-item { grid-template-columns: 120px 1fr; }
  .blog-list-img { height: 100px; }
  .blog-list-body { padding: .75rem .75rem .75rem 0; }

  .trust-banner-inner { gap: 1rem; }
  .section { padding: 2.5rem 0; }
  .section-header h2 { font-size: 1.35rem; }
  .info-strip-inner { gap: 1.25rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .fact-cards { grid-template-columns: 1fr 1fr; }
  .blog-list-item { grid-template-columns: 1fr; }
  .blog-list-img { height: 160px; }
  .blog-list-body { padding: .75rem 1rem; }
}

/* ── Glossar Page ───────────────────────────────────────────────────────────── */
.glossar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.glossar-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  transition: box-shadow .15s;
}
.glossar-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.glossar-term { font-size: .95rem; font-weight: 800; color: var(--text); }
.glossar-def { font-size: .82rem; color: var(--text-muted); line-height: 1.5; flex: 1; margin: 0; }
.glossar-link { font-size: .78rem; font-weight: 700; color: var(--blue); text-decoration: none; margin-top: .3rem; }
.glossar-link:hover { text-decoration: underline; }
@media (max-width: 900px) { .glossar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .glossar-grid { grid-template-columns: 1fr; } }

/* ── FAQ Accordion ──────────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: .5rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .9rem 1.1rem;
  font-size: .93rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  background: var(--bg-light);
  gap: .75rem;
  color: var(--text);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: '+'; font-size: 1.2rem; font-weight: 400; flex-shrink: 0; color: var(--blue); }
.faq-item[open] .faq-q { background: var(--bg-blue); color: var(--blue); }
.faq-item[open] .faq-q::after { content: '−'; }
.faq-a {
  padding: .9rem 1.1rem;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: #fff;
}

/* ── Related Posts Grid ─────────────────────────────────────────────────────── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.related-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow .15s, transform .15s;
}
.related-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); transform: translateY(-2px); }
.related-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-blue); }
.related-card-img img { width: 100%; height: 100%; object-fit: cover; }
.related-card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--blue); opacity: .3;
}
.related-card-body { padding: .85rem 1rem 1rem; display: flex; flex-direction: column; gap: .3rem; }
.related-cat { font-size: .72rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .05em; }
.related-title { font-size: .88rem; font-weight: 700; color: var(--text); line-height: 1.4; }
@media (max-width: 768px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* ── Glossar-Tooltips ───────────────────────────────────────────────────────── */
a.gl-tip {
  color: var(--blue);
  border-bottom: 1px dashed var(--blue);
  text-decoration: none;
  position: relative;
  cursor: help;
  white-space: nowrap;
}
a.gl-tip:hover {
  text-decoration: none;
  color: var(--blue);
}
.gl-box {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  max-width: 320px;
  background: #fff;
  border: 1px solid #c5d4e8;
  border-radius: 10px;
  padding: 11px 14px 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,.13);
  z-index: 600;
  white-space: normal;
  pointer-events: none;
  text-align: left;
  line-height: 1.45;
}
a.gl-tip:hover .gl-box {
  display: block;
}
.gl-def {
  display: block;
  font-size: .8rem;
  color: #333;
  font-weight: 400;
  margin-bottom: 7px;
}
.gl-more {
  display: block;
  font-size: .78rem;
  color: var(--blue);
  font-weight: 700;
}
/* Tooltip auf kleinen Screens nach rechts oder zentriert */
@media (max-width: 600px) {
  .gl-box { left: auto; right: 0; min-width: 220px; }
}
