“Haben Sie gut geschlafen?” means “Did you sleep well?” This is a polite question about last night.