/* ============================================================
   lebeninschweiz.ch — Article System v6
   Light · Full-width hero photo · 3D card borders · Red+Gold
   ============================================================ */

/* ⛔⛔⛔ REGLA GRABADA A FUEGO — HEADING COLORS ⛔⛔⛔
   global.css define --text-primary: #e8ecf1 (CASI BLANCO) en :root.
   TODOS los h3/h4 heredan ese color clarísimo por defecto.
   Sobre fondo #fff de cards, #e8ecf1 es INVISIBLE.

   => CUALQUIER h3/h4 dentro de un componente custom DEBE tener
      color explícito con !important Y prefijo .page-article.

   Formato obligatorio:
   .page-article .mi-componente h3,
   .page-article .mi-componente h4 { color: #111827 !important; }

   Ver memoria: [[lebeninschweiz-article-heading-colors-rule]]
   ⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔ */

.page-article { background: #f4f5f7; }

/* Top bar — dark for readability on light article pages */
.page-article .top-bar { background: #111827; color: #d1d5db; border-bottom-color: rgba(255,255,255,0.06); }
.page-article .top-bar-sep { color: rgba(255,255,255,0.12); }

/* ============================================================
   ARTICLE HERO IMAGE — full width, no text
   ============================================================ */
.article-hero-img {
  margin-top: var(--header-height);
  width: 100%; height: 420px; overflow: hidden;
}
.article-hero-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center center;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* ============================================================
   ARTICLE HEADER — white bg below image
   ============================================================ */
.article-header {
  background: #fff; border-bottom: 1px solid #e5e7eb;
  padding-block: var(--space-2xl);
}
.article-header-inner {
  max-width: 920px; margin-inline: auto; padding-inline: var(--space-lg);
}
.article-category-tag {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  margin-bottom: var(--space-md);
}
.article-header h1 {
  font-size: 1.9rem; font-weight: 700; line-height: 1.2;
  color: #111827; margin-bottom: var(--space-md); letter-spacing: -0.02em;
}
.article-hero-subtitle {
  font-size: 1rem; color: #6b7280;
  line-height: 1.6; margin-bottom: var(--space-lg); max-width: 600px;
}
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg);
  padding-top: var(--space-md); border-top: 1px solid #f3f4f6;
  font-size: 0.8rem; color: #9ca3af;
}
.article-meta-item {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 500;
}
.article-meta-item i { font-size: 0.9em; }
.article-meta-item--date { background: #fef2f2; color: #b91c1c; }
.article-meta-item--time { background: #fefce8; color: #92400e; }
.article-meta-item--check { background: #ecfdf5; color: #065f46; }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  display: flex; align-items: center; gap: var(--space-sm);
  font-size: 0.78rem; color: #9ca3af;
  margin-bottom: var(--space-md); flex-wrap: wrap;
}
.breadcrumbs a { color: #6b7280; text-decoration: none; }
.breadcrumbs a:hover { color: #dc2626; }
.breadcrumbs .sep { color: #d1d5db; }

/* ============================================================
   CONTENT WRAPPER
   ============================================================ */
.article-content-wrap { background: #f4f5f7; padding-top: var(--space-2xl); padding-bottom: var(--space-4xl); }
.article-body { max-width: 920px; margin-inline: auto; padding-inline: var(--space-lg); }

/* ============================================================
   TABLE OF CONTENTS — Journey Card Premium
   ============================================================ */
.toc {
  background: #fff; border: 1px solid #d1d5db; border-radius: 20px;
  padding: var(--space-xl) var(--space-2xl); margin-bottom: var(--space-2xl);
  box-shadow: 0 4px 24px rgba(0,0,0,0.05), 0 1px 0 rgba(0,0,0,0.02);
}
.toc h3 {
  display: inline-block;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--red);
  background: rgba(220,38,38,0.15); padding: 5px 14px; border-radius: 50px;
  margin: 0 0 var(--space-xs);
}
.toc .toc-subtitle { font-size: 0.82rem; color: #6b7280; margin-bottom: var(--space-xl); display: block; }
.toc ol {
  list-style: none; padding-left: 0; margin-bottom: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px var(--space-xl);
  counter-reset: toc-counter;
}
.toc ol li { counter-increment: toc-counter; }
.toc ol a {
  display: flex; align-items: center; gap: 0; padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.86rem; color: #4b5563; text-decoration: none;
  transition: all 0.2s ease; position: relative;
}
.toc ol a::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700;
  color: #9ca3af; width: 42px; height: 42px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #e5e7eb; border-radius: 12px; margin-right: 12px;
  transition: all 0.2s ease;
}
.toc ol a::after {
  content: '→'; margin-left: auto; padding-left: 8px;
  color: var(--red); opacity: 0; transform: translateX(-4px);
  transition: all 0.2s ease; font-size: 1rem;
}
.toc ol a:hover { color: #111827; }
.toc ol a:hover::before { color: var(--red); border-color: var(--red); }
.toc ol a:hover::after { opacity: 1; transform: translateX(0); }

/* Mobile accordion toggle */
.toc-toggle { display: none; }
@media (max-width: 768px) {
  .toc { padding: var(--space-lg); }
  .toc ol { grid-template-columns: 1fr; display: none; }
  .toc.open ol { display: grid; }
  .toc-toggle {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; background: none; border: none; cursor: pointer;
    font-size: 0.82rem; font-weight: 600; color: #111827; padding: 0;
  }
  .toc-toggle svg { transition: transform 0.2s; }
  .toc.open .toc-toggle svg { transform: rotate(180deg); }
  .toc .toc-subtitle { margin-bottom: 0; }
  .toc.open .toc-subtitle { margin-bottom: var(--space-xl); }
  .toc h3 { margin-bottom: var(--space-sm); }
}

/* ============================================================
   QUICK SUMMARY — stat cards row
   ============================================================ */
.quick-summary {
  margin-bottom: var(--space-2xl);
}
.quick-summary h3 {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: #9ca3af;
  margin-bottom: var(--space-md);
}
.quick-summary ul {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md); padding-left: 0;
}
.quick-summary li {
  background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 14px;
  padding: var(--space-lg) var(--space-xl);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07), 0 1px 0 rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.02);
  font-size: 0.84rem; color: #4b5563;
  line-height: 1.55; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100px;
  transition: all 0.2s ease;
  border-top: 3px solid transparent;
}
.quick-summary li:nth-child(1) { border-top-color: #dc2626; }
.quick-summary li:nth-child(2) { border-top-color: #dc2626; }
.quick-summary li:nth-child(3) { border-top-color: #111827; }
.quick-summary li:nth-child(4) { border-top-color: #b45309; }
.quick-summary li:nth-child(5) { border-top-color: #dc2626; }
.quick-summary li:nth-child(6) { border-top-color: #b45309; }
.quick-summary li:nth-child(7) { border-top-color: #111827; }
.quick-summary li:nth-child(8) { border-top-color: #b45309; }

/* 7 items exactos → centrar el único ítem de la última fila */
.quick-summary li:nth-child(7):last-child {
  grid-column: 2 / span 1;
}
.quick-summary li:hover {
  background: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1), 0 1px 0 rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.03);
  transform: translateY(-2px);
}
.quick-summary li strong { color: #111827; }
.quick-summary li .qs-num {
  font-family: var(--font-heading);
  font-size: 1.25rem; font-weight: 700; color: #dc2626;
  margin-bottom: 2px; line-height: 1.1;
}
.quick-summary li .qs-num--gold { color: #b45309; }
.quick-summary li .qs-num--dark { color: #111827; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.article-body h2 {
  font-size: 1.4rem; font-weight: 700; color: #111827;
  margin-top: var(--space-3xl); margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs); border-bottom: 1px solid #e5e7eb;
  scroll-margin-top: calc(var(--header-height) + 40px);
}
.article-body h2:first-of-type { margin-top: 0; }
.article-body h3 { font-size: 1.08rem; font-weight: 600; color: #1f2937; margin-top: var(--space-2xl); margin-bottom: var(--space-sm); }
.article-body p { font-size: 0.98rem; line-height: 1.8; color: #4b5563; margin-bottom: var(--space-lg); }
.article-body strong { color: #111827; font-weight: 600; }
.article-body .highlight-red { color: #dc2626; font-weight: 600; }
.article-body .highlight-gold { color: #b45309; font-weight: 600; }
.article-body .highlight-blue { color: #374151; font-weight: 600; }
.article-body a { color: #dc2626; text-decoration: none; }
.article-body a:hover { text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { margin-bottom: var(--space-lg); padding-left: var(--space-xl); }
.article-body ul li, .article-body ol li { font-size: 0.98rem; line-height: 1.8; color: #4b5563; margin-bottom: 5px; padding-left: 3px; }
.article-body ul li::marker { color: #dc2626; }
.article-body ol li::marker { color: #6b7280; font-weight: 600; }

/* ============================================================
   WEITERLESEN
   ============================================================ */
.weiterlesen {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 600; color: #dc2626;
  text-decoration: none; padding: 5px 0; transition: gap 0.15s;
}
.weiterlesen:hover { gap: 10px; }
.weiterlesen::after { content: '\2192'; }

/* ============================================================
   DATA TABLE — white with dark border, 3D shadow
   ============================================================ */
.data-table-wrap {
  margin-block: var(--space-2xl);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-radius: 10px; border: 1px solid #d1d5db;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07), 0 1px 0 rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.02);
}
.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table thead th {
  background: #f9fafb; padding: 0.75em 1em; text-align: left;
  font-family: var(--font-heading); font-weight: 600;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: #6b7280; border-bottom: 2px solid #e5e7eb; white-space: nowrap;
}
.data-table tbody td {
  padding: 0.7em 1em; border-bottom: 1px solid #f3f4f6;
  color: #4b5563; white-space: nowrap;
}
.data-table tbody tr:nth-child(even) td { background: #fafbfc; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: #fef2f2; }
.data-table tbody td:first-child { font-weight: 500; color: #111827; }
.data-table .td-highlight { font-weight: 700; color: #dc2626 !important; font-family: var(--font-heading); }
.data-table .td-positive { color: #059669 !important; font-weight: 600; }

/* ============================================================
   INFO CARDS — white with dark border, 3D relief
   ============================================================ */
.info-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); margin-block: var(--space-2xl); }

/* Wenn nur 2 Karten → 2 Spalten, kein leerer Platz */
.info-card-grid:has(> :nth-child(2):last-child) {
  grid-template-columns: repeat(2, 1fr);
}

/* Letzte Karte allein in der Reihe (4 oder 7 Karten) → volle Breite horizontal */
.info-card-grid > :nth-child(4):nth-last-child(1),
.info-card-grid > :nth-child(7):nth-last-child(1) {
  grid-column: 1 / -1;
  display: flex; flex-direction: row; align-items: center; gap: var(--space-lg);
  text-align: left; padding: var(--space-lg) var(--space-xl);
}
.info-card-grid > :nth-child(4):nth-last-child(1) .info-card-icon,
.info-card-grid > :nth-child(7):nth-last-child(1) .info-card-icon {
  flex-shrink: 0; margin-bottom: 0;
}

.info-card {
  background: #fff; border: 1px solid #d1d5db; border-radius: 12px;
  padding: var(--space-xl);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07), 0 1px 0 rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.02);
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0; transform: translateY(16px);
}
.info-card.revealed { opacity: 1; transform: translateY(0); }
.info-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.1), 0 1px 0 rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.03); transform: translateY(-3px); }
.info-card-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px; margin-bottom: var(--space-md); font-size: 1.15rem; }
.info-card--red .info-card-icon { background: #fecaca; color: #b91c1c; }
.info-card--blue .info-card-icon { background: #e5e7eb; color: #374151; }
.info-card--gold .info-card-icon { background: #fde68a; color: #92400e; }
.info-card--green .info-card-icon { background: #a7f3d0; color: #065f46; }
.info-card h4 { font-size: 0.92rem; font-weight: 600; color: #111827; margin-bottom: 4px; }
.info-card p { font-size: 0.84rem; color: #6b7280; line-height: 1.5; margin-bottom: 0; }

/* ============================================================
   BUDGET CARDS — white 3D
   ============================================================ */
.budget-card {
  background: #fff; border: 1px solid #d1d5db; border-radius: 12px;
  padding: var(--space-xl) var(--space-2xl); margin-bottom: var(--space-lg);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07), 0 1px 0 rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.02);
  opacity: 0; transform: translateY(16px);
}
.budget-card.revealed { opacity: 1; transform: translateY(0); }
.budget-card-accent {
  display: inline-block; padding: 3px 12px; border-radius: 20px;
  font-family: var(--font-heading); font-size: 0.7rem;
  font-weight: 600; letter-spacing: 0.05em; margin-bottom: var(--space-md);
}
.budget-card-accent--red { background: #fef2f2; color: #dc2626; }
.budget-card-accent--blue { background: #f3f4f6; color: #4b5563; }
.budget-card-accent--gold { background: #fefce8; color: #b45309; }
.budget-card h3 { font-size: 1.02rem; font-weight: 600; color: #111827; margin-top: 0; margin-bottom: var(--space-lg); }
.budget-card .budget-table { width: 100%; border-collapse: collapse; margin-bottom: var(--space-md); }
.budget-card .budget-table td { padding: 0.5em 0; font-size: 0.88rem; color: #4b5563; border-bottom: 1px solid #f3f4f6; }
.budget-card .budget-table td:last-child { text-align: right; font-family: var(--font-heading); font-weight: 600; color: #111827; }
.budget-card .budget-total td { border-top: 2px solid #e5e7eb; font-weight: 700; font-size: 0.95rem; color: #dc2626; }

/* ============================================================
   HIGHLIGHT BOX
   ============================================================ */
.highlight-box {
  background: #fff; border: 1px solid #e5e7eb; border-left: 3px solid #dc2626;
  border-radius: 0 8px 8px 0; padding: var(--space-md) var(--space-lg);
  margin-block: var(--space-xl);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07), 0 1px 0 rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.02);
}
.highlight-box p { margin-bottom: 0; font-weight: 500; color: #111827; font-size: 0.92rem; }
.highlight-box--gold { border-left-color: #b45309; }
.highlight-box--blue { border-left-color: #9ca3af; }

/* ============================================================
   VS GRID
   ============================================================ */
.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); margin-block: var(--space-2xl); }
.vs-card {
  background: #fff; border: 1px solid #d1d5db; border-radius: 12px;
  padding: var(--space-xl);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07), 0 1px 0 rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.02);
}
.vs-card--ch { border-top: 3px solid #dc2626; }
.vs-card--de { border-top: 3px solid #b45309; }
.vs-card h4 { font-size: 0.98rem; font-weight: 600; color: #111827; margin-bottom: var(--space-md); display: flex; align-items: center; gap: 8px; }
.vs-card ul { padding-left: 0; margin-bottom: 0; }
.vs-card ul li { display: flex; justify-content: space-between; padding: 0.42em 0; border-bottom: 1px solid #f3f4f6; font-size: 0.86rem; color: #4b5563; }
.vs-card ul li:last-child { border-bottom: none; }

/* ============================================================
   TIPS LIST
   ============================================================ */
.tips-list { counter-reset: tip; margin-block: var(--space-2xl); }
.tips-list li {
  counter-increment: tip; display: flex; gap: var(--space-md);
  padding: var(--space-md) 0; border-bottom: 1px solid #e5e7eb;
  font-size: 0.93rem; line-height: 1.7; color: #4b5563;
}
.tips-list li::before {
  content: counter(tip); width: 28px; height: 28px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #fef2f2; color: #dc2626;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.78rem;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { margin-block: var(--space-2xl); }
.faq-item {
  border: 1px solid #e5e7eb; border-radius: 10px; margin-bottom: 6px;
  overflow: hidden; background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07), 0 1px 0 rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.02);
  transition: all 0.2s ease;
}
.faq-item:hover { border-color: #d1d5db; }
.faq-item.open { border-color: #dc2626; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-md) var(--space-lg); background: none; border: none;
  font-family: var(--font-heading); font-weight: 600;
  font-size: 0.92rem; color: #111827; text-align: left; cursor: pointer; gap: var(--space-md);
}
.faq-question svg { width: 16px; height: 16px; flex-shrink: 0; color: #9ca3af; transition: transform 0.2s; }
.faq-item.open .faq-question svg { transform: rotate(45deg); color: #dc2626; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s; }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner { padding: 0 var(--space-lg) var(--space-lg); font-size: 0.87rem; color: #4b5563; line-height: 1.7; }

/* ============================================================
   SOURCES BOX
   ============================================================ */
.sources-box {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; border-left: 3px solid #d1c4a5;
  padding: var(--space-lg) var(--space-xl); margin-top: var(--space-3xl);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07), 0 1px 0 rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.02);
}
.sources-box h3 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #b45309; margin-top: 0; margin-bottom: var(--space-sm); }
.sources-box ul li { font-size: 0.8rem; color: #6b7280; margin-bottom: 2px; }
.sources-box a { color: #dc2626; }

/* ============================================================
   CTA CARD
   ============================================================ */
.article-cta {
  background: linear-gradient(135deg, #fef2f2, #fefce8);
  border: 1px solid #fecaca; border-radius: 14px;
  padding: var(--space-2xl); margin-block: var(--space-3xl); text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07), 0 1px 0 rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.02);
}
.article-cta h3 { font-size: 1.1rem; font-weight: 700; color: #111827; margin-top: 0; margin-bottom: 6px; }
.article-cta p { color: #6b7280; margin-bottom: var(--space-lg); font-size: 0.92rem; }
.article-cta-form { display: flex; gap: 10px; max-width: 440px; margin-inline: auto; }
.article-cta-form input { flex: 1; padding: 0.7em 1.2em; background: #fff; border: 1px solid #d1d5db; border-radius: 8px; color: #111827; font-size: 0.88rem; }
.article-cta-form input:focus { border-color: #dc2626; outline: none; }

/* ============================================================
   RELATED ARTICLES
   ============================================================ */
.related-section { max-width: 920px; margin-inline: auto; padding-inline: var(--space-lg); padding-bottom: var(--space-4xl); }
.related-section h2 { font-size: 1.2rem; text-align: center; margin-bottom: var(--space-xl); color: #111827; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.related-card {
  background: #fff; border: 1px solid #d1d5db; border-radius: 12px;
  padding: var(--space-lg); text-decoration: none; display: block;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07), 0 1px 0 rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.02);
  transition: all 0.2s;
}
.related-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.1); transform: translateY(-3px); }
.related-card .tag { margin-bottom: var(--space-sm); }
.related-card h4 { font-size: 0.87rem; font-weight: 600; line-height: 1.4; color: #111827; }

/* ============================================================
   SHARE BAR
   ============================================================ */
.share-bar {
  max-width: 920px; margin-inline: auto; padding-inline: var(--space-lg);
  margin-top: var(--space-2xl);
  text-align: center;
}
.share-bar h4 {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: #9ca3af; margin-bottom: var(--space-md);
}
.share-links {
  display: flex; justify-content: center; gap: var(--space-sm); flex-wrap: wrap;
}
.share-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 10px;
  font-size: 0.84rem; font-weight: 500; color: #4b5563; text-decoration: none;
  background: #fff; border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.15s ease;
}
.share-link:hover { border-color: #d1d5db; box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateY(-2px); }
.share-link i { font-size: 1.1em; }
.share-link--x:hover { color: #000; }
.share-link--fb:hover { color: #1877f2; }
.share-link--wa:hover { color: #25d366; }
.share-link--li:hover { color: #0a66c2; }
.share-link--mail:hover { color: #dc2626; }
.share-link--copy:hover { color: #6b7280; }
.share-link--copy.copied { color: #059669; border-color: #059669; }

/* ============================================================
   AUTHOR BOX
   ============================================================ */
.author-box {
  max-width: 920px; margin-inline: auto; padding-inline: var(--space-lg);
  background: #fff; border: 1px solid #e5e7eb; border-radius: 16px;
  padding: var(--space-xl);
  display: flex; gap: var(--space-lg); align-items: center;
  margin-top: var(--space-3xl); margin-bottom: var(--space-2xl);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07), 0 1px 0 rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.02);
}
.author-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #dc2626, #b45309);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700;
  font-size: 1.2rem; color: #fff; flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(220,38,38,0.25);
}
.author-info h4 { font-size: 0.95rem; font-weight: 700; color: #111827; margin-bottom: 2px; }
.author-info .author-role { font-size: 0.75rem; font-weight: 500; color: #dc2626; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.author-info p { font-size: 0.84rem; color: #6b7280; margin-bottom: 0; line-height: 1.5; }
.author-meta-row { display: flex; gap: var(--space-lg); margin-top: 8px; }
.author-meta-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; color: #6b7280; }
.author-meta-pill i { color: #059669; font-size: 0.9em; }

/* ============================================================
   BTT — solid red, always visible
   ============================================================ */
.btt-btn {
  position: fixed; bottom: 26px; right: 26px; z-index: 99999;
  width: 42px; height: 42px; border-radius: 50%;
  background: #dc2626; color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(220,38,38,0.5);
  opacity: 0.85; transform: translateY(0);
  transition: all 0.2s;
}
.btt-btn.visible { opacity: 1; box-shadow: 0 4px 18px rgba(220,38,38,0.5); }
.btt-btn:hover { opacity: 1; transform: translateY(-3px); box-shadow: 0 6px 24px rgba(220,38,38,0.6); }
.btt-btn svg { width: 18px; height: 18px; }

/* ============================================================
   KEY TAKEAWAY CARD — "Auf einen Blick"
   ============================================================ */
.key-takeaway {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: var(--space-2xl);
  margin-block: var(--space-3xl);
  box-shadow: 0 4px 24px rgba(0,0,0,0.07), 0 1px 0 rgba(0,0,0,0.02);
  text-align: center;
}
.key-takeaway h3 {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(220,38,38,0.08);
  color: #dc2626;
  border: 1px solid rgba(220,38,38,0.15);
  padding: 0.4em 1.2em;
  border-radius: 50px;
  margin-top: 0; margin-bottom: var(--space-xl);
}
.key-takeaway-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
.key-stat {
  background: linear-gradient(160deg, #23262f, #1e2129);
  border: 1px solid #2e313a;
  border-radius: 14px;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
  border-top: 3px solid transparent;
}
.key-stat:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  transform: translateY(-2px);
  border-color: #3a3d47;
}
.key-stat:nth-child(1) { border-top-color: #dc2626; }
.key-stat:nth-child(2) { border-top-color: #b45309; }
.key-stat:nth-child(3) { border-top-color: #10b981; }
.key-stat:nth-child(4) { border-top-color: #dc2626; }
.key-stat-icon {
  width: 42px; height: 42px;
  margin-inline: auto; margin-bottom: var(--space-sm);
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; font-size: 1.25rem;
}
.key-stat-icon--red   { background: rgba(220,38,38,0.18); color: #f87171; }
.key-stat-icon--gold  { background: rgba(251,191,36,0.15);  color: #fbbf24; }
.key-stat-icon--green { background: rgba(52,211,153,0.15); color: #34d399; }
.key-stat-icon--blue  { background: rgba(96,165,250,0.15); color: #93c5fd; }
.key-stat-value {
  font-family: var(--font-heading);
  font-size: 1.35rem; font-weight: 700;
  color: #f3f4f6; margin-bottom: 3px; line-height: 1.15;
  word-break: break-word;
}
.key-stat-label {
  font-size: 0.75rem; color: #9ca3af; line-height: 1.4;
}

/* Responsive: 2 cols tablet / 1 col mobile */
@media (max-width: 1024px) {
  .key-takeaway-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .key-takeaway-grid { grid-template-columns: 1fr; }
  .key-takeaway { padding: var(--space-lg); }
  .key-stat { padding: var(--space-md); }
}

/* ============================================================
   SECTION IMAGE — full-width photo between sections
   ============================================================ */
.section-img {
  margin-block: var(--space-2xl);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07), 0 1px 0 rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.02);
}
.section-img img {
  width: 100%; display: block; object-fit: cover;
  max-height: 380px;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.article-reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.article-reveal.revealed { opacity: 1; transform: translateY(0); }



/* ============================================================
   INFO BOX — Warning / Tip / Swiss (custom article boxes)
   ============================================================ */
.info-box {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: var(--space-lg) var(--space-xl);
  margin-block: var(--space-xl);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07), 0 1px 0 rgba(0,0,0,0.04);
}
.info-box h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #111827 !important;
  margin-top: 0;
  margin-bottom: 6px;
}
.info-box p {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.65;
  margin-bottom: 0;
}

/* warning variant */
.info-box--warning {
  border-left: 4px solid #f59e0b;
  background: #fffbeb;
}
.info-box--warning h4 {
  color: #92400e !important;
}

/* tip variant */
.info-box--tip {
  border-left: 4px solid #10b981;
  background: #ecfdf5;
}
.info-box--tip h4 {
  color: #065f46 !important;
}

/* swiss variant */
.info-box--swiss {
  border-left: 4px solid #dc2626;
  background: #fef2f2;
}
.info-box--swiss h4 {
  color: #991b1b !important;
}

/* ============================================================
   COMPARISON BLOCK — Erwartung vs Realität / DE vs CH
   ============================================================ */
.comparison-block {
  margin-block: var(--space-2xl);
}
.comparison-block h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827 !important;
  margin-top: 0;
  margin-bottom: var(--space-lg);
  text-align: center;
}
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}
.comparison-col {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: var(--space-xl);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07), 0 1px 0 rgba(0,0,0,0.04);
}
.comparison-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827 !important;
  margin-top: 0;
  margin-bottom: var(--space-md);
}
.comparison-col ul {
  padding-left: var(--space-lg);
  margin-bottom: 0;
}
.comparison-col ul li {
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 6px;
}
.comparison-expectation {
  border-top: 3px solid #10b981;
}
.comparison-reality {
  border-top: 3px solid #dc2626;
}

@media (max-width: 768px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   ARTICLE TABLE — Mentalitätsvergleich Deutschland vs Schweiz
   ============================================================ */
.article-table {
  width: 100%;
  border-collapse: collapse;
  margin-block: var(--space-xl);
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07), 0 1px 0 rgba(0,0,0,0.04);
}
.article-table thead th {
  background: #1f2937;
  color: #f9fafb !important;
  padding: 0.8em 1.2em;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
}
.article-table tbody td {
  padding: 0.75em 1.2em;
  font-size: 0.88rem;
  color: #4b5563;
  border-bottom: 1px solid #f3f4f6;
  line-height: 1.5;
}
.article-table tbody tr:last-child td {
  border-bottom: none;
}
.article-table tbody tr:nth-child(even) td {
  background: #fafbfc;
}
.article-table tbody tr:hover td {
  background: #fef2f2;
}
.article-table tbody td:first-child {
  font-weight: 600;
  color: #111827;
}

/* ============================================================
   JOURNEY TIMELINE — Emotionale Reise
   ============================================================ */
.journey-timeline {
  margin-block: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.journey-step {
  background: #fff;
  border: 1px solid #d1d5db;
  border-left: 4px solid #9ca3af;
  border-radius: 0 12px 12px 0;
  padding: var(--space-lg) var(--space-xl);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07), 0 1px 0 rgba(0,0,0,0.04);
}
.journey-step h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827 !important;
  margin-top: 0;
  margin-bottom: 4px;
}
.journey-step p {
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 0;
}
.journey-step--critical {
  border-left-color: #dc2626;
  background: #fef2f2;
}
.journey-step--critical h4 {
  color: #991b1b !important;
}
.journey-step--success {
  border-left-color: #10b981;
  background: #ecfdf5;
}
.journey-step--success h4 {
  color: #065f46 !important;
}

/* ============================================================
   STRATEGY CARDS — 10 bewährte Strategien
   ============================================================ */
.strategy-card {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07), 0 1px 0 rgba(0,0,0,0.04);
  border-left: 4px solid #dc2626;
  transition: all 0.2s ease;
}
.strategy-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.strategy-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #111827 !important;
  margin-top: 0;
  margin-bottom: 6px;
}
.strategy-card p {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.65;
  margin-bottom: 0;
}

/* ============================================================
   CHECKLIST BOX — 90-Tage-Plan
   ============================================================ */
.checklist-box {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07), 0 1px 0 rgba(0,0,0,0.04);
}
.checklist-box h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #111827 !important;
  margin-top: 0;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 8px;
}
.checklist-box ul {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}
.checklist-box ul li {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 6px;
  padding-left: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.checklist-box ul li input[type="checkbox"] {
  margin-top: 4px;
  flex-shrink: 0;
  accent-color: #dc2626;
}

/* ============================================================
   FAQ ANSWER INNER — ensure visible text
   ============================================================ */
.faq-answer p {
  padding: 0 var(--space-lg) var(--space-lg);
  font-size: 0.87rem;
  color: #4b5563;
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   RELATED CARD IMAGES
   ============================================================ */
.related-card-img {
  width: 100%;
  height: 140px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: var(--space-md);
}
.related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



/* === FORCE DARK HEADINGS INSIDE ALL CUSTOM COMPONENTS === */
.page-article .info-box h4,
.page-article .info-box--warning h4,
.page-article .info-box--tip h4,
.page-article .info-box--swiss h4,
.page-article .comparison-block h3,
.page-article .comparison-col h4,
.page-article .journey-step h4,
.page-article .journey-step--critical h4,
.page-article .journey-step--success h4,
.page-article .strategy-card h3,
.page-article .checklist-box h3 {
  color: #111827 !important;
}
.page-article .info-box--warning h4 { color: #92400e !important; }
.page-article .info-box--tip h4 { color: #065f46 !important; }
.page-article .info-box--swiss h4 { color: #991b1b !important; }
.page-article .journey-step--critical h4 { color: #991b1b !important; }
.page-article .journey-step--success h4 { color: #065f46 !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) { .info-card-grid { grid-template-columns: repeat(2, 1fr); } .info-card-grid > :nth-child(4):nth-last-child(1), .info-card-grid > :nth-child(7):nth-last-child(1) { grid-column: 1 / -1; display: flex; flex-direction: row; align-items: center; gap: var(--space-lg); text-align: left; } .related-grid { grid-template-columns: repeat(2, 1fr); } .toc ol { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  .article-hero { min-height: 320px; }
  .article-hero h1 { font-size: 1.5rem; }
  .article-body h2 { font-size: 1.25rem; }
  .quick-summary ul { grid-template-columns: 1fr; }
  .info-card-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .vs-grid { grid-template-columns: 1fr; }
  .budget-card { padding: var(--space-lg); }
  .article-cta-form { flex-direction: column; }
  .btt-btn { bottom: 16px !important; right: 14px !important; width: 44px !important; height: 44px !important; opacity:1 !important; display:flex !important; visibility:visible !important; pointer-events:auto !important; z-index:2147483647 !important; box-shadow:0 0 0 3px rgba(255,255,255,0.5), 0 4px 24px rgba(220,38,38,0.9) !important; }
  .btt-btn svg { width: 20px !important; height: 20px !important; }
  /* Prevent horizontal overflow on all article pages */
  .page-article { overflow-x: hidden !important; max-width: 100vw !important; }
}
@media (max-width: 480px) {
  .btt-btn { width: 42px !important; height: 42px !important; bottom: 14px !important; right: 10px !important; }
  .article-hero h1 { font-size: 1.35rem; }
  .article-body h2 { font-size: 1.15rem; }
  .article-body { padding-inline: var(--space-md); }
  .info-card-grid > :nth-child(4):nth-last-child(1),
  .info-card-grid > :nth-child(7):nth-last-child(1) {
    flex-direction: column; text-align: center;
  }
  .info-card-grid > :nth-child(4):nth-last-child(1) .info-card-icon,
  .info-card-grid > :nth-child(7):nth-last-child(1) .info-card-icon {
    margin-bottom: var(--space-sm);
  }
}

/* ============================================================
   INTERACTIVE CHECKLIST — .checklist-interactive
   Usage: <table class="data-table checklist-interactive">
          Each row: <tr class="cl-row"><td>Item</td><td class="cl-check"><span>☐</span></td></tr>
   JS in main.js auto-activates any table with this class.
   ============================================================ */
.page-article .checklist-interactive .cl-row { cursor: pointer; transition: background 0.15s; }
.page-article .checklist-interactive .cl-row:hover { background: #f9fafb; }
.page-article .checklist-interactive .cl-row.cl-done { background: #f0fdf4; }
.page-article .checklist-interactive .cl-row.cl-done td:first-child { color: #6b7280; text-decoration: line-through; text-decoration-color: #dc2626; text-decoration-thickness: 1px; }
.page-article .checklist-interactive .cl-check { text-align: center; vertical-align: middle; width: 90px; }
.page-article .checklist-interactive .cl-check span { display: inline-block; font-size: 1.3rem; cursor: pointer; user-select: none; transition: transform 0.12s; padding: 4px 8px; }
.page-article .checklist-interactive .cl-check span:hover { transform: scale(1.3); }
.page-article .checklist-interactive .cl-done .cl-check span { animation: cl-pop 0.3s ease; }
@keyframes cl-pop { 0% { transform: scale(0.5); } 50% { transform: scale(1.4); } 100% { transform: scale(1); } }

