/* ===========================================
   Blog — Übersicht + Detailseite.
   sl-* Klassen kommen aus suchbegriff-relaunch.css (Dependency).
   =========================================== */

/* ── Reading Progress Bar ──────────────────────────────────────────── */
.blog-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--aa-red);
  z-index: 9999;
  transition: width 50ms linear;
}

/* ── Blog Overview Section ─────────────────────────────────────────── */
.blog-overview-section {
  padding: 3.5rem 0 4rem;
  background: var(--aa-light);
}

/* Teaser card meta (date, reading time) */
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--aa-muted);
  margin-bottom: 0.625rem;
  font-weight: 500;
}

.blog-card-meta__sep {
  opacity: 0.4;
}

.sl-blog-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--aa-dark);
  line-height: 1.4;
  margin: 0 0 0.625rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-excerpt {
  font-size: 0.85rem;
  color: var(--aa-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pager */
.blog-pager {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.blog-pager .pager__items {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-pager .pager__item a,
.blog-pager .pager__item.is-active span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border: 1px solid var(--aa-border);
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--aa-dark);
  background: #fff;
  transition: all 200ms ease;
}

.blog-pager .pager__item a:hover {
  border-color: var(--aa-red);
  color: var(--aa-red);
}

.blog-pager .pager__item.is-active span {
  background: var(--aa-red);
  border-color: var(--aa-red);
  color: #fff;
}

/* ── Article Hero (modernes Editorial-Design) ──────────────────────── */
.article-hero {
  background: var(--aa-dark);
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid rgba(230, 11, 0, 0.25);
}

/* Subtile rote Lichtreflexion oben rechts */
.article-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(230,11,0,0.10) 0%, transparent 68%);
  pointer-events: none;
}

/* Roter Akzent-Strich unten */
.article-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent 0%, var(--aa-red) 30%, rgba(230,11,0,0.3) 100%);
}

.article-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

/* Breadcrumb */
.article-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
}
.article-hero__breadcrumb a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 150ms ease;
}
.article-hero__breadcrumb a:hover { color: rgba(255,255,255,0.75); }
.article-hero__breadcrumb i {
  color: rgba(255,255,255,0.2);
  font-size: 0.7rem;
}
.article-hero__breadcrumb span { color: rgba(255,255,255,0.55); }

/* Kategorie-Badge */
.article-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(230,11,0,0.18);
  color: #ff7a74;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2rem;
  border: 1px solid rgba(230,11,0,0.3);
  margin-bottom: 1.25rem;
}
.article-hero__badge i { font-size: 0.75rem; }

/* Titel */
.article-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 1.25rem;
}

/* Meta-Zeile */
.article-hero__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.87rem;
}
.article-hero__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.5);
}
.article-hero__meta-item i { color: rgba(255,255,255,0.3); }
.article-hero__meta-sep {
  color: rgba(255,255,255,0.2);
  font-size: 1.1rem;
  line-height: 1;
}

/* CTAs (Landingpage) */
.article-hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Landingpage-Hero — leicht andere Tiefe */
.article-hero--lp {
  padding: 4rem 0 3.5rem;
}

/* ── Featured Image — full-bleed, kein Cropping ─────────────────────── */
.article-featured-img {
  width: 100%;
  background: #111;
  line-height: 0;
}

.article-featured-img img,
.article-featured-img picture img {
  width: 100%;
  height: auto;
  max-height: none;
  display: block;
  object-fit: unset;
}

/* Subtle fade from hero into image */
.article-featured-img::before {
  content: none;
}

/* Legacy-Klasse — falls noch irgendwo verwendet */
.blog-featured-img {
  background: var(--aa-light);
  padding: 0;
}
.blog-featured-img img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: unset;
  display: block;
}

/* ── Article Section ───────────────────────────────────────────────── */
.blog-article-section {
  padding: 3.5rem 0 4rem;
}

.blog-article-content {
  font-size: 1rem;
  color: var(--aa-body);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.blog-article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--aa-dark);
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.blog-article-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--aa-dark);
  margin: 1.5rem 0 0.5rem;
}

.blog-article-content p { margin-bottom: 1.25rem; }
.blog-article-content p:last-child { margin-bottom: 0; }

.blog-article-content ul,
.blog-article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.blog-article-content li { margin-bottom: 0.375rem; }

.blog-article-content a {
  color: var(--aa-red);
  text-decoration: underline;
  text-decoration-color: rgba(230, 11, 0, 0.3);
  transition: text-decoration-color 150ms ease;
}

.blog-article-content a:hover {
  text-decoration-color: var(--aa-red);
}

.blog-article-content blockquote {
  border-left: 4px solid var(--aa-red);
  padding: 1rem 1.5rem;
  background: var(--aa-red-soft);
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--aa-dark);
}

/* ── Table of Contents Sidebar ─────────────────────────────────────── */
.blog-toc-sidebar-wrap {
  position: sticky;
  top: 90px;
}

.blog-toc-sidebar {
  background: #fff;
  border: 1px solid var(--aa-border);
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  overflow: hidden;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.blog-toc__header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--aa-dark);
  padding: 0.9rem 1.25rem;
  border-bottom: 2px solid var(--aa-red);
}

.blog-toc__header i {
  font-size: 0.9rem;
  color: var(--aa-red);
}

/* Vertical track */
.blog-toc__list {
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  counter-reset: toc-counter;
}

.blog-toc__list li {
  margin: 0;
  counter-increment: toc-counter;
}

.blog-toc__list > li:not(.blog-toc__subitem)::before {
  display: none;
}

.blog-toc__list a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  color: var(--aa-body);
  text-decoration: none;
  line-height: 1.4;
  border-left: 3px solid transparent;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.blog-toc__list a:hover {
  color: var(--aa-dark);
  background: var(--aa-light);
  border-left-color: rgba(230,11,0,0.3);
}

.blog-toc__list a.toc-active {
  color: var(--aa-red);
  font-weight: 600;
  border-left-color: var(--aa-red);
  background: var(--aa-red-soft);
}

/* H3 sub-items indented */
.blog-toc__subitem a {
  padding-left: 2rem;
  font-size: 0.8rem;
  color: var(--aa-muted);
}

/* ── Mobile TOC ──────────────────────────────────────────────────────── */
.blog-toc-mobile {
  background: #fff;
  border: 1px solid var(--aa-border);
  border-radius: 0.875rem;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.blog-toc-mobile[style*="display:none"] {
  display: none !important;
}

.blog-toc-mobile__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  cursor: pointer;
  background: var(--aa-dark);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  list-style: none;
  border-bottom: 2px solid var(--aa-red);
  user-select: none;
}

.blog-toc-mobile__toggle::-webkit-details-marker { display: none; }

.blog-toc-mobile__toggle span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-toc-mobile__toggle i.bi-list-ul { color: var(--aa-red); }

.blog-toc-mobile__arrow {
  transition: transform 250ms ease;
  font-size: 0.9rem;
  opacity: 0.7;
}

.blog-toc-mobile[open] .blog-toc-mobile__arrow {
  transform: rotate(180deg);
}

.blog-toc-mobile .blog-toc__list {
  padding: 0.5rem 0;
  list-style: none;
}

/* Mobile-Links: kein border-left, saubereres Padding */
.blog-toc-mobile .blog-toc__list a {
  border-left: none;
  padding: 0.55rem 1.25rem;
  font-size: 0.88rem;
  color: var(--aa-body);
}

.blog-toc-mobile .blog-toc__list a:hover {
  color: var(--aa-red);
  background: var(--aa-red-soft);
  border-left: none;
}

.blog-toc-mobile .blog-toc__list a.toc-active {
  color: var(--aa-red);
  font-weight: 600;
  background: var(--aa-red-soft);
  border-left: none;
}

.blog-toc-mobile .blog-toc__subitem a {
  padding-left: 2.25rem;
  font-size: 0.82rem;
  color: var(--aa-muted);
}

/* Trennlinie zwischen Items */
.blog-toc-mobile .blog-toc__list li + li {
  border-top: 1px solid var(--aa-border);
}

/* ── Meta blocks (tags, links, standort) ───────────────────────────── */
.blog-article-meta-block {
  padding: 1.25rem 0;
  border-top: 1px solid var(--aa-border);
}

.blog-article-meta-block__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--aa-muted);
  margin-bottom: 0.75rem;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── Article Footer ────────────────────────────────────────────────── */
.blog-article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--aa-border);
  margin-top: 0.5rem;
}

.blog-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: transparent;
  border: 1px solid var(--aa-border);
  border-radius: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--aa-muted);
  cursor: pointer;
  transition: all 200ms ease;
}

.blog-share-btn:hover {
  border-color: var(--aa-red);
  color: var(--aa-red);
}

.blog-share-btn--success {
  border-color: #059669;
  color: #059669;
  background: #ecfdf5;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .article-hero {
    padding: 2.5rem 0 2.25rem;
  }
  .article-hero--lp {
    padding: 2.75rem 0 2.5rem;
  }
}

@media (max-width: 768px) {
  .article-hero__title { font-size: 1.65rem; }
  .article-hero__inner { max-width: 100%; }
  .blog-article-content { font-size: 0.95rem; }
  .blog-article-section { padding: 2rem 0 3rem; }
  .article-hero__ctas { margin-top: 1.5rem; }
}
