.ratgeber-single .ratgeber-layout {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.ratgeber-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 5rem);
  align-self: start;
  min-width: 0;
}

.ratgeber-sidebar__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ratgeber-toc,
.ratgeber-cta {
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--white);

}

.ratgeber-sidebar__title,
.ratgeber-cta__title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--dark-blue);
}

.ratgeber-toc__content {
  font-size: 0.95rem;
  line-height: 1.5;
}

.ratgeber-toc__content nav > ul {
  margin: 0;
  padding-left: 1.1rem;
}

.ratgeber-toc__content ul {
  margin: 0;
  padding-left: 1.1rem;
}

.ratgeber-toc__content li + li {
  margin-top: 0.45rem;
}

.ratgeber-toc__content a {
  color: var(--dark-blue);
  text-decoration: none;
}

.ratgeber-toc__content a:hover {
  color: var(--gold);
}

.ratgeber-cta__kicker {
  margin: 0 0 0.5rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.ratgeber-cta__text {
  margin: 0 0 1.25rem;
  color: var(--muted);
  line-height: 1.6;
}

.ratgeber-content {
  min-width: 0;
}

.ratgeber-content > *:first-child {
  margin-top: 0;
}

.ratgeber-content h2,
.ratgeber-content h3,
.ratgeber-content h4 {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.ratgeber-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: clamp(1.65rem, 2.6vw, 2.2rem);
  line-height: 1.2;
}

.ratgeber-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.25;
}

.ratgeber-content h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.7rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.ratgeber-content p,
.ratgeber-content ul,
.ratgeber-content ol {
  margin-top: 0;
  margin-bottom: 1.15rem;
}

.ratgeber-content p {
  color: var(--text);
  line-height: 1.75;
}

.ratgeber-content ul,
.ratgeber-content ol {
  padding-left: 1.35rem;
  color: var(--text);
  line-height: 1.7;
}

.ratgeber-content li + li {
  margin-top: 0.45rem;
}

.ratgeber-content a {
  color: var(--dark-blue);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.ratgeber-content a:hover {
  color: var(--gold);
}

.ratgeber-content blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--gold);
  background: var(--panel-warm);
  color: var(--text);
  font-style: italic;
}

.ratgeber-content img {
  width: 100%;
  height: auto;
}

.image-caption {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}


@media (max-width: 900px) {
  .ratgeber-single .ratgeber-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ratgeber-sidebar {
    position: static;
    order: 2;
  }

  .ratgeber-content {
    order: 1;
  }
}

@media (max-width: 640px) {
  /* Hero kompakt */
  .ratgeber-hero,
  .hero {
    min-height: auto;
    height: auto;
    padding: 2rem 0 1.5rem;
  }

  .ratgeber-hero__inner,
  .hero-inner {
    padding: 0;
  }

  .ratgeber-hero h1,
  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  /* Layout enger */
  .ratgeber-single .ratgeber-layout {
    gap: 1.5rem;
  }

  .ratgeber-sidebar__inner {
    gap: 1rem;
  }

  .ratgeber-toc,
  .ratgeber-cta {
    padding: 1.2rem;
  }

  /* Typo optimiert */
  .ratgeber-content {
    font-size: 0.98rem;
  }

  .ratgeber-content h2 {
    font-size: 1.45rem;
    margin-top: 2rem;
  }

  .ratgeber-content h3 {
    font-size: 1.2rem;
    margin-top: 1.6rem;
  }

  .ratgeber-content p {
    line-height: 1.7;
  }

  /* Bilder ruhiger */
  .ratgeber-content img {
    border-radius: 0.5rem;
  }

  /* Blockquote kompakter */
  .ratgeber-content blockquote {
    padding: 0.9rem 1rem;
  }
}