/* ============================================================
   BLOG.CSS — SalesAgent Ratgeber. Gold-Designsystem (veredelt)
   ============================================================ */

:root {
  --bg: #050505;
  --bg-1: #0A0A0A;
  --bg-2: #0F0F0F;
  --bg-3: #161616;

  --gold: #BFA37C;
  --gold-soft: #D4BC95;
  --gold-bright: #E5D0A5;
  --gold-deep: #8C7754;
  --gold-pale: #F5E9D0;
  --gold-line: rgba(191, 163, 124, 0.16);
  --gold-line-strong: rgba(191, 163, 124, 0.34);
  --gold-glow: rgba(191, 163, 124, 0.12);

  --text: #C8C8C8;
  --text-bright: #FFFFFF;
  --text-mid: #9A9A9A;
  --text-soft: #6E6E6E;
  --text-mute: #3D3933;

  --line: rgba(255, 255, 255, 0.06);
  --line-mid: rgba(255, 255, 255, 0.10);

  --r-btn: 10px;
  --r-card: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--gold); color: var(--bg); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; width: 100%; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 32px; width: 100%; }
@media (max-width: 720px) { .container, .container-narrow { padding: 0 20px; } }

.serif { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; }
.gradient-text {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 60%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* AMBIENT */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient::before {
  content: ''; position: absolute; top: -10%; left: -8%; width: 55%; height: 60%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 62%);
  filter: blur(120px);
}

/* PROGRESS BAR */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  z-index: 100; transition: width 0.1s linear;
}

/* HEADER */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1180px; margin: 0 auto; padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.header-logo { height: 21px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-back {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--text-mid); transition: color 0.2s;
}
.header-back:hover { color: var(--text-bright); }
.header-cta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px; background: var(--gold); color: var(--bg);
  font-size: 13px; font-weight: 600; border-radius: var(--r-btn);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.header-cta:hover { background: var(--gold-soft); transform: translateY(-1px); }
@media (max-width: 600px) { .header-back span { display: none; } }

main { flex: 1; }

/* BREADCRUMB */
.breadcrumb { padding: 28px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; color: var(--text-soft); }
.breadcrumb a { color: var(--text-mid); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb li::after { content: '/'; margin-left: 8px; color: var(--text-mute); }
.breadcrumb li:last-child::after { content: ''; }

/* BLOG INDEX HERO */
.blog-hero { padding: 56px 0 40px; text-align: center; }
.blog-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
  border: 1px solid var(--gold-line-strong); padding: 7px 15px; border-radius: 100px;
  margin-bottom: 22px;
}
.blog-hero h1 {
  font-size: clamp(34px, 5.2vw, 58px); font-weight: 600; line-height: 1.04;
  letter-spacing: -0.035em; color: var(--text-bright); margin-bottom: 18px;
}
.blog-hero p { max-width: 560px; margin: 0 auto; color: var(--text-mid); font-size: 17px; }

/* POST GRID */
.post-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 22px; padding: 24px 0 80px;
}
.post-card {
  display: flex; flex-direction: column;
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.post-card:hover { border-color: var(--gold-line-strong); transform: translateY(-3px); }
.post-card-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-3); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card-cat {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.post-card h2 {
  font-size: 21px; font-weight: 600; line-height: 1.22; letter-spacing: -0.02em;
  color: var(--text-bright); margin-bottom: 10px;
}
.post-card p { font-size: 14.5px; color: var(--text-mid); line-height: 1.6; flex: 1; }
.post-card-meta {
  display: flex; align-items: center; gap: 14px; margin-top: 18px;
  font-size: 12px; color: var(--text-soft);
}
.post-card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-card-meta .ti { font-size: 14px; color: var(--gold-deep); }

/* ARTICLE */
.article-hero { padding: 8px 0 0; }
.article-cat {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 18px; display: block;
}
.article-hero h1 {
  font-size: clamp(30px, 4.6vw, 52px); font-weight: 600; line-height: 1.08;
  letter-spacing: -0.035em; color: var(--text-bright); margin-bottom: 20px;
}
.article-lead { font-size: 19px; line-height: 1.6; color: var(--text-mid); margin-bottom: 26px; }
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--text-soft);
}
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }
.article-meta .ti { font-size: 16px; color: var(--gold); }
.article-figure { margin: 32px 0; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); }
.article-figure img { width: 100%; height: auto; }

/* STORY BYLINE (Autor oben, persönliche Beiträge) */
.article-byline {
  display: flex; align-items: center; gap: 13px;
  padding: 18px 0; margin: 0 0 4px;
}
.article-byline img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 1px solid var(--gold-line-strong); }
.avatar-initials {
  width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  color: var(--bg); font-weight: 700; font-size: 17px; letter-spacing: 0.02em;
  border: 1px solid var(--gold-line-strong);
}
.article-author .avatar-initials { width: 46px; height: 46px; font-size: 15px; }
.article-byline .by-name { font-size: 14.5px; font-weight: 600; color: var(--text-bright); }
.article-byline .by-role { font-size: 12.5px; color: var(--text-soft); }
.post-card-cat.is-story { color: var(--gold-bright); }
.cat-divider {
  display: flex; align-items: center; gap: 16px; margin: 40px 0 4px;
}
.cat-divider h2 {
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--text-bright);
  display: inline-flex; align-items: center; gap: 10px;
}
.cat-divider h2 .ti { color: var(--gold); font-size: 20px; }
.cat-divider .cd-line { flex: 1; height: 1px; background: var(--gold-line); }
.cat-divider p { font-size: 13.5px; color: var(--text-soft); flex-shrink: 0; }

.prose { padding: 8px 0 16px; }
.prose h2 {
  font-size: clamp(24px, 3vw, 32px); font-weight: 600; letter-spacing: -0.025em;
  line-height: 1.18; color: var(--text-bright); margin: 44px 0 16px;
}
.prose h3 {
  font-size: 21px; font-weight: 600; letter-spacing: -0.015em;
  color: var(--gold-bright); margin: 32px 0 12px;
}
.prose p { margin: 0 0 18px; color: var(--text); }
.prose strong { color: var(--text-bright); font-weight: 600; }
.prose a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold-line-strong); transition: text-decoration-color 0.2s; }
.prose a:hover { text-decoration-color: var(--gold); }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 24px; }
.prose li { margin: 0 0 10px; color: var(--text); }
.prose ul li::marker { color: var(--gold); }
.prose ol li::marker { color: var(--gold); font-family: 'JetBrains Mono', monospace; font-size: 14px; }
.prose blockquote {
  margin: 26px 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--gold);
  font-family: 'Instrument Serif', Georgia, serif; font-style: italic;
  font-size: 23px; line-height: 1.4; color: var(--gold-pale);
}
.prose hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }

/* KEY-FACTS CARD (GEO-freundlich, zitierbar) */
.fact-box {
  background: var(--bg-1); border: 1px solid var(--gold-line); border-radius: var(--r-card);
  padding: 24px 26px; margin: 30px 0;
}
.fact-box-title {
  display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.fact-box ul { list-style: none; padding: 0; margin: 0; }
.fact-box li { padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.fact-box li:last-child { border-bottom: none; }
.fact-box li span:first-child { color: var(--text-mid); }
.fact-box li span:last-child { color: var(--text-bright); font-weight: 600; text-align: right; }

/* INLINE CTA */
.article-cta {
  margin: 44px 0 8px; padding: 34px 32px; text-align: center;
  background: var(--bg-1); border: 1px solid var(--gold-line); border-radius: var(--r-card);
}
.article-cta h3 { font-size: 24px; font-weight: 600; color: var(--text-bright); letter-spacing: -0.02em; margin-bottom: 10px; }
.article-cta p { font-size: 15px; color: var(--text-mid); margin-bottom: 22px; max-width: 480px; margin-left: auto; margin-right: auto; }
.btn-gold {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 28px; background: var(--gold); color: var(--bg);
  font-size: 15px; font-weight: 600; border-radius: var(--r-btn);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-1px); }
.btn-gold .ti { font-size: 17px; }

/* AUTHOR */
.article-author {
  display: flex; align-items: center; gap: 14px; margin: 36px 0 0;
  padding: 20px 0 0; border-top: 1px solid var(--line);
}
.article-author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.article-author .au-name { font-size: 14px; font-weight: 600; color: var(--text-bright); }
.article-author .au-role { font-size: 12.5px; color: var(--text-soft); }

/* RELATED */
.related { padding: 56px 0 0; border-top: 1px solid var(--line); margin-top: 56px; }
.related-title { font-size: 14px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }

/* FOOTER */
.footer { border-top: 1px solid var(--line); padding: 56px 0 36px; margin-top: 88px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 24px; margin-bottom: 16px; }
.footer-brand p { font-size: 13.5px; color: var(--text-mid); max-width: 280px; margin-bottom: 16px; }
.footer-brand .address { font-size: 13px; color: var(--text-soft); line-height: 1.6; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line-mid);
  display: inline-flex; align-items: center; justify-content: center; color: var(--text-mid);
  transition: border-color 0.2s, color 0.2s;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-col h5 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 16px; font-weight: 600; }
.footer-col a { display: block; font-size: 13.5px; color: var(--text-mid); margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-divider { border: none; border-top: 1px solid var(--line); margin: 40px 0 24px; }
.footer-disclaimer { font-size: 11px; color: var(--text-mute); line-height: 1.6; margin-bottom: 18px; }
.footer-copyright { font-size: 12px; color: var(--text-soft); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
