Professor uses academic employees to write proposals I am working at a German university after I obtained my PhD. My professor asked me to write project proposals to get funding. One and a half years ago, I spent all my time during 6~8 months writing a DFG proposal that is supposed to be a joint effort between our university and another institution. No one contributed to the proposal except me. My professor used to give me some general feedback.
When we submitted the proposal, I wanted to submit it under my name but my professor convinced me that it would have higher chances under his name than mine and at the end, it did not change anything. I accepted, and the proposal was submitted under his name and the name of our partner and me as a co-applicant.
During the review process, my professor changed university and asked me to join him. However, due to private reasons, I couldn't join him. Now, the proposal has been accepted and I asked my former professor to keep the project in my university as my contract will end soon and because I wrote the entire proposal.
His answer was &quot;No, I don't want to&quot;. I argued with him and he replied “it is normal to write a proposal for me when you are at the beginning of your postdoc”. In this situation, I am not getting any credit and the project will move with him and another person will be hired for it, where I might be unemployed.
Is it ethical that the professor uses his academic employees to write proposals and what to do in similar situations because I find it stealing my effort and credit?
EDIT
Currently, I am hired by the university and affiliated to a research group, so we can work on the project in our institution. Originally, the project was granted to my current institution.
EDIT 2
I think it is getting more into a discussion rather than answering a question. I allow my self to EDIT the question according to the answers and the comments. I didn't get a clear answer, but people were divided into three categories:

It is unethical and the professor did a terrible thing.
It is unethical but the professor has fulfilled his moral responsibility be offering a position in his new institution.
It is ethical and universities/professors can use employees or professional writers to write proposals. (Btw. I did not mention that I wrote the proposal but I also developed the ideas, where my professor did not agree with most of them).

The goal of my question is not to find who is wrong or to prove that I am a victim of my former professor's behaviour but to know if we are working in a healthy atmosphere or not and if it is unethical I would reject to write proposals for my next professor. Otherwise, I need to agree with the fact that this is how it works and continue doing it without feeling bad about my self.
EDIT 3
Consequently, I would vote to close the question as it is likely to be answered with opinions rather than facts and citations.
If I understand correctly, you (as a postdoc) developed a research proposal, your professor submitted it under their name, and the project was funded. Then you were sidelined --- you will not be a PI on this project and you will not even take any role in it. This is a terrible experience and I am sorry to hear it happened to you.
The professor's behaviour is wrong. Even for German academia, notoriously famous for being professor-centred and often exploiting young researchers unfairly, this is probably beyond what can be considered normal.
Now, what can probably happen if you expose the story? Likely, not much. There are two issues here:

It is impossible to verify reliably who was the author of the proposal. Even if you show the time stamped drafts, it only proves that you typeset the material and prepared it for submission. Your former professor may say that they explained you the main idea and asked you to type it. It's very hard to prove authorship.
Even when evidence is quite convincing, most academics and academic administrators won't pursue an established professor for a single case of academic misconduct, if it does not directly hurt the University. Ideas are stolen very often, but such stories rarely made headlines, so most administrators won't bother dealing with them. Of course, there are exceptions, when even a single problem can unexpectedly grow big and eventually cost academic their job (there were several such stories recently related to hot topics in political/social discourse). But as far as I see quite a few professors made their carriers by borrowing ideas of others and making their students and postdocs to do a lot of their own work.

So, what can you take from this story? First, you know that you can develop a winning research proposal. This is a sign of a great researcher! Not many people can do it in their postdoc. This is something you should be proud of, and this skill and dedication is something no-one can steal from you. If you decide to leave this story behind and focus on what's ahead, I hope you will be able to repeat this success and now get the full credit for your hard work and creativity.
Good luck!