/* ============================================================
   blog.css – Gemeinsames Stylesheet für den Wissensbereich
   Farben und Typografie: identisch mit der Hauptseite (R&H).
   Kein Tailwind-Build nötig, reines CSS.
   ============================================================ */

/* --- Reset & Basis ----------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2B2F33;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #0D7377;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --- Layout ------------------------------------------------ */
.blog-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #D9DEE2;
}

.blog-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-logo {
  font-weight: 600;
  font-size: 18px;
  color: #0D7377;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.blog-logo:hover {
  opacity: 0.8;
  text-decoration: none;
}

.blog-header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.blog-header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: #2B2F33;
  text-decoration: none;
  transition: color 0.15s;
}

.blog-header-nav a:hover {
  color: #0D7377;
  text-decoration: none;
}

.blog-header-nav a.active {
  color: #0D7377;
}

.blog-header-cta {
  display: inline-block;
  background: #0D7377;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  text-decoration: none !important;
  transition: background 0.15s;
}

.blog-header-cta:hover {
  background: #0A5C5F;
}

.blog-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

/* --- Übersichtsseite (index) ------------------------------- */
.blog-hero {
  margin-bottom: 48px;
}

.blog-hero h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  color: #163F45;
  margin-bottom: 12px;
}

.blog-hero p {
  font-size: 18px;
  color: #6B737B;
  line-height: 1.5;
}

.blog-card-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.blog-card {
  display: block;
  border: 1px solid #D9DEE2;
  padding: 28px 24px;
  transition: border-color 0.15s, box-shadow 0.15s;
  text-decoration: none !important;
  color: inherit !important;
}

.blog-card:hover {
  border-color: #0D7377;
  box-shadow: 0 2px 8px rgba(13, 115, 119, 0.08);
}

.blog-card-date {
  font-size: 13px;
  color: #6B737B;
  margin-bottom: 6px;
}

.blog-card h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: #163F45;
  margin-bottom: 8px;
}

.blog-card p {
  font-size: 15px;
  color: #6B737B;
  line-height: 1.5;
}

.blog-card.blog-card--soon {
  opacity: 0.5;
  pointer-events: none;
}

.blog-card--soon .blog-card-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #6B737B;
  border: 1px solid #D9DEE2;
  padding: 2px 8px;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --- Artikel ----------------------------------------------- */
.article-meta {
  font-size: 14px;
  color: #6B737B;
  margin-bottom: 32px;
}

.article-meta span + span::before {
  content: " · ";
}

article h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  color: #163F45;
  margin-bottom: 12px;
}

article h2 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: #163F45;
  margin-top: 48px;
  margin-bottom: 16px;
}

article p {
  margin-bottom: 20px;
}

article .lead {
  font-size: 18px;
  line-height: 1.55;
  color: #163F45;
  border-left: 3px solid #0D7377;
  padding-left: 20px;
  margin-bottom: 32px;
}

article ul,
article ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

article li {
  margin-bottom: 8px;
}

article strong {
  font-weight: 600;
  color: #163F45;
}

article blockquote {
  border-left: 3px solid #D9DEE2;
  padding-left: 20px;
  color: #6B737B;
  font-style: italic;
  margin: 24px 0;
}

/* --- FAQ --------------------------------------------------- */
.faq-section {
  margin-top: 56px;
  border-top: 1px solid #D9DEE2;
  padding-top: 40px;
}

.faq-section h2 {
  margin-top: 0;
}

.faq-item {
  border-bottom: 1px solid #D9DEE2;
  padding: 20px 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-size: 17px;
  font-weight: 600;
  color: #163F45;
  margin-bottom: 8px;
}

.faq-answer {
  font-size: 15px;
  color: #2B2F33;
  line-height: 1.6;
}

/* --- CTA-Block --------------------------------------------- */
.article-cta {
  margin-top: 56px;
  background: #EEF4F5;
  padding: 32px 28px;
}

.article-cta p {
  margin-bottom: 16px;
}

.article-cta p:last-of-type {
  margin-bottom: 20px;
}

.article-cta strong {
  font-size: 18px;
}

.article-cta .cta-button {
  display: inline-block;
  background: #0D7377;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  text-decoration: none;
  transition: background 0.15s;
}

.article-cta .cta-button:hover {
  background: #0A5C5F;
  text-decoration: none;
}

.article-cta .cta-sub {
  display: block;
  font-size: 13px;
  color: #6B737B;
  margin-top: 10px;
}

/* --- Footer ------------------------------------------------ */
.blog-footer {
  background: #163F45;
  color: #BDD6D8;
  padding: 40px 20px;
}

.blog-footer-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.blog-footer a {
  color: #BDD6D8;
  text-decoration: none;
  transition: color 0.15s;
}

.blog-footer a:hover {
  color: #fff;
}

.blog-footer-copy {
  color: #86B1B5;
  font-size: 12px;
}

/* --- Responsive -------------------------------------------- */
@media (max-width: 640px) {
  .blog-header-inner {
    padding: 0 16px;
  }

  .blog-header-nav {
    gap: 12px;
  }

  .blog-header-cta {
    display: none;
  }

  .blog-main {
    padding: 32px 16px 64px;
  }

  .blog-hero h1,
  article h1 {
    font-size: 28px;
  }

  article h2 {
    font-size: 20px;
  }

  .blog-card {
    padding: 20px 16px;
  }

  .article-cta {
    padding: 24px 20px;
  }
}
