/* ================================================
   IIA Analysis Suite — Blog Editorial Styles
   Navy #0F2544 / Gold #C9A961 / Off-white #f8f6f2
   Fonts: Playfair Display + Source Serif 4
   ================================================ */

:root {
  --b-navy:      #0F2544;
  --b-navy-l:    #1a3560;
  --b-gold:      #C9A961;
  --b-gold-l:    #e2c98a;
  --b-white:     #ffffff;
  --b-offwhite:  #f8f6f2;
  --b-text:      #1c1c1c;
  --b-muted:     #5a5a5a;
  --b-border:    #e2ddd6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

.blog-body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--b-offwhite);
  color: var(--b-text);
  line-height: 1.8;
}

/* ── HEADER ──────────────────────────────────────────── */
.blog-header {
  background: var(--b-navy);
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.blog-logo {
  color: var(--b-gold);
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.blog-logo span { color: var(--b-white); font-weight: 300; }

.blog-nav a {
  color: rgba(255,255,255,0.65);
  font-family: 'Source Serif 4', serif;
  font-size: 0.85rem;
  text-decoration: none;
  margin-left: 28px;
  transition: color 0.2s;
}
.blog-nav a:hover,
.blog-nav a.active { color: var(--b-gold); }

/* ── BANNER IMAGE ─────────────────────────────────────── */
.blog-banner-wrap {
  max-width: 860px;
  margin: 48px auto 0;
  padding: 0 24px;
}
.blog-banner-wrap img {
  width: 100%;
  border-radius: 4px;
  display: block;
  box-shadow: 0 8px 40px rgba(15,37,68,0.18);
}

/* ── ARTICLE HEADER ───────────────────────────────────── */
.blog-article-header {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 0;
}
.blog-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.blog-tag {
  background: var(--b-navy);
  color: var(--b-gold);
  font-family: 'Source Serif 4', serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
}
.blog-date {
  color: var(--b-muted);
  font-size: 0.82rem;
  font-style: italic;
}
.blog-readtime {
  color: var(--b-muted);
  font-size: 0.82rem;
}
.blog-article-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--b-navy);
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.blog-subtitle {
  font-size: 1.05rem;
  color: var(--b-muted);
  font-style: italic;
  font-weight: 300;
  border-left: 3px solid var(--b-gold);
  padding-left: 16px;
  margin-bottom: 32px;
}

/* ── ARTICLE BODY ─────────────────────────────────────── */
.blog-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.blog-divider {
  border: none;
  border-top: 1px solid var(--b-border);
  margin: 32px 0;
}
.blog-content p {
  font-size: 1.02rem;
  margin-bottom: 1.5rem;
  color: var(--b-text);
  font-weight: 300;
}
.blog-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--b-navy);
  margin: 2.4rem 0 0.8rem;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 10px;
}
.blog-content h2::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--b-gold);
  flex-shrink: 0;
  margin-bottom: 2px;
}
.blog-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--b-navy);
  margin: 1.8rem 0 0.6rem;
}
.blog-content ul,
.blog-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.blog-content li {
  font-size: 1.02rem;
  font-weight: 300;
  margin-bottom: 0.4rem;
}
.blog-content strong { font-weight: 600; color: var(--b-navy); }
.blog-content a { color: var(--b-gold); }

/* Tables */
.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.9rem;
}
.blog-content th {
  background: var(--b-navy);
  color: var(--b-gold);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-family: 'Source Serif 4', serif;
}
.blog-content td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--b-border);
  font-weight: 300;
}
.blog-content tr:last-child td { border-bottom: none; }
.blog-content tr:nth-child(even) td { background: rgba(15,37,68,0.03); }

/* ── CTA BOX ──────────────────────────────────────────── */
.blog-cta-box {
  background: linear-gradient(135deg, var(--b-navy) 0%, var(--b-navy-l) 100%);
  border: 1px solid rgba(201,169,97,0.3);
  border-radius: 6px;
  padding: 36px 40px;
  text-align: center;
  margin: 40px 0;
}
.blog-cta-box p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  margin-bottom: 20px;
  font-style: italic;
}
.blog-cta-btn {
  display: inline-block;
  background: var(--b-gold);
  color: var(--b-navy);
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 32px;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
}
.blog-cta-btn:hover {
  background: var(--b-gold-l);
  transform: translateY(-1px);
}

/* ── FOOTER ───────────────────────────────────────────── */
.blog-footer {
  background: var(--b-navy);
  color: rgba(255,255,255,0.45);
  text-align: center;
  padding: 28px 24px;
  font-size: 0.8rem;
}
.blog-footer a { color: var(--b-gold); text-decoration: none; }
.blog-footer a:hover { color: var(--b-gold-l); }

/* ── BLOG INDEX ───────────────────────────────────────── */
.blog-index-hero {
  background: var(--b-navy);
  padding: 60px 24px 56px;
  text-align: center;
  position: relative; overflow: hidden;
}
/* Hex-Hintergrund-SVG: position:absolute via externem CSS (kein CSP-Konflikt) */
.blog-index-hero .lp-hex-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
.blog-index-hero-inner { max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
.blog-index-hero .blog-tag { margin-bottom: 16px; display: inline-block; }
.blog-index-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--b-white);
  line-height: 1.2;
  margin-bottom: 14px;
}
.blog-index-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
}

.blog-index-main { padding: 48px 24px 80px; }
.blog-index-container { max-width: 900px; margin: 0 auto; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--b-white);
  border: 1px solid var(--b-border);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15,37,68,0.12);
}
.blog-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.blog-card-placeholder {
  width: 100%;
  height: 180px;
  background: var(--b-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.blog-card-placeholder::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--b-gold);
}
.blog-card-body { padding: 20px 22px 22px; }
.blog-card-date { font-size: 0.78rem; color: var(--b-muted); font-style: italic; margin-bottom: 8px; }
.blog-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--b-navy);
  line-height: 1.35;
  margin-bottom: 10px;
}
.blog-card-desc { font-size: 0.88rem; color: var(--b-muted); line-height: 1.65; font-weight: 300; margin-bottom: 14px; }
.blog-card-cta  { font-size: 0.82rem; color: var(--b-gold); font-weight: 600; letter-spacing: 0.02em; }

.blog-empty { text-align: center; padding: 60px 24px; color: var(--b-muted); font-style: italic; }

/* ── SORO WIDGET WRAPPER ──────────────────────────────── */
.blog-soro-wrap {
  margin-bottom: 64px;
}

/* Grid erzwingen — Soro gibt Artikel direkt in #soro-blog aus */
#soro-blog,
#soro-blog > div:first-child {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 24px !important;
  font-family: 'Source Serif 4', Georgia, serif !important;
}

/* Jede Karte */
#soro-blog > *,
#soro-blog > div > * {
  background: var(--b-white) !important;
  border: 1px solid var(--b-border) !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
  display: flex !important;
  flex-direction: column !important;
}
#soro-blog > *:hover,
#soro-blog > div > *:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 32px rgba(15,37,68,0.12) !important;
}
#soro-blog a { text-decoration: none !important; color: inherit !important; }

/* Titel */
#soro-blog h2,
#soro-blog h3,
#soro-blog [class*="title"] {
  font-family: 'Playfair Display', serif !important;
  color: var(--b-navy) !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  font-size: 1.05rem !important;
  margin-bottom: 8px !important;
}
/* Datum */
#soro-blog time,
#soro-blog [class*="date"] {
  color: var(--b-muted) !important;
  font-size: 0.78rem !important;
  font-style: italic !important;
}
/* Teaser-Text */
#soro-blog p {
  color: var(--b-muted) !important;
  font-size: 0.88rem !important;
  line-height: 1.65 !important;
  font-weight: 300 !important;
}
/* Bilder */
#soro-blog img {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
  display: block !important;
  flex-shrink: 0 !important;
}
/* Karten-Innenabstand (alles außer Bild) */
#soro-blog a > *:not(img),
#soro-blog > * > *:not(img) {
  padding: 16px 20px !important;
}

/* ── INTERNE BEITRÄGE SEKTION ─────────────────────────── */
.blog-internal-section { margin-top: 16px; }
.blog-section-divider {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--b-navy);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--b-border);
}

/* ── CTA SECTION ──────────────────────────────────────── */
.blog-cta-section {
  background: var(--b-offwhite);
  padding: 0 24px 64px;
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 640px) {
  .blog-header { padding: 14px 20px; }
  .blog-nav { display: none; }
  .blog-article-header { padding: 28px 16px 0; }
  .blog-article { padding: 0 16px 60px; }
  .blog-cta-box { padding: 24px 20px; }
  .blog-index-hero { padding: 40px 20px 36px; }
  .blog-grid { grid-template-columns: 1fr; }
}
