You can get married at any civil registry office in Switzerland, not just at your place of residence. The office at your place of residence carries out the preparatory procedure and issues a marriage authorisation for the office of your choice.
The wedding is held at the wedding venue of the chosen civil registry district. This doesn't have to be an office room. Many civil registry offices have additionally designated castles, villas or historic halls as wedding venues. The canton of Solothurn, for example, holds weddings in five castles within the canton during the summer months. In Basel-Stadt, external wedding locations are possible with at least ten days' notice.
What isn't possible: holding the civil wedding at any location of your choosing, such as in a garden or on an alpine pasture. Outside the designated wedding venues, the office will only conduct a wedding if travelling there is unreasonable for you, for example due to serious illness. Anyone wanting to marry at a desired location that is not an official wedding venue should plan an independent ceremony there and complete the legal formalities beforehand at the office.