/**
 * Veranstaltungen -- Frontend Styles.
 *
 * Helper class: .va-hide-if-empty
 * Add this CSS class to any Elementor widget that contains a link
 * with a dynamic tag (e.g. Speisekarte URL). The widget will be
 * hidden when the link is empty.
 */

/* Hide button widgets with empty href. */
.elementor-widget.va-hide-if-empty:has(a.elementor-button[href=""]),
.elementor-widget.va-hide-if-empty:has(a.elementor-button:not([href])),
.elementor-element.va-hide-if-empty:has(a.elementor-button[href=""]),
.elementor-element.va-hide-if-empty:has(a.elementor-button:not([href])) {
    display: none !important;
}

/* Hide generic link wrappers with empty href. */
.elementor-widget.va-hide-if-empty:has(> a[href=""]),
.elementor-widget.va-hide-if-empty:has(> a:not([href])) {
    display: none !important;
}

/* Hide containers that contain only empty links. */
.e-con.va-hide-if-empty:has(a.elementor-button[href=""]),
.e-con.va-hide-if-empty:has(a.elementor-button:not([href])) {
    display: none !important;
}
