I know the money is gone, and I’ll have to live with that. However, I keep asking myself: how could this even happen? Is this a real Trojan attack where they scan for open wallets?
There is no login with Electrum wallet, but if you are using wind0ws OS than there is a chance your computer was infected with some malware or keylogger.
Something like this can happen if your seed words got leaked and compromised, either you kept then online, or in digital format on your computer, you should
never do that.
Keeping backup offline and using hardware wallets are the good way to improve protection for your coins.