What was the logic behind Germany's invasion of Denmark?


In saturdays video the planing of the Germans’ invasion of Norway. Their invasions of the rest of Europe had racist, military and/or ideological reasons, however invading Denmark seemed to just be for an airport to Norway. Did Germany have any other motifs like retaking northern Schleswig, getting more food or to create a model subject state, which became Denmarks purpose later in the war.