Hide accordion Item based on facets result count - no querie

Hi,
how do I set up the display conditions for this?:
I like to hide an accordion-item based on a specific facet count.

The accordion title contains a facet based on acf-checkbox-field “Branche” containing the choices “Gesundheit”, “Landwirtschaft”, …
The accordion-content contains further facets based on acf-custom-taxonomie.
If the accordion-title-facet shows result 0 the accordion-item will not be displaied.

I need help setting up the conditions for this.



Thanks!

Just got it solved with one line of CSS with pseudo-class :has

I set Gridbilder facet to hide empty choices and applied this css to the accordion-item:

grafik