is it theoretically possible to generate a private key of an existing btc address ?
That really depends on what you mean when you say "possible", and how the existing BTC address was generated. As long as the private key for the BTC address was generated from a sufficiently random source, nobody else is ever going to generate the same number. If the private key was generated fro something without enough entropy such as a person choosing a password, or faulty random number generating software, then it becomes much more likely that the same private key could be generated.
the private key is basically just a random 256bit number,
This is true. However, as jordant and Amph have both attempted to explain...
2
256 is a VERY big number. Much bigger than most people are able to comprehend. The odds of generating the same random 256 bit number as someone else isn't just small, it's astronomically small. It's so small that any reasonable person would consider it impossible.
so if I'd know that number I could just create a new private key in WIF form, from which I'd create public key and btc address,
Yes. This is wy it is very important to keep your private keys secure. If anyone else gains access to your private keys, then they can spend or steal your bitcoins.
or is there something more to this and one 256bit number can have multiple public keys and btc addresses?
So, while there is only a 1 in 2
256 chance of generating the exact same private key as was originally used to create the P2PKH address, there is actually a 1 in 2
160 chance of generating any 1 of the 2
96 different private keys that can all be used to spend bitcoins that are received at that address.
Fortunately, while not nearly as big of a number as 2
256, 2
160 is still a VERY big number. Big enough that there shouldn't be any concern of anyone generating any of the private keys as long as the private key is originally generated from a random enough source.
i didnt know bitcoin addresses can have multiple private keys, i always thought it was oner per address lol. thanks for the info.