An Audi driver lost concentration while driving, crossed the double white line and collided with another vehicle, a court heard.