and this morning it works again.
sounds like air in the lever assembly reservoir
This is my understanding…
If you've air in the lever assy then the brake will work until you work that air bubble into the hose.. then… brake will be spongy as described. Once you stop using the brakes, that bubble will likely migrate back into the highest point.. the lever assy and the brakes will work again until the cycles happens again.
The braking response depends only on the integrity of the fluid in the hose between the master lever piston and the caliper piston/s..so as long as you have no air in this section, all will be fine. as soon as you introduce air here, you get the effect you're describing.
so, you need to bleed. time spent here is probably better than time in the clinic 😉
/2p