There is no simple solution and every solution has its risks.
A) The simplest solution is for her to sell the house and give you the money but I would strongly recommend against that because of all the things which could go wrong. Of course, you think that nothing can go wrong, but here is what has gone wrong in similar cases.
1) The couple owned the house jointly and separated. He claimed that the mother had given his wife and him the gift jointly so wanted half the proceeds of the house. Kerching for the legal profession.
2) In another tragic case, the wife died and no problem at all the son and mother in law got on very well and continued to live happily. Until he met a new person who not unreasonably demanded that his mother in law leave.
3) Your relationship with your mother changes when she comes to live with you. You resent her spending every evening in your house criticising the way you raise your kids.
B) The best solution is probably that your mother sells her house and lends you the money to buy the new house.
Hopefully, nothing will go wrong, but if it does, at least your mother has an asset.
If you split from your husband, he can claim only half the equity.
If your mother wants to leave, you owe her €300k
C) Your mother continues living in her own home and takes in a young student to live in the house.
Brendan