Is there any way that could go?
Yeah, that could work. You could make a "multi server" that supports Java and Bedrock at the same time, but that's complicated.
And how does that work?
Well, that's the catch. It's best to search on Google
It is possible with a lot of effort. On the one hand you would have to have a server (V-Server etc.). One can then create such a multiserver with https://geysermc.org. If you have no experience it is almost impossible.