.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;
}
/* Preserve the complete image, including any text on older published covers. */
.ratgeber-karte .ratgeber-altbild img { object-fit: contain; }
.ratgeber-karte .ratgeber-rohbild img { object-fit: cover; }
.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 {
  width: min(100%, 27rem);
  margin: 0;
  overflow: clip;
  border: 1px solid #365658;
  border-radius: 12px;
  background: var(--pfs-dunkel-feld);
}
.ratgeber-bildrahmen img { display: block; width: 100%; height: auto; max-height: 25rem; 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), 73.75rem);
  }
  .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)); }
}

/* Native contents disclosure remains available without JavaScript. */
.ratgeber-inhalt-details summary{cursor:pointer;font-weight:700;min-height:44px;display:list-item;align-content:center}.ratgeber-inhalt-details summary:focus-visible{outline:3px solid #005f70;outline-offset:4px}.ratgeber-inhalt-details[open] summary{margin-bottom:1rem}

.verkauf-layout .ratgeber-indexkopf { padding-block: clamp(1.7rem, 3.5vw, 3rem); }
.ratgeber-indexkopf .ratgeber-suche { margin-top: 1rem; }
.verkauf-layout .ratgeber-liste { padding-block: clamp(1.9rem, 4vw, 3.75rem); }
.ratgeber-liste .section-heading { margin-bottom: 1.25rem; }
.ratgeber-liste #ratgeber-liste-titel, .ratgeber-lesetext h2 {
  font-size: clamp(1.65rem, 2.25vw, 2.125rem);
  line-height: 1.2;
  text-wrap: balance;
}
.ratgeber-lesetext h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.28; }
.ratgeber-lesetext h2, .ratgeber-lesetext h3, .ratgeber-lesetext h4 { scroll-margin-top: 7rem; }
.ratgeber-hero .hero-copy h1 { text-wrap: balance; }
/* Übersichtskopf wie die anderen Seiten: Text links, Bild rechts, Bild so hoch wie der Text (Benjamin 27.11.) */
.ratgeber-indexkopf-bild { margin: 0; }
.ratgeber-indexkopf-bild img { display: block; width: 100%; height: 220px; object-fit: cover; border-radius: 16px; }
@media (min-width: 861px) {
  html body .ratgeber-indexkopf .ratgeber-indexkopf-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: stretch; }
  html body .ratgeber-indexkopf .ratgeber-indexkopf-bild { position: relative; min-height: 260px; }
  html body .ratgeber-indexkopf .ratgeber-indexkopf-bild img { position: absolute; inset: 0; height: 100%; border-radius: clamp(48px, 6vw, 96px) 18px 24px 18px; box-shadow: 0 18px 55px #0005; }
}
@media (max-width: 860px) { .ratgeber-indexkopf-bild { margin-top: 24px; } }
