Society has switched what it is racist about many times in the past. Just 100 years ago (WWI was just over) it was worse to be German than black in the US. Someone told me that in the 1870s the KKK had many black members - the group was against Catholics not blacks, but they changed (I do not know if this is true, but even if false it isn't unlikely). It will switch again.
Whatever your law is needs to cover all cases, otherwise it will be worked around quickly.
It wasn't until the revival of the "second wave" of the KKK during 1910's and 1920's that they even started taking on anti-catholic stances. It was during this era that the burning cross, anti-communist, anti-catholic and anti-jewish stances came into being.
Finally, I have no idea where you got the idea that the KKK had "many black members". As far as I'm aware, no credible evidence for that has ever been put forward.
The whole idea of these rules is to avoid discriminating people based on something outside of their control: color, gender, height, age, country of origin and so on.
The definition of "bad things" is left as an exercise to the reader.
It seems like quite the tall order, but then humanity has a very long list of conquered tall orders, because some people were willing to pursue the "impossible", and we also happen to be blessed with some very powerful tools (some of which often work against us).