/*
 Theme Name: Divi Child Theme
 Theme URI: https://skit.sascha-kohler.at/
 Description: Child theme for Divi.
 Author: Sascha Kohler
 Author URI: https://skit.sascha-kohler.at/
 Template: Divi
 Version: 1.0.0
 Text Domain: divi-child
*/

/* Add your custom styles below */

/*
  Blog-Posts: saubere vertikale Abstände
  - h2–h6, p, ul, ol bekommen ein einheitliches padding-bottom
  - letztes Kind im Content-Bereich hat kein padding-bottom
  - p innerhalb von li hat kein zusätzliches padding-bottom
*/

/* Basis-Spacer für den Inhaltsfluss (bei Bedarf zentral anpassen) */
:root {
  --post-block-spacing: 1em;
}

/* Anwendungs-Bereiche: Divi & Gutenberg Content-Container */
.et_pb_post .entry-content :is(h2,h3,h4,h5,h6,p,ul,ol),
.et_pb_post_content :is(h2,h3,h4,h5,h6,p,ul,ol),
.wp-block-post-content :is(h2,h3,h4,h5,h6,p,ul,ol) {
  padding-bottom: var(--post-block-spacing);
}

/* Kein zusätzlicher Abstand beim letzten Element im Content-Container */
.et_pb_post .entry-content > :last-child,
.et_pb_post_content > :last-child,
.wp-block-post-content > :last-child {
  padding-bottom: 0;
}

/* Keine Doppelabstände bei Absätzen innerhalb von Listenelementen */
.et_pb_post .entry-content li p,
.et_pb_post_content li p,
.wp-block-post-content li p {
  padding-bottom: 0;
}
