Passenger protection
On 31 May 2018, in case 537/17 Claudia Wegener v. Royal Air Maroc, the European Court of Justice (ECJ) ruled that EU Regulation 261/2004 on compensation and assistance to passengers in the event of denied boarding and of cancellation or long delay of flights, applies to passenger transport effected under a single booking and comprising, between its departure from an airport situated in a Member State (Berlin) and its arrival at an airport situated in a third country (Agadir), a scheduled stopover outside the EU (Casablanca) with a change of aircraft. In more general terms, the ECJ ruled that from the aforementioned regulation and case law it is clear that if two or more flights are booked as a single unit, those flights should be viewed as a whole for the purposes of the right to compensation for passengers. Those flights should be considered as one and the same ‘connecting flight’ despite the stopover outside the EU.
https://curia.europa.eu/jcms/upload/docs/application/pdf/2018-05/cp180077en.pdf