/* ==========================================================================
   Single Post (Blog Detail) – Hero, Sidebar, Nav, More from Category
   Hauptfarbe: #00561C
   ========================================================================== */

/* Hero */
.single-post-hero {
  margin-bottom: 2rem;
}

.single-post-hero__top {
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}

.single-post-hero__breadcrumb {
  font-size: 0.875rem;
  color: #000;
  margin-bottom: 5rem;
}

.single-post-hero__breadcrumb a {
  color: #000;
  text-decoration: none;
}

.single-post-hero__breadcrumb a:hover {
  text-decoration: underline;
}

.single-post-hero__breadcrumb-sep {
  margin: 0 0.35rem;
  color: rgba(0,0,0,0.7);
}

.single-post-hero__breadcrumb-current {
  color: #000;
}

.single-post-hero__back {
  display: inline-block;
  font-size: 0.9rem;
  color: #000;
  text-decoration: none;
  margin-bottom: 1rem;
}

.single-post-hero__back:hover {
  text-decoration: underline;
}

.single-post-hero__meta {
  margin-bottom: 0.75rem;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 2rem;
  @media (min-width: 768px) {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
}



.single-post-hero__category-badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background-color: #00561C;
  color: #fff !important;
  margin-right: 0.75rem;
}

.single-post-hero__date {
  font-size: 0.9rem;
  color: #000;
}

.single-post-hero__title {
  font-size: clamp(40px, 4vw, 50px) !important;
  font-weight: 400 !important;
  color: #00561c !important;
  line-height: 1.1 !important;
  margin-bottom: 0.75rem !important;
}

.single-post-hero__excerpt {
  font-size: 1rem;
  color: #000;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  max-width: 42rem;
}

.single-post-hero__image {
  width: 100%;
  height: min(550px, 50vw);
  max-height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Content + Sidebar */
.single-post-page__content-wrap {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Sticky-Umfeld: kein overflow, damit sticky funktioniert */
.single-post-page__content-wrap,
.single-post-page__content-wrap .row {
  overflow: visible;
}

.single-post-page__sidebar-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 1.25rem;
}

/* Sticky Sidebar „Das könnte Sie auch interessieren“
   align-self: flex-start verhindert, dass die Spalte auf volle Zeilenhöhe gestreckt wird;
   nur so kann position: sticky beim Scrollen greifen. */
.single-post-page__sidebar {
  align-self: flex-start;
  position: sticky;
  top: 120px;
}

@media (max-width: 991.98px) {
  .single-post-page__sidebar {
    position: static;
    align-self: stretch;
  }
}

/* Sidebar cards „Das könnte Sie auch interessieren“ */
.single-post-sidebar-card {
  background-color: #f8f9fa;
  border-radius: 4px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.single-post-sidebar-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.single-post-sidebar-card__link:hover .single-post-sidebar-card__title,
.single-post-sidebar-card__link:focus .single-post-sidebar-card__title {
  text-decoration: underline;
}

.single-post-sidebar-card__meta {
  margin-bottom: 0.5rem;
}

.single-post-sidebar-card__category-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background-color: #e0e0e0;
  color: #000;
  margin-right: 0.5rem;
}

.single-post-sidebar-card__date {
  font-size: 0.8rem;
  color: rgba(0,0,0,0.7);
}

.single-post-sidebar-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 0.35rem;
}

.single-post-sidebar-card__excerpt {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.single-post-sidebar-card__read-more {
  font-size: 0.875rem;
  color: #00561C;
}

.single-post-sidebar-card__read-more:hover,
.single-post-sidebar-card__read-more:focus {
  text-decoration: underline;
}

/* Prev/Next Navigation */
.single-post-page__footer {
  padding-top: 2rem;
  padding-bottom: 1rem;
  border-top: 1px solid #fff;
}

/* Nav: Flex + Gap (Fallback falls Tailwind nicht gebaut) */
.single-post-page__nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .single-post-page__nav {
    flex-direction: row;
    justify-content: space-between;
  }
  .single-post-page__nav-prev {
    flex: 1 1 0%;
  }
  .single-post-page__nav-next {
    flex: 1 1 0%;
    text-align: right;
  }
}

.single-post-page__nav-prev a,
.single-post-page__nav-next a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.single-post-page__nav-prev,
.single-post-page__nav-next {
 background-color: f8fafc;
 padding: 1.5rem;
 border-radius: 0.25rem;
 border: 1px solid rgba(226,232,240, 0.6);
 transition: all 0.3s ease;
}

.single-post-page__nav-label {
  display: block;
  font-size: 0.85rem;
  color: rgba(0,0,0,0.7);
  margin-bottom: 0.25rem;
}

.single-post-page__nav-prev a,
.single-post-page__nav-next a {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.single-post-page__nav-title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
}

.single-post-page__nav-prev a:hover .single-post-page__nav-title,
.single-post-page__nav-next a:hover .single-post-page__nav-title {
  text-decoration: underline;
}

/* Mehr aus dieser Kategorie */
.single-post-page__more-category {
  margin-bottom: 2rem;
}

@media (max-width: 767.98px) {
  .single-post-page__more-category {
    display: none;
  }
}

.single-post-page__more-category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #00561C;
  margin-bottom: 1.25rem;
}

.single-post-page__load-more {
  display: inline-block;
  padding: 0.5rem 1.75rem;
  background-color: #f0f0f0;
  border: 1px solid #fff;
  border-radius: 4px;
  color: #000;
  font-size: 0.95rem;
  text-decoration: none;
}

.single-post-page__load-more:hover,
.single-post-page__load-more:focus {
  background-color: #e8e8e8;
  color: #000;
}
