/* pacht.de Theme – Ergänzungen zu pb.css für WordPress-Ausgaben (Inhalte aus dem Editor, Kommentare aus).
   Nur Modifier und WordPress-Klassen; pb.css bleibt unverändert. */

/* Bilder und Ausrichtungen aus dem Block-Editor in .pb-prose */
.pb-prose .alignleft { float: left; margin: 0 var(--pb-space-5) var(--pb-space-4) 0; }
.pb-prose .alignright { float: right; margin: 0 0 var(--pb-space-4) var(--pb-space-5); }
.pb-prose .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.pb-prose figure { margin: var(--pb-space-5) 0; }
.pb-prose figcaption { font-size: var(--pb-fs-sm); color: var(--pb-text-muted); margin-top: var(--pb-space-2); }
.pb-prose img { height: auto; border-radius: var(--pb-radius); }
.pb-prose .wp-block-table { overflow-x: auto; }
.pb-prose .wp-block-table table { width: 100%; border-collapse: collapse; }
.pb-prose .wp-block-table td, .pb-prose .wp-block-table th { border-bottom: 1px solid var(--pb-border); padding: var(--pb-space-2) var(--pb-space-3); text-align: left; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Inhaltsverzeichnis mit eigenen Nummern der Überschriften (Rechtstexte): keine zusätzliche Aufzählung */
.pb-toc__list--eigen { list-style: none; padding-left: 0; }

/* Inhaltsverzeichnis eingeklappt: die ganze Titelzeile ist der Schalter (mind. 48 px hoch), Pfeil dreht sich beim Öffnen */
.pb-toc--klappbar { padding-block: 0; }
.pb-toc--klappbar .pb-toc__title { display: flex; align-items: center; justify-content: space-between; gap: var(--pb-space-2); min-height: 48px; margin: 0; cursor: pointer; list-style: none; }
.pb-toc--klappbar .pb-toc__title::-webkit-details-marker { display: none; }
.pb-toc--klappbar .pb-toc__title:focus-visible { outline: 2px solid var(--pb-focus); outline-offset: 2px; border-radius: 4px; }
.pb-toc__pfeil { flex-shrink: 0; width: 18px; height: 18px; transition: transform 0.15s; }
.pb-toc--klappbar details[open] .pb-toc__pfeil { transform: rotate(180deg); }
.pb-toc--klappbar .pb-toc__list { padding-bottom: var(--pb-space-4); }

/* Werbemittel (Adcell über das Plugin dailylead_maintenance, siehe inc/bestand.php): mittig und als „Anzeige“ gekennzeichnet */
.pb-anzeige { width: fit-content; max-width: 100%; margin: var(--pb-space-7) auto; }
.pb-anzeige__label { display: block; margin-bottom: var(--pb-space-1); font-size: var(--pb-fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pb-text-muted); }
.pb-anzeige__inhalt { line-height: 1.3; }
.pb-anzeige__inhalt a { text-decoration: none; }
.pb-prose .pb-anzeige img { border-radius: 0; }

/* Startseite: Texte des Betreibers (Begrüßung, Bereiche, Vorteile, Schritte, Abschluss) */
.pb-start-text p { max-width: 72ch; margin-top: var(--pb-space-3); font-size: var(--pb-fs-md); }
.pb-start-text .pb-section__head + p { margin-top: 0; }
.pb-tile--bereich { align-items: flex-start; }
.pb-tile--bereich .pb-tile__count { line-height: 1.45; }
.pb-vorteile { list-style: none; margin: 0; padding: 0; }
.pb-vorteil { display: flex; gap: var(--pb-space-3); align-items: flex-start; }
.pb-vorteil > .pb-icon { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; color: var(--pb-green-700); }
.pb-vorteil p, .pb-schritte p { margin: 0; }
.pb-schritte { list-style: none; counter-reset: schritt; margin: 0; padding: 0; display: grid; gap: var(--pb-space-3); }
.pb-schritte li { counter-increment: schritt; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--pb-space-3); align-items: start; }
.pb-schritte li::before { content: counter(schritt); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--pb-primary-tint); color: var(--pb-primary-text); font-weight: 700; }
.pb-cta--breit .pb-cta__text { max-width: 72ch; }
.pb-schritte__spalte { display: flex; flex-direction: column; }
.pb-schritte__knopf { align-self: flex-start; margin-top: auto; }
.pb-schritte + .pb-schritte__knopf { margin-top: var(--pb-space-5); }
