/* ============================================================
   Ravensberger Ratgeber – Custom Styles
   Brand: #6a9aad | Content-Hub Redesign
   ============================================================ */

:root {
  /* Brand (shop: --bs-primary / --bs-secondary) */
  --color-brand: #6a9aad;
  --color-brand-dark: #547e8d;
  --color-brand-light: #e1ebef;

  /* Backgrounds (shop: --bs-body-bg / --bs-secondary-bg / --bs-tertiary-bg) */
  --color-bg-warm: #f9f9f9;
  --color-bg-light: #f9f9f9;
  --color-bg-subtle: #f9f9f9;

  /* Text (shop: --bs-body-color #464646) */
  --color-text: #464646;
  --color-text-muted: #464646;
  --color-text-heading: #464646;
  --color-text-dark: #464646;
  --color-text-subtle: #464646;
  --color-text-quote: #464646;
  --color-accent-star: #f59e0b;

  /* Borders (shop: --bs-secondary-bg #eee) */
  --color-border: #eee;
  --color-border-light: #eee;

  /* Shadows */
  --shadow-sm: 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.06);
  --shadow-md: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 0.25rem 1rem rgba(0, 0, 0, 0.12);

  /* Layout */
  --header-height: 5rem;
  --toc-bar-height: 2.75rem;

  /* Radii */
  --radius-sm: 3px;
  --radius-md: 3px;
  --radius-lg: 3px;
}

/* =========================
   Typography (matching shop — Bootstrap 5.3.3 responsive sizes)
   ========================= */
.cms-section-sidebar-main-content h1 {
  font-size: calc(1.425rem + 2.1vw);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.625rem;
}

.cms-section-sidebar-main-content h2 {
  font-size: calc(1.375rem + 1.5vw);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.625rem;
}

.cms-section-sidebar-main-content h3 {
  font-size: calc(1.325rem + 0.9vw);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.625rem;
}

@media (min-width: 1200px) {
  .cms-section-sidebar-main-content h1 {
    font-size: 3rem;
  }
  .cms-section-sidebar-main-content h2 {
    font-size: 2.5rem;
  }
  .cms-section-sidebar-main-content h3 {
    font-size: 2rem;
  }
}

.cms-section-sidebar-main-content .tech-accordion__summary-title,
.cms-section-sidebar-main-content .vorteile-item__title {
  font-size: 1rem;
  line-height: 1.5;
}

.cms-section-sidebar-main-content p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* =========================
   Phase 1: Alert Banner Hide
   ========================= */
noscript.noscript-main {
  display: none !important;
}

/* =========================
   Phase 2: Hero Meta
   ========================= */
.hero-ratgeber__meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--color-text-muted);
  padding: 4px 0 10px;
  align-items: center;
}

.reading-time,
.last-updated {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* =========================
   Phase 1: Author Byline
   ========================= */
.author-byline {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0;
  margin: 12px 0 32px;
}

.author-byline__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-brand-light);
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.author-byline__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-byline__name {
  font-weight: 700;
  color: var(--color-text-heading);
  font-size: 16px;
  line-height: 1.2;
}

.author-byline__meta {
  margin-top: 0;
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 500;
}

@media (max-width: 768px) {
  .author-byline {
    gap: 12px;
    margin: 12px 0 24px;
  }

  .author-byline__avatar {
    width: 44px;
    height: 44px;
  }
}

/* =========================
   Hero Section & Imagery
   ========================= */
#page-title {
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--color-text-heading);
  line-height: 1.1;
}

.hero-image-premium {
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 45px rgba(117, 140, 163, 0.15);
  transition:
    transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.4s ease;
  object-fit: cover;
  width: 100%;
}

.cms-block-image-text .cms-block-container-row.row {
  align-items: stretch !important;
}

.cms-block-image-text .col-md-6 {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}

.cms-block-image-text .cms-element-image,
.cms-block-image-text .cms-image-container {
  height: 100% !important;
}

.hero-image-premium {
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 45px rgba(117, 140, 163, 0.15);
  object-fit: cover;
  width: 100%;
  height: 100% !important;
  min-height: 400px;
}

@media (max-width: 767.98px) {
  .cms-block-image-text .col-md-6 {
    height: auto !important;
  }
  .hero-image-premium {
    height: auto !important;
    min-height: 0;
  }
}

/* =========================
   Phase 1: Left Rail TOC
   ========================= */
.ratgeber-left-rail {
  position: static;
  align-self: flex-start;
  min-height: 0;
  padding: 8px 16px 0;
}

.ratgeber-layout--toc-sticky {
  overflow: visible !important;
}

.ratgeber-left-rail__sticky {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-height: none;
  overflow: visible;
  padding-right: 6px;
}

.ratgeber-left-rail__sticky::-webkit-scrollbar {
  width: 4px;
}

.ratgeber-left-rail__sticky::-webkit-scrollbar-track {
  background: transparent;
}

.ratgeber-left-rail__sticky::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 0;
}

.ratgeber-left-rail__sticky:hover::-webkit-scrollbar-thumb {
  background: #94a3b8;
}

.ratgeber-toc {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  min-height: 0;
}

.ratgeber-toc__eyebrow {
  margin: 0;
  padding: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  color: var(--color-brand);
  border-bottom: 0;
  background: transparent;
  line-height: 1.1;
}

.ratgeber-toc__list,
.ratgeber-toc-sub {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ratgeber-toc__list {
  padding: 0 0 0 1rem;
  border-left: 2px solid #eee;
  max-height: clamp(
    170px,
    calc(100vh - var(--left-rail-offset, var(--header-height)) - 360px),
    440px
  );
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-right: 4px;
}

.ratgeber-toc__list::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.ratgeber-toc-item > a {
  display: block;
  position: relative;
  margin: 0;
  padding: 0.4375rem 0 0.4375rem 0.875rem;
  border-left: 0;
  border-radius: 0;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.32;
  font-weight: 400;
  transition:
    color 0.15s ease,
    font-weight 0.15s ease;
}

.ratgeber-toc-item > a:hover,
.ratgeber-toc-item > a.is-active,
.ratgeber-toc-item > a[aria-current='true'] {
  color: var(--color-brand);
  border-left-color: transparent;
  background: transparent;
  font-weight: 700;
}

.ratgeber-toc-item > a.is-active::before,
.ratgeber-toc-item > a[aria-current='true']::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 7px;
  bottom: 7px;
  width: 2px;
  border-radius: 0;
  background: var(--color-brand);
}

.ratgeber-toc-sub {
  max-height: 0;
  margin: 0;
  padding-left: 22px;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-2px);
  pointer-events: none;
  transition:
    max-height 0.28s ease,
    opacity 0.22s ease,
    transform 0.22s ease,
    margin 0.22s ease;
}

.ratgeber-toc-item.is-open > .ratgeber-toc-sub {
  max-height: 420px;
  margin: 2px 0 6px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ratgeber-toc-sub a {
  display: block;
  margin: 0;
  padding: 0.4375rem 0;
  border-left: 0;
  border-radius: 0;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.75rem;
  line-height: 1.3;
  font-weight: 400;
}

.ratgeber-toc-sub a::before {
  content: '- ';
  color: var(--color-text);
}

.ratgeber-toc-sub a:hover,
.ratgeber-toc-sub a.is-active,
.ratgeber-toc-sub a[aria-current='true'] {
  color: var(--color-brand);
  border-left-color: transparent;
  background: transparent;
  font-weight: 600;
}

/* Desktop left rail: show full TOC without clipping, smaller type like stitch reference */
.ratgeber-left-rail .ratgeber-toc__eyebrow {
  font-size: 12px;
  letter-spacing: 0.045em;
  padding-bottom: 14px;
}

.ratgeber-left-rail .ratgeber-toc__list {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.ratgeber-left-rail .ratgeber-toc-item > a {
  font-size: 0.8125rem;
  line-height: 1.25;
  padding: 0.375rem 0 0.375rem 0.75rem;
}

.ratgeber-left-rail .ratgeber-toc-item > a.is-active::before,
.ratgeber-left-rail .ratgeber-toc-item > a[aria-current='true']::before {
  top: 6px;
  bottom: 6px;
}

.ratgeber-left-rail .ratgeber-toc-sub {
  display: none;
}

.ratgeber-left-rail .ratgeber-toc-sub a {
  font-size: 12px;
  line-height: 1.23;
  padding: 6px 0;
}

.ratgeber-service-card {
  background: var(--color-brand-light);
  border: 1px solid #eee;
  border-radius: var(--radius-lg);
  padding: 1.125rem;
}

.ratgeber-service-card__kicker {
  margin: 0 0 0.5rem;
  color: var(--color-brand);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
}

.ratgeber-service-card__text {
  margin: 0 0 0.875rem;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--color-text);
  font-weight: 400;
}

.ratgeber-service-card__button {
  display: inline-flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-text-heading);
  font-weight: 700;
  font-size: 12px;
  text-decoration: none !important;
  transition: background 0.15s ease;
}

.ratgeber-service-card__button:hover {
  background: var(--color-bg-subtle);
}

.ratgeber-nav-compact {
  display: block;
  margin-top: -0.25rem;
  padding-top: 0.875rem;
  border-top: 1px solid #eee;
}

.ratgeber-nav-compact[hidden] {
  display: none;
}

.ratgeber-nav-compact__title {
  margin: 0 0 0.625rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text);
}

.ratgeber-nav-group {
  border-top: 1px solid #eee;
}

.ratgeber-nav-group:first-of-type {
  border-top: 0;
}

.ratgeber-nav-group summary {
  list-style: none;
  cursor: pointer;
  padding: 9px 0;
  font-size: 16px;
  font-weight: 600;
}

.ratgeber-nav-group summary::-webkit-details-marker {
  display: none;
}

.ratgeber-nav-group ul {
  list-style: none;
  margin: 0 0 10px;
  padding: 0 0 0 10px;
}

.ratgeber-nav-group li {
  margin: 4px 0;
}

.ratgeber-nav-group a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.75rem;
  line-height: 1.35;
}

.ratgeber-nav-group a[aria-current='page'],
.ratgeber-nav-group a:hover {
  color: var(--color-brand-dark);
}

.ratgeber-nav-select__label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.75rem;
  color: var(--color-text);
}

.ratgeber-nav-select {
  width: 100%;
  min-height: 2.625rem;
  border: 1px solid #eee;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  font-size: 1rem;
  padding: 0.5rem 0.625rem;
}

.ratgeber-nav-compact__all {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-brand-dark);
  text-decoration: underline;
}

/* ----- Mobile: Weitere Ratgeber (unter Inline-TOC + Artikelende) ----- */

.ratgeber-nav-mobile {
  display: none;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border-light);
}

.ratgeber-nav-mobile__title {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.ratgeber-nav-mobile__select {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text-heading);
  font-size: 1rem;
  line-height: 1.4;
}

.ratgeber-nav-mobile__all {
  display: inline-block;
  margin-top: 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-brand-dark);
  text-decoration: underline;
}

/* Bottom variant: link list instead of dropdown */
.ratgeber-nav-mobile--bottom {
  margin-top: 2rem;
  padding: 1.5rem;
  border-top: none;
  border-radius: var(--radius-md);
  background: var(--color-bg-subtle);
}

.ratgeber-nav-mobile__list {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
}

.ratgeber-nav-mobile__list li {
  margin: 0;
}

.ratgeber-nav-mobile__list a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--color-brand-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border-light);
}

.ratgeber-nav-mobile__list li:last-child a {
  border-bottom: none;
}

.ratgeber-nav-mobile__list a:hover {
  color: var(--color-brand);
}

@media (max-width: 1024.98px) {
  .ratgeber-nav-mobile {
    display: block;
  }
}

/* Drawer variant: always visible inside drawer */
.ratgeber-nav-mobile--drawer {
  display: block;
  border-top: 1px solid var(--color-border-light);
}

/* Bottom variant: hidden on desktop where sidebar has its own nav */
@media (min-width: 1025px) {
  .ratgeber-nav-mobile--bottom {
    display: none;
  }
}

.ratgeber-toc-fab {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 440;
  display: none;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: var(--color-brand);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(29, 53, 76, 0.25);
}

#toc-sticky-bar {
  position: fixed;
  top: var(--toc-mobile-bar-top, 0);
  left: 0;
  right: 0;
  z-index: 428;
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
  transform: translateY(-108%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.22s ease,
    opacity 0.2s ease;
}

#toc-sticky-bar.toc-bar-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#toc-sticky-bar > button {
  width: 100%;
  min-height: 2.75rem;
  border: 0;
  background: #fff;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.875rem;
  text-align: left;
}

.toc-sticky-bar__label {
  flex: 0 0 auto;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--color-brand);
}

.toc-sticky-bar__current {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 0.875rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toc-sticky-bar__chevron {
  flex: 0 0 auto;
  color: var(--color-text);
  transition: transform 0.2s ease;
}

#toc-sticky-bar.toc-bar-open .toc-sticky-bar__chevron {
  transform: rotate(180deg);
}

.toc-sticky-bar__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.24s ease;
  border-top: 1px solid #eee;
}

#toc-sticky-bar.toc-bar-open .toc-sticky-bar__panel {
  max-height: min(62vh, 520px);
  overflow-y: auto;
}

#toc-sticky-bar .ratgeber-toc__list {
  max-height: none;
  overflow: visible;
  padding: 0.625rem 0.875rem 0.875rem 1.375rem;
}

.toc-inline-mobile {
  margin: 0.625rem 0 1.125rem;
  padding: 0.875rem 0.875rem 0.75rem;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 0;
}

.toc-inline-mobile .ratgeber-toc__list {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.ratgeber-toc-drawer {
  position: fixed;
  inset: 0;
  z-index: 430;
}

.ratgeber-toc-drawer[hidden] {
  display: none;
}

.ratgeber-toc-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.ratgeber-toc-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(92vw, 420px);
  height: 100%;
  background: #fff;
  transform: translateX(102%);
  transition: transform 0.24s ease;
  display: flex;
  flex-direction: column;
  padding: 0.875rem;
  gap: 0.75rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ratgeber-toc-drawer.is-open .ratgeber-toc-drawer__panel {
  transform: translateX(0);
}

.ratgeber-toc-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ratgeber-toc-drawer__title {
  margin: 0;
  font-size: 1rem;
}

.ratgeber-toc-drawer__close {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #eee;
  border-radius: 50%;
  background: #fff;
  color: var(--color-text);
  font-size: 1.5rem;
  line-height: 1;
}

.ratgeber-toc--drawer .ratgeber-toc__list {
  max-height: none;
  overflow: visible;
}

.toc-drawer-open {
  overflow: hidden;
}

.cms-section-sidebar-main-content h2[id],
.cms-section-sidebar-main-content h3[id] {
  scroll-margin-top: var(--toc-anchor-offset, 160px);
}

@media (max-width: 1024.98px) {
  .cms-section-sidebar-sidebar-content .ratgeber-left-rail {
    display: none;
  }

  .ratgeber-toc-fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .toc-inline-mobile .ratgeber-toc-item > a.is-active::before,
  .toc-inline-mobile .ratgeber-toc-item > a[aria-current='true']::before,
  #toc-sticky-bar .ratgeber-toc-item > a.is-active::before,
  #toc-sticky-bar .ratgeber-toc-item > a[aria-current='true']::before,
  .ratgeber-toc--drawer .ratgeber-toc-item > a.is-active::before,
  .ratgeber-toc--drawer .ratgeber-toc-item > a[aria-current='true']::before {
    display: none;
  }
}

@media (min-width: 768px) {
  #toc-sticky-bar {
    display: none !important;
  }

  .toc-inline-mobile {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .ratgeber-toc-fab,
  .ratgeber-toc-drawer {
    display: none !important;
  }
}

/* =========================
   Phase 2: Schlafstudie Blockquote
   ========================= */
.study-quote {
  background: var(--color-brand-light);
  color: var(--color-text);
  border-left: 4px solid var(--color-brand);
  border-radius: 0;
  padding: 28px 32px;
  margin: 32px 0;
  position: relative;
  border-top: none;
  border-right: none;
  border-bottom: none;
  overflow: hidden;
  box-shadow: none;
}

.study-quote::before {
  content: '\201C';
  position: absolute;
  top: 8px;
  right: 16px;
  left: auto;
  font-size: 128px;
  opacity: 0.12;
  color: var(--color-brand);
  font-family: Georgia, serif;
  line-height: 1;
}

.study-quote__stat {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  margin: 0 0 8px;
  color: var(--color-brand);
}

.study-quote__text {
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 16px;
  color: var(--color-text);
  font-style: italic;
}

.study-quote__source {
  font-size: 12px;
  color: var(--color-text-subtle);
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
}

.study-quote__source cite {
  font-style: italic;
}

/* =========================
   Phase 2: Contextual Product Cards
   ========================= */
.product-card-contextual {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 28px 0;
  display: flex;
  gap: 20px;
  box-shadow: var(--shadow-md);
  align-items: flex-start;
  position: relative;
}

.product-card-contextual__context-label {
  display: inline-block;
  background: var(--color-brand-light);
  color: var(--color-brand);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 0;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card-contextual__img-wrap {
  flex-shrink: 0;
  width: 120px;
}

.product-card-contextual__img-wrap img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--color-bg-light);
  padding: 8px;
}

.product-card-contextual__body {
  flex: 1;
  min-width: 0;
}

.product-card-contextual__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 3px;
}

.product-card-contextual__subtitle {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 0 0 10px;
}

.product-card-contextual:hover {
  box-shadow: var(--shadow-hover);
}

.product-card-contextual__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.product-card-contextual__stars {
  color: #e6a800;
  font-size: 16px;
  letter-spacing: 1px;
}

.product-card-contextual__rating-count {
  font-size: 12px;
  color: var(--color-text-muted);
  opacity: 0.8;
}

.product-card-contextual__benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  font-size: 12px;
}

.product-card-contextual__benefits li {
  padding: 2px 0;
  color: var(--color-text);
}

.product-card-contextual__benefits li::before {
  content: '✓ ';
  color: var(--color-brand);
  font-weight: 700;
}

.product-card-contextual__footer {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.product-card-contextual__price {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
}

.product-card-contextual__price small {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-muted);
}

.btn-brand {
  background: var(--color-text);
  color: #fff !important;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 3px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none !important;
  display: inline-block;
  text-align: center;
  transition: background 0.2s ease;
  cursor: pointer;
  line-height: 1.5;
}

.btn-brand:hover {
  background: #333;
}

.product-card-contextual__trust-badges {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.trust-badge {
  font-size: 0.75rem;
  border: 1px solid #eee;
  border-radius: 0;
  padding: 0.125rem 0.5rem;
  color: var(--color-text);
  background: #f9f9f9;
  white-space: nowrap;
}

@media (max-width: 576px) {
  .product-card-contextual {
    flex-direction: column;
  }

  .product-card-contextual__img-wrap {
    width: 100%;
  }

  .product-card-contextual__img-wrap img {
    height: 180px;
    width: 100%;
  }

  .btn-brand {
    width: 100%;
  }
}

/* =========================
   Phase 2: Spec Accordions
   ========================= */

/* =========================
   Phase 3: Author Bio Box
   ========================= */
.author-bio {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-brand);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 40px 0;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.author-bio__avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--color-brand);
  background: var(--color-brand-light);
}

.author-bio__content {
  flex: 1;
}

.author-bio__label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-brand);
  font-weight: 700;
  margin-bottom: 8px;
}

.author-bio__name {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 2px;
  color: var(--color-text);
}

.author-bio__job {
  color: var(--color-brand);
  font-size: 16px;
  margin: 0 0 12px;
  font-weight: 500;
}

.author-bio__text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0;
  opacity: 0.85;
}

@media (max-width: 576px) {
  .author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    margin: 28px 0;
  }
}

/* =========================
   Phase 3: Info Tooltips
   ========================= */
.info-icon {
  background: none;
  border: 1.5px solid var(--color-brand);
  border-radius: 50%;
  width: 17px;
  height: 17px;
  font-size: 12px;
  color: var(--color-brand);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-left: 3px;
  padding: 0;
  font-weight: 700;
  flex-shrink: 0;
  transition:
    background 0.15s,
    color 0.15s;
  line-height: 1;
  position: relative;
  top: -1px;
}

.info-icon:hover {
  background: var(--color-brand);
  color: #fff;
}

/* Simple tooltip popup */
.info-icon::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-text);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  width: max-content;
  max-width: 260px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 300;
  text-align: left;
  line-height: 1.4;
  white-space: normal;
}

.info-icon::after {
  content: '';
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-text);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.info-icon:hover::before,
.info-icon:hover::after,
.info-icon:focus::before,
.info-icon:focus::after {
  opacity: 1;
}

/* =========================
   Phase 3: Utility Classes
   ========================= */
.section-gap {
  margin-top: 32px;
}
.content-gap-sm {
  margin-bottom: 16px;
}
.content-gap-lg {
  margin-bottom: 32px;
}
.bg-warm-white {
  background-color: var(--color-bg-warm);
}
.text-brand {
  color: var(--color-brand);
}

.table-ratgeber {
  border-collapse: collapse;
  width: 100%;
  font-size: 16px;
}

.table-ratgeber td,
.table-ratgeber th {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
}

.table-ratgeber tr:nth-child(even) {
  background: var(--color-bg-warm);
}

/* Brand color: #6a9aad (matching shop) */
/* Applied via CSS variable --color-brand above */

/* =========================
   Vorteile – Numbered Benefit List
   ========================= */
.vorteile-list {
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.vorteile-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.vorteile-item__num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  margin-top: 2px;
}

.vorteile-item__body {
  flex: 1;
  min-width: 0;
}

.vorteile-item .vorteile-item__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
  margin: 0 0 6px;
  padding: 0;
}

.vorteile-item__body > p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.65;
  font-size: 16px;
}

.vorteile-item__body a {
  color: var(--color-brand);
}

/* Expert Tip Box */
.experten-tipp {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--color-brand-light);
  border: none;
  border-left: 4px solid var(--color-brand);
  border-radius: 0;
  padding: 18px 22px;
  margin: 16px 0;
}

.experten-tipp__img {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.experten-tipp__body {
  flex: 1;
  min-width: 0;
}

.experten-tipp__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-brand);
  margin-bottom: 5px;
}

.experten-tipp__body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
}

@media (max-width: 576px) {
  .experten-tipp {
    gap: 12px;
    padding: 14px 16px;
  }

  .experten-tipp__img {
    width: 36px;
    height: 36px;
  }
}

/* =========================
   Size Table
   ========================= */
.topper-size-table-wrap {
  margin: 20px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.topper-size-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 16px;
}

.topper-size-table th,
.topper-size-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.topper-size-table thead th {
  background: var(--color-brand-light);
  color: var(--color-brand-dark);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.topper-size-table tbody tr:last-child td {
  border-bottom: 0;
}

.topper-size-table tbody tr:nth-child(even) {
  background: var(--color-bg-warm);
}

/* =========================
   Topper-Wahl Cards
   ========================= */
.topper-match-grid {
  padding: 0 !important;
}

.topper-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 767px) {
  .topper-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .topper-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.topper-card {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.topper-card-icon {
  width: 52px;
  height: 52px;
  background: rgba(117, 140, 163, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.topper-card-icon .maxia-lazy-image {
  display: block !important;
  height: 26px !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain;
}

.topper-card-title {
  color: var(--color-text-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

.topper-card-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
  flex: 1;
}

/* =========================
   H3 Headings with Accent Bar
   ========================= */
.cms-section-sidebar-main-content h3[id] {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
}

.cms-section-sidebar-main-content h3[id]::before {
  content: '';
  flex-shrink: 0;
  width: 4px;
  height: 1.1em;
  background: var(--color-brand);
  border-radius: 0;
}

/* =========================
   Ratgeber Steps OL
   ========================= */
.ratgeber-steps {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ratgeber-steps > li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  counter-increment: step-counter;
}

.ratgeber-steps > li::before {
  content: counter(step-counter);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.ratgeber-steps > li .step-content {
  flex: 1;
  min-width: 0;
}

.ratgeber-steps > li .step-title {
  display: block;
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text);
  margin-bottom: 6px;
}

.ratgeber-steps > li .step-content p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.ratgeber-steps > li .step-questions {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ratgeber-steps > li .step-questions > li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.55;
  padding: 0;
  margin: 0;
  counter-increment: none;
}

.ratgeber-steps > li .step-questions > li::before {
  content: '–';
  flex-shrink: 0;
  color: var(--color-brand);
  font-weight: 700;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  box-shadow: none;
  position: static;
  font-size: 16px;
}

/* =========================
   Fazit Box
   ========================= */
.fazit-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-brand);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.fazit-box__body {
  flex: 1;
}

.fazit-box__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 0.5rem;
}

.fazit-box p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-muted);
  font-style: italic;
  margin: 0 0 1rem;
}

/* fazit-box__cta extends btn-brand with minor context overrides */
.fazit-box__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.fazit-box__cta:hover {
  background: #333;
  border-color: #333;
  color: #fff !important;
  text-decoration: none !important;
}

/* =========================
   FAQ Section
   ========================= */
.faq-section {
  margin: 2.5rem 0 1rem;
}

.faq-section__heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-heading);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
}


/* =========================
   Section Figure (full-width image with caption)
   ========================= */
.section-figure {
  margin: 20px 0 28px;
}

.section-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.section-figure figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--color-text-muted);
  font-style: italic;
  text-align: center;
  line-height: 1.4;
}

/* =========================
   Härtegrad Section: Text + Side Image
   ========================= */
.haertegrad-media-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
  margin: 8px 0 28px;
}

.haertegrad-media-layout__text {
  min-width: 0;
}

.haertegrad-media-layout__figure {
  margin: 0;
}

.haertegrad-media-layout__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .haertegrad-media-layout {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Material Section: Two-column grid (text + product card sidebar)
   ========================= */
.material-section-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
  margin: 16px 0 32px;
}

.material-section-grid__text {
  min-width: 0;
}

/* Material Feature List */
.material-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.material-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
}

.material-features li:first-child {
  padding-top: 2px;
}

.material-features li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.material-features li strong {
  color: var(--color-brand-dark);
  font-weight: 700;
}

/* Inline Product Card (sidebar) */
.product-card-inline {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.product-card-inline figure {
  margin: 0;
  background: var(--color-bg-light);
  padding: 16px 16px 12px;
  text-align: center;
}

.product-card-inline figure img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: 130px;
  object-fit: contain;
}

.product-card-inline figcaption {
  font-size: 12px;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: 8px;
  line-height: 1.3;
}

.product-card-inline__body {
  padding: 14px;
}

.product-card-inline__tag {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-brand);
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-card-inline__name {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 5px;
  color: var(--color-text);
  line-height: 1.25;
}

.product-card-inline__rating {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 10px;
  opacity: 0.8;
}

.product-card-inline__rating .stars {
  color: #e6a800;
  letter-spacing: 1px;
}

.product-card-inline__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.product-card-inline__price small {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-muted);
}

.product-card-inline .btn-brand {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 12px;
  padding: 9px 12px;
  min-height: 40px;
  box-sizing: border-box;
}

/* Removed specific h3 rules, now handled globally for h3[id] */

@media (max-width: 768px) {
  .material-section-grid {
    grid-template-columns: 1fr;
  }

  .material-section-grid__card {
    order: -1;
  }

  .product-card-inline {
    display: flex;
    align-items: stretch;
  }

  .product-card-inline figure {
    width: 110px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .product-card-inline figure img {
    height: 90px;
  }
}

/* ── Intro Preview List ─────────────────────────────────── */
.cms-block.pos-2.cms-block-image-text .cms-block-container-row {
  align-items: stretch;
}

.cms-block.pos-2.cms-block-image-text .cms-block-container-row > [class*='col-'] {
  display: flex;
}

.cms-block.pos-2.cms-block-image-text .cms-element-image {
  width: 100%;
}

.cms-block.pos-2.cms-block-image-text .cms-image-container {
  height: 100%;
}

.cms-block.pos-2.cms-block-image-text .cms-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.intro-preview-list {
  margin-top: 1.5rem;
  border-radius: var(--radius-lg);
  background: white;
  border: 1px solid var(--color-border-light);
  border-top: 4px solid var(--color-brand);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 10px 30px rgba(117, 140, 163, 0.08);
  position: relative;
  overflow: hidden;
}

/* Subtle background accent for the list box */
.intro-preview-list::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, rgba(117, 140, 163, 0.03), transparent);
  pointer-events: none;
}

.intro-preview-list__label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand-dark);
  margin-bottom: 1rem;
  opacity: 0.8;
}

.intro-preview-list__group + .intro-preview-list__group {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-light);
}

.intro-preview-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.intro-preview-list ul li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.intro-preview-list ul li:last-child {
  margin-bottom: 0;
}

.intro-preview-list ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-brand);
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.2s ease;
}

@media (max-width: 767.98px) {
  .cms-block.pos-2.cms-block-image-text .cms-image-container,
  .cms-block.pos-2.cms-block-image-text .cms-image {
    height: auto;
  }
}

/* =========================
   Article Section Divider
   ========================= */
.cms-section-sidebar-main-content > .cms-block + .cms-block {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.cms-section-sidebar-main-content > .cms-block + .cms-block:not(.pos-2)::before {
  content: '';
  display: block;
  width: 75%;
  height: clamp(10rem, 8.8rem + 3vw, 12rem);
  margin: 0 auto;
  background-image: linear-gradient(var(--color-border-light), var(--color-border-light));
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 1px;
}

.cms-section-sidebar-main-content > .cms-block + .cms-block:not(.pos-2) {
  margin-top: clamp(-4.5rem, -2.4rem - 1.5vw, -3rem);
}

@media (max-width: 767.98px) {
  .cms-section-sidebar-main-content > .cms-block + .cms-block {
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  .cms-section-sidebar-main-content > .cms-block + .cms-block:not(.pos-2)::before {
    height: 10rem;
  }

  .cms-section-sidebar-main-content > .cms-block + .cms-block:not(.pos-2) {
    margin-top: -2.5rem;
  }
}
