/* ===== Blog-Artikel Styles ===== */

.blog-header {
  padding: 4rem 0 2.5rem;
  text-align: center;
}

.blog-header .eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: rgba(57, 184, 200, 0.15);
  border: 1px solid rgba(57, 184, 200, 0.3);
  color: #39b8c8;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.blog-header h1 {
  font-family: "Instrument Sans", sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 1.2rem + 2.5vw, 2.75rem);
  line-height: 1.15;
  color: #f3f3f3;
  max-width: 48rem;
  margin: 0 auto 1.25rem;
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.88rem;
  color: rgba(243, 243, 243, 0.55);
  flex-wrap: wrap;
}

.blog-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Article layout: TOC sidebar + body */
.blog-layout {
  display: grid;
  /* minmax(0, 1fr) statt 1fr: Grid-Items haben per Default min-width:auto
     und koennen dadurch nicht schmaler werden als ihr breitester Inhalt
     (z. B. die Vergleichstabelle). Das sprengte die Textspalte. */
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 2.5rem;
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1rem;
  align-items: start;
}

/* Sticky TOC sidebar */
.blog-toc {
  position: sticky;
  top: 6rem;
  padding: 1.25rem 0;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
}

.blog-toc-title {
  font-family: "Instrument Sans", sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243, 243, 243, 0.4);
  margin: 0 0 0.75rem;
  padding-left: 0.75rem;
}

.blog-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-toc-list li {
  margin: 0;
  padding: 0;
}

.blog-toc-list a {
  display: block;
  padding: 0.4rem 0.75rem;
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(243, 243, 243, 0.5);
  text-decoration: none;
  border-left: 2px solid transparent;
  border-radius: 0 0.25rem 0.25rem 0;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.blog-toc-list a:hover {
  color: #f3f3f3;
  background: rgba(243, 243, 243, 0.04);
}

.blog-toc-list a.is-active {
  color: #39b8c8;
  border-left-color: #39b8c8;
  background: rgba(57, 184, 200, 0.08);
}

/* Scroll offset for anchor links */
.blog-body h2[id],
.blog-body .blog-fazit[id] {
  scroll-margin-top: 6rem;
}

/* Article body */
.blog-body {
  min-width: 0;
  max-width: 44rem;
  margin: 0;
  padding: 0 0 4rem;
}

/* Lange Woerter/URLs duerfen die Spalte nicht sprengen */
.blog-body p,
.blog-body li,
.blog-body h2,
.blog-body h3 {
  overflow-wrap: break-word;
}

.blog-body p {
  font-family: "Instrument Sans", sans-serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(243, 243, 243, 0.88);
  margin-bottom: 1.25rem;
}

.blog-body h2 {
  font-family: "Instrument Sans", sans-serif;
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.2;
  color: #f3f3f3;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(243, 243, 243, 0.08);
}

.blog-body h3 {
  font-family: "Instrument Sans", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.3;
  color: #f3f3f3;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.blog-body strong {
  color: #f3f3f3;
  font-weight: 600;
}

.blog-body a {
  color: #39b8c8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-body a:hover {
  color: #5dd4e3;
}

.blog-body a.button-13,
.blog-body a.button-13:hover {
  color: #f3f3f3;
  text-decoration: none;
}

/* Lists */
.blog-body ul,
.blog-body ol {
  margin: 0 0 1.5rem 1.25rem;
  padding: 0;
}

.blog-body li {
  font-family: "Instrument Sans", sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(243, 243, 243, 0.88);
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.blog-body ul li::marker {
  color: #39b8c8;
}

/* Highlight box / Tipp-Box */
.blog-highlight {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  border-radius: 0.75rem;
  background: rgba(57, 184, 200, 0.08);
  border-left: 3px solid #39b8c8;
}

.blog-highlight p {
  margin-bottom: 0;
  color: rgba(243, 243, 243, 0.92);
}

.blog-highlight strong {
  color: #39b8c8;
}

/* Comparison table */
.blog-table-wrap {
  margin: 2rem 0;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0.75rem;
  border: 1px solid rgba(243, 243, 243, 0.1);
}

.blog-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.92rem;
}

.blog-table thead {
  background: rgba(57, 184, 200, 0.12);
}

.blog-table th {
  padding: 0.9rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #f3f3f3;
  white-space: nowrap;
  border-bottom: 1px solid rgba(243, 243, 243, 0.12);
}

.blog-table td {
  padding: 0.8rem 1rem;
  color: rgba(243, 243, 243, 0.82);
  border-bottom: 1px solid rgba(243, 243, 243, 0.06);
  vertical-align: top;
}

.blog-table tbody tr:hover {
  background: rgba(243, 243, 243, 0.03);
}

/* CTA Banner */
.blog-cta {
  margin: 3rem 0;
  padding: 2.5rem 2rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(57, 184, 200, 0.15) 0%, rgba(57, 184, 200, 0.05) 100%);
  border: 1px solid rgba(57, 184, 200, 0.25);
  text-align: center;
}

.blog-cta h3 {
  font-family: "Instrument Sans", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: #f3f3f3;
  margin: 0 0 0.75rem;
  border: none;
  padding: 0;
}

.blog-cta p {
  max-width: 36rem;
  margin: 0 auto 1.25rem;
  color: rgba(243, 243, 243, 0.78);
  font-size: 1rem;
}

.blog-cta .button-13 {
  display: inline-block;
}

/* Key takeaway / Fazit box */
.blog-fazit {
  margin: 2.5rem 0;
  padding: 2rem;
  border-radius: 0.75rem;
  background: rgba(243, 243, 243, 0.04);
  border: 1px solid rgba(243, 243, 243, 0.1);
}

.blog-fazit h3 {
  margin-top: 0;
  color: #39b8c8;
  border: none;
  padding: 0;
}

/* Breadcrumb */
.blog-breadcrumb {
  padding: 1rem 0 0;
  font-size: 0.85rem;
  color: rgba(243, 243, 243, 0.45);
}

.blog-breadcrumb a {
  color: rgba(243, 243, 243, 0.55);
  text-decoration: none;
}

.blog-breadcrumb a:hover {
  color: #39b8c8;
}

.blog-breadcrumb span {
  margin: 0 0.4rem;
}

/* Related articles */
.blog-related {
  padding: 3rem 0;
  border-top: 1px solid rgba(243, 243, 243, 0.08);
}

.blog-related h2 {
  font-family: "Instrument Sans", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #f3f3f3;
  margin-bottom: 1.5rem;
  border: none;
  padding: 0;
}

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: 1.25rem;
}

.blog-related-card {
  display: block;
  min-width: 0;
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  background: rgba(243, 243, 243, 0.04);
  border: 1px solid rgba(243, 243, 243, 0.08);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.blog-related-card:hover {
  border-color: rgba(57, 184, 200, 0.3);
  background: rgba(57, 184, 200, 0.06);
}

.blog-related-card h3 {
  font-family: "Instrument Sans", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #f3f3f3;
  margin: 0 0 0.4rem;
  line-height: 1.35;
}

.blog-related-card p {
  font-size: 0.88rem;
  color: rgba(243, 243, 243, 0.55);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 991px) {
  .blog-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0 0.75rem;
  }

  .blog-toc {
    display: none;
  }
}

@media (max-width: 767px) {
  .blog-header {
    padding: 2.5rem 0 1.5rem;
  }

  .blog-body {
    padding: 0 0 3rem;
  }

  .blog-body h2 {
    font-size: 1.3rem;
  }

  .blog-cta {
    padding: 1.75rem 1.25rem;
  }
}
