The counts of Hanau had had a court case before the Reichskammergericht against the Dukes of Lorraine since 1572 about the inheritance of Zweibrücken-Bitsch. In 1606, they settled out of court. At issue were two fiefs in Lorraine: Bitche and Lemberg Castle. A compromise was found: Bitche reverted to Lorraine, and Hanau-Lichtenberg was allowed to keep Lemberg Castle. This made sense, as it corresponded roughly to the religious realities in the territories. Johann Reinhard also settled a case against the County of Isenburg about conflicting rights in the Dreieich area. He established a ProtestantLatin school in his capital of Bouxwiller, which existed until 1792. It was a counterpart to the Hohe Landesschule in Hanau-Münzenberg. In 1613, a school regulation for the county was issued. Also in 1613, construction started of the new City Church in Bouxwiller. In 1610, Johann Reinhard I concluded a treaty of inheritance with Count Philipp Ludwig II of Hanau-Münzenberg, stipulating that if one of the ruling family branches were to die out, the other branch would inherit their county. This treaty was updated in 1618 and confirmed by the Emperor. At the time, it appeared that Hanau-Münzenberg was likely to benefit from this treaty, as it had several male family members, whereas Hanau-Lichtenberg had only one male heir. This might explain why Johann Reinhard I received some generous loans after the treaty was signed. He needed a lot of money, because he maintained an extensive court. Contrary to expectations, the Hanau-Münzenberg branch of the family died out in 1642 and Johann Reinhard's grandson Friedrich Casimir inherited the county of Hanau-Münzenberg. Johann Reinhard I played a role in the coronation celebrations of Emperor Matthias 1612 and the election of Emperor Ferdinand in 1619. The county of Hanau-Lichtenberg suffered badly during the Thirty Years' War. Count Johann Reinhard I tried to maintain a strict neutrality, but the county's location near the Electorate of the Palatinate, the highways along the Rhine valley and the French-German border area made that very difficult. The district of Babenhausen was the hardest hit. It was occupied several times by the warring armies and its villages were destroyed in the first years of the war. The inhabitants fled. Some 2500 of them fled to the City of Babenhausen. The plague then broke out in the city. The parts of the county on the right bank of the Upper Rhine were also seriously damaged. The part of the county in the Lower Alsace was spared when Johann Reinhard I managed to buy protection for. Count Johann Reinhard I operated a "hedge mint" in Willstätt: a mint which brought debased coins into circulation. He earned substantial profits with this scam. In the financial year 1621–1622 alone he minted 110 cwt of silver coins and syphoned off more than as "seignorage".