.ratgeber-suche { max-width: 35rem; margin-top: 1.5rem; }
.ratgeber-suche label { display: block; font-weight: 650; margin-bottom: .4rem; }
.ratgeber-suche > div { display: flex; gap: .6rem; }
.ratgeber-suche input {
  min-width: 0;
  width: 100%;
  padding: .75rem;
  border: 1px solid var(--pfs-rand-dunkel);
  border-radius: var(--pfs-rund-knopf);
  background: var(--pfs-dunkel-feld);
  color: var(--pfs-text-dunkel);
  font: inherit;
}
.ratgeber-karte h3 a { text-decoration: none; overflow-wrap: anywhere; }
.ratgeber-karte h3 a:hover { text-decoration: underline; }
.ratgeber-karte h3 span { color: var(--pfs-tuerkis-text); }
.ratgeber-zurueck { display: inline-block; color: var(--pfs-text-dunkel); margin-bottom: 1rem; }
.ratgeber-einleitung { margin-bottom: 1.25rem; }
.ratgeber-einleitung a { color: var(--pfs-tuerkis); text-decoration: underline; }
.ratgeber-meta { display: flex; gap: .3rem 1.25rem; flex-wrap: wrap; color: var(--pfs-text-dunkel2); }
.ratgeber-hero { padding-top: clamp(2.25rem, 5vw, 5rem); }
.ratgeber-hero .ratgeber-hero-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.8rem, 4vw, 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}
.ratgeber-hero .hero-copy h1 { font-size: clamp(2.2rem, 4.6vw, 4.7rem); overflow-wrap: anywhere; }
.ratgeber-hero .hero-lead { max-width: 44rem; }
.ratgeber-bildrahmen {
  position: relative;
  isolation: isolate;
  width: min(100%, 32rem);
  margin: 0;
  padding: clamp(.4rem, 1vw, .75rem);
  border-radius: 2rem 1rem 1rem;
  background: var(--pfs-dunkel-feld);
  box-shadow: 0 20px 80px #0005;
}
.ratgeber-bildrahmen::before {
  position: absolute;
  z-index: -1;
  inset: -.4rem -.4rem .4rem .4rem;
  border: 1px solid rgba(55, 221, 202, .36);
  border-radius: 2rem 1rem 1rem;
  pointer-events: none;
  content: '';
}
.ratgeber-bildrahmen img { display: block; width: 100%; height: auto; max-height: 31rem; object-fit: contain; }
.ratgeber-artikel { max-width: 54rem; margin-inline: auto; min-width: 0; scroll-margin-top: 1rem; }
.ratgeber-inhalt { margin-bottom: 2rem; padding: clamp(1.1rem, 2vw, 1.6rem); }
.ratgeber-inhalt h2 { font-size: 1.25rem; }
.ratgeber-inhalt ol { margin: .5rem 0 0; padding-inline-start: 1.4rem; }
.ratgeber-inhalt li + li { margin-top: .5rem; }
.ratgeber-inhalt a, .ratgeber-lesetext a { color: var(--brand-strong, var(--pfs-tuerkis-text)); text-decoration: underline; }
.ratgeber-lesetext { font-size: 1.0625rem; overflow-wrap: anywhere; }
.ratgeber-lesetext h2, .ratgeber-lesetext h3, .ratgeber-lesetext h4 { margin: 1.65em 0 .55em; scroll-margin-top: 1rem; }
.ratgeber-lesetext p, .ratgeber-lesetext ul, .ratgeber-lesetext ol, .ratgeber-lesetext blockquote { margin: 0 0 1em; }
.ratgeber-lesetext > :first-child { margin-top: 0; }
.ratgeber-lesetext ul, .ratgeber-lesetext ol { padding-inline-start: 1.35em; }
.ratgeber-lesetext pre { overflow: auto; }
.ratgeber-kurslink, .ratgeber-seiten { margin-top: 2rem; }
.ratgeber-seiten { display: flex; flex-wrap: wrap; gap: .75rem; }

@media (min-width: 861px) {
  .ratgeber-hero .ratgeber-hero-mit-bild { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .ratgeber-bildrahmen { justify-self: end; }
  .ratgeber-mit-inhalt {
    display: grid;
    grid-template-columns: minmax(13rem, 1fr) minmax(0, 3fr);
    align-items: start;
    gap: clamp(1.75rem, 4vw, 4rem);
    width: min(calc(100% - 48px), 90rem);
  }
  .ratgeber-mit-inhalt .ratgeber-artikel { max-width: none; margin: 0; }
  .ratgeber-mit-inhalt .ratgeber-inhalt {
    position: sticky;
    top: 6.5rem;
    max-height: calc(100vh - 8rem);
    margin: 0;
    overflow: auto;
    overflow-wrap: anywhere;
  }
}

@media (min-width: 651px) and (max-width: 900px) {
  .ratgeber-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
