One button card, turn on and off diffrent group

I have diffrent light group. I wanted that all light in that group turn off. Thats ok.
But the same button is turning on same light that was turned of. Thats not ok.

Solution:
I wanted to turn off light in group: light1 and light2
I wanted to turn on light in group: light1.

What option does i have to mange this with only one card?

If I understand you correct: you cannot.
With a group you manage the group, so all lights as 1

Although… maybe you might for instance use toggle for the group and with long press 1 specific light.

Create a button but with no entity attached and then use the button options of press to say toggle group 1 and use the hold option to say toggle group 2

It’s not ideal but would work of sorts.