old shitty brake fluid, sounds like its over heated and turned to vapour, hence pedal pressure loss, you can compress vapour but not fluid.
When the vapour cools it becomes fluid again and the pedal pressure returns.
Start by having a full brake fluid renewal