score:2
Since you won't need to enter the Schengen area during your layovers (you can easily stay within the international transit zones of Munich and Frankfurt airports), you would not have a coherent premise for applying for a Schengen visa, and such an application would very likely be refused.
You should apply for a Croatian visa directly from Croatia.