got this off the net ... a couple of things to look into In a follow-up message, you indicated the brakes were not hot. The most likely cause of a sinking pedal with no external leakage is a faulty brake master cylinder that's leaking internally. Were the brakes hot, we might consider boiling fluid due to moisture contamination or friction material gassing.
Try pressing and holding the pedal (one time, continuously, engine not running - the hard pedal is easier to evaluate) and see if the pedal slowly sinks to the floor. Repeat as needed, pressing softer or harder, and perhaps with the engine running to tempt a symptom recurrence.
If the pedal sinks, this confirms a faulty master cylinder.
Another possibility is that crud at the bottom of the fluid reservoir is preventing consistent take-up of fluid by the cylinder.