/* ─── DESIGN 1A: KLAR & PRÄZISE — Blog-Styles ───────────────
   Passt Blog-Übersicht und alle Artikel automatisch an das
   neue Design der Startseite an. Klassennamen unverändert. */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap');

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

:root {
  --gold:        #bc9c22;   /* Flächen-Gold (nur mit dunklem Text) */
  --gold-light:  #d4b83a;   /* Gold auf dunklem Grund */
  --gold-text:   #8a6d14;   /* Gold für Text auf hellem Grund (AA-Kontrast) */
  --gold-pale:   #f3ecd2;
  --dark:        #15140f;
  --dark-2:      #15140f;
  --white:       #fcfbf7;
  --off-white:   #f5f3ec;
  --muted:       #55534a;
  --faint:       #8a877a;
  --border:      #e8e5da;

  --text-eyebrow-size:    12px;
  --text-eyebrow-weight:  600;
  --text-eyebrow-spacing: 0.14em;

  --text-h1-size-mobile:  30px;
  --text-h1-size-desktop: 46px;
  --text-h1-weight:       700;
  --text-h1-line-height:  1.15;

  --text-h2-size-mobile:  23px;
  --text-h2-size-desktop: 32px;
  --text-h2-weight:       700;
  --text-h2-line-height:  1.25;

  --text-h3-size-mobile:  17px;
  --text-h3-size-desktop: 22px;
  --text-h3-weight:       600;
  --text-h3-line-height:  1.35;

  --text-body-size-mobile:  15px;
  --text-body-size-desktop: 17px;
  --text-body-weight:       400;
  --text-body-line-height:  1.7;

  --text-small-size:   13px;
  --text-small-weight: 400;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Instrument Sans', Helvetica, Arial, sans-serif;
  background: var(--white);
  color: var(--dark);
  line-height: var(--text-body-line-height);
  -webkit-font-smoothing: antialiased;
  padding-top: 72px;
}

[id] { scroll-margin-top: 88px; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 28px; }

/* ─── NAV (1:1 wie index.html) ─────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(252, 251, 247, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

nav .inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav-logo span { color: var(--gold-text); }

.nav-cta {
  background: var(--dark);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 100px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--gold-text); }

.anchor-nav {
  display: flex;
  gap: 2.1rem;
  align-items: center;
}

.anchor-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s;
  white-space: nowrap;
}

.anchor-nav a:hover { color: var(--dark); }

@media (max-width: 640px) {
  nav .inner { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 0; }
  .nav-logo { order: 1; font-size: 13px; }
  .nav-cta { order: 2; font-size: 11.5px; padding: 8px 14px; }
  .anchor-nav {
    order: 3;
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 1.5rem;
    padding: 8px 0 4px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
    flex-wrap: wrap;
  }
  .anchor-nav a { font-size: 0.8rem; }
  body { padding-top: 100px; }
}

/* ─── FOOTER (1:1 wie index.html) ────────────────────────── */
footer {
  background: var(--dark);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-name {
  font-size: 14px;
  font-weight: 600;
  color: rgba(252, 251, 247, 0.85);
}

.footer-name span { color: var(--gold-light); }

.footer-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13.5px;
  color: rgba(252, 251, 247, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold-light); }

/* ─── BUTTONS (1:1 wie index.html) ───────────────────────── */
.btn-primary {
  background: var(--dark);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 100px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover { background: var(--gold-text); transform: translateY(-1px); }

.btn-secondary {
  color: var(--dark);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.2s;
}

.btn-secondary:hover { color: var(--gold-text); }

/* ─── SECTION HEADER ─────────────────────────────────────── */
.section-eyebrow {
  display: inline-block;
  color: var(--gold-text);
  font-size: var(--text-eyebrow-size);
  font-weight: var(--text-eyebrow-weight);
  letter-spacing: var(--text-eyebrow-spacing);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: var(--text-h2-size-mobile);
  font-weight: var(--text-h2-weight);
  line-height: var(--text-h2-line-height);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.section-sub {
  font-size: var(--text-body-size-mobile);
  color: var(--muted);
  max-width: 540px;
  line-height: var(--text-body-line-height);
}

@media (min-width: 769px) {
  .section-title { font-size: var(--text-h2-size-desktop); }
}

/* ─── BLOG: ÜBERSICHT ─────────────────────────────────────── */
.blog-header {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: 80px 0 60px;
  text-align: center;
}

.blog-header .section-eyebrow { display: block; }
.blog-header .section-title { margin: 0 auto 16px; }
.blog-header .section-sub { margin: 0 auto; }

.blog-list {
  padding: 64px 0 96px;
}

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

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid #e2ded1;
  border-radius: 14px;
  padding: 30px 28px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: #d8d4c6;
  box-shadow: 0 16px 40px rgba(21, 20, 15, 0.08);
}

.blog-card-badge {
  align-self: flex-start;
  display: inline-block;
  background: var(--gold-pale);
  color: var(--gold-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.blog-card-date {
  font-size: var(--text-small-size);
  color: var(--faint);
  margin-bottom: 10px;
}

.blog-card-title {
  font-size: var(--text-h3-size-mobile);
  font-weight: var(--text-h3-weight);
  line-height: var(--text-h3-line-height);
  letter-spacing: -0.01em;
  color: var(--dark);
  margin-bottom: 10px;
}

.blog-card-teaser {
  font-size: var(--text-body-size-mobile);
  color: var(--muted);
  line-height: var(--text-body-line-height);
  margin-bottom: 18px;
  flex-grow: 1;
}

.blog-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-text);
}

@media (min-width: 769px) {
  .blog-card-title { font-size: var(--text-h3-size-desktop); }
}

/* ─── BLOG: ARTIKEL ───────────────────────────────────────── */
.article-header {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: 64px 0 48px;
}

.article-header .container { max-width: 760px; }

.breadcrumbs {
  font-size: var(--text-small-size);
  color: var(--faint);
  margin-bottom: 20px;
}

.breadcrumbs a { color: var(--faint); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-text); }

.article-badge {
  display: inline-block;
  background: var(--gold-pale);
  color: var(--gold-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.article-title {
  font-size: var(--text-h1-size-mobile);
  font-weight: var(--text-h1-weight);
  line-height: var(--text-h1-line-height);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: var(--text-small-size);
  color: var(--faint);
}

.article-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.article-author { font-weight: 600; color: var(--dark); }
.article-meta-sep { color: var(--faint); }
.article-date { color: var(--faint); }

@media (min-width: 769px) {
  .article-title { font-size: var(--text-h1-size-desktop); }
}

.article-body {
  padding: 48px 0 96px;
}

.article-body .container { max-width: 760px; }

.article-prose h2 {
  font-size: var(--text-h2-size-mobile);
  font-weight: var(--text-h2-weight);
  line-height: var(--text-h2-line-height);
  letter-spacing: -0.015em;
  margin: 48px 0 20px;
}

.article-prose h3 {
  font-size: var(--text-h3-size-mobile);
  font-weight: var(--text-h3-weight);
  line-height: var(--text-h3-line-height);
  margin: 32px 0 14px;
}

.article-prose p {
  font-size: var(--text-body-size-desktop);
  line-height: 1.8;
  color: #3d3b33;
  margin-bottom: 20px;
}

.article-prose ul {
  margin: 0 0 20px 1.2em;
}

.article-prose li {
  font-size: var(--text-body-size-desktop);
  line-height: 1.8;
  color: #3d3b33;
  margin-bottom: 8px;
}

.article-prose strong { font-weight: 600; color: var(--dark); }

.article-prose a {
  color: var(--gold-text);
  text-decoration: underline;
  text-decoration-color: rgba(188, 156, 34, 0.4);
  text-underline-offset: 2px;
}

.article-prose a:hover { text-decoration-color: var(--gold-text); }

.article-prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

@media (min-width: 769px) {
  .article-prose h2 { font-size: var(--text-h2-size-desktop); }
  .article-prose h3 { font-size: var(--text-h3-size-desktop); }
}

/* ─── TOC ─────────────────────────────────────────────────── */
.toc-box {
  /* Reset der geerbten Top-Nav-Stile (nav { position: fixed; ... }) */
  position: static;
  z-index: auto;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  margin: 32px 0 44px;
}

.toc-box-title {
  font-size: var(--text-body-size-desktop);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.toc-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-box li {
  font-size: var(--text-body-size-mobile);
  line-height: 1.5;
}

.toc-box a {
  color: var(--dark);
  text-decoration: underline;
  text-decoration-color: rgba(21, 20, 15, 0.3);
  text-underline-offset: 2px;
}

.toc-box a:hover { color: var(--gold-text); text-decoration-color: var(--gold-text); }

/* ─── CTA-BOX ─────────────────────────────────────────────── */
.cta-box {
  background: var(--dark);
  color: var(--white);
  border-radius: 20px;
  padding: 44px 40px;
  margin-top: 48px;
}

@media (max-width: 640px) { .cta-box { padding: 32px 24px; } }

.cta-box h3 {
  font-size: var(--text-h3-size-desktop);
  font-weight: var(--text-h3-weight);
  line-height: var(--text-h3-line-height);
  letter-spacing: -0.015em;
  margin-bottom: 14px;
  color: var(--white);
}

.cta-box p {
  font-size: var(--text-body-size-mobile);
  line-height: var(--text-body-line-height);
  color: rgba(252, 251, 247, 0.75);
  margin-bottom: 18px;
}

.cta-box strong { color: var(--white); }

.cta-box a.btn-primary {
  /* Höhere Spezifität als .article-prose a (sonst goldener Text auf goldenem Button) */
  background: var(--gold);
  color: var(--dark);
  text-decoration: none;
  margin: 8px 0 28px;
}

.cta-box a.btn-primary:hover { background: var(--gold-light); }

.cta-box a:not(.btn-primary) {
  color: var(--gold-light);
  text-decoration: underline;
  text-decoration-color: rgba(212, 184, 58, 0.4);
}
