For online collaboration use cryptpad. It is end-to-end encrypted and there are multiple instances where your files will be stored encrypted on their servers. You do not have to create an account and can share just using a link. For local editing I would say LibreOffice is the best.