As others have said, Nextcloud for files/calendar and Tailscale for VPN is your answer.
Nextcloud can be installed in several ways, one of which is Docker Compose. Docker Compose is flexible but requires learning a bit, although you can use it for most self-hosted software.
Agreed, switch the applications first. I like using https://alternativeto.net/ to find replacements.