/* ═══════════════════════════════════════════════════════════
   BLOG STYLES — S&A Solutions Design System
   Farben, Typo, Abstände aus dem bestehenden System
   ═══════════════════════════════════════════════════════════ */

/* ── Blog Section (Homepage) ── */
.rt-blog-section {
  padding: 7.5rem 0;
  background-color: #f6f3ee;
}

.rt-blog-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 3.75rem;
}

.rt-blog-top .rt-short-heading {
  margin-bottom: 1rem;
}

.rt-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.rt-blog-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  text-decoration: none;
  color: inherit;
}

.rt-blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(21, 36, 27, 0.12);
}

.rt-blog-card-image-wrap {
  position: relative;
  width: 100%;
  padding-top: 60%;
  overflow: hidden;
  background-color: #15241b;
}

.rt-blog-card-image-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.rt-blog-card:hover .rt-blog-card-image-wrap img {
  transform: scale(1.05);
}

.rt-blog-card-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: #15241b;
  color: #faf3e3;
  font-family: 'GeneralSans', 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.125rem;
  text-transform: uppercase;
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  z-index: 2;
}

.rt-blog-card-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rt-blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.875rem;
  font-family: 'GeneralSans', 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: #b8b7b7;
  letter-spacing: 0.05rem;
}

.rt-blog-card-meta span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.rt-blog-card-title {
  font-family: 'Marcellus', serif;
  font-size: 1.375rem;
  line-height: 130%;
  font-weight: 400;
  color: #151515;
  margin-bottom: 0.75rem;
  letter-spacing: 0.01875rem;
}

.rt-blog-card-excerpt {
  font-family: 'GeneralSans', 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 155%;
  color: #484341;
  margin-bottom: 1.5rem;
  flex: 1;
}

.rt-blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'GeneralSans', 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #15241b;
  text-transform: uppercase;
  letter-spacing: 0.125rem;
  transition: gap 0.3s ease;
}

.rt-blog-card:hover .rt-blog-card-link {
  gap: 0.875rem;
}

.rt-blog-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.rt-blog-card:hover .rt-blog-card-link svg {
  transform: translateX(3px);
}

.rt-blog-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

/* ── Blog Overview Page ── */
.rt-blog-hero {
  background-color: #15241b;
  padding: 10rem 0 5rem;
  text-align: center;
}

.rt-blog-hero .rt-short-heading {
  color: #faf3e3;
  margin-bottom: 1rem;
}

.rt-blog-hero h1 {
  font-family: 'Marcellus', serif;
  font-size: 3.75rem;
  line-height: 105%;
  font-weight: 400;
  letter-spacing: -0.08125rem;
  color: #faf3e3;
  margin-bottom: 1.25rem;
}

.rt-blog-hero p {
  font-family: 'GeneralSans', 'Inter', sans-serif;
  font-size: 1.125rem;
  line-height: 155%;
  color: #b8b7b7;
  max-width: 640px;
  margin: 0 auto;
}

.rt-blog-listing {
  padding: 5rem 0 7.5rem;
  background-color: #f6f3ee;
}

.rt-blog-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* ── Article Page ── */
.rt-article-hero {
  background-color: #15241b;
  padding: 10rem 0 4rem;
}

.rt-article-hero .rt-container {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 0 3rem;
}

.rt-article-hero .rt-container > * {
  grid-column: 1;
}

@media (max-width: 991px) {
  .rt-article-hero .rt-container {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.rt-article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-family: 'GeneralSans', 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #b8b7b7;
}

.rt-article-breadcrumb a {
  color: #b8b7b7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.rt-article-breadcrumb a:hover {
  color: #faf3e3;
}

.rt-article-breadcrumb .separator {
  color: #b8b7b7;
}

.rt-article-hero .rt-blog-card-category {
  position: static;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.rt-article-hero h1 {
  font-family: 'Marcellus', serif;
  font-size: 3rem;
  line-height: 115%;
  font-weight: 400;
  letter-spacing: -0.04rem;
  color: #faf3e3;
  margin-bottom: 1.5rem;
}

.rt-article-hero .rt-article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: 'GeneralSans', 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: #b8b7b7;
}

.rt-article-hero .rt-article-meta .author {
  font-weight: 600;
  color: #faf3e3;
}

.rt-article-body {
  padding: 4rem 0 5rem;
  background-color: #fff;
}

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

.rt-article-content {
  font-family: 'GeneralSans', 'Inter', sans-serif;
  font-size: 1.0625rem;
  line-height: 180%;
  color: #484341;
}

.rt-article-content h2 {
  font-family: 'Marcellus', serif;
  font-size: 2rem;
  line-height: 125%;
  font-weight: 400;
  color: #151515;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01rem;
}

.rt-article-content h3 {
  font-family: 'Marcellus', serif;
  font-size: 1.5rem;
  line-height: 130%;
  font-weight: 400;
  color: #151515;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.rt-article-content p {
  margin-bottom: 1.5rem;
}

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

.rt-article-content li {
  margin-bottom: 0.5rem;
  line-height: 175%;
}

.rt-article-content strong {
  font-weight: 600;
  color: #151515;
}

.rt-article-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid #15241b;
  background-color: #f6f3ee;
  border-radius: 0 1.25rem 1.25rem 0;
  font-style: italic;
  color: #151515;
}

.rt-article-content .highlight-box {
  background-color: #15241b;
  color: #faf3e3;
  padding: 2rem 2.5rem;
  border-radius: 1.25rem;
  margin: 2.5rem 0;
}

.rt-article-content .highlight-box h3 {
  color: #faf3e3;
  margin-top: 0;
}

.rt-article-content .highlight-box ul {
  color: #b8b7b7;
}

.rt-article-content .highlight-box strong {
  color: #faf3e3;
}

/* Article Layout: Content + Sidebar */
.rt-article-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.rt-article-layout .rt-article-content {
  min-width: 0;
}

/* TOC (Table of Contents) — Sticky Sidebar */
.rt-article-toc {
  position: sticky;
  top: 6rem;
  background-color: #f6f3ee;
  border-radius: 1.25rem;
  padding: 1.5rem 1.75rem;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
}

.rt-article-toc h4 {
  font-family: 'GeneralSans', 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.125rem;
  color: #15241b;
  margin-bottom: 1rem;
}

.rt-article-toc ol {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
  counter-reset: toc-counter;
}

.rt-article-toc li {
  margin-bottom: 0;
  counter-increment: toc-counter;
  border-left: 2px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.rt-article-toc li a {
  display: block;
  padding: 0.5rem 0.875rem;
  color: #b8b7b7;
  text-decoration: none;
  font-family: 'GeneralSans', 'Inter', sans-serif;
  font-size: 0.8125rem;
  line-height: 145%;
  transition: color 0.3s ease;
}

.rt-article-toc li a::before {
  content: counter(toc-counter) ". ";
  font-weight: 600;
}

.rt-article-toc li a:hover {
  color: #484341;
}

/* Active State */
.rt-article-toc li.active {
  border-left-color: #15241b;
  background-color: rgba(21, 36, 27, 0.06);
  border-radius: 0 0.5rem 0.5rem 0;
}

.rt-article-toc li.active a {
  color: #15241b;
  font-weight: 600;
}

/* Responsive: TOC goes inline on mobile/tablet */
@media (max-width: 991px) {
  .rt-article-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .rt-article-toc {
    position: relative;
    top: 0;
    margin-bottom: 2.5rem;
    max-height: none;
  }
}

/* Related Articles */
.rt-related-articles {
  padding: 5rem 0;
  background-color: #f6f3ee;
}

.rt-related-articles h2 {
  font-family: 'Marcellus', serif;
  font-size: 2.5rem;
  line-height: 115%;
  font-weight: 400;
  text-align: center;
  margin-bottom: 3rem;
  color: #151515;
}

/* Article CTA Banner */
.rt-article-cta {
  background-color: #15241b;
  padding: 4rem;
  border-radius: 1.25rem;
  text-align: center;
  margin: 3rem 0;
}

.rt-article-cta h3 {
  font-family: 'Marcellus', serif;
  color: #faf3e3;
  font-size: 1.875rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.rt-article-cta p {
  color: #b8b7b7;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.rt-article-cta .rt-button {
  display: inline-flex;
}

/* Schema / structured data styling */
.rt-article-schema {
  display: none;
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .rt-blog-grid,
  .rt-blog-listing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rt-blog-hero h1 {
    font-size: 2.75rem;
  }

  .rt-article-hero h1 {
    font-size: 2.25rem;
  }

  .rt-blog-section {
    padding: 5rem 0;
  }
}

@media (max-width: 767px) {
  .rt-blog-grid,
  .rt-blog-listing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .rt-blog-hero h1 {
    font-size: 2.25rem;
  }

  .rt-blog-hero {
    padding: 8rem 0 3rem;
  }

  .rt-article-hero {
    padding: 8rem 0 3rem;
  }

  .rt-article-hero h1 {
    font-size: 1.875rem;
  }

  .rt-article-hero .rt-article-meta {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .rt-blog-section {
    padding: 4rem 0;
  }

  .rt-blog-top {
    margin-bottom: 2.5rem;
  }

  .rt-article-cta {
    padding: 2.5rem 1.5rem;
  }

  .rt-article-content .highlight-box {
    padding: 1.5rem;
  }

  .rt-article-toc {
    padding: 1.5rem;
  }
}

@media (max-width: 479px) {
  .rt-blog-card-title {
    font-size: 1.25rem;
  }

  .rt-blog-hero h1 {
    font-size: 1.875rem;
  }

  .rt-article-hero h1 {
    font-size: 1.625rem;
  }
}
