/* ═══════════════════════════════════════════════════════════════
   lebensversicherung.digital – Zentrales Stylesheet
   Kein Build-Schritt · direkt editierbar · /styles.css
   ═══════════════════════════════════════════════════════════════ */

/* ── Lokale Fonts ────────────────────────────────────────────── */
@font-face {
  font-family: 'Source Sans 3';
  src: url('https://www.lebensversicherung.digital/fonts/source-sans-3.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('https://www.lebensversicherung.digital/fonts/source-serif-4.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
  --lv-navy:   #0F2044;
  --lv-gold:   #F59E0B;
  --lv-green:  #059669;
  --lv-green2: #34D399;
  --lv-red:    #DC2626;
  --lv-red2:   #F87171;
  --lv-blue:   #2563EB;
  --lv-bg:     #F8FAFC;
  --lv-card:   #FFFFFF;
  --lv-border: #E2E8F0;
  --lv-muted:  #64748B;
  --lv-text:   #1E293B;
  --lv-amber:  #FEF3C7;

  --font-sans:  'Source Sans 3', system-ui, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;

  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.06);
  --shadow-lg: 0 4px 24px rgba(0,0,0,.12);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { font-size: 16px; scroll-behavior: smooth; }
body  {
  font-family: var(--font-sans);
  background: var(--lv-bg);
  color: var(--lv-text);
  line-height: 1.65;
  border-top: 4px solid var(--lv-gold);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--lv-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ─────────────────────────────────────────────────── */
.container        { max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }
.container--prose { max-width: 780px;  margin: 0 auto; padding: 0 1.25rem; }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  background: var(--lv-navy);
  border-bottom: 2px solid var(--lv-gold);
  padding: 0.75rem 0;
  position: sticky; top: 0; z-index: 200;
}
.site-header__inner {
  max-width: 1280px; margin: 0 auto; padding: 0 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
}
.site-logo {
  font-family: var(--font-serif);
  font-size: 1.375rem; font-weight: 700;
  color: #fff; text-decoration: none; white-space: nowrap;
}
.site-logo span { color: var(--lv-gold); }
.site-logo:hover { text-decoration: none; }
.site-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-nav a {
  color: rgba(255,255,255,.85); font-size: 0.8rem; font-weight: 500;
  transition: color .15s; white-space: nowrap;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--lv-gold); text-decoration: none; }

/* ── Hamburger-Button ────────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.25rem;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  background: var(--lv-navy);
  background-image: radial-gradient(ellipse at 70% 50%, #162d5e 0%, #0F2044 60%);
  color: #fff;
  padding: 3.5rem 0 3rem;
}
.hero__label {
  display: inline-block;
  background: var(--lv-gold); color: var(--lv-navy);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 0.2rem 0.7rem; border-radius: 4px; margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700; line-height: 1.2;
  margin-bottom: 1rem; max-width: 680px;
}
.hero h1 em { font-style: normal; color: var(--lv-gold); }
.hero__sub   { font-size: 1.05rem; color: rgba(255,255,255,.8); max-width: 560px; }

/* ── Sections ────────────────────────────────────────────────── */
.section      { padding: 3rem 0; }
.section--alt { background: var(--lv-card); }
.section--dark{ background: var(--lv-navy); color: #fff; }
.section__head { margin-bottom: 2rem; }
.section__head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 1.875rem);
  font-weight: 700; color: var(--lv-navy); margin-bottom: 0.4rem;
}
.section--dark .section__head h2 { color: #fff; }
.section__sub { font-size: 0.95rem; color: var(--lv-muted); max-width: 600px; }

/* ── Cards ───────────────────────────────────────────────────── */
.cards    { display: grid; gap: 1.25rem; }
.cards--2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cards--3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card {
  background: var(--lv-card);
  border: 1px solid var(--lv-border);
  border-left: 4px solid var(--lv-gold);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
  color: inherit; text-decoration: none; display: block;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.1); text-decoration: none; }
.card h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem; font-weight: 700;
  color: var(--lv-navy); margin-bottom: 0.5rem;
}
.card p     { font-size: 0.88rem; color: var(--lv-muted); line-height: 1.55; }
.card__meta { font-size: 0.7rem; color: var(--lv-muted); margin-top: 0.5rem; }

/* ── Tabellen ────────────────────────────────────────────────── */
.lv-table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.lv-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.lv-table th {
  background: var(--lv-navy); color: #fff;
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; padding: 0.7rem 1rem; text-align: left; white-space: nowrap;
}
.lv-table td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--lv-border); }
.lv-table tr:nth-child(even) td { background: #F8FAFC; }
.lv-table tr:hover td { background: #EFF6FF; }
.lv-table .val-pos { color: var(--lv-green); font-weight: 700; }
.lv-table .val-neg { color: var(--lv-red);   font-weight: 700; }
.lv-table .val-neu { color: var(--lv-navy);  font-weight: 700; }

/* ── Prose ───────────────────────────────────────────────────── */
.prose { font-size: 1rem; line-height: 1.75; color: var(--lv-text); }
.prose h2 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--lv-navy); margin: 2.5rem 0 0.75rem; }
.prose h3 { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; color: var(--lv-navy); margin: 1.75rem 0 0.5rem; }
.prose p  { margin-bottom: 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1.1rem 1.5rem; }
.prose li { margin-bottom: 0.4rem; }
.prose strong { color: var(--lv-navy); }
.prose a { color: var(--lv-blue); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin: 1.5rem 0; }
.prose th { background: var(--lv-navy); color: #fff; padding: 0.6rem 1rem; text-align: left; }
.prose td { padding: 0.6rem 1rem; border-bottom: 1px solid var(--lv-border); }
.prose tr:nth-child(even) td { background: #F8FAFC; }

/* ── Action-Insert (sanftgelbe Hinweisbox) ───────────────────── */
.action-insert {
  background: #FFFBEB;
  border: 1px solid #F59E0B;
  border-left: 4px solid #F59E0B;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.75rem 0;
  font-size: 0.9rem;
  color: #78350F;
  line-height: 1.6;
}
.action-insert p { margin: 0; }

/* ── NotAsked Badge ──────────────────────────────────────────── */
.notasked-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #FEF3C7; border: 1px solid var(--lv-gold);
  color: #92400E; font-size: 0.68rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 0.2rem 0.6rem; border-radius: 4px; margin-bottom: 0.75rem;
}

/* ── Irrtümer / Selten-gefragt Karten ───────────────────────── */
.insight-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin: 1.5rem 0; }
.insight-card {
  background: linear-gradient(135deg, #1a3a6e 0%, var(--lv-navy) 100%);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 1.5rem; color: #fff;
}
.insight-card__num  { font-size: 2rem; font-weight: 700; color: var(--lv-gold); line-height: 1; }
.insight-card__head { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700; margin: 0.4rem 0 0.5rem; }
.insight-card__body { font-size: 0.85rem; color: rgba(255,255,255,.78); line-height: 1.6; }

/* ── FAQ Accordion ───────────────────────────────────────────── */
.faq-item {
  border: 1px solid var(--lv-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600; cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--lv-navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--lv-gold); line-height: 1; }
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-body { padding: 0 1.25rem 1rem; font-size: 0.9rem; color: var(--lv-text); line-height: 1.7; }

/* ── Breadcrumb ──────────────────────────────────────────────── */
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 0.25rem;
  align-items: center; font-size: 0.8rem; color: var(--lv-muted);
  padding: 0.75rem 0; margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--lv-muted); }
.breadcrumb a:hover { color: var(--lv-blue); text-decoration: underline; }
.breadcrumb__sep { color: var(--lv-border); margin: 0 0.1rem; }

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 0.65rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: 0.2rem 0.5rem; border-radius: 4px;
}
.badge--gold   { background: #FEF3C7; border: 1px solid var(--lv-gold); color: #92400E; }
.badge--green  { background: #D1FAE5; color: #065F46; }
.badge--blue   { background: #DBEAFE; color: #1E40AF; }
.badge--muted  { background: #F1F5F9; color: var(--lv-muted); }

/* ── Entwurf-Banner (Rechtsseiten) ──────────────────────────── */
.draft-banner {
  background: #FEE2E2; border: 1px solid #DC2626; border-radius: var(--radius);
  padding: 0.75rem 1.25rem; margin-bottom: 2rem;
  font-size: 0.875rem; color: #991B1B; font-weight: 600;
}

/* ── Bild-Platzhalter ────────────────────────────────────────── */
.img-placeholder {
  width: 100%; aspect-ratio: 16/7;
  background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
  border: 1px solid var(--lv-border); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--lv-muted); font-size: 0.8rem;
  margin: 1.5rem 0; overflow: hidden;
}
.img-placeholder img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.55rem 1.25rem; border-radius: 6px;
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  border: none; font-family: var(--font-sans); transition: opacity .15s;
  text-decoration: none;
}
.btn:hover { opacity: 0.88; text-decoration: none; }
.btn--primary { background: var(--lv-gold); color: var(--lv-navy); }
.btn--ghost   { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn--outline { background: transparent; border: 1.5px solid var(--lv-border); color: var(--lv-text); }

/* ── Related Topics ──────────────────────────────────────────── */
.related-topics { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.related-topics a {
  background: var(--lv-bg); border: 1px solid var(--lv-border);
  border-radius: 20px; padding: 0.3rem 0.85rem;
  font-size: 0.8rem; color: var(--lv-text);
  text-decoration: none; transition: border-color .15s, color .15s;
}
.related-topics a:hover { border-color: var(--lv-gold); color: var(--lv-navy); }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--lv-navy); color: #fff;
  padding: 3rem 0 2rem; margin-top: 4rem;
  border-top: 2px solid var(--lv-gold);
}
.site-footer__inner {
  max-width: 1280px; margin: 0 auto; padding: 0 1.25rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem; margin-bottom: 2rem;
}
.site-footer__col-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.75rem; color: #fff; }
.site-footer__col-desc  { color: #94a3b8; font-size: 0.875rem; line-height: 1.6; }
.site-footer__col nav   { display: flex; flex-direction: column; gap: 0.4rem; }
.site-footer__col nav a { color: #94a3b8; text-decoration: none; font-size: 0.875rem; }
.site-footer__col nav a:hover { color: var(--lv-gold); }
.site-footer__bottom {
  border-top: 1px solid #334155; padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; font-size: 0.8rem; color: #64748b;
}
.site-footer__bottom a { color: #64748b; text-decoration: none; }
.site-footer__bottom a:hover { color: #fff; }
.site-footer__bottom nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-footer__consent { cursor: pointer; }
.site-footer__consent:hover { color: var(--lv-gold); }

/* ── Consent Banner ──────────────────────────────────────────── */
.consent-banner {
  position: fixed; bottom: 1.25rem; left: 1.25rem; right: 1.25rem;
  max-width: 520px;
  background: var(--lv-navy); color: #fff;
  border: 1px solid var(--lv-gold); border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  z-index: 9999; font-size: 0.875rem;
  display: none;
}
.consent-banner p { margin-bottom: 1rem; line-height: 1.55; }
.consent-banner__btns { display: flex; gap: 0.75rem; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .site-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    order: 10;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 0.25rem 0;
  }
  .site-nav.is-open { display: flex; }
  .site-nav.is-open a {
    padding: 0.7rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  .site-nav.is-open a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 2.5rem 0 2rem; }
  .cards--2, .cards--3 { grid-template-columns: 1fr; }
  .insight-grid { grid-template-columns: 1fr; }
}
