/* ============================================================
   wohnung.one — Design System 2026
   ============================================================ */

:root {
  --bg:       #f8f7f4;
  --white:    #ffffff;
  --black:    #111111;
  --text:     #1c1c1e;
  --text-2:   #5a5a72;
  --text-3:   #9494a8;
  --accent:   #2563eb;
  --accent-2: #1d4ed8;
  --light:    #eff6ff;
  --border:   #e8e8ee;
  --shadow:   0 2px 12px rgba(0,0,0,.07);
  --shadow-lg:0 8px 32px rgba(0,0,0,.12);
  --radius:   14px;
  --radius-sm:8px;
  --font:     'Inter', -apple-system, sans-serif;
  --max-w:    1180px;
  --header-h: 68px;
}

/* ---- 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); background: var(--bg); color: var(--text); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* ---- UTILS ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled {
  border-color: var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  position: relative;
}
.header-spacer { height: var(--header-h); }

/* DESKTOP HEADER */
.header-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}
.header-mobile { display: none; }

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.02em;
  color: var(--text);
  flex-shrink: 0;
}
.logo-icon { font-size: 1.3rem; }
.logo-dot { color: var(--accent); }
.logo--footer .logo-icon { opacity: .7; }

/* Nav */
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color .15s, background .15s;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent);
  background: var(--light);
}

/* Header CTA */
.btn-header {
  margin-left: 8px;
  padding: 9px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 600;
  transition: background .15s, transform .15s;
}
.btn-header:hover { background: var(--accent-2); transform: translateY(-1px); }

/* MOBILE HEADER */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== MOBILE SLIDE MENU ========== */
.mm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9998;
}
.mm-overlay.open { display: block; }

.mm-panel {
  position: fixed;
  top: 0; right: 0;
  width: 88vw;
  max-width: 360px;
  height: 100%;
  background: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: -4px 0 24px rgba(0,0,0,.15);
  overflow: hidden;
}
.mm-panel.open { transform: translateX(0); }

.mm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.mm-logo-wrap { display: flex; align-items: center; gap: 8px; }
.mm-logo-icon { font-size: 1.4rem; }
.mm-logo-text { font-weight: 700; font-size: 1.1rem; color: #111; }
.mm-logo-dot { color: var(--accent); }
.mm-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #f4f4f4;
  color: #555;
  font-size: 1.4rem;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
}

.mm-search-wrap {
  position: relative;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.mm-search-icon {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
}
.mm-search-input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  font-size: .9rem;
  background: #f9f9f9;
  color: #333;
  box-sizing: border-box;
}
.mm-search-input:focus { outline: none; border-color: var(--accent); background: #fff; }

.mm-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 16px;
}
.mm-section-label {
  padding: 12px 20px 6px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: #999;
  text-transform: uppercase;
}
.mm-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  text-decoration: none;
  color: #111;
  transition: background .15s;
}
.mm-row:hover, .mm-row:active { background: #f9f9f9; }
.mm-row-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.mm-row-info { flex: 1; min-width: 0; }
.mm-row-title { display: block; font-size: .95rem; font-weight: 600; color: #111; }
.mm-row-sub { display: block; font-size: .78rem; color: #888; margin-top: 1px; }
.mm-row-chevron { color: #ccc; font-size: 1.2rem; flex-shrink: 0; }

.mm-footer {
  padding: 16px 20px;
  border-top: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.mm-cta-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  border-radius: 12px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: background .2s;
}
.mm-cta-btn:hover { background: var(--accent-2); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 48px 0 32px; }
.hero-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform .2s;
  min-height: 420px;
}
.hero-card:hover { transform: translateY(-3px); }
.hero-img { overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-content {
  padding: 48px 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--light);
  color: var(--accent);
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  align-self: flex-start;
}
.hero-content h1 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.03em;
  color: var(--text);
}
.hero-content p {
  font-size: .95rem;
  color: var(--text-2);
  line-height: 1.6;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: .9rem;
  margin-top: 8px;
}

/* ============================================================
   POST GRID
   ============================================================ */
.section-grid { padding: 24px 0 64px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-head h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.025em;
}
.link-all {
  font-size: .88rem;
  font-weight: 600;
  color: var(--accent);
}
.link-all:hover { text-decoration: underline; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.post-grid--full { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-img {
  height: 200px;
  overflow: hidden;
  background: var(--border);
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.post-card:hover .card-img img { transform: scale(1.04); }
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card-date {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.015em;
  color: var(--text);
}
.card-body p {
  font-size: .88rem;
  color: var(--text-2);
  line-height: 1.55;
  flex: 1;
}
.card-read {
  display: inline-block;
  margin-top: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
}

/* ============================================================
   TOPICS SECTION
   ============================================================ */
.section-topics { padding: 0 0 72px; }
.topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) {
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
}
.topic-card {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.topic-airbnb { border-top: 3px solid #f59e0b; }
.topic-invest  { border-top: 3px solid #10b981; }
.topic-tools   { border-top: 3px solid var(--accent); }
.topic-recht   { border-top: 3px solid #8b5cf6; }
.topic-icon { font-size: 2rem; }
.topic-card h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; }
.topic-card p  { font-size: .88rem; color: var(--text-2); line-height: 1.55; flex: 1; }
.topic-link { font-size: .88rem; font-weight: 600; color: var(--accent); align-self: flex-start; }
.topic-link:hover { text-decoration: underline; }

/* ============================================================
   PAGE HERO (blog, rechner, legal)
   ============================================================ */
.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.page-hero--sm { padding: 48px 0 32px; margin-bottom: 32px; }
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.04em;
  margin-bottom: 12px;
}
.page-hero p { font-size: 1.05rem; color: var(--text-2); max-width: 600px; }

.section-blog { padding-top: 0; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: var(--text-3);
  margin-bottom: 20px;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-3); }
.single-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.2;
  max-width: 820px;
  margin-bottom: 16px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.meta-date {
  font-size: .85rem;
  color: var(--text-3);
  font-weight: 500;
}

.single-featured-img { padding: 32px 0 0; }
.single-featured-img img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
}

.single-content { padding: 48px 0 80px; }
.content-body {
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}
/* WordPress Content Styles */
.content-body h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; margin: 40px 0 16px; line-height: 1.25; }
.content-body h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; margin: 32px 0 12px; }
.content-body h4 { font-size: 1.05rem; font-weight: 700; margin: 24px 0 10px; }
.content-body p { margin-bottom: 20px; }
.content-body ul, .content-body ol { margin: 0 0 20px 24px; }
.content-body li { margin-bottom: 8px; }
.content-body ul { list-style: disc; }
.content-body ol { list-style: decimal; }
.content-body a { color: var(--accent); text-decoration: underline; }
.content-body a:hover { color: var(--accent-2); }
.content-body strong { font-weight: 700; }
.content-body em { font-style: italic; }
.content-body img { border-radius: var(--radius-sm); margin: 24px 0; }
.content-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 24px;
  background: var(--light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-2);
}
.content-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .92rem; }
.content-body th { background: var(--light); font-weight: 700; padding: 10px 14px; text-align: left; border-bottom: 2px solid var(--border); }
.content-body td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.content-body tr:last-child td { border-bottom: none; }
.content-body .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 24px 0; }
.content-body .table-wrap table { margin: 0; }
@media (max-width: 600px) {
  .content-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
.content-body figure { margin: 24px 0; }
.content-body figcaption { font-size: .82rem; color: var(--text-3); margin-top: 8px; text-align: center; }
/* ============================================================
   GLOSSARY TOOLTIPS
   ============================================================ */
.gl-term {
  position: relative;
  display: inline;
  border-bottom: 1px dotted var(--accent);
  color: inherit;
  cursor: help;
}
.gl-box {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  padding: 14px 16px;
  width: 280px;
  z-index: 200;
  text-align: left;
  font-size: .85rem;
  line-height: 1.5;
}
.gl-box::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #fff;
}
.gl-box::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: var(--border);
  margin-top: 1px;
}
.gl-term:hover .gl-box,
.gl-term:focus-within .gl-box {
  display: block;
}
.gl-desc {
  display: block;
  color: var(--text-1);
  margin-bottom: 10px;
  font-weight: 400;
}
.gl-link {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  font-size: .82rem;
  text-decoration: none;
  border: none;
}
.gl-link:hover { text-decoration: underline; color: var(--accent-2); }

/* Mobile: Tooltip unter dem Begriff */
@media (max-width: 600px) {
  .gl-box {
    bottom: auto;
    top: calc(100% + 8px);
    left: 0;
    transform: none;
    width: 260px;
  }
  .gl-box::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #fff; }
  .gl-box::before { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--border); margin-top: 0; margin-bottom: 1px; }
}

/* WP Blocks */
.wp-block-image img { border-radius: var(--radius-sm); }
.wp-block-quote { border-left: 4px solid var(--accent); padding: 16px 24px; background: var(--light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 24px 0; }
.wp-block-separator { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

.post-footer { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-2);
  transition: border-color .15s, color .15s;
}
.btn-back:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   CATEGORY HUB PAGES
   ============================================================ */
.page-hero--cat { padding: 48px 0; }
.cat-hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.cat-icon {
  font-size: 3rem;
  line-height: 1;
  flex-shrink: 0;
}
.cat-hero-inner h1 { margin-bottom: 8px; }
.cat-hero-inner p { color: var(--text-2); max-width: 600px; }
.cat-count { margin-top: 8px; font-size: .9rem; color: var(--text-3); }
.cat-count strong { color: var(--accent); }
@media (max-width: 600px) {
  .cat-hero-inner { flex-direction: column; gap: 12px; }
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 48px 0 0;
  flex-wrap: wrap;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-2);
  transition: border-color .15s, color .15s;
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-numbers { display: flex; gap: 6px; align-items: center; }
.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-2);
  border: 1.5px solid var(--border);
  transition: all .15s;
}
.page-num:hover, .page-num.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.page-ellipsis { color: var(--text-3); padding: 0 4px; }

/* ============================================================
   RELATED POSTS
   ============================================================ */
.related-posts { background: var(--bg); padding: 48px 0 64px; border-top: 1px solid var(--border); }
.related-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 28px; }
.post-grid--related { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) {
  .post-grid--related { grid-template-columns: 1fr; }
}

/* ============================================================
   POST META (reading time)
   ============================================================ */
.meta-read {
  font-size: .85rem;
  color: var(--text-3);
  padding: 3px 10px;
  background: rgba(255,255,255,.15);
  border-radius: 20px;
}

/* ============================================================
   RECHNER
   ============================================================ */
.section-rechner { padding: 0 0 80px; }
.rechner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
@media (max-width: 480px) { .rechner-grid { grid-template-columns: 1fr; } }
.rechner-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.rechner-icon { font-size: 2.2rem; margin-bottom: 12px; }
.rechner-card h2 { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.rechner-card > p { font-size: .88rem; color: var(--text-2); margin-bottom: 24px; line-height: 1.5; }
.rechner-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: flex; flex-direction: column; gap: 5px; }
.form-row label { font-size: .82rem; font-weight: 600; color: var(--text-2); }
.form-row input {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  transition: border-color .15s;
}
.form-row input:focus { outline: none; border-color: var(--accent); background: var(--white); }
.btn-calc {
  padding: 12px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-weight: 700;
  transition: background .15s, transform .1s;
}
.btn-calc:hover { background: var(--accent-2); transform: translateY(-1px); }
.rechner-result {
  margin-top: 4px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: .9rem;
}
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.result-row:last-child { border-bottom: none; }
.result-row strong { font-weight: 700; }
.result-highlight { background: var(--light); }
.result-highlight strong { color: var(--accent); }

/* ============================================================
   LEGAL
   ============================================================ */
.section-legal { padding: 0 0 80px; }
.legal-body {
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}
.legal-body h2 { font-size: 1.2rem; font-weight: 700; margin: 32px 0 10px; }
.legal-body p { margin-bottom: 16px; color: var(--text-2); }
.legal-body a { color: var(--accent); text-decoration: underline; }

/* ============================================================
   404
   ============================================================ */
.page-404 { padding: 100px 0; }
.error-box { text-align: center; }
.error-num { display: block; font-size: 6rem; font-weight: 900; color: var(--border); line-height: 1; margin-bottom: 16px; }
.error-box h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.error-box p { color: var(--text-2); margin-bottom: 32px; }
.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .95rem;
  transition: background .15s;
}
.btn-primary:hover { background: var(--accent-2); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-tagline { font-size: .85rem; color: var(--text-3); }
.footer-links { display: flex; gap: 64px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 4px; }
.footer-col a { font-size: .88rem; color: var(--text-2); transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p { font-size: .82rem; color: var(--text-3); }
.sig { color: var(--border); font-size: .7rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-card { grid-template-columns: 1fr; min-height: auto; }
  .hero-img { height: 240px; }
  .hero-content { padding: 28px; }
  .topics-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 28px; }
  .footer-links { gap: 32px; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .header-desktop { display: none; }
  .header-mobile {
    display: flex;
    align-items: center;
    height: 100%;
  }
  .rechner-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .single-hero h1 { font-size: 1.6rem; }
  .content-body { font-size: .97rem; }
  .content-body h2 { font-size: 1.35rem; }
  .hero { padding: 24px 0 16px; }
  .hero-content { padding: 24px; }
  .hero-content h1 { font-size: 1.4rem; }
  .section-grid { padding: 16px 0 48px; }
  .page-hero { padding: 40px 0 32px; }
  .footer-links { flex-direction: column; gap: 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-content { padding: 20px; }
  .card-body { padding: 16px; }
  .topic-card { padding: 24px; }
  .rechner-card { padding: 24px; }
  .home-search-bar { flex-wrap: wrap; padding: 8px; }
  .home-search-bar button { width: 100%; justify-content: center; }
  .hero-trust { gap: 10px; font-size: .78rem; }
  .fehler-card { flex-direction: column; gap: 10px; }
  .fehler-number { font-size: 1.5rem; }
}

/* ============================================================
   2026 REDESIGN — NEW SECTIONS
   ============================================================ */

/* ---- READING PROGRESS BAR ---- */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 9999;
  width: 0%;
  transition: width .1s linear;
}

/* ---- HOME HERO ---- */
.home-hero {
  padding: 72px 0 56px;
  background: #fff;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero-h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-h1-accent { color: var(--accent); }
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.home-search-bar {
  display: flex;
  align-items: center;
  max-width: 680px;
  margin: 0 auto 24px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 6px 6px 6px 16px;
  gap: 10px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  transition: border-color .2s, box-shadow .2s;
}
.home-search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.hs-icon { color: var(--text-3); flex-shrink: 0; }
.home-search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: .97rem;
  font-family: var(--font);
  color: var(--text);
  background: transparent;
  padding: 8px 0;
}
.home-search-bar input::placeholder { color: var(--text-3); }
.home-search-bar button {
  padding: 10px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 700;
  transition: background .15s;
  flex-shrink: 0;
}
.home-search-bar button:hover { background: var(--accent-2); }
.hero-trust {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-3);
}

/* ---- CATEGORY TILES ---- */
.home-cats { padding: 40px 0; background: var(--bg); }
.cat-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .cat-tiles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .cat-tiles-grid { grid-template-columns: 1fr; } }

.cat-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  text-decoration: none;
}
.cat-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.cat-tile-badge {
  position: absolute;
  top: 10px; right: 12px;
  background: var(--accent);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  border-radius: 20px;
  padding: 2px 7px;
  line-height: 1.4;
}
.cat-tile-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.cat-tile-body { flex: 1; min-width: 0; }
.cat-tile-body strong {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.cat-tile-body span { font-size: .8rem; color: var(--text-3); }
.cat-tile-arrow { color: var(--text-3); font-size: 1.1rem; flex-shrink: 0; }

/* ---- FEHLER BLOCK ---- */
.home-fehler { padding: 48px 0; background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head-sub { font-size: .9rem; color: var(--text-2); margin-left: auto; }
.fehler-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.fehler-card {
  display: flex; gap: 16px; padding: 24px; border-radius: var(--radius);
  border: 1.5px solid var(--border); background: var(--bg);
  transition: border-color .2s, box-shadow .2s; cursor: pointer;
}
.fehler-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.fehler-number {
  font-size: 2rem; font-weight: 800; color: var(--border);
  line-height: 1; flex-shrink: 0; min-width: 36px;
  transition: color .2s;
}
.fehler-card:hover .fehler-number { color: var(--accent); }
.fehler-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.fehler-body p { font-size: .875rem; color: var(--text-2); line-height: 1.55; margin-bottom: 12px; }
.fehler-link { font-size: .82rem; font-weight: 600; color: var(--accent); }
@media (max-width: 768px) {
  .fehler-grid { grid-template-columns: 1fr; }
  .section-head-sub { display: none; }
}

/* ---- FEATURED GRID ---- */
.home-featured { padding: 48px 0; }
.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 768px) {
  .featured-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
}
.featured-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.featured-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.featured-card--main {
  grid-row: 1 / 3;
  flex-direction: column;
}
.featured-card--main .featured-card-img { height: 280px; }
.featured-card--side .featured-card-img { height: 140px; }
.featured-card-img { overflow: hidden; background: var(--border); flex-shrink: 0; }
.featured-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.featured-card:hover .featured-card-img img { transform: scale(1.04); }
.featured-card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.featured-card--main .featured-card-body { padding: 24px; }
.featured-card--main h3 { font-size: 1.2rem; }
.featured-card--side h3 { font-size: .95rem; }
.featured-card-body p { font-size: .87rem; color: var(--text-2); line-height: 1.55; flex: 1; }

/* ---- TOOLS CTA SECTION ---- */
.home-tools {
  padding: 64px 0;
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
  color: #fff;
  text-align: center;
}
.home-tools h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}
.home-tools-sub { font-size: .95rem; color: rgba(255,255,255,.7); margin-bottom: 36px; }
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
@media (max-width: 768px) { .tools-grid { grid-template-columns: 1fr; } }
.tool-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 28px 24px;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  text-decoration: none;
  color: #fff;
  transition: background .2s, border-color .2s, transform .2s;
  text-align: left;
}
.tool-card:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.45);
  transform: translateY(-3px);
}
.tool-card-icon { font-size: 2rem; }
.tool-card strong { font-size: 1rem; font-weight: 700; color: #fff; }
.tool-card span { font-size: .85rem; color: rgba(255,255,255,.75); line-height: 1.5; }
.tool-card-cta { font-size: .87rem; font-weight: 700; color: #fff; margin-top: 4px; opacity: .9; }

/* ---- SEO CONTENT BLOCK ---- */
.home-seo {
  padding: 48px 0 64px;
  background: #f1f5f9;
  border-top: 1px solid var(--border);
}
.home-seo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 768px) { .home-seo-grid { grid-template-columns: 1fr; gap: 24px; } }
.home-seo-text h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; letter-spacing: -.025em; }
.home-seo-text p { color: var(--text-2); line-height: 1.7; font-size: .95rem; }
.home-seo-links h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.home-seo-links ul { display: flex; flex-direction: column; gap: 10px; }
.home-seo-links li { list-style: none; }
.home-seo-links a { font-size: .9rem; font-weight: 600; color: var(--accent); transition: text-decoration .15s; }
.home-seo-links a:hover { text-decoration: underline; }

/* ---- BLOG SEARCH + FILTERS ---- */
.blog-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 0 2px;
}
.blog-search-wrap svg { position: absolute; left: 14px; color: var(--text-3); pointer-events: none; }
.blog-search-wrap input {
  width: 100%;
  padding: 11px 16px 11px 42px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  transition: border-color .2s;
}
.blog-search-wrap input:focus { outline: none; border-color: var(--accent); }

.blog-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.filter-btn {
  padding: 7px 16px;
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-2);
  background: #fff;
  border: 1.5px solid var(--border);
  white-space: nowrap;
  transition: all .15s;
  text-decoration: none;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---- CATEGORY PAGE — ENHANCED HERO ---- */
.cat-hero-gradient {
  background: linear-gradient(135deg, color-mix(in srgb, var(--cat-color) 12%, #fff) 0%, #fff 100%);
  border-bottom: 3px solid var(--cat-color);
  padding: 56px 0 40px;
}
.breadcrumb--light { margin-bottom: 20px; }
.cat-icon--lg { font-size: 4rem; line-height: 1; flex-shrink: 0; }
.cat-count-badge {
  display: inline-block;
  padding: 3px 12px;
  background: var(--cat-color);
  color: #fff;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.cat-related-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,.07);
}
.cat-related-link {
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(0,0,0,.05);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-2);
  transition: background .15s, color .15s;
}
.cat-related-link:hover { background: var(--accent); color: #fff; }

/* ---- SINGLE POST — 2-COL LAYOUT ---- */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .single-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
}
.article-body { min-width: 0; }

/* Sidebar */
.article-sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 20px; }
.sidebar-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.sidebar-toc h4,
.sidebar-cats h4 {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-3);
  margin-bottom: 12px;
}
.toc-list { display: flex; flex-direction: column; gap: 6px; }
.toc-list li { list-style: none; }
.toc-list a { font-size: .85rem; color: var(--text-2); transition: color .15s; line-height: 1.4; }
.toc-list a:hover { color: var(--accent); }
.toc-level-3 { padding-left: 12px; }
.toc-level-3 a { font-size: .82rem; }

.sidebar-cta { text-align: center; background: var(--light); border-color: rgba(37,99,235,.2); }
.sidebar-cta-icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.sidebar-cta strong { display: block; font-size: .95rem; font-weight: 800; margin-bottom: 6px; color: var(--text); }
.sidebar-cta p { font-size: .82rem; color: var(--text-2); margin-bottom: 14px; line-height: 1.5; }
.sidebar-cta-btn { display: block; font-size: .87rem; padding: 10px 16px; }

.sidebar-cats-list { display: flex; flex-direction: column; gap: 8px; }
.sidebar-cats-list li { list-style: none; }
.sidebar-cats-list a { font-size: .88rem; color: var(--text-2); font-weight: 500; transition: color .15s; }
.sidebar-cats-list a:hover { color: var(--accent); }

/* ---- Category SEO Text Block ---- */
.cat-seo-block { padding: 48px 0 40px; background: var(--light); border-top: 1px solid var(--border); }
.cat-seo-text { max-width: 780px; }
.cat-seo-text h2 { font-size: 1.25rem; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.cat-seo-text p { font-size: .93rem; color: var(--text-2); line-height: 1.75; margin-bottom: 14px; }
.cat-seo-text p:last-child { margin-bottom: 0; }

/* ---- Kategorie-Badge auf Post-Karten ---- */
.card-img { position: relative; }
.card-cat-badge {
  position: absolute;
  top: 10px; left: 10px;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  line-height: 1.4;
  pointer-events: none;
}

/* ---- Kategorie-Label auf Single Post (über H1) ---- */
.post-cat-label {
  display: inline-block;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 5px;
  margin-bottom: 14px;
}

/* ---- Zuletzt aktualisiert ---- */
.meta-updated {
  font-size: .82rem;
  color: #10b981;
  font-weight: 600;
}
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 10px; }

/* ---- Vergleiche & Angebote (financeads) ---- */
.section-vergleiche { padding: 60px 0; background: #f8fafc; border-top: 1px solid var(--border); }
.section-sub { color: var(--text-2); font-size: .95rem; margin-top: 6px; }
.vergleich-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 28px 20px;
  margin-top: 32px;
}
.vergleich-block h3 { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.vergleich-block > p { font-size: .9rem; color: var(--text-2); margin-bottom: 20px; }

/* ============================================================
   RECHNER-SEITE (neue Struktur)
   ============================================================ */

/* Hero */
.rechner-hero {
  background: linear-gradient(135deg, #1a56db 0%, #2563eb 60%, #3b82f6 100%);
  color: #fff;
  padding: 52px 0 44px;
}
.rechner-hero .breadcrumb,
.rechner-hero .breadcrumb a,
.rechner-hero .breadcrumb span { color: rgba(255,255,255,.75); }
.rechner-hero h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; line-height: 1.2; margin-bottom: 12px; color: #fff; }
.rh-sub { font-size: 1.05rem; color: rgba(255,255,255,.88); max-width: 600px; margin-bottom: 28px; line-height: 1.6; }
.rechner-tab-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.rtab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 30px;
  color: #fff; font-size: .87rem; font-weight: 600;
  transition: background .15s;
}
.rtab:hover { background: rgba(255,255,255,.28); }

/* Sections */
.rechner-section { padding: 56px 0; border-top: 1px solid var(--border); }
.rechner-section--alt { background: #f8fafc; }

/* Section header */
.rs-header {
  display: flex; align-items: flex-start; gap: 18px;
  padding-left: 20px;
  border-left: 4px solid var(--rs-color, var(--accent));
  margin-bottom: 36px;
}
.rs-icon {
  font-size: 1.7rem;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; flex-shrink: 0;
}
.rs-header h2 { font-size: 1.4rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.rs-desc { font-size: .92rem; color: var(--text-2); line-height: 1.55; }

/* 2-col body */
.rs-body { display: grid; grid-template-columns: 3fr 2fr; gap: 36px; align-items: start; }
@media (max-width: 800px) { .rs-body { grid-template-columns: 1fr; } }

/* Form hints */
.form-hint { display: block; font-size: .74rem; font-weight: 400; color: var(--text-3); margin-top: 3px; }

/* Links below form */
.rs-links { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.rs-link-btn {
  display: inline-block; padding: 10px 18px;
  background: var(--btn-bg, var(--light));
  color: var(--btn-color, var(--accent));
  border-radius: 8px; font-size: .87rem; font-weight: 700;
  transition: opacity .15s; text-align: center;
}
.rs-link-btn:hover { opacity: .82; }
.rs-link-btn--outline { background: transparent; border: 1.5px solid var(--border); color: var(--text-2); }
.rs-link-btn--outline:hover { border-color: var(--accent); color: var(--accent); }

/* Result panel */
.rs-result-panel { position: sticky; top: 88px; }
.rs-result { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; min-height: 200px; }
.rs-result-header { background: var(--rs-color, var(--accent)); color: #fff; font-size: .8rem; font-weight: 700; padding: 10px 14px; letter-spacing: .05em; text-transform: uppercase; }
.rs-placeholder { display: flex; align-items: center; justify-content: center; min-height: 180px; color: var(--text-3); font-size: .9rem; text-align: center; padding: 24px; }

/* Extra result states */
.result-positive { background: #f0fdf4; }
.result-positive strong { color: #16a34a; }
.result-negative { background: #fff7ed; }
.result-negative strong { color: #ea580c; }

/* Rechner FAQ */
.rechner-faq { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--border); }
.rechner-faq h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 20px; }
.rechner-faq .faq-accordion { max-width: 780px; }

/* ---- Vergleich CTA Grid (/rechner) ---- */
.section-vergleich-ctas { padding: 56px 0; background: #f8fafc; border-top: 1px solid var(--border); }
.vergleich-cta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
@media (max-width: 640px) { .vergleich-cta-grid { grid-template-columns: 1fr; } }
.vergleich-cta-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 20px;
  transition: box-shadow .18s, border-color .18s;
  color: var(--text);
}
.vergleich-cta-card:hover { box-shadow: var(--shadow); border-color: var(--accent); }
.vc-icon { font-size: 2rem; flex-shrink: 0; }
.vc-body { flex: 1; }
.vc-body strong { display: block; font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.vc-body span { font-size: .87rem; color: var(--text-2); }
.vc-arrow { font-size: 1.1rem; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ---- Sidebar Vergleiche ---- */
.sidebar-vgl-list { display: flex; flex-direction: column; gap: 8px; }
.sidebar-vgl-list li { list-style: none; }
.sidebar-vgl-list a { font-size: .88rem; color: var(--text-2); font-weight: 500; transition: color .15s; }
.sidebar-vgl-list a:hover { color: var(--accent); }

/* ---- Category Vergleich Banner ---- */
.cat-vergleich-banner { background: var(--light); border-bottom: 1px solid var(--border); padding: 14px 0; }
.cat-vgl-inner {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); transition: box-shadow .18s, border-color .18s;
}
.cat-vgl-inner:hover { box-shadow: var(--shadow); border-color: var(--accent); }
.cat-vgl-icon { font-size: 1.5rem; flex-shrink: 0; }
.cat-vgl-text { flex: 1; }
.cat-vgl-text strong { display: block; font-size: .97rem; font-weight: 700; margin-bottom: 2px; }
.cat-vgl-text span { font-size: .84rem; color: var(--text-2); }
.cat-vgl-arrow { font-size: .87rem; font-weight: 700; color: var(--accent); white-space: nowrap; flex-shrink: 0; }
@media (max-width: 560px) { .cat-vgl-arrow { display: none; } }

/* ============================================================
   VERGLEICH-SEITEN (Check24-Style)
   ============================================================ */

/* Hero */
.vp-hero {
  background: linear-gradient(135deg, #1a56db 0%, #2563eb 60%, #3b82f6 100%);
  color: #fff;
  padding: 52px 0 44px;
}
.vp-hero .breadcrumb { color: rgba(255,255,255,.7); margin-bottom: 18px; }
.vp-hero .breadcrumb a { color: rgba(255,255,255,.85); }
.vp-hero .breadcrumb a:hover { color: #fff; }
.vp-hero .breadcrumb span { color: rgba(255,255,255,.7); }
.vp-hero h1 { font-size: clamp(1.55rem, 4vw, 2.3rem); font-weight: 800; line-height: 1.2; margin-bottom: 14px; color: #fff; }
.vp-hero-sub { font-size: 1.05rem; color: rgba(255,255,255,.88); line-height: 1.6; max-width: 680px; margin-bottom: 20px; }
.vp-trust { display: flex; flex-wrap: wrap; gap: 12px; }
.vp-trust span { font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.9); background: rgba(255,255,255,.15); border-radius: 20px; padding: 5px 13px; }

/* Intro */
.vp-intro { padding: 48px 0 0; }
.vp-text-wrap { max-width: 820px; }
.vp-text-wrap h2 { font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.vp-text-wrap h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 12px; margin-top: 24px; }
.vp-text-wrap p { font-size: .95rem; color: var(--text-2); line-height: 1.8; margin-bottom: 14px; }
.vp-text-wrap p:last-child { margin-bottom: 0; }
.vp-text-wrap strong { color: var(--text); }

/* Tool / Iframe */
.vp-tool { padding: 44px 0 0; }
.vp-tool-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 20px;
  overflow: hidden;
}
.vp-tool-title { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 20px; }

/* Content below tool */
.vp-content { padding: 44px 0 0; }

/* FAQ */
.vp-faq { padding: 44px 0 56px; }
.faq-accordion { margin-top: 24px; display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%; text-align: left;
  padding: 18px 52px 18px 20px;
  font-size: .97rem; font-weight: 600; color: var(--text);
  background: var(--white);
  position: relative; transition: background .15s;
  cursor: pointer;
}
.faq-q:hover { background: var(--light); }
.faq-q::after {
  content: '+';
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; font-weight: 400; color: var(--accent);
  transition: transform .2s;
}
.faq-item.open .faq-q { background: var(--light); }
.faq-item.open .faq-q::after { content: '\2212'; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .2s;
  background: #fafbff;
  padding: 0 20px;
}
.faq-item.open .faq-a { max-height: 400px; padding: 16px 20px 18px; }
.faq-a p { font-size: .92rem; color: var(--text-2); line-height: 1.75; margin: 0; }

/* Related posts on vergleich pages */
.vp-related { padding: 0 0 56px; }
.vp-related h2 { font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 24px; }

/* Secondary button */
.btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 8px;
  font-size: .93rem; font-weight: 600;
  transition: background .15s, color .15s;
  cursor: pointer;
}
.btn-secondary:hover { background: var(--accent); color: #fff; }

/* ============================================================
   BLOG PAGE — Hero Search + Highlights
   ============================================================ */
.blog-hero { background: linear-gradient(135deg, #1e3a5f 0%, #1a56db 100%); color: #fff; padding: 2.5rem 0 2rem; }
.blog-hero .container { display: flex; flex-direction: column; gap: 1.25rem; }
.blog-hero-text h1 { font-size: 1.8rem; font-weight: 800; color: #fff; margin: 0 0 .4rem; }
.blog-hero-text p { color: rgba(255,255,255,.8); font-size: 1rem; margin: 0; }
.blog-hero-search {
  display: flex; align-items: center; gap: .5rem;
  background: #fff; border-radius: 10px; padding: .5rem .75rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.blog-hero-search input {
  flex: 1; border: none; outline: none; font-size: .97rem; color: #1e293b;
  background: transparent; min-width: 0;
}
.blog-hero-search button {
  background: var(--accent); color: #fff; border: none; border-radius: 7px;
  padding: .45rem 1.1rem; font-size: .9rem; font-weight: 600; cursor: pointer;
  white-space: nowrap; transition: background .15s;
}
.blog-hero-search button:hover { background: var(--accent-2); }

.blog-highlights { padding: 2rem 0 0; }
.blog-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.highlight-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  overflow: hidden; text-decoration: none;
  transition: box-shadow .15s, transform .15s;
}
.highlight-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.highlight-img { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.highlight-img img { width: 100%; height: 100%; object-fit: cover; }
.highlight-body { padding: .85rem 1rem; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.highlight-body h3 { font-size: .93rem; font-weight: 700; color: #1e293b; margin: 0 0 .5rem; line-height: 1.35; }
.highlight-read { font-size: .82rem; color: var(--accent); font-weight: 600; }

.blog-search-result-info {
  padding: .75rem 1rem; background: #eff6ff; border-radius: 8px;
  font-size: .93rem; color: #1e40af; margin-bottom: 1rem;
}
.search-clear { color: #64748b; text-decoration: none; font-size: .88rem; }
.search-clear:hover { color: #ef4444; }
.blog-search-wrap--inline { margin-bottom: 1rem; }

@media (max-width: 900px) { .blog-highlights-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) {
  .blog-highlights-grid { grid-template-columns: 1fr; }
  .blog-hero-text h1 { font-size: 1.4rem; }
  .blog-hero-search { flex-wrap: wrap; }
  .blog-hero-search button { width: 100%; padding: .65rem 1rem; }
}

/* ============================================================
   POST META — prominenter Update-Badge
   ============================================================ */
.meta-updated {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: #dcfce7;
  color: #15803d;
  font-size: .78rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 20px;
  border: 1px solid #bbf7d0;
}
.meta-updated::before {
  content: '✓';
  font-size: .75rem;
}

/* ============================================================
   POST DISCLAIMER (Legal / Tax)
   ============================================================ */
.post-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .9rem 1.1rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  font-size: .88rem;
  line-height: 1.6;
}
.post-disclaimer--legal {
  background: #eff6ff;
  border-left: 3px solid #3b82f6;
  color: #1e40af;
}
.post-disclaimer--tax {
  background: #f0fdf4;
  border-left: 3px solid #22c55e;
  color: #15803d;
}
.post-disclaimer p { margin: 0; }
.post-disclaimer-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: .1rem; }

/* ============================================================
   CATEGORY INTRO
   ============================================================ */
.cat-intro {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 2.5rem 0 2rem;
}
.cat-intro-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}
.cat-intro-text h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 .85rem;
  line-height: 1.35;
}
.cat-intro-text p {
  font-size: .97rem;
  color: #475569;
  line-height: 1.7;
  margin: 0 0 .75rem;
}
.cat-topics {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1rem;
}
.cat-topic-pill {
  display: inline-block;
  padding: .3rem .75rem;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--pill-color, #1a56db);
  background: color-mix(in srgb, var(--pill-color, #1a56db) 10%, white);
  border: 1px solid color-mix(in srgb, var(--pill-color, #1a56db) 20%, white);
}
.cat-intro-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cat-intro-cta-btn {
  display: flex;
  align-items: center;
  gap: .85rem;
  background: #fff;
  border: 2px solid color-mix(in srgb, var(--cta-color, #1a56db) 30%, white);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.cat-intro-cta-btn:hover {
  border-color: var(--cta-color, #1a56db);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--cta-color, #1a56db) 15%, transparent);
}
.cat-intro-cta-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.cat-intro-cta-text {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  flex: 1;
}
.cat-intro-cta-text strong {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--cta-color, #1a56db);
}
.cat-intro-cta-text span {
  font-size: .88rem;
  color: #1e293b;
  font-weight: 500;
  line-height: 1.35;
}
.cat-intro-cta-arrow {
  font-size: 1.1rem;
  color: var(--cta-color, #1a56db);
  flex-shrink: 0;
}
.cat-intro-stats {
  display: flex;
  gap: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}
.cat-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .75rem .5rem;
  border-right: 1px solid #e2e8f0;
}
.cat-stat:last-child { border-right: none; }
.cat-stat-num {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1;
}
.cat-stat-label {
  font-size: .72rem;
  color: #94a3b8;
  margin-top: .2rem;
  font-weight: 500;
}
@media (max-width: 800px) {
  .cat-intro-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .cat-intro-cta { flex-direction: row; flex-wrap: wrap; }
  .cat-intro-cta-btn { flex: 1; min-width: 240px; }
}
