/* kbx-blog.css — Einheitliches Blog-Design fuer ki-beo.ch
   Wirkt auf ALLE Single-Post-Seiten, unabhaengig davon ob der Divi Builder
   aktiv ist oder nicht. Keine Google-Fonts-Calls (DSG-Pflicht). */

/* ================================================================
   1. CONTENT WRAPPER
   ================================================================ */
.single-post .kbx-blog-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================================================================
   2. META-ZEILE (Kategorie + Lesezeit, via PHP injected)
   ================================================================ */
.kbx-blog-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.kbx-blog-meta__category {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #1E5AA8;
}

.kbx-blog-meta__sep {
  color: #B6C2D1;
  font-size: 11.5px;
}

.kbx-blog-meta__readtime {
  font-size: 12.5px;
  color: #9AA6B5;
}

/* ================================================================
   3. TYPOGRAPHY — Single Post Content
   Targets both standard WP content and Divi text inner.
   ================================================================ */
.single-post .entry-content h1,
.single-post .et_pb_text_inner > h1 {
  display: none;
}

.single-post .entry-content h2,
.single-post .et_pb_post_content h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0F2A4A;
  margin: 36px 0 14px;
  line-height: 1.2;
}

.single-post .entry-content h3,
.single-post .et_pb_post_content h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: #0F2A4A;
  margin: 30px 0 12px;
  line-height: 1.3;
}

.single-post .entry-content p,
.single-post .et_pb_post_content p {
  font-size: 16px;
  line-height: 1.7;
  color: #16222E;
  margin: 14px 0 0;
}

.single-post .entry-content > p:first-of-type,
.single-post .et_pb_post_content > .et_pb_text_inner > p:first-of-type {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.55;
  color: #42505E;
}

.single-post .entry-content a,
.single-post .et_pb_post_content a:not(.et_pb_button) {
  color: #1E5AA8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.single-post .entry-content a:hover,
.single-post .et_pb_post_content a:not(.et_pb_button):hover {
  color: #3C86E0;
}

/* ================================================================
   4. LISTS
   ================================================================ */
.single-post .entry-content ul,
.single-post .entry-content ol,
.single-post .et_pb_post_content ul,
.single-post .et_pb_post_content ol {
  font-size: 16px;
  line-height: 1.7;
  color: #16222E;
  margin: 14px 0 0;
  padding-left: 22px;
}

.single-post .entry-content li,
.single-post .et_pb_post_content li {
  margin-bottom: 7px;
}

/* ================================================================
   5. BLOCKQUOTE
   ================================================================ */
.single-post .entry-content blockquote,
.single-post .et_pb_post_content blockquote {
  margin: 32px 0;
  padding: 18px 24px;
  border-left: 4px solid #3C86E0;
  background: #F4F8FD;
  border-radius: 0 8px 8px 0;
}

.single-post .entry-content blockquote p,
.single-post .et_pb_post_content blockquote p {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  font-weight: 600;
  font-style: italic;
  color: #16406F;
  line-height: 1.45;
  margin: 0;
}

/* ================================================================
   6. HORIZONTAL RULE
   ================================================================ */
.single-post .entry-content hr,
.single-post .et_pb_post_content hr {
  border: none;
  border-top: 1px solid #EDF1F6;
  margin: 34px 0;
}

/* ================================================================
   7. IMAGES & FIGURES
   ================================================================ */
.single-post .entry-content figure {
  margin: 32px auto;
  max-width: 100%;
}

.single-post .entry-content figure img {
  border-radius: 10px;
  width: 100%;
  height: auto;
}

.single-post .entry-content figcaption {
  font-size: 13px;
  color: #9AA6B5;
  margin-top: 9px;
  text-align: center;
}

/* ================================================================
   8. STRONG/EM in kbx context
   ================================================================ */
.single-post .entry-content strong {
  color: #0F2A4A;
}

.single-post .entry-content em {
  color: #42505E;
}

/* ================================================================
   9. CTA BOX (via PHP injected)
   ================================================================ */
.kbx-blog-cta {
  background: #0F2A4A;
  border-radius: 12px;
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin: 40px 0 30px;
}

.kbx-blog-cta__text h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #F4F6F9;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.2;
}

.kbx-blog-cta__text p {
  font-size: 15px;
  color: #A9C6EC;
  margin: 8px 0 0;
}

.kbx-blog-cta__btn {
  display: inline-block;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #0F2A4A;
  background: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 26px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.kbx-blog-cta__btn:hover {
  background: #DCE8F6;
  color: #0F2A4A;
  text-decoration: none;
}

/* ================================================================
   10. WEITERLESEN LINKS (via PHP injected)
   ================================================================ */
.kbx-blog-related {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 30px;
}

.kbx-blog-related a {
  font-size: 14.5px;
  font-weight: 600;
  color: #1E5AA8;
  text-decoration: none;
}

.kbx-blog-related a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.kbx-blog-related__sep {
  color: #B6C2D1;
}

/* ================================================================
   11. AUTHOR BOX (via PHP injected)
   ================================================================ */
.kbx-blog-author {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 30px 0;
  background: #F4F6F9;
  border: 1px solid #E8EDF3;
  border-radius: 11px;
  padding: 20px 22px;
}

.kbx-blog-author__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #DCE8F6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  color: #1E5AA8;
  font-size: 17px;
  flex: none;
}

.kbx-blog-author__name {
  font-size: 14.5px;
  font-weight: 700;
  color: #0F2A4A;
}

.kbx-blog-author__bio {
  font-size: 13.5px;
  color: #5A6675;
  line-height: 1.5;
  margin-top: 2px;
}

/* ================================================================
   12. POST NAVIGATION (prev/next)
   ================================================================ */
.kbx-blog-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 22px 0 40px;
}

.kbx-blog-nav__item {
  flex: 1;
  border: 1px solid #E8EDF3;
  border-radius: 9px;
  padding: 14px 16px;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.kbx-blog-nav__item:hover {
  border-color: #1E5AA8;
  text-decoration: none;
}

.kbx-blog-nav__item--next {
  text-align: right;
}

.kbx-blog-nav__label {
  font-size: 12px;
  color: #9AA6B5;
  display: block;
}

.kbx-blog-nav__title {
  font-size: 14px;
  font-weight: 600;
  color: #0F2A4A;
  margin-top: 3px;
  display: block;
}

/* ================================================================
   13. QUELLENANGABE (Quellen am Ende)
   ================================================================ */
.single-post .entry-content > p:last-of-type em,
.single-post .entry-content > p:last-child em {
  font-size: 13.5px;
  color: #9AA6B5;
  font-style: italic;
}

/* ================================================================
   14. RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  .kbx-blog-cta {
    padding: 28px 24px;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .kbx-blog-cta__text h3 {
    font-size: 22px;
  }

  .kbx-blog-cta__btn {
    text-align: center;
  }

  .kbx-blog-nav {
    flex-direction: column;
  }

  .kbx-blog-nav__item--next {
    text-align: left;
  }

  .kbx-blog-author {
    flex-direction: column;
    text-align: center;
  }

  .single-post .entry-content h2,
  .single-post .et_pb_post_content h2 {
    font-size: 24px;
  }
}

/* ================================================================
   15. DIVI BUILDER POSTS — prevent double styling
   When Divi Builder is active, the post already has its own styling
   via kbx classes. These overrides ensure consistency without conflict.
   ================================================================ */
.single-post .et_builder_inner_content .kb-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #1E5AA8;
}

.single-post .et_builder_inner_content .kb-btn-primary {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #0F2A4A !important;
  background: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 14px 26px;
  text-decoration: none;
}
