Getting around Black Forest
More
The region is covered by regional trains and buses. As they can be infrequent, it is better to check the departure times in advance (e.g., through bahn.de or some public transport apps).
If you stay in a guest house or a hotel, you will often be offered a free "Gästekarte" (guest card), called KONUS. It allows you to go around freely in many local trains and buses (which do not include the express trains "IC/EC" and the high speed trains "ICE"). It is valid during your whole stay, from you arrival and including the day of your check-in, so it allows visiting the region by going from one accommodation to another without paying any transportation ticket. It includes the following zones (a map is available through the link above):
Source: Wikivoyage, Black Forest, written by volunteers (CC BY-SA 4.0), not a government source. Prices and timings may be old; confirm before you travel.