2 Answers
2

In fact, as a general rule, in compounds it is the first element (or root) that gets the primary stress. See for yourself: Auto­bahn, Wohnungs­tür, Herbst­wetter, Kontroll­fluß­graph, etc. More notable still, this is actually quite similar to how things work in English, another Germanic language — the canonical examples in any Linguistics 101 being black board (just a noun and an adjective, equal stress on both words) vs. blackboard (compound, stress on the first element); white house vs. White House; nice rack vs. coat rack; and so on and so forth.

Back to German, though, and there to secondary stress. The longer the compound, the more likely is it to get secondary stress(es), effectively getting "broken up" into smaller compounds (compare: Kontroll­fluß­graph vs. Kontroll­fluß­graph­visuali­sierungs­software vs. Kontroll­fluß­graph­visuali­sierungs­software­entwicklerbüro ).