Sticky header in landingpage should invert color for the subpages

Hello,
I have to use a sticky header on my landing page with black text on a white background.
On all subpages, the header should be inverted, meaning white text on a black background.
My Blocs programmer and I haven’t been able to figure out how to do this, not in this forum nor with the help of AI. It doesn’t seem to work via the Class Manager.

Could you give me a hint as to what we’re doing wrong?
Thank you very much for your kind help.

Guenter

I’ve never tried this, but in my head it sound feasible.
In your header bloc, make 2 menus, one black, one white version and hide the relevant ones on certain pages?