You would be surprised how little power european households consume, but we do have central/gas heating so the math doesn't always work out perfectly. 100-200W for lights/tv/fridge, oven/induction/kettle for 2h ~2000W a day. That's something the solar panels can most definitely handle, of course this is on case by case basis. I consume 300W at idle as I have a home server :)

Apartments have walls too, but we're getting into a territory where it might start becoming ugly.

If you care about getting the population to switch en masse from gas heating to electric-powered heat pump heating - which is an explicit social/political goal of a number of people I know, and one that I'm simultaneously sympathetic to and have serious qualms about - then everyone's gas consumption needs to go down and everyone's electricity consumption needs to go up. Also once you have a heat pump, you have an air conditioner - it's the same technology - and that means that people will want to use it to cool their dwellings in the hot months of the year, even if they weren't previously able to do this with just a gas-powered furnace, resulting in even more electricity consumption.

Honestly, I think it's fine to just keep the electric grid as it is, and not attempt to power every building only from the amount of solar electricity that it can generate from its roof area. The electric grid lets us take advantage of economies of scale, build gigantic solar arrays or nuclear power plants on cheap land outside of town, and crucially leave the management of that grid up to one well-known organization rather than a consortium of several households in an apartment.

Well yah of course, the grid is useful. But new developments should just include solar and storage and simply become the grid I think that's a no-brainer, off-grid or micro-grid would obviously better, but I'd settle for a mix.