/* ============================================================
   SINGLE ARTIKEL – Zentriertes Header-Layout
   ============================================================ */

/* ── Lesefortschritt-Balken (CSS Scroll-Driven Animation) ─ */
.article-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 10px;
  width: 0%;
  background: var(--accent-color, #2a2c2d);
  border-radius: 0 5px 5px 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;

  animation: article-progress-grow linear;
  animation-timeline: scroll(root block);
  animation-duration: 1ms; /* Firefox-Workaround */
}

@keyframes article-progress-grow {
  0%   { width: 0%; opacity: 0; }
  3%   { width: 3%; opacity: 1; }
  100% { width: calc(100% + 5px); opacity: 1; }
}

/* ── Container ─────────────────────────────────────────── */
.artikel-single {
  max-width: var(--metro-max-width, 1496px);
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ── Header (Badge → Titel → Meta → Bild → Back) ──────── */
.artikel-header {
  padding-top: 60px;
}

/* ── Badge ─────────────────────────────────────────────── */
.artikel-badge-wrap {
  text-align: center;
  margin-bottom: 28px;
}

.artikel-badge {
  display: inline-block;
  padding: 8px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: #333;
  transition: opacity 0.2s ease;
}

.artikel-badge:hover {
  opacity: 0.85;
}

/* ── Titel ─────────────────────────────────────────────── */
.artikel-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.12;
  color: #111;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 24px;
}

/* ── Meta-Zeile ────────────────────────────────────────── */
.artikel-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.5);
  margin-bottom: 40px;
}

.artikel-meta__dot {
  color: var(--dot-color, #d9db4d);
  font-size: 1.3em;
  line-height: 1;
  margin: 0 10px;
}

/* ── Featured Image ────────────────────────────────────── */
.artikel-image {
  margin-bottom: 32px;
}

.artikel-image__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border-radius: 30px;
}

/* Parallax-Modus: feste Höhe, overflow hidden, Bild wird von JS erzeugt */
.artikel-image--parallax {
  position: relative;
  overflow: hidden;
  height: 520px;
  border-radius: 30px;
}

/* ── Zurück-Button (unter dem Bild) ────────────────────── */
.artikel-back-wrap {
  margin-bottom: 48px;
}

.artikel-back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #222;
  transition: opacity 0.2s ease;
}

.artikel-back:hover {
  opacity: 0.7;
}

.artikel-back__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #fff;
  flex-shrink: 0;
}

.artikel-back__icon svg {
  width: 18px;
  height: 18px;
}

.artikel-back__text {
  font-size: 0.9rem;
  font-weight: 400;
}

/* ── Artikel-Content ───────────────────────────────────── */
.artikel-content {
  max-width: var(--metro-max-width, 1496px);
  margin: 0 auto;
}

.artikel-body {
  max-width: 1400px;
  margin: 0 auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .artikel-header {
    padding-top: 40px;
  }

  .artikel-title {
    max-width: 100%;
  }

  .artikel-image__img {
    max-height: 400px;
  }

  .artikel-image--parallax {
    height: 400px;
  }
}

@media (max-width: 600px) {
  .article-progress {
    height: 6px;
    border-radius: 0 3px 3px 0;
  }

  .artikel-single {
    padding: 0 10px;
  }

  .artikel-header {
    padding-top: 24px;
  }

  .artikel-badge-wrap {
    margin-bottom: 20px;
  }

  .artikel-badge {
    font-size: 0.85rem;
    padding: 6px 18px;
  }

  .artikel-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    margin-bottom: 16px;
  }

  .artikel-meta {
    font-size: 0.82rem;
    margin-bottom: 28px;
  }

  .artikel-meta__dot {
    margin: 0 6px;
  }

  .artikel-back-wrap {
    margin-bottom: 32px;
  }

  .artikel-back__icon {
    width: 38px;
    height: 38px;
  }

  .artikel-back__icon svg {
    width: 16px;
    height: 16px;
  }

  .artikel-back__text {
    font-size: 0.82rem;
  }

  .artikel-image__img {
    border-radius: 20px;
    max-height: 280px;
  }

  .artikel-image--parallax {
    height: 280px;
    border-radius: 20px;
  }
}

/* ============================================================
   ARTICLE HIGHLIGHTS (Takeaways Box)
   ============================================================ */

.article-highlights {
  background: var(--highlights-bg, #f5f5f5);
  border-radius: 16px;
  padding: 28px 32px;
  max-width: 1400px;
  margin: 0 auto 40px auto;
}

.article-highlights__badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: inherit;
  background: transparent;
  margin: 0 0 20px 0;
}

.article-highlights__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-highlights__item {
  position: relative;
  padding-left: 28px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.article-highlights__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  transform: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--thema-color, #000000);
}

@media (max-width: 600px) {
  .article-highlights {
    padding: 20px 18px;
    margin-bottom: 28px;
  }
}

/* ============================================================
   ARTICLE GLOSSARY (Begriffserklärungen)
   ============================================================ */

.article-glossary__list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-glossary__term {
  font-weight: 500;
  color: var(--thema-color, #000);
  margin: 0 0 4px 28px;
  font-size: 1rem;
}

.article-glossary__definition {
  margin: 0 0 0 28px;
  line-height: 1.6;
  color: inherit;
}
