Thermodynamically consistent phase-field modelling of contact angle hysteresis | Synapse