Dealers usually offer inspected vehicles, help with paperwork and, when selling to consumers, statutory liability for defects. For used vehicles this can be shortened to one year by contract. Private sellers are often cheaper but can exclude that liability, so your own inspection matters more. Most listings are on platforms such as mobile.de; see our mobile.de guide.
Whichever you choose, ask for the service history, the last HU report, the gas inspection certificate and the original registration documents (Teil I and Teil II) before you pay.