/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Hauptregel: Die 64px/32px (Erhöhte Spezifität für Gutenberg-Blöcke) */
.blog-post-content :is(h2, h3, h4, h5, h6).wp-block-heading {
    margin-top: 64px;
    margin-bottom: 32px;
}

/* --- AUSNAHMEREGEL: h2 -> h3 --- */
/* Wenn h3 direkt auf h2 folgt (mit oder ohne Elementor-Anker dazwischen) */
.blog-post-content h2.wp-block-heading + h3.wp-block-heading,
.blog-post-content h2.wp-block-heading + .elementor-menu-anchor + h3.wp-block-heading {
    margin-top: 32px !important;
}

/* --- AUSNAHMEREGEL: h3 -> h4 --- */
/* Wenn h4 direkt auf h3 folgt (mit oder ohne Elementor-Anker dazwischen) */
.blog-post-content h3.wp-block-heading + h4.wp-block-heading,
.blog-post-content h3.wp-block-heading + .elementor-menu-anchor + h4.wp-block-heading {
    margin-top: 32px !important;
}