Private car sales (delete/register)

Hello guys, my first car sale is on and I would have another question. And how do I do it best with the cancellation? I had thought that I would drive to the registration office on the day of the sale and register the car, but that won’t work, because I won’t get away from there. And on the other hand, the buyer would have to have registered the car when he comes already, but that doesn’t work because he doesn’t have the ticket because I need this one to log out. s do I have now for possibilities? Selling the registered car and then having it re-registered by the buyer? That seems to be the easiest option. But probably also dangerous. I would then contractually keep a re-registration period of 5 days. The buyer also seems to be very trustworthy. And how is that, if the car is logged off, is the insurance automatically terminated or?