Let us say you moved to Germany on a national D visa with job offer. The plan was to get a blue card once inside Germany. But your employer terminates your employment very soon before you apply for your blue card.
What happens then? Can you stay in Germany till the full validity of your national D visa (which can be 1 year)? Can you stay and find another job? If you have to leave, what is the grace period?