I would first bleed the brakes,you may learn which brakes are getting pressure or not getting pressure,but I am leaning towards master cylinder,let us know what you find,good luck ,AND WELCOME !
__________________
85 300sd SOLD

,85 745i,95 740i,1972 Suburban,1938 International