Thank you very much Fede29 for your reply and the information!
Mine looks very clean inside, with just rain water entering it.
I agree that damage of the main board seems to be the most likely explanation.
Letting rain fall on the phone is of course stupid.
But I think having gaps between the screen and the phone case where water can enter the phone is a poor design choice, in particular when they face upwards.