Facts

Parties and procedural history: The parties were married (marriage on 20 April 1970) and disputed in the divorce proceedings (matrimonial property) the matrimonial property classification of a property no. vvv, GB [T.] . The husband (appellant) held a 60 % inheritance share in an estate to which the property belonged. The wife (respondent) is the opposing party.

Acquisition of the property: By purchase agreement dated 23 May 1978, the husband acquired the property from the heirs' community at market value of Fr. 338'000.--, financed by a mortgage loan of Fr. 300'000.-- and cash funds of Fr. 38'000.--. Later he received an on-account payment of Fr. 165'000.-- and a final payment of Fr. 8'111.85 from the liquidated estate.

Divorce proceedings: After an unsuccessful reconciliation attempt and a rejected joint divorce petition, the husband filed the divorce action on 15 December 2008. In June 2010 the property was divided; property no. vvv with a single-family house remained with the husband (net value Fr. 539'000.--), while the undeveloped parcels were sold for Fr. 787'493.10.

Cantonal judgments: The District Court of [U.] dissolved the marriage on 5 June 2014 and ordered the husband to make a matrimonial property payment of Fr. 1'246'260.60. On 20 January 2015 the Cantonal Court of Lucerne reduced this to Fr. 756'053.65, by assigning the property to the husband's separate property; it also awarded the wife an indexed maintenance annuity of Fr. 1'000.--.

Remand by the Federal Supreme Court: On the wife's appeal, the Federal Supreme Court, by judgment 5A_143/2015 of 23 March 2016 (BGE 142 III 257), set aside the cantonal decision concerning the matrimonial property claim and remanded the matter for examination of how the matrimonial property allocation is to be treated where the inherited asset was formally acquired by purchase rather than by division of the estate.

New cantonal decision: The Cantonal Court of Lucerne, 2nd Division, decided anew on 4 August 2016, assigned the property to the husband's acquired property and ordered him to pay Fr. 1'246'260.60 to the wife; it also redistributed the costs.

Requests before the Federal Supreme Court: The husband requested the annulment of the judgment of 4 August 2016, a reduction of the compensation payment to Fr. 756'053.65, a redistribution of the costs and legal aid. Suspensive effect was granted by presidential decision of 8 December 2016. The wife and the Cantonal Court were not invited to submit observations.

Subject matter of the dispute: Before the Federal Supreme Court, the only matters in dispute were the matrimonial property classification of the property and the cost allocation.

Considerations

Admissibility: The appeal in civil matters against the final cantonal decision on the financial consequences of divorce is admissible (Art. 72 para. 1, 75 para. 1, 90 FSCA). The amount in dispute exceeds Fr. 30'000.-- (Art. 74 para. 1 let. b FSCA), the appellant has standing (Art. 76 para. 1 FSCA) and the time limit was observed (Art. 100 para. 1 FSCA). The appeal is therefore admissible.

Governing principles of the accrued gains regime: Assets acquired free of charge, such as inheritances, constitute separate property (Art. 198 no. 2 CC). Where assets are acquired for consideration, their classification depends on the origin of the consideration (Art. 197 para. 2 no. 5 and Art. 198 no. 4 CC). An asset may be assigned to only one estate; the other estate receives a variable replacement claim (Art. 209 para. 3 CC). Determinative is which estate predominantly funded the acquisition in value at the time of acquisition. Where financing is partly through debt, what matters is the estate from which the cash contribution came. A purely credit-financed purchase counts as an acquisition in favour of the acquired property. Where a co-heir takes over an inheritance asset, the relevant point in time is when the asset passes into his sole ownership.

Binding effect of the remand decision: In the remand decision, the Federal Supreme Court had held in a binding manner that co-heirs may transfer sole ownership of an inheritance asset to one co-heir not only through partial division of the estate, but also through a genuine purchase agreement. The appellant cannot have this legal question reviewed again (BGE 135 III 334 consid. 2.1).

Interpretation of the contract: Decisive is not the label given to the contract but the parties' actual, mutually shared intention; it must be determined whether the purchase agreement and the liquidation of the heirs' community form a single whole. As this is a publicly certified contract (Art. 216 para. 1 CO), it is presumed that the text of the contract corresponds to the actual intention (Art. 9 para. 1 CC). This presumption may be rebutted by counter-evidence. Whether this evidence has been furnished is assessed by the lower court's evaluation of evidence, which the Federal Supreme Court reviews only for arbitrariness (Art. 9 Cst.).

No arbitrariness: The appellant pointed to…