wegen, trotz, während
In written German the prepositions wegen (because of), trotz (despite) and während (during) take the Genitiv case for the noun that follows them.
The Genitiv articles are des for masculine and neuter nouns and der for feminine nouns and the plural: wegen des Regens, während der Fahrt. ein-words and possessives end in -es before masculine and neuter nouns and in -er before feminine and plural nouns: wegen einer Störung, der Schlüssel meines Koffers.
Masculine and neuter nouns add -s or -es. Longer nouns take -s: des Wetters, des Fahrers. Short nouns often take -es, and both forms are correct: des Zuges or des Zugs. After -s, -ß, -x and -z only -es is possible: des Hauses. Feminine nouns and plurals add nothing. A name takes -s without an apostrophe: Toms Koffer.
wegen gives a reason, like weil; trotz gives a contrast, like obwohl. After weil and obwohl comes a clause with the verb at the end: Obwohl es regnet, fährt Herr Hartmann mit dem Fahrrad. After wegen and trotz comes a noun.
In everyday speech many people say wegen dem Wetter, with the Dativ. In writing use the Genitiv.